[FFmpeg-trac] #11080(undetermined:new): FFmpeg timestamps do not consistently agree with packet timestamps
FFmpeg
trac at avcodec.org
Sun Jul 7 10:32:28 EEST 2024
#11080: FFmpeg timestamps do not consistently agree with packet timestamps
-------------------------------------+-------------------------------------
Reporter: markfilipak | Owner: (none)
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by markfilipak):
Replying to [comment:56 Balling]:
> This is hierarchy of B frames view. Can be even 4 levels. Again, red
dots are I frames (well, light blue here, as I selexted it), blue P, green
B, second layer is done with B frames, 3rd too with B frames. X unit is
PTS, of course, so the (indeed open) GOP begins with two B frames. The two
numbers there are DTS/PTS counting from relative numbers not your absolute
numbers (and both from 0).
That diagram, https://i.imgur.com/Y9tduBw.png, looks like nonsense to me.
If time is flowing left-to-right, then the 2nd numbers must be PTSes. If
that's true, then the 1st numbers must be DTSes. If that's true, then the
B-frames are being displayed before they're decoded. That seems like
nonsense to me.
Here is what Y9tduBw.png shows.
{{{
PTS order B B P B B I B P
\__\/ \__\/ \/
/\ \ /\ \ /\
PTS order p B B I B B P B
\ \ \ \ \ \ \ \
69 70 71 72 73 74 75 76
}}}
Here is what's actually in Ticket_11055,_cut-5sec..cut.m2ts.
{{{
PTS order B P B B I B P
___/ ______/ ___/
/ / /
DTS order P B I B B P B P
\ \ \ \ \ \ \ \
\ \ \ \ \ \ \ 504054813
\ \ \ \ \ \ 504051060
\ \ \ \ \ 504047306
\ \ \ \ 504043552
\ \ \ 504039798
\ \ 504036045
\ 504032291
504024783
}}}
Now, I believe that inside Ticket_11055,_cut-5sec..cut.m2ts there's
I-slices and P-slices and B-slices that reference all over the place. I
don't know how those work and I'm not showing them in either diagram
above. I'm only showing the DTSes & PTSes.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11080#comment:57>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list