View Source Membrane.RTP.H264.Utils (Membrane RTP H264 Plugin v0.20.4)

Utility functions for RTP packets containing H264 encoded frames.

Summary

Functions

Deprecated since v0.19.4. Use keyframe?/2 instead.

Checks whether RTP payload contains H264 keyframe.

Functions

is_keyframe(rtp_payload, look_for \\ :sps)

This function is deprecated. Use Membrane.RTP.H264.Utils.keyframe?/2 instead.
@spec is_keyframe(binary(), :sps | :idr) :: boolean()

Deprecated since v0.19.4. Use keyframe?/2 instead.

Checks whether RTP payload contains H264 keyframe.

By default, with option look_for set to :sps, will in some cases check whether the payload contains SPS (NALU payload type 7); if look_for is set to :idr, will look exclusively for IDR frames (NALU payload type 5).

keyframe?(rtp_payload, look_for \\ :sps)

@spec keyframe?(binary(), :sps | :idr) :: boolean()

Checks whether RTP payload contains H264 keyframe.

By default, with option look_for set to :sps, will in some cases check whether the payload contains SPS (NALU payload type 7); if look_for is set to :idr, will look exclusively for IDR frames (NALU payload type 5).