I’ve recently been using TMPGEnc to convert a bunch of AVI files into MPG. The program works great and has a lot of features. However, there is one major UI flaw when doing batch conversions. Here, I’ve got a solution for one way around it.
TMPGEnc has a facility for doing batch jobs. However in order to do this, you still need to open EVERY file individually, apply the desired setting and save it to your batch list. Now, what if I have a whole folder of files that I want the exact same settings applied to? Can’t do it with TMPGEnc.
So, this is where I decided to write a VB script to create a TMPGEnc batch list file (.tbe). The procedure I chose is fairly simple.
- First, start off by using TMPGEnc to create a batch list file and add just one file to it with the settings you want. Then save off that file.
- Next, edit the tmpgenc-batchcreator.vbs script to tell it the file names and folders you are working with. All of the settings are clearly indicated near the top of the file.
- Finally, run the script by double-clicking on it. When it completes, you will have a new .tbe file that contains a job for every file in the directory you specified.
- Load up the .tbe file in TMPGEnc and hit convert. Then go to bed.
At a high level, the script essentially does a search and replace on the first file in the list and then duplicates that job for every file in the folder specified. The only “complex” thing it really has to do is recalcualte the file length that gets stored in the header of the .tbe file.
All of this was developed using TMPGEnc 2.524.63.181-Free.
As always, if you have found this particularly useful, donations are gratefully accepted.