GNOME Bugzilla – Bug 620978
insert NAL7/8 always when encountering I frame
Last modified: 2010-06-14 10:53:29 UTC
Created attachment 163071 [details] [review] always insert sps/pps when i frame is encountered This small patch always enters nal types 7/8 sps/pps when an I frame is encountered instead of selectively. It works more or less like the rtph246pay module. This allows simple streaming of H264 over the network and have a stream that is always decodable on the other side without manually inserting the config parameters. when using this in the parser element allows not only streaming rtp over the network; but also all kinds of elementary streams with or without transportstream encapsulation. the rtph264pay module works with a timeout value (insert every second, 2 seconds); this patch always inserts it. Please review carefully. Considering the sheer number of posts on the mailing list recently; this could be a good addition.
Created attachment 163176 [details] [review] include config-interval to time nal insertion Localised the changes better; include config-interval parameter from rtph246pay to selectively insert the NAL7/8 types consistent with the rtph264pay and rtpmp4vpay modules.
Comment on attachment 163071 [details] [review] always insert sps/pps when i frame is encountered newer patch obsoletes this
Created attachment 163199 [details] [review] h264parse: add option to insert SPS/PPS Attached is a somewhat reworked/cleaned version. In particular, it bears in mind that current approach only really/safely works when the output buffers are NALs (not AUs).
Created attachment 163374 [details] [review] h264parse: add option to insert SPS/PPS Extended version of previous patch; now also inserts config NALUs when operating in access-unit mode.
commit d6cab72552b5cd7cc37ee40bf877e49fda6c54ae Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Mon Jun 14 12:49:40 2010 +0200 h264parse: add option to insert SPS/PPS in stream Add a new config-interval property to insert SPS and PPS at periodic intervals in the stream (when an IDR is encountered). Based on patch by <marc.leeman at gmail.com> Fixes #620978.