View Full Version : HC0.18 and D2S
Burning Fury
9th July 2006, 05:34
I did try to look for an answer but, i couldn't find it.
Is there a way to use the new HC0.18 with D2S?
Post anything that can help.
Thanks ;)
Try setting the HCenc_018.exe as your QuEnc executable.
Many of the commandline settings are the same as QuEnc so it works ok. However, there will be some settings that differ between QuEnc and HC. If you need these, you have to make a custom ini file for HC for your encode.
Burning Fury
13th July 2006, 06:19
Hey there Nick.
I have to tell you that i tried using the HCenc18, like you said.
It did loaded it up instead of the QuEnc.
But i didn't do anything at all!.
I mean, the thing just stood there waiting for a file to encode.
I think that it must not be programmed to run with D2S.
I did a INI file, but just for the settings though.
It seems that D2S does not communicate well with HC. :(
Thought i let you know.
Cheers ;)
manolito
13th July 2006, 14:37
HCEnc 0.18 is right now doing an encode under D2S 1.2.3 build1 here on my machine. Communication between the two is excellent. HC takes the following parameters from D2S (those are the parameters which are the same for HC and QuEnc):
1. Input file
2. Output file
3. Bitrate
4. Max bitrate
5. Aspect ratio
6. Scene change
7. Interlaced
All other parameters for HC must be specified through an INI file for HC.
To narrow down why it does not work for you I suggest the following:
Make sure that you pointed D2S to the batch version of HC. For HC 0.18 this is the file HCenc_018.exe. Do NOT use the file HCgui_018.exe!
To make sure that there is no syntax error in your HC.ini file I suggest to delete or rename the INI file. HC's default settings work well in most cases.
If HC loads up on your machine, examine the window for status information. The line "info" tells you if HC gets its settings from command line arguments. Right below the input and output files are listed. The input file should be "...Your_D2S_Work_Folder...\avisynth_script_file.avs"
Good luck
manolito
Boulder
2nd August 2006, 09:55
How can I get rid of the ConverttoYUY2() statement D2S keeps adding to the script? I've chosen QuEnc as the encoder and given HC v0.18 as the QuEnc executable. The colorspace conversion should be to YV12 but for some reason there's always the conversion to YUY2 which prevents me from automating the process as I need to remove the line manually every time.
Nick
2nd August 2006, 11:44
This doesn't happen for me :confused:
Check your Advanced settings in the Encoder tab and make sure YV12 is set in the Colour Conversion box.
Boulder
2nd August 2006, 12:35
That's all there is, for QuEnc there are no other options than ConverttoYV12.
Here's the script:
LoadPlugin("E:\PROGRA~1\DVD2SVCD\dgindex\DGDecode.dll")
AVISource("E:\Temp\Captures\testi.avi",audio=false)
ConvertToYUY2()
ConverttoYV12(interlaced=true)
function ConverttoYUY2(clip c, bool "interlaced")
{
c.ConverttoYV12(interlaced=true)
return c
}
I had to do the ConverttoYUY2 function so that there would be no colorspace conversion. D2S first converts to YUY2, adds the resizing and AddBorders part and then converts back to YV12. And I can't find a reason why :(
I attached the ini file as well (as dvd.txt because .ini files cannot be attached).
manolito
2nd August 2006, 12:50
I think Boulder is right. In AVI2DVD mode D2S always puts the "ConvertToYUY2()" statement right after the "AviSource(...)" line. I remember that DDogg complained about it several times in the former debugging forum, but it was never fixed.
Since I came to the scene rather late, I can only speculate why this (mostly) unnecessary color conversion is there. It probably dates back to the days of AviSynth 2.0 when all filters needed YUY2.
I do not see any other way to get rid of this except selecting "Edit AviSynth script file as part of video encoding" in the Frameserver tab and delete the line manually. In my experience it is well worth it because speed will suffer a lot with ConvertToYUY2() left in the script.
Cheers
manolito
/Edit/ I wrote this post before I saw Boulder's answer. Great idea to write your own ConvertToYUY2 function. I'll add it to my scripts ASAP
Nick
2nd August 2006, 13:28
Ah, sorry. Didn't try it in AVI2... mode.
Good solution btw Boulder.
Boulder
2nd August 2006, 13:29
There's a small mistake in that function of mine, actually you can simply use
function ConverttoYUY2(clip c, bool "interlaced")
{
return c
}
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.