Membrane Element: H264 v0.4.1 Membrane.Element.FFmpeg.H264.Parser View Source
Membrane element providing parser for H264 encoded video stream. Uses the parser provided by FFmpeg.
By default, this parser splits the stream into h264 access units,
each of which is a sequence of NAL units corresponding to one
video frame, and equips them with the following metadata entries
under :h264 key:
key_frame?: boolean- determines whether the frame is a h264 I frame.
Setting custom packetization options affects metadata, see alignment
and attach_nalus? options for details.
Element options
Passed via struct Membrane.Element.FFmpeg.H264.Parser.t/0
framerateDefault value:
{0, 1}Framerate of video stream, seeMembrane.Caps.Video.H264.framerate_t/0spsDefault value:
""Sequence Parameter Set NAL unit - if absent in the stream, should be provided via this option.ppsDefault value:
""Picture Parameter Set NAL unit - if absent in the stream, should be provided via this option.alignmentDefault value:
:auStream units carried by each output buffer. Seet:Membrane.Caps.Video.H264.alignment_t. If alignment is:nal, the following metadata entries are added:type- h264 nalu typenew_access_unit: access_unit_metadata- added whenever the new access unit starts.access_unit_metadatais the metadata that would be merged into the buffer metadata normally (ifalignmentwas:au).
attach_nalus?Default value:
falseDetermines whether to attach NAL units list to the metadata whenalignmentoption is set to:au. For details seeMembrane.Caps.Video.H264.nalu_in_metadata_t/0.
Pads
:input
| Availability | :always |
| Bin? | false |
| Caps | :any |
| Demand unit | :buffers |
| Direction | :input |
| Mode | :pull |
| Name | :input |
:output
| Availability | :always |
| Bin? | false |
| Caps | Membrane.Caps.Video.H264, restrictions:<br /> stream_format: :byte_stream |
| Direction | :output |
| Mode | :pull |
| Name | :output |
Link to this section Summary
Types
Struct containing options for Membrane.Element.FFmpeg.H264.Parser
Functions
Returns pads descriptions for Membrane.Element.FFmpeg.H264.Parser
Returns description of options available for this module
Link to this section Types
Specs
t() :: %Membrane.Element.FFmpeg.H264.Parser{
alignment: :au | :nal,
attach_nalus?: boolean(),
framerate: Membrane.Caps.Video.H264.framerate_t(),
pps: any(),
sps: any()
}
Struct containing options for Membrane.Element.FFmpeg.H264.Parser
Link to this section Functions
Specs
membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]
Returns pads descriptions for Membrane.Element.FFmpeg.H264.Parser
Specs
options() :: keyword()
Returns description of options available for this module