[FFmpeg-devel] [PATCH, V2] avformat/concat: Fix wrong wrapped timestamp
Nicolas George
george at nsup.org
Sat Dec 30 13:30:08 EET 2017
Wu Zhiqiang (2017-12-30):
> The command to generate sample video:
>
> ffmpeg -f lavfi -i testsrc=duration=120 -c:v h264 -profile:v high -level:v
> 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.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavf-concatdec-properly-init-streams-timestamp-param.patch
Type: text/x-diff
Size: 1191 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171230/19955abc/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171230/19955abc/attachment.sig>
More information about the ffmpeg-devel
mailing list