h264parse
Parses H.264 streams
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseParse ╰──h264parse
Factory details
Authors: – Mark Nauwelaerts
Classification: – Codec/Parser/Converter/Video
Rank – primary + 1
Plugin – videoparsersbad
Package – GStreamer Bad Plug-ins
Pad Templates
src
video/x-h264:
parsed: true
stream-format: { (string)avc, (string)avc3, (string)byte-stream }
alignment: { (string)au, (string)nal }
Properties
config-interval
“config-interval” gint
Send SPS and PPS Insertion Interval in seconds (sprop parameter sets will be multiplexed in the data stream when detected.) (0 = disabled, -1 = send with every IDR frame)
Flags : Read / Write / Construct
Default value : 0
insert-cc
“insert-cc” H264parse-ccmode *
Inserts closed captions from GstVideoCaptionMeta into the H.264 bitstream. This is extremely fast, because it does not require transcoding!
The following pipeline takes a MacCaption file input.mcc
containing
EIA/CEA/CTA-608 and/or 708 captions, and converts it to a DTVCC stream. It
then takes an ISO MP4 file input.mp4
containing a H.264 video stream,
and inserts the DTVCC stream as ATSC A/53 SEI NALs, and writes that and
the original audio track to output.mp4
:
gst-launch-1.0 \
cccombiner name=ccc schedule=false ! h264parse insert-cc=a53 ! \
mp4mux name=mp4 ! filesink location=output.mp4 \
filesrc location=input.mcc ! mccparse ! ccconverter ! \
closedcaption/x-cea-708,format=cc_data ! ccc.caption \
filesrc location=input.mp4 ! qtdemux name=qt ! queue ! ccc. \
qt.audio_0 ! queue ! mp4.
Flags : Read / Write
Default value : none (0)
update-timecode
“update-timecode” gboolean
If the stream contains Picture Timing SEI, update their timecode values using upstream GstVideoTimeCodeMeta. However, if there are no Picture Timing SEI in bitstream, this property will not insert the SEI into the bitstream - it only modifies existing ones. Moreover, even if both GstVideoTimeCodeMeta and Picture Timing SEI are present, if pic_struct_present_flag of VUI is equal to zero, timecode values will not updated as there is not enough information in the stream to do so.
Flags : Read / Write
Default value : false
Named constants
H264parse-ccmode
Members
none
(0) – Don't insert caption SEIs into the bitstream
a53
(1) – Inserts a DTVCC transport stream (closedcaption/x-cea-708,format=cc_data) as ATSC A/53 Part 4 SEI NALs
The results of the search are