[FFmpeg-trac] #2375(FFprobe:new): FFprobe outputs nonsense DTS/PTS for streams with reordered frames
FFmpeg
trac at avcodec.org
Tue Mar 19 00:52:23 CET 2013
#2375: FFprobe outputs nonsense DTS/PTS for streams with reordered frames
-------------------------------------+-------------------------------------
Reporter: dbuitenh | Owner:
Type: defect | Status: new
Priority: normal | Component: FFprobe
Version: git-master | Resolution:
Keywords: ffprobe, | Blocked By:
timestamps, pts, dts, mpeg2 | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by dbuitenh):
Replying to [comment:8 michael]:
> > "DTS copied from the AVPacket that triggered returning this frame"
> >
> > So that's a straight up lie. Also it's named '''pkt_dts''' the pkt is
FOR PACKET.
>
> Lets take an example:
> {{{
> Packet PTS 1 4 2 3 7 5 6
> Packet DTS 0 1 2 3 4 5 6
> Packet Type I P B B P B B
> Decoder here
> Frame Type I B B P B B
> AVFrame pkt_dts: 1 2 3 4 5 6
> }}}
>
> You can see that the AVFrame.pkt_dts is the AVPacket dts of the packet
that triggered the frame to be returned (in a standard reference decoder)
This does a splendid job of showing exactly why the current behavior is
wrong, confusing, and in stark contrast of what DTS actually is.
It's clear there's no intention of changing it to anything sane, so I'll
simply keep this link handy for every time someone runs into this hacky
mess, which in my experience, is fairly often.
Good day.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2375#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list