Hello folks,
I have about 450+ small AVIs I want to convert to MPG (using TMPGenc Plus). Basically one directory full, and no I don't want to load each file manually into a batch. They are homevideo captured with winDV - but that's not important.
Does anyone have a small program to read each file name and output it to TMPGenc. I've seen the idea mentioned in Aug 2002 by jimmalenko.
Wondering if someone has spent the time writing the code yet?
Cheers
Kyle.
-------------------------------
Excerpt from original post (quoting jimmalenko):
you could always set up a DOS batch file and use commandline args to control TMPGEnc. You would need to save your project with generic names, such as audio and video input is "input.mpg" and your output file is "output.mpg".
I would use the following code for each movie:
Copy <inputfile> input.mpg
tmpgenc <template> /encode /close
copy output.mpg <movieno>.mpg
It will take a little while to set up but it will do what you want. I have VB set up and would write a For Loop to generate this batch file automatically.
+ Reply to Thread
Results 1 to 5 of 5
-
-
DV, then its so much easier with CCE. After you setup the template to the correct bitrate and so on, just drag and drop all the files to CCE, they will line up like communist kids in school, one more click and it will all encode. To encode it all to the same MPEG file, just add the first file, then doubleclick it in the list, click the Settings... button in the Input Files frame and drag and drop all the files there instead. This is provided you want to encode to the same resolution as the source files, but with DV to DVD one always will. I usually output to one file only, better to set chapters manually in DVD autor program, and it makes the multiplexing of audio and video much easier too.
-
If you insist on using VB for this you would want to consider that the batch file would most likely run through the whole list and open up 100 tmpgencs for you, so you would rather use VB's Shell command to call TMPGEnc and then watch the process before starting the next. Alternative is to use commandline START with /WAIT like for ex:
start /WAIT "tmpgenc" "C:\ProgramFiles\TMPGEnc\tmpgenc.exe" /encode /close
Probably many other ways also -
For those interested, I've come across this little program:
(listed in TMPGENC tools section)
TMPgEnc Batch List Creator 3
http://www.videogeneration.com.au/batchlist.htm
Currently still developing my own, been about 10yrs since I last programmed in C so thought it'd be a nice little project to get familar with Dev-C++ and wxWindows framework.
Cheers
Kyle. -
I tried the tmpgenc batch creator a while back, it works ok, but a more extensive GUI would probably make it easier for many, especially if your program will make its own settings/template, good for newbies i guess. I made a BAT-file based batch encoder for Audio using besweet and is thinking of using the same code for batch encoding using QuEnc with the addition of creating AVS scripts, easy enough since all settings can be done through command line switches. Wish CCE Basic supported cmd switches, its a little trouble piping it to the screen like DVD2SVCD does. But then, for DV files CCE has the best built-in batch possibilities anyway, no need to re-invent gunpowder.
Similar Threads
-
batch dvd ripping - output folder to input folder?
By mkv2avi in forum DVD RippingReplies: 5Last Post: 17th Apr 2012, 16:23 -
Syntax issues batch muxing audio into AVIs
By Chetwood in forum Video ConversionReplies: 0Last Post: 7th Mar 2011, 06:14 -
Batch creation of mpg, mpeg, avis
By silentthread in forum EditingReplies: 2Last Post: 4th Jan 2008, 18:24 -
batch join all .avi files in folder
By shun in forum EditingReplies: 7Last Post: 11th Dec 2007, 08:25 -
batch convert avis to cd size
By clawg in forum Video ConversionReplies: 2Last Post: 25th Jun 2007, 12:27