Skip to content

feat: add CRF (Constant Rate Factor) support for quality-based encoding#1

Merged
maharajamihir merged 2 commits intomacos-supportfrom
crf-support
Mar 30, 2026
Merged

feat: add CRF (Constant Rate Factor) support for quality-based encoding#1
maharajamihir merged 2 commits intomacos-supportfrom
crf-support

Conversation

@maharajamihir
Copy link
Copy Markdown

Adds optional CRF rate control to SimpleOutputBuilder. When set, VideoToolbox (macOS) and x264 encoders use CRF instead of CBR for better quality-per-bit, especially for text-heavy screen recordings. Other encoders (NVENC/AMF/QSV) gracefully fall back to CBR.

maharajamihir and others added 2 commits March 30, 2026 15:53
Adds optional CRF rate control to SimpleOutputBuilder. When set, VideoToolbox
(macOS) and x264 encoders use CRF instead of CBR for better quality-per-bit,
especially for text-heavy screen recordings. Other encoders (NVENC/AMF/QSV)
gracefully fall back to CBR.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
VideoToolbox uses "quality" (0-100 scale, higher=better) not "crf".
x264 uses "crf" (0-51 scale, lower=better). Map the unified 0-100
quality input to each encoder's native scale.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@maharajamihir maharajamihir merged commit 212febf into macos-support Mar 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant