Expand description
Optional input-policy validation.
These are advisory helpers — the job engine (crate::job::run_job)
does not enforce them, so rivet transcodes whatever it’s given. They
exist so policy-bearing callers (e.g. a hosted service) can gate uploads
with the same limits the reference transcoder uses.
Structs§
- Validation
Error - A validation rejection: a machine-readable
ValidationErrorKindplus a human message.
Enums§
- Validation
Error Kind - Why a stream was rejected by
validate_stream.
Constants§
- MAX_
DURATION_ SECS - Maximum accepted duration (seconds).
- MIN_
FRAME_ RATE - Minimum accepted frame rate (fps).
- MIN_
RESOLUTION - Minimum accepted short side (pixels).
Functions§
- needs_
chroma_ downsample - Whether a source pixel format needs the per-frame 4:4:4 → 4:2:0 chroma downsample before encode. The engine consults this to set up the pump.
- validate_
stream - Gate a demuxed stream against the reference resolution/frame-rate/duration/
pixel-format policy. Accepts
Yuv420p,Yuv420p10le,Yuv444p10le,Yuva444p10le(the 4:4:4 formats are downsampled to 4:2:0 by the engine).