[FFmpeg-devel] [PATCH, V2] avformat/concat: Fix wrong wrapped timestamp

Wu Zhiqiang mymoeyard at gmail.com
Sat Dec 30 17:27:32 EET 2017

2017年12月30日 下午7:30,"Nicolas George" <george at nsup.org>写道:

Wu Zhiqiang (2017-12-30):
> The command to  generate sample video:
> ffmpeg -f lavfi -i testsrc=duration=120  -c:v h264 -profile:v high
> 10 -pix_fmt yuv420p -r 30 -g 30 -c:a aac test.flv
> echo -e "file test.flv\nduration 120" > playlist
> ffplay -f concat playlist -ss 90 -max_ts_probe 0
> then seek to time before 30s , the result timestamp  is huge and
> print:"Invalid timestamps stream"

Thanks. I think I understand the problem: it is not that the timestamps
are not unwrapped, it is that they are unwrapped twice, because for some
reason lavf defaults to parameters tuned for MPEG.

See the attached patch.


  Nicolas George

ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org

Thanks for the patch, it works fine to me.
Disable is good enough to prevent unnecessary wrap control.

More information about the ffmpeg-devel mailing list