Probably I am a blind while reading the documentation
However, I am not able to call mkvmerge with a json option file on windows (11) - neither from cmd nor from powershell.
I must be doing something completely wrong, I guess.
I do have a .json file named c:\temp\arglist.json
using cmd I do get
c:\temp>start "C:\Program Files (x86)\MKVToolNix\mkvmerge.exe" @argfile.json
Die Datei "@argfile.json" kann nicht gefunden werden.
using powershell I get
PS C:\temp> & "C:\Program Files (x86)\MKVToolNix\mkvmerge.exe" @argfile.json
In Zeile:1 Zeichen:52
+ & "C:\Program Files (x86)\MKVToolNix\mkvmerge.exe" @argfile.json
+ ~~~~~~~~
Der Splat-Operator "@" kann nicht dazu verwendet werden, auf Variablen in einem Ausdruck zu verweisen. "@argfile" kann nur als Argument fĂŒr einen Befehl verwendet werden. Wenn Sie auf Variablen in
einem Ausdruck verweisen möchten, verwenden Sie "$argfile".
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : SplattingNotPermitted
which I can understand, since i am not going to splat anything. But stopping to parse in powershell like this
PS C:\temp> & "C:\Program Files (x86)\MKVToolNix\mkvmerge.exe" --% @argfile.json
mkvmerge v79.0 ('Funeral Pyres') 64-bit
Fehler: Es wurde kein Name fĂŒr die Zieldatei angegeben.
does not help either.
the argfile.json looks like this
[
"--output \"N:\\mediathek-shows\\Bettys Diagnose\\Kein Empfang.mkv\"",
"--language 0:ger",
"--track-name 0:\"Kein Empfang\"",
"--language 1:ger",
"--track-name 1:\"Audiodeskription\"",
"--default-track-flag 1:no",
"\"N:\\mediathek\\Bettys Diagnose\\ZDF_Bettys Diagnose_Kein Empfang (Audiodeskription)_mediathek.mp4\"",
"--no-video",
"--language 0:de",
"--default-track-flag 0:no",
"--track-name 0:\"Audiodeskription\"",
"\"N:\\mediathek\\Bettys Diagnose\\ZDF_Bettys Diagnose_Kein Empfang (Audiodeskription)_mediathek.srt\"",
"--no-video",
"--language 1:ger",
"--track-name 1:\"Standard\"",
"--default-track-flag 1:yes",
"--visual-impaired-flag 1:no",
"\"N:\\mediathek\\Bettys Diagnose\\ZDF_Bettys Diagnose_Kein Empfang_mediathek.mp4\"",
"--no-video",
"--language 0:de",
"--default-track-flag 0:no",
"--track-name 0:\"Standard\"",
"\"N:\\mediathek\\Bettys Diagnose\\ZDF_Bettys Diagnose_Kein Empfang_mediathek.srt\"",
"--track-order 0:0,0:1,1:0,2:1,3:0"
]
So i was trying to merge set of video files with and without descriptive audio to a single one holding the video only once - however that does not seem to be the problem to me. the corresponding full command line call giving all the options on the command line works just fine.
I will appreciate any hint, where I need to change something
Best regards