Skip to content

Commit 049598e

Browse files
committed
improve mp4 output compatibility
1 parent 6992500 commit 049598e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/handlers/FFmpeg.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ class FFmpegHandler implements FormatHandler {
192192
if (inputFormat.format === "png" || inputFormat.mime === "image/jpeg") {
193193
command.push("-r", "1");
194194
}
195+
if (inputFormat.mime === "video/mp4") {
196+
command.push("-pix_fmt", "yyv420p");
197+
}
195198
if (args) command.push(...args);
196199
command.push("output");
197200

0 commit comments

Comments
 (0)