fix: update x265 parameters for improved encoding efficiency in 2-pass process
Build / Lint & Test (push) Successful in 17s

This commit is contained in:
PickleRick committed 2026-09-19 17:28:16 +02:00
1 parent 1cdd771045
commit 95df925de7
1 file changed
+4 -2
@@ -145,6 +145,8 @@ const plugin = async (args) => {
const x265ParamsBase = [
`keyint=${gopKeyint}`,
`min-keyint=${gopMinKeyint}`,
`scenecut=0`,
`open-gop=0`,
`vbv-maxrate=${maxRateNum}`,
`vbv-bufsize=${bufSizeNum}`,
`stats=${statsForX265}`,
@@ -170,7 +172,7 @@ const plugin = async (args) => {
'-y',
'-i', inputFile,
...videoArgs,
'-x265-params', `${x265ParamsBase}:pass=1`,
'-x265-params', `no-slow-firstpass=1:pass=1:${x265ParamsBase}`,
'-an', '-sn',
'-f', 'null',
nullDev,
@@ -204,7 +206,7 @@ const plugin = async (args) => {
...audioArgs,
'-map_chapters', '0',
...videoArgs,
'-x265-params', `${x265ParamsBase}:pass=2`,
'-x265-params', `pass=2:${x265ParamsBase}`,
'-sn',
outFile,
],