Skip to content

Example 01

Efrain Vergara edited this page Aug 26, 2020 · 2 revisions

Example 01

In this example we will work with:

  • Sources:
    • AVI files with tracks:
      1. Video - mpeg-4
      2. Audio - und
    • SRT subtitles in english
  • Result:
    • MKV file with tracks:
      1. Video - mpeg-4
      2. Audio - jpn
      3. Subtitle - eng

Directory list:

E:\EXAMPLE\TESTMEDIA\EXAMPLE 01

+---Season 01
|       Show Title - S01E01.avi
|       Show Title - S01E01.srt
|       Show Title - S01E02.avi
|       Show Title - S01E02.srt
|       Show Title - S01E03.avi
|       Show Title - S01E03.srt
|       Show Title - S01E04.avi
|       Show Title - S01E04.srt
|       Show Title - S01E05.avi
|       Show Title - S01E05.srt
|
\---Season 01 MKV

The source files are all in the same directory Season 01 our destination directory will be Season 01 MKV.

  1. Start mkvtoolnix-gui and add the first AVI and SRT files.
images/mkvtoolnix-gui-ex01-start.png
  1. Identify the language for the audio and subtitles.
images/mkvtoolnix-gui-ex01-fixname.png
  1. Select new destination directory.
images/mkvtoolnix-gui-ex01-cli-newdirectory.png
  1. Copy the command to the clipboard.
images/mkvtoolnix-gui-show-command-line.png
images/mkvtoolnix-gui-copy-cli-to-clipboard.png
  1. Paste the command in MKVBatchMultiplex. In the message box you should see 'Command looks ok.'. This will show after the program check the command line to have the expected format.
images/MKVBatchMultiplex-paste-cli.png
  1. Add the command to the Queue pushing <Add Queue> pushbutton.
  2. The push <Start Worker> to execute the job on Queue. The first time the worker is started the Jobs Output tab will be activated.
images/MKVBatchMultiplex-ex01-jobs-output.png

When you add the job to the Queue the job can be seen on the Jobs tab. More than one job can be added and then start the worker to execute them in sequence.

Directory listing after execution:

E:\EXAMPLE\TESTMEDIA\EXAMPLE 01 - AVI

+---Season 01
|       Show Title - S01E01.avi
|       Show Title - S01E01.mkv
|       Show Title - S01E01.srt
|       Show Title - S01E02.avi
|       Show Title - S01E02.mkv
|       Show Title - S01E02.srt
|       Show Title - S01E03.avi
|       Show Title - S01E03.mkv
|       Show Title - S01E03.srt
|       Show Title - S01E04.avi
|       Show Title - S01E04.mkv
|       Show Title - S01E04.srt
|       Show Title - S01E05.avi
|       Show Title - S01E05.mkv
|       Show Title - S01E05.srt
|
\---Season 01 MKV
        Show Title - S01E01.mkv
        Show Title - S01E02.mkv
        Show Title - S01E03.mkv
        Show Title - S01E04.mkv
        Show Title - S01E05.mkv

Here we see in the directory listing that the new MKV files are in the destination directory.

I executed two jobs the of the command using the default destination directory and one with a different destination directory.

Directory listing after execution:

E:\EXAMPLE\TESTMEDIA\EXAMPLE 01

+---Season 01
|       new-Show Title - S01E01.mkv
|       new-Show Title - S01E02.mkv
|       new-Show Title - S01E03.mkv
|       new-Show Title - S01E04.mkv
|       new-Show Title - S01E05.mkv
|       Show Title - S01E01.avi
|       Show Title - S01E01.mkv
|       Show Title - S01E01.srt
|       Show Title - S01E02.avi
|       Show Title - S01E02.mkv
|       Show Title - S01E02.srt
|       Show Title - S01E03.avi
|       Show Title - S01E03.mkv
|       Show Title - S01E03.srt
|       Show Title - S01E04.avi
|       Show Title - S01E04.mkv
|       Show Title - S01E04.srt
|       Show Title - S01E05.avi
|       Show Title - S01E05.mkv
|       Show Title - S01E05.srt
|
\---Season 01 MKV
        Show Title - S01E01.mkv
        Show Title - S01E02.mkv
        Show Title - S01E03.mkv
        Show Title - S01E04.mkv
        Show Title - S01E05.mkv

We see that in the new destination we have the new MKV files. In the source we see duplicate number of MKV files. Executing the first command without removing the result of the previous run will cause a name collision that is solved with a prefix. If a file with a prefix is found the program will serialize the prefix adding numbers new1, new2, ... newN. The sources are never erased nor the destination file overwritten.

Clone this wiki locally