I’m completely new to mkvtoolnix and looking forward to join all avi-files in a folder to ONE mkv without reencoding an adding a chapter mark at the beginning of each joined avi in the mkv.
On my client I use Windows 10.
Note that mkvmerge itself doesn’t interpret wildcard file names such as *.avi; it uses them verbatim. However, a shell such as bash expands *.avi into individual file names before executing mkvmerge with the actual list of file names. That’s why I specified bash.
You can do similar things with any scripting language such as Python very easily, too.
As hinted above, it’s up to the shell to expand *.avi into the actual list of file names. mkvmerge handles the files in the order they’re given to it. How the shell orders them is up to it, though. The default for all shells I know is to sort them alphabetically, though there are ways to sort them by other meta data with some shells such as zsh (e.g. by the modification date: from oldest to newest or vice versa).
If alphabetically sorted is what you need, you don’t hav eto do anything further.
I’m trying to do a similar thing with mkvpropedit to set the flag-enabled property on subtitle tracks for all files in a directory. When I try the following in GitBash I get a “More than one file name has been given” error.