Skip to content
moq-devPublic

About

Media crates for Rust that are useful without MoQ

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

560 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kodecs

Media crates for Rust that are useful without MoQ, each published to crates.io under its own name and version line.

Crate Purpose Releases
kodecs-alsa ALSA PCM streaming and device enumeration, loaded at runtime on Linux crates.io
kodecs-h264 H.264 bitstream parsing and writing crates.io
kodecs-h265 H.265 bitstream parsing crates.io
kodecs-nvenc NVENC and NVDEC, loaded from the NVIDIA driver at runtime on Linux crates.io
kodecs-opus Safe Rust Opus decoding and c2rust Opus encoding, checked against C libopus by the unpublished kodecs-opus-harness crates.io
kodecs-pipewire PipeWire streaming, registry, and SPA types, loaded at runtime on Linux Pending first release
kodecs-rtmp RTMP handshake, chunk codec, AMF0, and session state machines crates.io
kodecs-srt Sans-io SRT in live mode: handshakes, retransmission, TSBPD, and statistics crates.io
kodecs-v4l Video4Linux 2 bindings crates.io
kodecs-vaapi VA-API hardware encoding and decoding on Linux crates.io

Development

Run inside the Nix dev shell so local tooling matches the merge queue:

nix develop --command just check  # lint, format, and compile checks
nix develop --command just test   # tests
nix develop --command just verify # Verus proofs, Linux only
nix develop --command just ci     # all of the above: what the merge queue runs
nix develop --command just fix    # fix what the checks can
nix develop --command just v4l2   # kodecs-v4l's tests against the vivid virtual camera
nix develop --command just vaapi  # kodecs-vaapi's tests on each Intel and AMD GPU

just v4l2 needs Linux with the vivid module loaded (sudo modprobe vivid) and read-write access to its /dev/video* nodes; without them the tests fail.

just vaapi needs Linux with an Intel or AMD render node under /dev/dri, and brings its own libva, drivers, and FFmpeg from nixpkgs; without a node the tests fail.

On Windows, which has no Nix, run the same just recipes from Git Bash with the MSVC Rust toolchain plus quest, just, cargo-shear, and cargo-sort on PATH, at the versions the Nightly workflow's windows job pins. For just fuzz, also run rustup toolchain install nightly and cargo install --locked cargo-fuzz, and install Visual Studio's C++ AddressSanitizer component.

The repository's shared files are available under either Apache-2.0 or MIT. Each crate is distributed under the terms in its own Cargo.toml and LICENSE file.

About

Media crates for Rust that are useful without MoQ

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages