Skip to main content

Module codec

Module codec 

Source
Expand description

The words server and client share for formats.

The server knows streams by ffprobe’s names (hevc, hdmv_pgs_subtitle) and a GStreamer client knows its decoders by caps (video/x-h265); compared as strings they never match. Each side maps its own names to these enums instead. A format either side does not know is Unknown, which no client supports, so a plan says so rather than guessing.

Structs§

ClientCapabilities
What a client can play. Belongs to the endpoint, not to a session: two profiles on one device have the same decoders. A client builds it from what it actually has (the Linux client from the GStreamer registry), not from a fixed list.
DisplayCapabilities
What the screen shows now, as a playback starts: VideoLimits::hdr and VideoLimits::bit_depth for that playback only, over what the client said at Hello. A TV’s display mode changes while the app runs (Match Dynamic Range, another TV or receiver, HDR turned off), and capabilities from Hello would send HDR to an SDR mode or tone map for an HDR one.
VideoLimits
The most video a client can show. Each limit that is None is no limit.

Enums§

AudioCodec
An audio codec. Dts covers DTS-HD MA too: the core is DTS.
Container
A container. Matroska covers WebM, which is a subset of it.
Delivery
How a client takes media in.
HdrFormat
A high dynamic range format.
SubtitleFormat
A subtitle format.
VideoCodec
A video codec.