feat(cli,producer): add gif output format with two-pass palette encode (#1333)

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
This commit is contained in:
Matt Van Horn
2026-06-10 21:17:55 -04:00
committed by GitHub
co-authored by Matt Van Horn
parent e0ecd4d2d1
commit e6b8d66c2d
13 changed files with 385 additions and 29 deletions
@@ -200,6 +200,20 @@ describe("buildDockerRunArgs", () => {
expect(args[formatIdx + 1]).toBe("png-sequence");
});
it("forwards --format gif and --gif-loop to the container", () => {
const args = buildDockerRunArgs({
...FIXED_INPUT,
outputFilename: "demo.gif",
options: { ...BASE, format: "gif", gifLoop: 0 },
});
const formatIdx = args.indexOf("--format");
const loopIdx = args.indexOf("--gif-loop");
expect(formatIdx).toBeGreaterThanOrEqual(0);
expect(args[formatIdx + 1]).toBe("gif");
expect(loopIdx).toBeGreaterThanOrEqual(0);
expect(args[loopIdx + 1]).toBe("0");
});
it("forwards --video-bitrate to the container when set", () => {
const args = buildDockerRunArgs({
...FIXED_INPUT,