[MPlayer-dev-eng] mp4, vfr and timestamps

Tomas Carnecky tom at dbservice.com
Mon Jun 19 01:15:01 CEST 2006


Michael Niedermayer wrote:
> for the case of mpeg1, mpeg2 and mpeg4 video there is a very
> simle rule how PTS/CTS must be set (no frame reordering CTS=DTS, frame reordering
> CTS=DTS for B frames, CTS of non B frames = DTS of next non B frame)
> for H.264 the rules are more complex..

seems so.. because this doesn't work if I use the '--b-pyramid' option
in x264. Then even the B frames can be out of order...
I have pretty much implemented this logic (as described above) in x264,
but I don't think they'll accept my patch if it crashes with the
'--b-pyramid' option.

The file in the attachment is my attempt. Does anyone see right away how
I could fix the code when using '--b-pyramid'?  How to properly compute
the timestamps in such a situation?

tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x264.c
Type: text/x-csrc
Size: 1469 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060619/c955e040/attachment.c>


More information about the MPlayer-dev-eng mailing list