Skip to content

Commit a798e3d

Browse files
committed
test(engine): build the trimmed mixed fixture without B-frames too
1 parent d1ae8d8 commit a798e3d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/engine/src/services/videoFrameExtractor.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3283,7 +3283,7 @@ describe.skipIf(!HAS_ZSCALE)("forced-SDR HDR extraction", () => {
32833283
"testsrc2=s=160x90:r=25:d=0.2",
32843284
"-c:v",
32853285
"libx264",
3286-
// No B-frames: genpts on a raw stream with reordering writes pts before dts and drops frames.
3286+
// No B-frames: genpts stamps a raw stream in decode order, so reordered frames get wrong times.
32873287
"-bf",
32883288
"0",
32893289
"-pix_fmt",
@@ -3338,7 +3338,8 @@ describe.skipIf(!HAS_ZSCALE)("forced-SDR HDR extraction", () => {
33383338
const segment = async (name: string, transfer: number) => {
33393339
const path = join(fixtureDir, `trim-${name}.h264`);
33403340
await run([
3341-
...["-f", "lavfi", "-i", "testsrc2=s=160x90:r=25:d=2", "-c:v", "libx264", "-g", "50"],
3341+
...["-f", "lavfi", "-i", "testsrc2=s=160x90:r=25:d=2"],
3342+
...["-c:v", "libx264", "-g", "50", "-bf", "0"],
33423343
...["-pix_fmt", "yuv420p", "-bsf:v"],
33433344
`h264_metadata=colour_primaries=9:transfer_characteristics=${transfer}:matrix_coefficients=9`,
33443345
...["-f", "h264", path],

0 commit comments

Comments
 (0)