[FFmpeg-devel] [PATCH] H.264 timestamps
Ivan Schreter
schreter
Sun Feb 15 20:22:00 CET 2009
Hi,
Ivan Schreter wrote:
> attached three patches to get/compute some timestamp-relevant
> information from H.264 streams as a prerequisite for correct H.264
> timestamp computation (comes later).
>
I've now finished the code for computation of PTS/DTS for H.264
correctly (according to H.264 standard). I'll post the timestamp code
later (it is not as complex as I thought), as it requires parser patch,
which has to be cleaned up and reviewed first (there are still some
deficiencies).
However, here is now the full set of prerequisites needed to compute
timestamps correctly:
#1: field_pic_flag
#2: initial_cpb_removal_delay_length
#3: dpb_output_delay in picture timing SEI
#4: cpb_removal_delay in picture timing SEI
#5: cpb_cnt from header
#6: store SPS in context after decoding it as default SPS (otherwise SEI
buffering period cannot be parsed correctly)
#7: decode SEI buffering period
Please review.
Note: The patches can only be applied in the given order, as they are
mostly depending on each other.
Regards,
Ivan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264_timing_1_flags.patch
Type: text/x-patch
Size: 1490 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090215/274f1fa8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264_timing_2_init_cpb_del_len.patch
Type: text/x-patch
Size: 1247 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090215/274f1fa8/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264_timing_3_output_delay.patch
Type: text/x-patch
Size: 1794 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090215/274f1fa8/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264_timing_4_cpb_removal_delay.patch
Type: text/x-patch
Size: 1822 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090215/274f1fa8/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264_timing_5_cpb_cnt.patch
Type: text/x-patch
Size: 854 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090215/274f1fa8/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264_timing_6_default_sps.patch
Type: text/x-patch
Size: 330 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090215/274f1fa8/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264_timing_7_buffering_period.patch
Type: text/x-patch
Size: 3551 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090215/274f1fa8/attachment-0006.bin>
More information about the ffmpeg-devel
mailing list