8 Batch muxing with the GUI
Moritz Bunkus edited this page 2019-01-24 21:19:38 +01:00

Will there be a batch muxing feature in the GUI? Or a something similar for the header editor/mkvpropedit?

The problem

I'd like the GUI to be able to do XYZ automatically on a bunch of files.

The answer

With "batch muxing" users usually mean doing similar steps with a bunch of files without having to create a job for each individual file.

Sorry, but such a feature will never be implemented in MKVToolNix GUI itself.

However, mkvmerge, which is doing all the work, is fully scriptable via its command line. There are excellent shells out there with which you can automate pretty much all aspects of muxing. For example, with the bash or zsh shells you could convert all .avi files into Matroska with these commands:

find -type f -name '*.avi' | {
  while read filename ; do
    mkvmerge -o "/path/to/output/dir/${filename%.avi}.mkv" "$filename"
  done
}

Batch processing of header editing is just as easy. For example, if you want to set the title field for a couple of files to the base file name, you can do the following with bash/zsh:

for file in *.mkv ; do
  mkvpropedit "$file" --set title="${file%.mkv}"
done

I do realize that using shells is not everyone's thing. However, implementing a powerful and flexible batch remuxer/batch header editor requires countless hours of work. If I cut down on the hours, then either the flexibility or the number of features would be severely reduced and therefore the work would not be worth it because too few people could actually use it in such a state.

The short version is that it's way too much work and that I don't have that amount of free time. So the answer is "no". Sorry.

More advanced processing

If you need to do more than just "turn everything into Matroska", I highly suggest you use any scripting language and build your actions based on the actual content in the source file. You can find a couple of example scripts that you can base your own work on over on the Automation examples page.

Categories: merging