PDA

View Full Version : HCenc fastest ini setting?


tin3tin
5th September 2008, 11:02
I'm using HCenc sometimes to "touch" an avisynth script without the need for a resulting m2v file(to render single images etc.).

What would be the fastest ini setting for processing avs scripts?

Atm. I'm using this:
*cq_maxbitrate 20.0
*dc_prec 10
*WAIT 0
*PROFILE FAST
*SILENT
*BITRATE 100
*MAXBITRATE 500
*AUTOGOP 15

buzzqw
5th September 2008, 13:15
set dc_prec to 8

BHH

Darksoul71
5th September 2008, 21:41
Here is the AutoIt code of my "TouchAVS" function:

Func TouchAVS ($AVSFile)
$TouchM2V = StringTrimRight ($AVSFile,3) & "M2V"
$TouchIni = StringTrimRight ($AVSFile,3) & "INI"

; Delete files from previous runs if existing
If FileExists ($TouchM2V) Then FileDelete ($TouchM2V)
If FileExists ($TouchIni) Then FileDelete ($TouchIni)

; Prepare Touch.ini for HCEnc Run
AddLine ($TouchIni, "*INFILE " & $AVSFile)
AddLine ($TouchIni, "*OUTFILE " & $TouchM2V)
AddLine ($TouchIni, "*FRAMES 0 5")
AddLine ($TouchIni, "*CQ 1")
AddLine ($TouchIni, "*WAIT 0")
AddLine ($TouchIni, "*SILENT")

If (_FileGetFilename ($HCEnc) = "HCENC^n.exe") Then
RunWait ($HCEnc & " -cores 1 -ini " & Chr(34) & $TouchIni & Chr(34), @ScriptDir, @SW_SHOW)
Else
RunWait ($HCEnc & " -ini " & Chr(34) & $TouchIni & Chr(34), @ScriptDir, @SW_SHOW)
EndIf

FileDelete ($TouchM2V)
FileDelete ($TouchIni)
EndFunc

So for your case I would use CQ mode and limit the frames to encode to 5 Frames:
*CQ 1
*FRAMES 0 5

tin3tin
6th September 2008, 11:51
Thanks. This is much faster for me:
*WAIT 0
*PROFILE FAST
*SILENT
*BITRATE 1
*MAXBITRATE 1
*CQ 1

I can't limit the frame range because I need to save a sequence of images, or else they will not be rendered.