New submission from Martin Storsjö <[email protected]>: As mentioned in issue 2452, the timestamp adjustment can affect the outcome of remuxing.
This command line works properly initially: ./ffmpeg -fdebug ts -loglevel debug -dump -y -i rtsp://albin.abo.fi:8554/sample_h264_100kbit.mp4? tcp -acodec copy -vcodec copy out.mp4 If the attached patch is applied, so that only the video stream is received, the video stream is the only stream, making the start time of the whole input nonzero: Duration: 00:01:10.00, start: 0.066667, bitrate: N/A This leads to this error: [mp4 @ 0x101815200] st:0 error, pts < dts With some extra debug code enabled, the output is: stream #0: keyframe=1 duration=0.000 dts=N/A pts=N/A size=182 [mp4 @ 0x101815200] av_write_frame: pts2:-9223372036854775808 dts2:0 [mp4 @ 0x101815200] pts has no value stream #0: keyframe=0 duration=0.000 dts=N/A pts=0.006 size=77 [mp4 @ 0x101815200] av_write_frame: pts2:0 dts2:1 [mp4 @ 0x101815200] st:0 error, pts < dts ---------- files: 0001-rtsp-Don-t-receive-audio-streams-skip-them.patch messages: 13061 priority: normal status: new substatus: new title: Timestamp adjustments trigger timestamp sanity check type: bug ________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/issue2453> ________________________________________________
0001-rtsp-Don-t-receive-audio-streams-skip-them.patch
Description: Binary data
