Skip to main content

Module encode

Module encode 

Source

Re-exports§

pub use tuning::QualityTarget;
pub use tuning::SpeedTier;

Modules§

amf
Stub AMF encoder, compiled when the amd feature is off.
nvenc
Stub NVENC encoder, compiled when the nvidia feature is off.
qsv
Stub Intel QSV encoder, compiled when the qsv feature is off.
tuning
AV1 encoder tuning adapter.

Structs§

EncodedPacket
EncoderConfig
Encoder configuration.
OutputCaps
What output formats an encoder path can produce. AV1 here is 4:2:0 only; 10-bit output is the web-safe AV1 Main profile (4:2:0 10-bit), HDR-tagged at the container level (colr/mdcv/clli), not the wide-gamut professional profiles.

Enums§

EncoderBackend

Constants§

AUTO_FROM_TARGET
Sentinel meaning “derive from target or tier”.

Traits§

Encoder

Functions§

backend_output_caps
Output capabilities of a specific hardware backend. All three do 10-bit AV1, so they can produce HDR without the ffmpeg feature: NVENC via Yuv420_10bit, AMF via P010, and QSV via the in-repo oneVPL P010 path ([qsv_p010]).
build_output_caps
Output capabilities of this build — the union over every compiled encoder path. 10-bit + HDR comes from NVENC (nvidia), AMF (amd), QSV (qsv, via the in-repo P010 path), or the ffmpeg software/hwaccel encoders; a build with no encoder feature is 8-bit. Callers (e.g. rivet’s OutputSpec::validate) use this to reject a format the build can’t produce.
encode_backends
AV1-encode backends compiled into this build, in dispatch-preference order.
select_encoder
Create the best available AV1 encoder.