Skip to content

Commit

Permalink
Merge pull request #24 from xpadev-net/fix/invalid-color
Browse files Browse the repository at this point in the history
fix: ffmpeg overlay option
  • Loading branch information
xpadev-net authored Nov 23, 2023
2 parents 6c77a7b + 786ff4e commit ba3caee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion electron/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ const startConverter = async (queue: ConvertQueue): Promise<void> => {
});
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,
Expand Down

0 comments on commit ba3caee

Please sign in to comment.