From 5b91cb0512da0f6d4e7d0d22a1bad80845955c5e Mon Sep 17 00:00:00 2001 From: xpadev Date: Sat, 25 Nov 2023 01:21:29 +0900 Subject: [PATCH] fix: change ffmpeg option to fix color matrix --- electron/converter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/converter.ts b/electron/converter.ts index 71c9935..5440d46 100644 --- a/electron/converter.ts +++ b/electron/converter.ts @@ -22,7 +22,7 @@ const startConverter = async (queue: ConvertQueue): Promise => { 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=format=rgb[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];[1:v]scale=out_color_matrix=bt709[4];[3][4]overlay=format=rgb[out_v]`, "map:v": "[out_v]", "map:a": "0:a", r: queue.option.fps,