Skip to main content

Crate rtflow_media

Crate rtflow_media 

Source
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§

AccessUnit
MediaDescription
RtcpAddress
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.
TrackDescription

Enums§

Codec
MediaKind
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.

Type Aliases§

RtpTimestamp
TrackId