VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Apr 2004
    Location
    Brisbane, Australia
    Search Comp PM
    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.
    Quote Quote  
  2. 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.
    Quote Quote  
  3. 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
    Quote Quote  
  4. Member
    Join Date
    Apr 2004
    Location
    Brisbane, Australia
    Search Comp PM
    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.
    Quote Quote  
  5. 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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!