Skip to content

Conversation

@jholveck
Copy link
Contributor

To accommodate 4:2:0 subsampling, libx264 and libx265 require the video size to be a multiple of two. Add that behavior, with a flag to adjust it in the full demo.

See also #472

Changes proposed in this PR

Fixes #
Width and height must be divisible by 2, otherwise the encoder will fail. Round down to the nearest even number.

  • Tests added/updated
  • Documentation updated
  • Changelog entry added
  • ./check.sh passed

To accommodate 4:2:0 subsampling, libx264 and libx265 require the
video size to be a multiple of two.  Add that behavior, with a flag to
adjust it in the full demo.
@BoboTiG BoboTiG merged commit 51b2bfc into BoboTiG:main Feb 11, 2026
21 checks 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.

2 participants