From 1dc2862407a21e1d3eedeb37a2dde7c1000865d8 Mon Sep 17 00:00:00 2001 From: xpadev Date: Sat, 25 Nov 2023 23:18:57 +0900 Subject: [PATCH 1/2] fix: ffmpeg options --- electron/converter.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/electron/converter.ts b/electron/converter.ts index f5aafe6..b561264 100644 --- a/electron/converter.ts +++ b/electron/converter.ts @@ -17,11 +17,14 @@ const startConverter = async (queue: ConvertQueue): Promise => { r: queue.option.fps, }); converter.output(queue.output.path, { - vcodec: "libx264", - pix_fmt: "yuv420p", + sws_flags: "spline+accurate_rnd+full_chroma_int", "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];[1:v]scale=out_color_matrix=bt709[4];[3][4]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]format=yuva444p,colorspace=bt709:iall=bt601-6-525:fast=1[4];[1:v]format=rgba,alphaextract[5];[4][5]alphamerge[6];[3][6]overlay[out_v]`, + color_range: 1, + colorspace: 1, + color_primaries: 1, + color_trc: 1, "map:v": "[out_v]", "map:a": "0:a", r: queue.option.fps, From e222ded9607179f3986d95e9655efb3f5c2892e8 Mon Sep 17 00:00:00 2001 From: XPA Date: Sat, 25 Nov 2023 23:34:05 +0900 Subject: [PATCH 2/2] release: v0.0.20 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e3540f4..919b86b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "niconicomments-convert", "private": false, - "version": "0.0.19", + "version": "0.0.20", "type": "commonjs", "license": "MIT", "main": "build/electron/electron.js",