Skip to content

Commit

Permalink
Merge pull request #37 from xpadev-net/develop
Browse files Browse the repository at this point in the history
release: v0.0.20
  • Loading branch information
xpadev-net authored Nov 25, 2023
2 parents 8648080 + e222ded commit 5dadbca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions electron/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ const startConverter = async (queue: ConvertQueue): Promise<void> => {
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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 5dadbca

Please sign in to comment.