Log in

View Full Version : HC batch encoding multiple files?


smok3
5th January 2006, 17:48
so i have 10 input avi files and i expect 10 output mpeg2/DVD files ready for dvdlab.

what i did so far is:
make an avisynth thingy for each like:
AviSource("film.avi")

i open this in hcgui and set all the parameters then encode...

---

so the question, how to encode 10 avisynth files to 10 mpeg2/DVD files in batch?

tia

Prodater64
5th January 2006, 19:09
Check http://forum.doom9.org/showpost.php?p=692791&postcount=3

smok3
5th January 2006, 19:15
k, ty, so i can delete this part from ini file:

*infile d:\....\test.avs
*outfile d:\....\test.m2v

?

Prodater64
5th January 2006, 21:04
k, ty, so i can delete this part from ini file:

*infile d:\....\test.avs
*outfile d:\....\test.m2v

?


If you define they in the command line or batch file, you can delete them.

Mug Funky
6th January 2006, 07:39
here's one i made for QuEnc. most of the HC CLI settings are the same, so it should be dead easy to port to HC

@ECHO OFF
ECHO Sally's batch encoder
ECHO.
ECHO.
ECHO.
ECHO Encoding all avs's in %~p1...
ECHO.
SET /P bitrate= please enter average bitrate:
ECHO.
SET /P max= enter max bitrate:
ECHO.
SET /P passes= enter number of passes (1 or 2):
ECHO.
SET /P ratio= enter aspect ratio (enter 4:3 or 16:9):

for %%A in (*.avs) do ECHO "C:\Program Files\QuEnc\QuEnc.exe" -i "%%~dA%%~pA%%~nA.avs" -o "%%~dA%%~pA%%~nA.reenc.m2v" -b %bitrate% -maxbitrate %max% -dc 10 -%passes% -mpeg2 -hq -vbr -scene -notrell -nocgop -interlaced -tff -noextreme -gopsize 12 -maxbframes 2 -aspectratio %ratio% -mpeg2mux noaudio -priority 5 -auto -close >> %%~dA%%~pAencode.bat


either put it in the directory you want to use (no network paths please - only mapped drive letters work in these batch files unfortunately) and run it, or make a shell extension for it for file folders, so you can right-click a folder in explorer and hit "encode all avs files" or whatever.

enjoy.

smok3
6th January 2006, 21:04
Mug Funky, looks good, so i can skip making ini files in hc case as well and do all with such batch oneliner?

Mug Funky
14th January 2006, 14:45
yep. you can even make your own ini file with ECHO blahblahblah 12>>HC.ini if you like.

any parameters you use all the time, keep in the ini, and everything else you can set at encode time with CLI options. it's a pretty good mix.