Skip to content
QuaLix
On this page

CLI reference

Complete subcommand guide for qualix: encode, encode-raw, decode, inspect, bench, quality, synth, solidify, and pack10/unpack10.

Build the CLI with cargo build --release --locked -p qualix-cli (target/release/qualix). Output file destinations must not already exist (writes stage to .qualix-*.partial and atomically publish only after full validation). Pass - as the decode output path to stream raw pixels to stdout.

Subcommands

Command Synopsis Description
encode qualix encode INPUT OUT.qlx [--vbr RATE | --cbr RATE | --quality 0..4|perceptual] [--profile compact|dense|fast|playback|raw-keys] [--key-interval N] Import any FFmpeg-supported container, QLX clip, or --raw stream into QLX
encode-raw qualix encode-raw RAW OUT.qlx W H FPS COLOR [--vbr RATE | --cbr RATE | --quality LEVEL] [--key-interval N] [--profile NAME] Encode packed RGBA8 (srgb8) or LE R10G10B10A2 (pq10 / hlg10) frames directly
decode qualix decode IN.qlx OUT.raw|- [gbrap10le] Decode an entire clip; appends gbrap10le planar conversion for 10-bit inputs
inspect qualix inspect IN.qlx Validate header/index and print ClipInfo plus open-time heap usage
bench qualix bench IN.qlx [PASSES] Benchmark open latency, first frame, per-frame P50/P95/P99/max, deadline misses, and 128-seek P95
quality qualix quality REF.raw DEC.raw COLOR Compute pixel PSNR, channel max error, and bit-exact frame ratio
synth qualix synth OUT.raw W H FRAMES COLOR ui|pan|particles|cuts Generate deterministic UI, pan, particle, and scene-cut test sequences
solidify qualix solidify IN.qlx OUT.c SYMBOL Bake a clip into const uint8_t qlx_asset_<SYMBOL>[] C source
pack10 / unpack10 qualix pack10|unpack10 IN OUT W H gbrp10le|gbrap10le Convert between planar 10-bit GBR(A) and packed R10G10B10A2

Rate-control JSON summary

When invoked with --vbr, --cbr, or --quality perceptual, qualix prints machine-readable telemetry to stdout:

JSON
{ "mode": "vbr", "target_bps": 700000, "actual_bps": 699680.0, "bytes": 349840, "picture_bytes": 349008, "padding_bytes": 0, "framing_bytes": 832, "min_packet_bytes": 126, "max_packet_bytes": 16946, "frames": 96, "exact_frames": 0, "grid_frames": 0, "cosine_frames": 93, "region_frames": 0, "held_frames": 0, "fixed_lossless_stream": false, "profile": "fast"}