feat: add mp4 transcode job and variant record

This commit is contained in:
William Valentin
2026-02-01 15:48:01 -08:00
parent 0bf2f2d827
commit 4fecfd469f
5 changed files with 129 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
import { test, expect } from "bun:test";
import { shouldTranscodeToMp4 } from "../transcode";
test("transcode runs for non-mp4 videos", () => {
expect(shouldTranscodeToMp4({ mimeType: "video/x-matroska" })).toBe(true);
});
test("transcode skips for mp4", () => {
expect(shouldTranscodeToMp4({ mimeType: "video/mp4" })).toBe(false);
});