[FFmpeg-trac] #7836(undetermined:new): Missing packets error when streaming rtsp to rtmp

FFmpeg trac at avcodec.org
Thu Apr 11 09:01:29 EEST 2019


#7836: Missing packets error when streaming rtsp to rtmp
---------------------------------+----------------------------------------
             Reporter:  longkas  |                    Owner:
                 Type:  art      |                   Status:  new
             Priority:  normal   |                Component:  undetermined
              Version:  4.1      |               Resolution:
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+----------------------------------------

Comment (by longkas):

 Replying to [comment:1 cehoyos]:
 > Are network input and network output needed to reproduce the issue or is
 it also reproducible with file input and network output or network input
 and file output?

 Sorry I did not give the reproduce steps, here is it:
 1) start rtsp server by playing a mp4 file which contains h264 video and
 aac audio, using gstreamer here
    #gst-launch-1.0 -v filesrc location=video.mp4 ! decodebin !
 videoconvert ! x264enc speed-preset=0 pass=quant quantizer=25 ! rtph264pay
 ! udpsink host=127.0.0.1 port=5555

 then you should modify this sdp file template, replace h264 "sprop-
 parameter-sets" and "profile-level-id" value by checking last gstreamer
 output

 SDP:
 v=0
 o=- 0 0 IN IP4 127.0.0.1
 s=No Name
 t=0 0
 a=tool:libavformat 58.12.100
 m=video 5555 RTP/AVP 96
 c=IN IP4 127.0.0.1
 b=AS:2120
 a=rtpmap:96 H264/90000
 a=fmtp:96 packetization-mode=1; sprop-parameter-
 sets=Z01AH9oBQBbsBagICAoAAAMAAgAAAwB5HjBlQA==,aO4fIA==; profile-level-
 id=4d401f


 2) stream the rtsp to rtmp or just output to a file(can still reproduce
 missing packets error)
 #ffmpeg.exe -v 9 -loglevel 99 -protocol_whitelist "file,sdp,udp,tcp,rtp"
 -i media.sdp -strict -2  -c copy -f flv media.flv


 btw, if I start the rtsp server by ffmpeg, I can not reproduce the error
   #ffmpeg -re -i video.mp4 -strict -2 -c:v copy -an -f rtp
 rtp://127.0.0.1:5555 -sdp_file media.sdp

 I guess the problem is that the RTSP video stream should have a variable
 bitrate to reproduce the error

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7836#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list