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", "copy",
"cover.png", "cover.png",
]); ]);
await ffmpeg.exec([ const cmd = [
"-i", "-i",
"input", "input",
"-i", "-i",
"cover.png", "cover.png",
"-loop", "-loop",
"1", "1",
"-pix_fmt",
"yuv420p",
...toArgs(to), ...toArgs(to),
"output" + to, "output" + to,
]); ];
console.log(cmd);
await ffmpeg.exec(cmd);
} else { } else {
await ffmpeg.exec(["-i", "input", "output" + to]); await ffmpeg.exec(["-i", "input", "output" + to]);
} }