wackman
9th October 2005, 12:20
Hey everyone,
I've just recently (tonight, actually) discovered and played around with HCEnc. I wanted to let it do some batch encoding of a few movies while I slept. I just can't get it to work.
I have one directory where I put all the files in, d:\movies-encode. In that directory, I have all my video files (an .mp4, an .avi and an .mpg), their .avs files, and .ini files.
EX:
movies.bat (used a post here as a template):
@echo off
color 17
title My Batchlist
start "HC-Batch" /wait HCbatch_015A.exe "-ini" "D:\movies-encode\peter.ini" "-i" "D:\movies-encode\peter.ini" "-o" "D:\movies-encode\peter.m2v" "-log" "D:\movies-encode\peter.log" "-b" "5500" "-maxbitrate" "8500"
then peter.ini
-------------------------------
HC.ini template
These commands are required
Use full pathnames and just use the bitrate you want
-------------------------------
*INFILE d:\movies-encode\peter.avs
*OUTFILE d:\movies-encode\peter.m2v
*BITRATE 5500
*MAXBITRATE 8500
-------------------------------
Next commands are optional,
putting a space for it disables a command
Not all commands are shown here,
see the manual for a complete list and default values
-------------------------------
*logfile d:\....\test.log
*MATRIX qlb
*PROFILE best
*ASPECT 4:3
*BIAS 30
*cpu auto
*shutdown
*gop 15 2
*interlaced
*tff
*CLOSEDGOPS
*CQ 6.3
*cq_maxbitrate 7.6
*DC_PREC 10
*frames 100 200
*custommatrix
8 16 19 22 26 27 29 34
16 16 22 24 27 29 34 37
19 22 26 27 29 34 34 38
22 22 26 27 29 34 37 40
22 26 27 29 32 35 40 48
26 27 29 32 35 40 48 58
26 27 29 34 38 46 56 69
27 29 35 38 46 56 69 83
16 17 18 19 20 21 22 23
17 18 19 20 21 22 23 24
18 19 20 21 22 23 24 25
19 20 21 22 23 24 26 27
20 21 22 23 25 26 27 28
21 22 23 24 26 27 28 30
22 23 24 26 27 28 30 31
23 24 25 27 28 30 31 33
*chapter 3
12000
13345
18758
then peter.avs:
DirectShowSource("D:\movies-encode\peter.mp4")
ConvertToYV12()
AddBorders(0,40,0,40)
I've tried it by specifying the path (even though everything's in the same directory), and without the path. No matter what, the batch file pops up the batch screen, it shows most of the settings in the upper right and upper left boxes, but down below in the status fields, it says it has no .avs or .d2v input, even though I'm positive I got the paths and filenames right. I even went to start->run and entered the entire path/filename and it opened the files up.
As a last ditch effort, I tried the preview of version 16. Same errors.
So for now, I'll just do the regular HC and worry about the batch version tomorrow.
Thanks all.
Wackman
I've just recently (tonight, actually) discovered and played around with HCEnc. I wanted to let it do some batch encoding of a few movies while I slept. I just can't get it to work.
I have one directory where I put all the files in, d:\movies-encode. In that directory, I have all my video files (an .mp4, an .avi and an .mpg), their .avs files, and .ini files.
EX:
movies.bat (used a post here as a template):
@echo off
color 17
title My Batchlist
start "HC-Batch" /wait HCbatch_015A.exe "-ini" "D:\movies-encode\peter.ini" "-i" "D:\movies-encode\peter.ini" "-o" "D:\movies-encode\peter.m2v" "-log" "D:\movies-encode\peter.log" "-b" "5500" "-maxbitrate" "8500"
then peter.ini
-------------------------------
HC.ini template
These commands are required
Use full pathnames and just use the bitrate you want
-------------------------------
*INFILE d:\movies-encode\peter.avs
*OUTFILE d:\movies-encode\peter.m2v
*BITRATE 5500
*MAXBITRATE 8500
-------------------------------
Next commands are optional,
putting a space for it disables a command
Not all commands are shown here,
see the manual for a complete list and default values
-------------------------------
*logfile d:\....\test.log
*MATRIX qlb
*PROFILE best
*ASPECT 4:3
*BIAS 30
*cpu auto
*shutdown
*gop 15 2
*interlaced
*tff
*CLOSEDGOPS
*CQ 6.3
*cq_maxbitrate 7.6
*DC_PREC 10
*frames 100 200
*custommatrix
8 16 19 22 26 27 29 34
16 16 22 24 27 29 34 37
19 22 26 27 29 34 34 38
22 22 26 27 29 34 37 40
22 26 27 29 32 35 40 48
26 27 29 32 35 40 48 58
26 27 29 34 38 46 56 69
27 29 35 38 46 56 69 83
16 17 18 19 20 21 22 23
17 18 19 20 21 22 23 24
18 19 20 21 22 23 24 25
19 20 21 22 23 24 26 27
20 21 22 23 25 26 27 28
21 22 23 24 26 27 28 30
22 23 24 26 27 28 30 31
23 24 25 27 28 30 31 33
*chapter 3
12000
13345
18758
then peter.avs:
DirectShowSource("D:\movies-encode\peter.mp4")
ConvertToYV12()
AddBorders(0,40,0,40)
I've tried it by specifying the path (even though everything's in the same directory), and without the path. No matter what, the batch file pops up the batch screen, it shows most of the settings in the upper right and upper left boxes, but down below in the status fields, it says it has no .avs or .d2v input, even though I'm positive I got the paths and filenames right. I even went to start->run and entered the entire path/filename and it opened the files up.
As a last ditch effort, I tried the preview of version 16. Same errors.
So for now, I'll just do the regular HC and worry about the batch version tomorrow.
Thanks all.
Wackman