From 786ff4e884ea063c5a3cca3745ac5b1ac76c5bf1 Mon Sep 17 00:00:00 2001 From: xpadev Date: Fri, 24 Nov 2023 03:19:45 +0900 Subject: [PATCH] fix: ffmpeg overlay option --- electron/converter.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electron/converter.ts b/electron/converter.ts index 28b0828..71c9935 100644 --- a/electron/converter.ts +++ b/electron/converter.ts @@ -18,9 +18,11 @@ const startConverter = async (queue: ConvertQueue): Promise => { }); converter.output(queue.output.path, { vcodec: "libx264", + format: "yuv420", + pix_fmt: "yuv420p", "b:v": "0", crf: "30", - filter_complex: `[0:v]fps=fps=${queue.option.fps},pad=width=max(iw\\, ih*(16/9)):height=ow/(16/9):x=(ow-iw)/2:y=(oh-ih)/2,scale=w=1920:h=1080[3];[3][1:v]overlay[out_v]`, + filter_complex: `[0:v]fps=fps=${queue.option.fps},pad=width=max(iw\\, ih*(16/9)):height=ow/(16/9):x=(ow-iw)/2:y=(oh-ih)/2,scale=w=1920:h=1080[3];[3][1:v]overlay=format=rgb[out_v]`, "map:v": "[out_v]", "map:a": "0:a", r: queue.option.fps,