Expand description
Media types and hardware-encoder integration helpers.
AccessUnit carries encoded frames (Annex-B for video, raw AAC/PCM
for audio) into the data plane; the *_video/*_audio constructors
below remove the SDP/clock boilerplate when wiring a hardware encoder
(HiSilicon HiMPP VENC, V4L2, …) into the framework.
Re-exports§
pub use connection::SdpConnection;pub use crypto::SdpCrypto;pub use demux::DemuxedSample;pub use demux::Demuxer;
Modules§
- bitstream
- Read-only bitstream helpers for hardware-encoder integration (HiSilicon HiMPP VENC, V4L2, etc.): Annex-B NAL splitting, NAL classification and H.264/H.265 parameter-set extraction for SDP fmtp generation.
- clock
- RTP timestamp generation for hardware-encoder integration.
- connection
- SDP connection-info value type (
c=line). - crypto
- SDP crypto attribute value type (RFC 4568,
a=crypto). - demux
- Container-agnostic demuxing abstractions.
- flv
- FLV container primitives shared by the HTTP-FLV/WS-FLV muxer
(
http_flv::mux) and the RTMP FLV codec (rtmp::flv). - vod
- Video-on-demand source abstraction.
Structs§
- Access
Unit - Media
Description - Rtcp
Address - SDP
a=rtcp:<port> [address]override. - RtxConfig
- RTX (RFC 4588) parameters derived for one video track. RTX is advertised only when the server enables it; the payload type is allocated from the dynamic range so it never collides with a media PT.
- Track
Description
Enums§
- Codec
- Media
Kind - SdpDirection
- SDP media direction (
a=sendonly/a=recvonly/a=sendrecv/a=inactive).
Constants§
- TS_
PACKET_ SIZE - MPEG-TS packet size in bytes.
Functions§
- rtx_
configs - Allocate one RTX PT/SSRC per video track without colliding with any media payload type in the description.