feat(video): Tune per-codec encoder defaults for quality #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/video-quality-defaults"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a CodecSpec table that injects codec-appropriate flags after
-c:v, plus a per-format audio bitrate. The critical fix is for VP9:without
-b:v 0 -crf N, libvpx-vp9 silently falls back to an ~256 kbpsABR default that produced poor-quality WebM output. VP8, AV1, x264, and
x265 also get sensible CRF/threading defaults so every allowlisted
codec encodes at a reasonable quality-vs-speed trade-off.
A lockstep test asserts every codec in a format's allowlist has a
matching CodecSpec entry, so future codec additions can't regress to
un-tuned output.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com