[FFmpeg-devel] [PATCH] h264_parser: force fetching a new timestamp until a frame start was found

Michael Niedermayer michaelni at gmx.at
Wed Sep 30 14:48:49 CEST 2015


On Wed, Sep 30, 2015 at 01:04:15PM +0200, Hendrik Leppkes wrote:
> This fixes broken timestamps on streams where the SPS/PPS is at the end of
> the previous packet, instead of in front of the next packet, observed in
> badly packetized MPEG-TS streams.
> ---
>  libavcodec/h264_parser.c | 3 +++
>  1 file changed, 3 insertions(+)

this breaks seekbug01min.ts
https://trac.ffmpeg.org/raw-attachment/ticket/399/seekbug01min.ts

./ffmpeg -copyts -i seekbug01min.ts -vf showinfo -f null -

after the patch:
[Parsed_showinfo_0 @ 0x299f840] n:   3 pts: 141000 pts_time:1.56667 pos:     2068 fmt:yuv420p sar:1/1 s:320x180 i:P iskey:0 type:P checksum:23FCE60B plane_checksum:[C04510D2 B48EEA95 B48EEA95] mean:[16 127 127] stdev:[0.0 0.1 0.1]
[Parsed_showinfo_0 @ 0x299f840] n:   4 pts: 141000 pts_time:1.56667 pos:     2068 fmt:yuv420p sar:1/1 s:320x180 i:P iskey:0 type:P checksum:132E017E plane_checksum:[39A04B6E AC0DD439 233EE1B9] mean:[16 127 127] stdev:[0.4 0.5 0.4]
[null @ 0x299e0c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 38 >= 38


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150930/88ef02a3/attachment.sig>


More information about the ffmpeg-devel mailing list