I need to mux multiple audio, subtitles and chapters to MKV videos which are ready after encoding, and so i am use mkvmerge command line with a batch file which i made. Muxing works fine for all external files that mkvmerge finds, except with the files of chapters that are of simple format (.txt).
The command order is right and it's even almost the same as what MKVToolnix GUI command line viewer displays. How is possible that --chapters command doesn't work on CLI but works in a GUI whose biggest disadvantage is being limited to only one file per multiplex session? Or is another file that is part of the MKVToolnix package needed for mkvmerge to work fully? I don't think that's it because if you consult the mkvmerge help with --help and look for the commands related to chapters, it's there in the documentation.Code:chcp 65001 set mkvmerge=%~d1\[encode]\tools\mkvmerge.exe set idir1=%~d1\[encode]\ovideo set idir2=%~d1\[encode]\audio set idir3=%~d1\[encode]\chapters set idir4=%~d1\[encode]\subtitle set odir1=%~d1\[encode]\remux FOR %%f in ("%idir1%\*.mkv") DO ("%mkvmerge%" ^ --output ^"%odir1%\%%~nf.mkv^" ^ --language 0:und ^ ^"%%f^" ^ --language 0:jpn ^ --track-name ^"0:Japanese stereo ^(2.0^)^" ^ ^"%idir2%\%%~nf_track2.flac^" ^ --language 0:jpn ^ --track-name ^"0:Japanese 8ch ^(7.1^)^" ^ ^"%idir2%\%%~nf_track3.flac^" ^ --language 0:jpn ^ --track-name ^"0:Japanese 6ch ^(5.1^)^" ^ ^"%idir2%\%%~nf_track4.flac^" ^ --language 0:jpn ^ --track-name ^"0:Japanese [audio descriptive] ^(2.0 ch^)^" ^ ^"%idir2%\%%~nf_track5.flac^" ^ --language 0:jpn ^ --track-name ^"0:Japanese [Closed Captions]^" ^ ^"%idir4%\%%~nf.sup^" ^ --chapters ^"%idir3%\%%~nf_chapters.ogm.txt^" ^ --track-order 0:0,1:0,2:0,3:0,4:0,5:0 ) PAUSE>NUL EXIT
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 1 of 1
Thread
Similar Threads
-
{"code": 2048, "message": "Authentication failed"} when getting license
By warmachine in forum Video Streaming DownloadingReplies: 2Last Post: 26th May 2023, 17:34 -
"code":400,"error":true,"message" on http://getwvkeys.cc
By johnsonkiss in forum Video Streaming DownloadingReplies: 11Last Post: 19th Jan 2023, 09:36 -
FFMpeg "Command Not Found" on terminal line
By Maurice725 in forum MacReplies: 6Last Post: 7th Oct 2021, 09:37 -
Downloaders with "internal browswer" like GetFlv and TubeDigger?
By adrian44 in forum Video Streaming DownloadingReplies: 1Last Post: 12th Apr 2021, 06:44 -
changing ffmpeg framerate with " -r " not recognized?
By pxstein in forum Video ConversionReplies: 1Last Post: 21st Apr 2020, 08:23