[FFmpeg-trac] #2375(FFprobe:new): FFprobe outputs nonsense DTS/PTS for streams with reordered frames

FFmpeg trac at avcodec.org
Mon Mar 18 23:51:09 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:3 michael]:
 > The 2 timestamps from AVFrame that get printed by ffprobe represent the
 presentation and decoding time based presentation time of the AVFrame.

 Calling it "decoding time (dts)", then, is misleading at best, and a
 straight up lie at worst.

 > That is if either all pts or all dts from the AVPacket input are
 corrupted then the other value on the AVFrames will be unaffected and can
 be used for correctly timed display.

 You should not be using DTS at all for displaying in the first place.
 That's what PTS is for.

 > the pkt_dts does not represent the decoding time of the AVPacket that
 contained the AVFrame.

 This is utterly dumb and wildly violates
 http://en.wikipedia.org/wiki/Principle_of_least_astonishment . The "dts"
 output isnt even a true dts!

Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2375#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list