fix: update x265 parameters for improved encoding efficiency in 2-pass process
Build / Lint & Test (push) Successful in 17s
Build / Lint & Test (push) Successful in 17s
This commit is contained in:
1 parent
1cdd771045
commit
95df925de7
1 file changed
+4
-2
@@ -145,6 +145,8 @@ const plugin = async (args) => {
|
|||||||
const x265ParamsBase = [
|
const x265ParamsBase = [
|
||||||
`keyint=${gopKeyint}`,
|
`keyint=${gopKeyint}`,
|
||||||
`min-keyint=${gopMinKeyint}`,
|
`min-keyint=${gopMinKeyint}`,
|
||||||
|
`scenecut=0`,
|
||||||
|
`open-gop=0`,
|
||||||
`vbv-maxrate=${maxRateNum}`,
|
`vbv-maxrate=${maxRateNum}`,
|
||||||
`vbv-bufsize=${bufSizeNum}`,
|
`vbv-bufsize=${bufSizeNum}`,
|
||||||
`stats=${statsForX265}`,
|
`stats=${statsForX265}`,
|
||||||
@@ -170,7 +172,7 @@ const plugin = async (args) => {
|
|||||||
'-y',
|
'-y',
|
||||||
'-i', inputFile,
|
'-i', inputFile,
|
||||||
...videoArgs,
|
...videoArgs,
|
||||||
'-x265-params', `${x265ParamsBase}:pass=1`,
|
'-x265-params', `no-slow-firstpass=1:pass=1:${x265ParamsBase}`,
|
||||||
'-an', '-sn',
|
'-an', '-sn',
|
||||||
'-f', 'null',
|
'-f', 'null',
|
||||||
nullDev,
|
nullDev,
|
||||||
@@ -204,7 +206,7 @@ const plugin = async (args) => {
|
|||||||
...audioArgs,
|
...audioArgs,
|
||||||
'-map_chapters', '0',
|
'-map_chapters', '0',
|
||||||
...videoArgs,
|
...videoArgs,
|
||||||
'-x265-params', `${x265ParamsBase}:pass=2`,
|
'-x265-params', `pass=2:${x265ParamsBase}`,
|
||||||
'-sn',
|
'-sn',
|
||||||
outFile,
|
outFile,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in new issue
Block a user