fix: update GOP parameters for mediaAnalyzerGOP and transcode2PassX265 to enhance encoding efficiency and documentation
Build / Lint & Test (push) Successful in 16s

This commit is contained in:
PickleRick committed 2026-09-20 19:37:31 +02:00
1 parent 36184fbf32
commit 3f0b38d513
7 files changed
+38 -19

No files matched your search

@@ -166,8 +166,9 @@ const plugin = async (args) => {
// ── Read variables ────────────────────────────────────────────────────────
const {
gopKeyint = '48',
gopMinKeyint = '48',
gopKeyint = '96',
gopMinKeyint = '24',
gopSceneCut = '40',
vBitrate = '3000k',
vMaxRate = '6000k',
vBufSize = '12000k',
@@ -189,7 +190,8 @@ const plugin = async (args) => {
jobLog(
`[transcode2PassX265] Params: bitrate=${vBitrate} maxrate=${maxRateNum}k `
+ `bufsize=${bufSizeNum}k keyint=${gopKeyint} tune=${x265Tune || 'none'} preset=${x265Preset}\n`,
+ `bufsize=${bufSizeNum}k keyint=${gopKeyint} min-keyint=${gopMinKeyint} scenecut=${gopSceneCut} `
+ `tune=${x265Tune || 'none'} preset=${x265Preset}\n`,
);
const sourceBitrateKbps = getVideoBitrateKbps(videoStream, streams, format).toFixed(0);
jobLog(
@@ -219,7 +221,7 @@ const plugin = async (args) => {
const x265ParamsBase = [
`keyint=${gopKeyint}`,
`min-keyint=${gopMinKeyint}`,
`scenecut=0`,
`scenecut=${gopSceneCut}`,
`open-gop=0`,
`vbv-maxrate=${maxRateNum}`,
`vbv-bufsize=${bufSizeNum}`,