Skip to content

Batch Bluray Encoding with BatchGuy

yaboy58 edited this page Oct 28, 2016 · 33 revisions

Batch Blu-ray encoding with BatchGuy

In this tutorial, I will be demonstrating how to use BatchGuy to help assist you in encoding Blu-rays.

Requirements

  • Windows 7, 8, 10
  • Microsoft .Net Framework 4.5+
  • eac3to
  • vfw4x264
  • x264 (needs to be in the same directory as vfw4x264)
  • AviSynth 2.5+ and all relevant plugins
  • mkvmerge
  • Ripped Blu-ray discs

Tips Before Starting

  • Make sure you know the correct episode order of the TV Show you are encoding
  • Make sure you understand the audio and subtitle streams inside of the Blu-ray ie Commentary, SDH, Force Captions etc etc

BatchGuy Tips

  • All BatchGuy Grids can be sorted by double-clicking the header row
  • The (.batchGuyEac3toSettings) file sits at the heart of BatchGuy, so ensure that you save this file after entering information on each screen

Tutorial

  1. Open up BatchGuy and choose Settings. Ensure that all of the exe paths have been specified, set your default BluRay Title Info audio input/output mappings, and defaults for audio and subtitle language and mkvemerge. Once you are done, use the menu located at the top left corner of the screen to save your settings.

BatchGuy Settings Screen
  1. Open up BatchGuy and choose Create eac3to Batch File
  • On the Create eac3to Batch File Screen, choose the location where you want to save the eac3to (.bat) file
  • Next, choose the directory where you want eac3to to output the extracted files (for this tutorial, I will be choosing Directory Per Playlist)
  • Next, choose the directory where you want the mkvmerge batch file to be created and the mkvemerge output directory
  • Next, drag and drop your Blu-ray discs onto the first grid
  • Now, check the Is Selected checkbox of the Blu-ray discs that contains the tracks you would like to extract
  • When you click on a Blu-ray disc, this will load the summary (episode) information on the Disc Summary grid
  • On the Disc Summary grid, check the Is Selected checkbox of the summary items you wish to extract
  • Next, double-click on each summary item selected to view the Blu-ray Title Info Screen
  1. On this screen, you will enter the episode number (you must tell BatchGuy the correct episode number) and select video, audio, subtitles, chapters and specify mkvmerge options. You can also add external subtitles but you probably want to do this later in the work flow. After you have entered all relevant information, press the update button

Blu-ray Title Info Screen
  1. After you have completed entering all the summary item information, save the information by using the menu at the upper left part of the screen. You will use the (.batchGuyEac3toSettings) throughout the BatchGuy encoding work flow. After you have saved the information on the screen, press the Create eac3to Batch File and Create eac3to Batch File Screen menu items

Create eac3to Batch File
  1. Find the eac3to (.bat) file BatchGuy created and double-click it to start extracting the Blu-ray tracks

eac3to Batch File
  1. After the eac3to (.bat) file completes, you should see folders named episode01, episode02 etc etc containing the extracted Blu-ray tracks

Episode Folders

Inside Episode Folder
  1. As an encoder, you will want to test different AviSynth and x264 settings on a sample of one of the video tracks, for brevity, this step will be skipped

  2. Once you have an idea of what AviSynth and x264 settings you want to apply to all the videos, from the main menu, choose Create AviSynth Files

  3. The Create AviSynth Files Screen will be disabled when you first open the screen. You will want to use the menu located in the upper left part of the screen or drag and drop the (.batchGuyEac3toSettings) file that you saved on the Create eac3to Batch File Screen to load the screen

  4. Once the screen has loaded, select the directory where you want the (.avs) files to be saved. The Directory Type, (.mkv) Files Directory and Number of Files are already filled in based upon the information you provided on the Create eac3to Batch File Screen. We chose Directory Per Playlist on the Create eac3to Batch File Screen, so when you start encoding your files, BatchGuy will expect to find the folder structure output_directory\episode## and a file video##.mkv. If I would have chosen Single Directory on the Create eac3to Batch File Screen, BatchGuy would have expected to find a file video##.mkv in the eac3to output directory root.

  5. If you have installed the ffms2 Avisynth plugin and set the exe location in the Settings Screen, you can also choose to make a ffindex batch file. This batch file will create ffindex files that FFVideoSource uses for each episode.

  6. Now, select a Video Filter and enter in AviSynth scripts into the AviSynth Template, save the (.batchGuyEac3toSettings) file and press the Create AviSynth (.avs) Files and Create ffindex Batch File (optional) menu items. You should now see(.avs) files created in the directory you chose.

    Create AviSynth Files Screen

AviSynth Files

AviSynth Script

  1. Next, on the main menu, select Create x264 Batch File

  2. The Create x264 Batch File Screen will be disabled when you first open the screen. You will want to use the menu located in the upper left part of the screen or drag and drop the (.batchGuyEac3toSettings) file that you saved on the Create eac3to Batch File Screen to load the screen

  3. Once the screen has loaded, choose the directory where you would like to save the x264 batch file

  4. Next, if you want the x264 (.log) files to go to a different directory, just check the Save (.log) file to a different directory checkbox and specify the directory. I chose Directory Per Playlist on the Create eac3to Batch File Screen, so the (.mkv) and (.log) files would go into output_directory\episode##.

  5. Next, specify if you want BatchGuy to ignore internal subtitles when creating the mkvmerge file. When this option is checked, even if the internal subtitles on the BluRay Title Info Screen is checked, it will be ignored when the mkvemerge batch file is created. Most people use software to OCR the internal Blu-ray PGS subtitles and will want to use those instead of the internal subtitles

  6. Next, drag and drop the (.avs) files BatchGuy created using the Create AviSynth Files Screen onto the grid. In the Encode Name Column on the grid, enter the name of each episode, which will serve as the rendered (.mkv) and (.log) files. After you have entered the Encode Name, select the Blu-ray Episode Number that you specified on the BluRay Title Info Screen to associate the (.avs) file with the correct episode (The Blu-ray Episode Number drop down is based upon how many Playlists you selected on the Create eac3to Batch File Screen)

  7. Next, if you need to add external subtitles, double-click on each episode to open the BluRay Title Info Screen. Once the BluRay Title Info Screen is up, click on the Add External Subtitle button to open the External Subtitle Screen. Enter the external subtitle language and specify the location of the external subtitle and press the save button. On the BluRay Title Info Screen, enter in the appropriate mkvmerge options for the external subtitle.


External Subtitles Screen

BluRay Title Info Screen with External Subtitles

  1. Next, enter the x264 scripts in the x264 Template text box and choose an x264 encode type. These x264 settings will be applied to every (.avs) script in the batch. When you are done, save the (batchGuyEac3toSettings) file and press the Create x264 Batch File and Create mkvmerge Batch File menu items. Navigate to the directory where the x264 batch file was created and double-click it to start encoding the batch

Create x264 Batch File Screen

x264 Batch File
  1. After the x264 batch file has completed, you should see x264 rendered (.mkv) and (.log) files in the output directory you chose.
    Encode and Log Files

  2. Next, navigate to the directory where the mkvmerge batch file was created and double-click it to start the mkvmerge muxing process. After the mkvmerge batch file completes, you should see the muxed (.mkv) files in the mkvmerge output directory you specified on the Create eac3to Batch File Screen


mkv Batch File
x264 Batch File