Slowmotion rtmp stream with 5.14.0

Comments

4 comments

  • The rtmp streaming from sdk 5.14.0 is 60fps

     

     Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m), 1280x720, 2778 kb/s, 59.96 fps, 16k tbr, 16k tbn, 32k tbc (default)

    Using sdk 5.8.0 it works normal, but fps is 30

     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m), 1280x720, 1094 kb/s, 29.12 fps, 16k tbr, 16k tbn, 32k tbc (default)

     

    0
    Comment actions Permalink
  • Dear Developer, Hello and thank you for reaching out to DJI Innovations. The live streaming of MSDK does not allow for the setting of the frame rate. The default frame rate is 30fps. Where did you obtain the frame rate of 60fps? The frame rate is a value carried by the video stream. Previously, some other developers used the calculated value displayed by the decoder, but it is actually not accurate. You can also use the MSDK v5.14.0 sample APP to test the effect of live streaming pushing. You can customize the live streaming bitrate, and the interface is setLiveVideoBitrate. If you encounter frame freezing, you can try adjusting the live streaming bitrate to see if it helps. We appreciate your email and wish you a wonderful day! Best Regards, DJI Innovations SDK Technical Support Team
    0
    Comment actions Permalink
  • Thanks for the reply.

    I know how to use the SDK, thanks.

    My app and server are working fine using SDK version 5.8.0, but after updating to SDK 5.14.0, using the same app, same server and same network, the 60fps problem starts.

    It appears that you have changed something on the rtmp stream. My server shows 60 fps on the admin panel when receiving it, versus 30fps with the old sdk.

    When playing the hls on a Safari browser, the video appears to be in slow motion. Same happens when playing the mp4 on the browser, after converting the stream to it using ffmpeg.

    If I play the hls tream with ffplay on a terminal, it indicates “no video frame” every two frames, but the video speed is correct.

    It works playing the mp4 file with ffplay, correct speed, but indicates 60 fps for it.

    The problem is the server is receiving some data frames between video frames, and safari is not handling it well.

    0
    Comment actions Permalink
  • Dear Developer, After confirming with the MSDK R&D team, the live streaming push frame rate for both MSDK v5.8.0 and v5.14.0 is 30fps. One point of difference is that the profile of the H264 video stream in v5.8.0 is High, while in v5.14.0 it is baseline, and the other versions of v5 also have the baseline profile. We appreciate your email and wish you a wonderful day! Best Regards, DJI Innovations SDK Technical Support Team
    0
    Comment actions Permalink

Please sign in to leave a comment.