FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Merge remote-tracking branch 'origin/main' into nvdec-linux
SilentYeti3df0b9bb36cf
diff --cc crates/platform/README.mdindex a02371430,8170e6292..da582a484--- a/crates/platform/README.md+++ b/crates/platform/README.md@@@ -72,18 -76,8 +76,18 @@@ let availability = filmcraft_platform::It declines two-pass VBR, HDR, MXF, interlaced output, sizes outside NVENC's limits and systemswithout an NVIDIA GPU or driver, and the software encoder runs instead. A failure during an exportends it with an error, since a hardware stream cannot be finished in software. The same session,- ring and NV12 path encode H.265, see [Hardware H.265 (HEVC) encoding (Windows,+ ring and input path encode H.265, see [Hardware H.265 (HEVC) encoding (Windows,NVENC)](#hardware-h265-hevc-encoding-windows-nvenc).+- **Linux: NVDEC, H.264 (`avcC`) and HEVC (`hvcC`)** on NVIDIA's proprietary driver (`nvdec/`): H.264+ 8-bit and HEVC 8- / 10-bit, 4:2:0 progressive. `libnvcuvid.so.1` and `libcuda.so.1` are loaded at+ run time; without them (or without a device) nothing is registered. NVIDIA's own parser takes the+ stream as Annex B access units, so there is no host-side DPB: `cuvid::Session` creates the decoder+ in the parser's sequence callback, decodes in its picture callback, and reads each displayed+ picture back (NV12 / P016) through the CUDA driver into the same planes as the other backends.+ The factory goes in front of VA-API's: what NVDEC declines still reaches VA-API (another GPU),+ then the software decoders. After a start at a CRA picture its RASL pictures are not fed (no+ decoder outputs them, and the parser would otherwise show the CRA picture with the last one's+ timestamp). A seek recreates the parser and keeps the decoder.- **Linux: VA-API, H.264 (`avcC`) and HEVC (`hvcC`)**: H.264 8-bit 4:2:0 progressive, ConstrainedBaseline / Main / High; HEVC Main, Main 10 and Main Still Picture, 4:2:0 8- and 10-bit (`vaapi/`), on Intel (iHD, i965), AMD and other Mesa drivers. `libva.so.2` and `libva-drm.so.2`are loaded at run time (`vaapi/va.rs`; no libva headers needed to build), and each decoder opens