how to batch mux files into mkv containers?

tommo123

Platinum Member
Sep 25, 2005
2,617
48
91
i use mkvtoolnix but i have to do them individually. i don't want to re-encode etc just remux from flv or whatever to mkv. takes seconds but when there are 100s of files it's a chore.

can't see a way of doing it in the gui, just add file - add to job queue, clear and repeat
 

TheELF

Diamond Member
Dec 22, 2012
4,027
753
126
Yes it is,windows has command line (dos)
I would suggest ffmpeg with this command he shows,just change the input with the output so this
Code:
for %%a in ("*.mkv") do ffmpeg -i "%%a" -vcodec copy -acodec copy "newfiles\%%~na.mp4"
pause
would become
Code:
for %%a in ("*.flv") do ffmpeg -i "%%a" -vcodec copy -acodec copy "newfiles\%%~na.mkv"
pause
or instead of .flv use *.* but make sure that the directory only contains video files.
And of course this is only for individual video files,if you have parts that you want to convert to one file it get's a lot more complicated.
https://forum.videohelp.com/threads/356314-How-to-batch-convert-multiplex-any-files-with-ffmpeg