mirror of https://github.com/VERT-sh/VERT.git
fix: pix fmt
This commit is contained in:
parent
5818ba6cdb
commit
cf4d56f4d6
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue