Skip to content

Commit 04ae981

Browse files
JonnyBurgerclaude
andcommitted
Add x265 encoding test to CI
Adds a test that encodes with libx265 to verify h265 works. Expected to fail due to x265 API incompatibility (remotion#6630). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b71dab9 commit 04ae981

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

test-ffmpeg.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,28 @@ const exit5 = spawnSync(
101101
);
102102
assert(exit5.status === 0);
103103

104+
const exit_x265 = spawnSync(
105+
ffmpegBinary,
106+
[
107+
"-i",
108+
"sample.mp4",
109+
"-t",
110+
"1",
111+
"-c:v",
112+
"libx265",
113+
"out-test-x265.mp4",
114+
"-y",
115+
],
116+
{
117+
env,
118+
stdio: "inherit",
119+
}
120+
);
121+
if (exit_x265.status !== 0) {
122+
console.log("x265 encoding test failed with status", exit_x265.status, "signal", exit_x265.signal);
123+
}
124+
assert(exit_x265.status === 0);
125+
104126
const exit6 = spawnSync(
105127
ffmpegBinary,
106128
[

0 commit comments

Comments
 (0)