Membrane.H265.NALuParser (Membrane H.264 and H.265 plugin v0.10.4)

View Source

This module is an extension to Membrane.H26x.NALuParser and contains H265 specific functions.

Summary

Functions

get_prefixed_nalu_payload(nalu, output_stream_structure, stable_prefixing? \\ true)

See Membrane.H26x.NALuParser.get_prefixed_nalu_payload/3.

new(input_stream_structure \\ :annexb)

See Membrane.H26x.NALuParser.new/1.

parse(nalu_payload, timestamps \\ {nil, nil}, payload_prefixed? \\ true, state)

Parses a binary representing a single NALu and removes it's prefix (if it exists).

Returns a structure that contains parsed fields fetched from that NALu. When payload_prefixed? is true the input binary is expected to contain one of:

  • prefix defined as the "Annex B" in the H26x recommendation document.
  • prefix of size defined in state describing the length of the NALU in bytes, as described in ISO/IEC 14496-15.

parse_nalus(nalus_payloads, timestamps \\ {nil, nil}, payload_prefixed? \\ true, state)

Parses a list of binaries, each representing a single NALu.

See parse/4 for details.

prefix_nalus_payloads(nalus, input_stream_structure)

See Membrane.H26x.NALuParser.prefix_nalus_payloads/2.