Skip to content

Fix x265 SIGSEGV during h265 encoding#12

Merged
JonnyBurger merged 1 commit into
mainfrom
fix/x265-sigsegv
Feb 23, 2026
Merged

Fix x265 SIGSEGV during h265 encoding#12
JonnyBurger merged 1 commit into
mainfrom
fix/x265-sigsegv

Conversation

@JonnyBurger
Copy link
Copy Markdown
Member

Summary

  • Fixes SIGSEGV crash when encoding with h265/libx265 (remotion#6630)
  • Root cause: x265 build 210 changed the x265_encoder_encode() API to accept an array of picture pointers (for multi-layer encoding), then build 213 reverted this back. FFmpeg n7.1 guards with #if X265_BUILD >= 210, so with our x265 build 215 it uses the wrong calling convention, causing a segfault.
  • Applies upstream FFmpeg fix (099f88b864) that narrows the guard to (X265_BUILD >= 210) && (X265_BUILD < 213)
  • Adds x265 encoding test to CI to catch this class of regression

Test plan

  • CI pipeline passes (especially test-ffmpeg.mjs x265 encoding test on build-linux-x64-gnu)
  • Rebuild binaries and verify h265 encoding works end-to-end in Remotion

🤖 Generated with Claude Code

x265 build 210 changed x265_encoder_encode() to accept an array of
picture pointers, then build 213 reverted this. FFmpeg n7.1 only checks
`#if X265_BUILD >= 210`, so with our x265 build 215 it uses the wrong
calling convention, causing a SIGSEGV during h265 encoding.

Apply upstream FFmpeg fix (099f88b864) that narrows the guard to
`(X265_BUILD >= 210) && (X265_BUILD < 213)`.

Also adds x265 encoding test to CI to prevent regressions.

Closes remotion-dev/remotion#6630

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JonnyBurger JonnyBurger merged commit 2046b47 into main Feb 23, 2026
6 of 8 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.

1 participant