[vlc-devel] h264 packetizer fix

Sergio M. Ammirata, Ph.D. sergio at ammirata.net
Sat Sep 15 16:12:20 CEST 2012


I have found that there are a number of h264 files and streams for which the
h264 packetizer outputs dts=pts=0 for every other frame (perhaps interlaced
content). I could not figure out if the problem is with the way the
packetizer extracts the data or with the sources itself (unlikely because
they come from several different commercial hardware appliances).

When you play these files, you do not notice the problem because the
playback chain is able to compensate/correct for this bad timestamping.
However, the streaming chain will fail to do anything with this content
unless you use this patch.

This patch will also "fix" any missing timestamps that could occasionally
show up in the source. This last scenario seems impossible but I found that
the mpeg4 and vc1 packetizers have code to do the same thing.

Suggestions, Comments?

Sergio



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120915/2536c9a1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: h264_packetizer.patch
Type: application/octet-stream
Size: 3450 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120915/2536c9a1/attachment.obj>


More information about the vlc-devel mailing list