Skip to content

Use quality-based H.264 encoding and restore HEVC parallelism - #34

Merged
davidvanleeuwen merged 4 commits into
mainfrom
feat/capped-crf-encoding
Oct 28, 2026
Merged

davidvanleeuwen merged 4 commits into
mainfrom
feat/capped-crf-encoding

Conversation

@davidvanleeuwen

@davidvanleeuwen davidvanleeuwen commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

✨ What changes

Simple scenes can use fewer bits, while detailed scenes get more room within the existing bitrate limits. The H.264 ladder now targets visual quality instead of a fixed average bitrate. HEVC previews also regain CPU parallelism inside the media sandbox.

  • Uses CRF 20 + faster for H.264, with the existing per-resolution VBV limits.
  • Keeps every MP4 and HLS rendition, resolution, and output path; HLS bandwidth reflects packaged segments when available.
  • Gives x265 an explicit CPU thread pool without expanding sandbox permissions. HEVC keeps CRF 24, medium, and tune=grain.
  • Adds concise PR-writing guidance and a template for future contributions.

👀 Before / after

Before After
H.264 rate control Average bitrate target Quality target with a bitrate ceiling
H.264 CPU preset veryfast faster
HEVC parallelism Automatic discovery can fail in the sandbox Explicit pool using the available Go CPU budget
Preview quality settings Existing CRF, preset and grain tuning Preserved

Actual file size, quality, and encoding time depend on the source and CPU capacity.

Upgrading

Update the booster before the application. It continues to accept previous request versions. Existing published videos are not automatically re-encoded.

@davidvanleeuwen davidvanleeuwen changed the title Use quality-based encoding for the H.264 ladder Let H.264 bitrate follow video complexity Oct 28, 2026
@davidvanleeuwen davidvanleeuwen changed the title Let H.264 bitrate follow video complexity Use quality-based H.264 encoding and restore HEVC parallelism Oct 28, 2026
@davidvanleeuwen
davidvanleeuwen force-pushed the feat/capped-crf-encoding branch from c4afd25 to ada0886 Compare October 28, 2026 16:20
@davidvanleeuwen
davidvanleeuwen marked this pull request as ready for review October 28, 2026 16:42
@davidvanleeuwen
davidvanleeuwen merged commit a348b3b into main Oct 28, 2026
6 checks passed
@davidvanleeuwen
davidvanleeuwen deleted the feat/capped-crf-encoding branch October 28, 2026 16:42
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