fix: separate -map_metadata and -map_chapters options from their values in x265 transcoding
Build / Lint & Test (push) Successful in 14s
Build / Lint & Test (push) Successful in 14s
This commit is contained in:
1 parent
ee5fc99820
commit
0c8b713325
2 files changed
+4
-2
No files matched your search
@@ -253,8 +253,8 @@ const plugin = async (args) => {
|
|||||||
spawnArgs: [
|
spawnArgs: [
|
||||||
'-y',
|
'-y',
|
||||||
'-i', inputFile,
|
'-i', inputFile,
|
||||||
'-map_metadata -1',
|
'-map_metadata', '-1',
|
||||||
'-map_chapters -1',
|
'-map_chapters', '-1',
|
||||||
...videoArgs,
|
...videoArgs,
|
||||||
'-x265-params', `no-slow-firstpass=1:pass=1:${x265ParamsBase}`,
|
'-x265-params', `no-slow-firstpass=1:pass=1:${x265ParamsBase}`,
|
||||||
'-an', '-sn',
|
'-an', '-sn',
|
||||||
|
|||||||
@@ -200,6 +200,8 @@ const AUDIO_INPUTS = {
|
|||||||
ok(transcodeCode.includes('bitrateKbps < copyHevcBelowKbps'), 'HEVC copy requires bitrate strictly below the limit');
|
ok(transcodeCode.includes('bitrateKbps < copyHevcBelowKbps'), 'HEVC copy requires bitrate strictly below the limit');
|
||||||
ok(transcodeCode.includes("copyHevcBelowKbps || '3000'"), 'HEVC copy limit defaults to 3000 kbps');
|
ok(transcodeCode.includes("copyHevcBelowKbps || '3000'"), 'HEVC copy limit defaults to 3000 kbps');
|
||||||
ok(transcodeCode.includes("'-c:v', 'copy'"), 'compatible HEVC video uses stream copy');
|
ok(transcodeCode.includes("'-c:v', 'copy'"), 'compatible HEVC video uses stream copy');
|
||||||
|
ok(!transcodeCode.includes("'-map_metadata -1'"), 'pass 1 separates -map_metadata from its value');
|
||||||
|
ok(!transcodeCode.includes("'-map_chapters -1'"), 'pass 1 separates -map_chapters from its value');
|
||||||
|
|
||||||
// ── Summary ───────────────────────────────────────────────────────────────
|
// ── Summary ───────────────────────────────────────────────────────────────
|
||||||
console.log(`\n${'='.repeat(55)}`);
|
console.log(`\n${'='.repeat(55)}`);
|
||||||
|
|||||||
Reference in new issue
Block a user