Serede/mkvtoolnix-batch

Doubles the audio tracks and subtitles

Emberrss opened this issue · 1 comments

This code is a life and time saver, thank you for going through the time to make this for everyone

My input files have 2 audio tracks and 2 subtitle tracks. The audio tracks are Japanese and English in that order, the subtitles are English Signs/Songs and English Full in that order. My output files will have 4 audio and subtitle tracks. Japanese, English, Japanese, English. The subtitles would be Signs/Songs, Full, Signs/Songs, Full.

I'm not sure what could be happening here, MKVToolNix GUI output doesn't have this same issue. I'll attach my json file below. Anything helps. Thanks!

[
"--ui-language",
"en",
"--track-name",
"0:HEVC x265 10b",
"--default-track",
"0:yes",
"--display-dimensions",
"0:1440x1080",
"--language",
"1:ja",
"--track-name",
"1:Japanese",
"--language",
"2:en",
"--track-name",
"2:English",
"--default-track",
"2:yes",
"--language",
"3:en",
"--track-name",
"3:English [Signs/Songs]",
"--default-track",
"3:yes",
"--forced-track",
"3:yes",
"--language",
"4:en",
"--track-name",
"4:English [Full]",
"(",
"E:\Videos\TV\Bleach\Disk 1\Bleach - 001.mkv",
")",
"--track-order",
"0:0,0:1,0:2,0:3,0:4"
]

Edit: After running this command, it also comes up with "Warning: 'Bleach - 001.mkv': Could not keep a track's UID 'X' because it is already allocated for another track. A new random UID will be allocated automatically" for every track. X being numbered 1-5 for every track on file. I'm almost certain it isn't an issue with this batch file, but still anything helps. Thanks

I guess the first time I made my options.json file, I did remove the "(", and ")", but that file didn't work. After fixing my issue, I forgot to remove those lines. Leaving those lines in didn't duplicate the audio tracks, it ripped them from the original file and added them to the output file

Note to self, read instructions