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

Utility functions for RTP packets containing H264 encoded frames.

Summary

Functions

Checks whether RTP payload contains H264 keyframe.

Functions

Link to this function

is_keyframe(rtp_payload, look_for \\ :sps)

View Source
@spec is_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).