fix: pix fmt

This commit is contained in:
not-nullptr 2025-04-15 17:09:35 +01:00
parent 5818ba6cdb
commit cf4d56f4d6
1 changed files with 6 additions and 2 deletions

View File

@ -89,16 +89,20 @@ export class FFmpegConverter extends Converter {
"copy",
"cover.png",
]);
await ffmpeg.exec([
const cmd = [
"-i",
"input",
"-i",
"cover.png",
"-loop",
"1",
"-pix_fmt",
"yuv420p",
...toArgs(to),
"output" + to,
]);
];
console.log(cmd);
await ffmpeg.exec(cmd);
} else {
await ffmpeg.exec(["-i", "input", "output" + to]);
}