View Full Version : HC encoder, release 017
hank315
5th February 2006, 15:07
New release of HC.
Change log:
- more options for CQ encoding
- added gop, frames and chapter command as parameters for HCenc
- create a chapter list based on scene changes
- frame count starts at 0
- GUI bug fixes
- frame serving bug fixed
- memory error bug fixed (I hope...)
get it at http://hcencoder.bitburners.com
Ebobtron
5th February 2006, 15:24
Thanks Hank, great work.
bourtzovlakas
5th February 2006, 16:27
:thanks:
laserfan
5th February 2006, 16:32
Hank, yours is outstanding work, that gives us great satisfaction and joy!
:thanks:
buzzqw
5th February 2006, 16:44
:thanks: :thanks: :thanks:
BHH
scraper
5th February 2006, 17:02
:thanks:
Looking forward to hopefully being rid of those pesky memory messages ;)
Thanks very mucho!!
JP
ljpp
5th February 2006, 17:11
I updated the HC Encoder homepage with a PayPal donation option, so now everyone can show their appreciation to Hank's work. Made a small donation my self, and it definitely is a few bucks well spent.
video_magic
5th February 2006, 17:53
Thanks very much Hank, I look forward to checking it out.
On the website I noticed the list of 'Core features of HC Encoder', and I wondered about there not being DVD Compliancy - does HC aim for this and shouldn't it be listed (or maybe not yet?)?
Moitah
5th February 2006, 18:08
Thanks :D.
Amnon82
5th February 2006, 22:50
Will take a look when I've more time. THX for the new CQ features.
katjarella
6th February 2006, 01:14
New release of HC.
Change log:
- more options for CQ encoding
- added gop, frames and chapter command as parameters for HCenc
- create a chapter list based on scene changes
- frame count starts at 0
- GUI bug fixes
- frame serving bug fixed
- memory error bug fixed (I hope...)
get it at http://hcencoder.bitburners.com
HCgui_017.exe and INISettings 0-2 Frames:
*INFILE h:\fr_an\menu001.avs
*OUTFILE h:\fr_an\menu001.m2v
*LOGFILE h:\fr_an\menu001.log
*MAXBITRATE 10000
*FRAMES 0 2
*PROFILE best
*ASPECT 4:3
*CQ_MAXBITRATE 1.000
*CQ_PFACTOR 0.50
*CQ_BFACTOR 0.50
*DC_PREC 10
*CLOSEDGOPS
*MATRIX hvsbest
*WAIT 0
LOG:
-----------------------------------------
| HCenc - MPEG2 encoder - rel. 0.17.0.0 |
-----------------------------------------
input: h:\fr_an\menu001.av
output: h:\fr_an\menu001.m2v
--------------------
| encoder settings |
--------------------
profile: BEST
frames: 0 2
framerate: 25.00
aspect ratio: 4:3
bitrate: NA
max. bitrate Kb/s: 10000
pass: 1 (Constant Quant)
constant Q: 1.000
closed gops: yes
VBV check: yes
scene change det.: yes
interlaced: no
goplen,B-pic: AUTO
dc_precision: 10
scan method: ZIGZAG
bias: 0
chapter frames: 0
time code: 0 0 0 0
CPU: SSE2
matrix: HVSBEST
--------------------
| source stats |
--------------------
nr. of frames in source: 3
width*height: 720*576
fps: 25.00
nr. of frames to encode: 3
frames to encode: 0 - 2
---------------------
| encoding - pass 1 |
---------------------
pass 1 encoding time: 0:00:00 (0 s)
average fps: 6.4
------------------
| encoding stats |
------------------
total encoding time: 0:00:01 (1 s)
intra matrix used
8 16 16 16 17 18 21 24
16 16 16 16 17 19 22 25
16 16 17 18 20 22 25 29
16 16 18 21 24 27 31 36
17 17 20 24 30 35 41 47
18 19 22 27 35 44 54 65
21 22 25 31 41 54 70 88
24 25 29 36 47 65 88 115
non-intra matrix used
18 18 18 18 19 21 23 27
18 18 18 18 19 21 24 29
18 18 19 20 22 24 28 32
18 18 20 24 27 30 35 40
19 19 22 27 33 39 46 53
21 21 24 30 39 50 61 73
23 24 28 35 46 61 79 98
27 29 32 40 53 73 98 129
nr. of gops: 2
nr. of frames: 3
nr. of I-frames: 2
nr. of P-frames: 1
nr. of B-frames: 0
average quant (non linear): 2.909
VBV underflows detected: 0
VBV underflows fixed: 0
minimum bitrate: 1696
maximum bitrate: 9945
average bitrate: 4446
==================================================
Final Video has 3Frames == OK
HCgui_017.exe and INISettings 0-1 Frames:
*INFILE h:\fr_an\menu001.avs
*OUTFILE h:\fr_an\menu001.m2v
*LOGFILE h:\fr_an\menu001.log
*MAXBITRATE 10000
*FRAMES 0 1
*PROFILE best
*ASPECT 4:3
*CQ_MAXBITRATE 1.000
*CQ_PFACTOR 0.50
*CQ_BFACTOR 0.50
*DC_PREC 10
*CLOSEDGOPS
*MATRIX hvsbest
*WAIT 0
LOG:
-----------------------------------------
| HCenc - MPEG2 encoder - rel. 0.17.0.0 |
-----------------------------------------
input: h:\fr_an\menu001.av
output: h:\fr_an\menu001.m2v
--------------------
| encoder settings |
--------------------
profile: BEST
frames: 0 1
framerate: 25.00
aspect ratio: 4:3
bitrate: NA
max. bitrate Kb/s: 10000
pass: 1 (Constant Quant)
constant Q: 1.000
closed gops: yes
VBV check: yes
scene change det.: yes
interlaced: no
goplen,B-pic: AUTO
dc_precision: 10
scan method: ZIGZAG
bias: 0
chapter frames: 0
time code: 0 0 0 0
CPU: SSE2
matrix: HVSBEST
--------------------
| source stats |
--------------------
nr. of frames in source: 3
width*height: 720*576
fps: 25.00
nr. of frames to encode: 2
frames to encode: 0 - 1
---------------------
| encoding - pass 1 |
---------------------
pass 1 encoding time: 0:00:00 (0 s)
average fps: 4.7
------------------
| encoding stats |
------------------
total encoding time: 0:00:00 (0 s)
intra matrix used
8 16 16 16 17 18 21 24
16 16 16 16 17 19 22 25
16 16 17 18 20 22 25 29
16 16 18 21 24 27 31 36
17 17 20 24 30 35 41 47
18 19 22 27 35 44 54 65
21 22 25 31 41 54 70 88
24 25 29 36 47 65 88 115
non-intra matrix used
18 18 18 18 19 21 23 27
18 18 18 18 19 21 24 29
18 18 19 20 22 24 28 32
18 18 20 24 27 30 35 40
19 19 22 27 33 39 46 53
21 21 24 30 39 50 61 73
23 24 28 35 46 61 79 98
27 29 32 40 53 73 98 129
nr. of gops: 2
nr. of frames: 2
nr. of I-frames: 2
nr. of P-frames: 0
nr. of B-frames: 0
average quant (non linear): 3.864
VBV underflows detected: 0
VBV underflows fixed: 0
minimum bitrate: 2541
maximum bitrate: 9945
average bitrate: 6243
==================================================
Final Video has 2Frames == OK
HCgui_017.exe and INISettings 0-0 Frames:
*INFILE h:\fr_an\menu001.avs
*OUTFILE h:\fr_an\menu001.m2v
*LOGFILE h:\fr_an\menu001.log
*MAXBITRATE 10000
*FRAMES 0 0
*PROFILE best
*ASPECT 4:3
*CQ_MAXBITRATE 1.000
*CQ_PFACTOR 0.50
*CQ_BFACTOR 0.50
*DC_PREC 10
*CLOSEDGOPS
*MATRIX hvsbest
*WAIT 0
LOG:
-----------------------------------------
| HCenc - MPEG2 encoder - rel. 0.17.0.0 |
-----------------------------------------
input: h:\fr_an\menu001.av
output: h:\fr_an\menu001.m2v
--------------------
| encoder settings |
--------------------
profile: BEST
frames: 0 2
framerate: 25.00
aspect ratio: 4:3
bitrate: NA
max. bitrate Kb/s: 10000
pass: 1 (Constant Quant)
constant Q: 1.000
closed gops: yes
VBV check: yes
scene change det.: yes
interlaced: no
goplen,B-pic: AUTO
dc_precision: 10
scan method: ZIGZAG
bias: 0
chapter frames: 0
time code: 0 0 0 0
CPU: SSE2
matrix: HVSBEST
--------------------
| source stats |
--------------------
nr. of frames in source: 3
width*height: 720*576
fps: 25.00
nr. of frames to encode: 3
frames to encode: 0 - 2
---------------------
| encoding - pass 1 |
---------------------
pass 1 encoding time: 0:00:01 (1 s)
average fps: 5.8
------------------
| encoding stats |
------------------
total encoding time: 0:00:01 (1 s)
intra matrix used
8 16 16 16 17 18 21 24
16 16 16 16 17 19 22 25
16 16 17 18 20 22 25 29
16 16 18 21 24 27 31 36
17 17 20 24 30 35 41 47
18 19 22 27 35 44 54 65
21 22 25 31 41 54 70 88
24 25 29 36 47 65 88 115
non-intra matrix used
18 18 18 18 19 21 23 27
18 18 18 18 19 21 24 29
18 18 19 20 22 24 28 32
18 18 20 24 27 30 35 40
19 19 22 27 33 39 46 53
21 21 24 30 39 50 61 73
23 24 28 35 46 61 79 98
27 29 32 40 53 73 98 129
nr. of gops: 2
nr. of frames: 3
nr. of I-frames: 2
nr. of P-frames: 1
nr. of B-frames: 0
average quant (non linear): 2.909
VBV underflows detected: 0
VBV underflows fixed: 0
minimum bitrate: 1696
maximum bitrate: 9945
average bitrate: 4446
Final Video has 3Frames == FAIL
feedback
6th February 2006, 08:01
I hate to assume anything, but since most of the earlier versions of HC encoders worked (not the GUI versions of course) with DVD Rebuilder Pro., is my assumption that HCenc_17 should have no problems with RB correct?
BTW thanks for your excellent encoder!:)
Regards,
vlada
6th February 2006, 16:45
hank315> Thank you for fixing the bug with FFDShow VfW codec. It now works again perfectly.
Fishman0919
6th February 2006, 17:43
I hate to assume anything, but since most of the earlier versions of HC encoders worked (not the GUI versions of course) with DVD Rebuilder Pro., is my assumption that HCenc_17 should have no problems with RB correct?
BTW thanks for your excellent encoder!:)
Regards,
Just finished Flightplan with HCenc_017.exe and DVD-RB... worked fine. :)
feedback
6th February 2006, 18:10
Just finished Flightplan with HCenc_017.exe and DVD-RB... worked fine. :)
@Fishman0919
Thanks for the info.;)
Asmodeus
6th February 2006, 18:53
Thx Hank :)
Thx for frame type quantization options :)
Now for some bad news :|
- quzantizatoin can be changed only to max x2 (Ix2 for P, Ix2 for B). I want more ;) When I have fun with ffdshow or mencoder I use to set Q as I2, P3, B5 or even 6 with good results. Allow at least 3 or 4 (4 will be beter dividable)
- some avs
LoadPlugin("c:\filtry\Convolution3DYV12.dll")
LoadPlugin("c:\filtry\undot.dll")
LoadPlugin("c:\filtry\blockbuster.dll")
aviSource("d:\movie.avi",false)
crop(10,0,630,0)
#assumefps(25.000)
trim(0,100800)
separatefields()
converttoyv12()
Convolution3D(preset="movieLQ")
LanczosResize(672, 192, 0, 0, 620, 192)
undot()
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
undot()
BlockBuster(method="noise", detail_min=1, detail_max=3, variance=0.1, seed=1)
weave()
AddBorders(16, 48, 16, 48)
HCqui just exit on open, or have AviSynt Unrecognized exeption on line 7 or 15 (lottery each open, mainly 7)
I'm on freeBSD+wine, and movie is XVID, 23.976, interlaced. No problems with VD or HCE016.
EDIT
actualy, nothing works
simple script
aviSource("d:\movie.avi",false)
crop(10,0,630,0)
trim(0,100800)
converttoyv12()
LanczosResize(672, 384, 0, 0, 620, 384)
AddBorders(16, 48, 16, 48)
crashes encoder window (gui opens it fine)
As I mentioned above, 016 gui opens it fine, and encoder does it work :\
kingmob
6th February 2006, 19:24
Thx for the new version!
Can anyone btw pls point me to a place where encoding matrices are explained?
Mug Funky
7th February 2006, 02:57
oops, read this thread yesterday but didn't reply with my thanks for this awesome encoder :)
CQ weights are a very nice idea. does it work the same way as xvid style p and b frame multiplier/offset? looking at some bitrate scans it seems if quant 1 is set, all frames get quant 1 where they can (i'm not complaining - IMHO if there's enough bandwidth for q1, then it is the way to go). i'm curious how the weights work.
Chainmax
7th February 2006, 13:54
Can HC take advantage of dual core CPUs (P4 HT, Athlon X2)? That might help offset its alleged slowness. Also, could toolame be integrated in it so that HC becomes a complete encoding solution?
vlada
7th February 2006, 16:10
I would have a suggestion for the automatic chapter generator. It creates too many chapters for me. What about adding a minimal legth?
Boulder
8th February 2006, 08:37
Can HC take advantage of dual core CPUs (P4 HT, Athlon X2)? That might help offset its alleged slowness.
I strongly suggest using tsp's Avisynth build and MT.dll. Using SetMTMode gives a nice boost on my encodes :)
Nevertheless, it would be nice if HC utilized multithreading.
Also, could toolame be integrated in it so that HC becomes a complete encoding solution?
I think this is prevented by licensing issues (toolame is open source, HC is not). EDIT: Or is it that you can use an external library even if your program is not open source?
As I already notified hank315 and tsp, FFT3DGPU won't work with HC v0.17 but does work with v0.16. (EDIT: will be fixed in the next FFT3DGPU release)
doxville
8th February 2006, 18:35
First of all :thanks: for the new version!
Unfortunately I have problems opening my source-avs (it's an MJPEG-capture recorded AND decoded with PicVideo MJPEG and this time NOT with the ffdshow-MJPEG-codec).
After trying to open the file, the info box says 'AVS file opened' and then refuses to go on with 'Avisynth.dll loaded' (if I remember the words right). The program just hangs and nothing happens. It's only possible to close it with the X-Button in the upper right.
With HC 0.16 I don't have this problem, here the file is loaded correctly.
BUT: When I unsuccessfully tried to open the file in HC 0.17 and closed the GUI, I also fail to open the *.avs in HC 0.16!
Has anyone similar problems or a solution..?
I use Win2000, Avisynth 2.5.6.0 (28.10.2005) PicVideo MJPEG, and the complete folder from the 0.17 zip-file is installed. The script isn't that complex, either:AviSource("D:\Ripley.avi",Pixel_Type="YUY2").assumefps(25.000,true).ssrc(48000)
converttoYV12()
dissolve(Trim(8096,24319),Trim(39669,85431),Trim(100121,144182),Trim(159218,204006),Trim(219560,261367),12)
vlada
9th February 2006, 11:58
Boulder> AFAIK you can use a dynamicaly loaded GPL library in a closed source program. Many closed source programs use LAME.DLL library.
Doom9
14th February 2006, 10:30
AFAIK you can use a dynamicaly loaded GPL library in a closed source program. No you cannot. Many closed source programs use LAME.DLL library.And lame.dll is LGPL.. there's a big difference. LGPL is a library license.. it means you can use a library in closed sourced applications but any modifications you make to the library have to be made available in source code. GPL means any inclusion makes your software GPL as well. That's why M$ and some others call the GPL viral.. in an extreme case, you include one line of GPL code in a million line software and you have to release the whole million lines under the GPL.
vlada
14th February 2006, 13:29
Doom9> Thank you for explanation. Well is one line of code really a code? It is similar with music. Is one note a melody? Are ten notes a melody?
gaekwad2
15th February 2006, 02:46
Well is one line of code really a code?
If it's unique then yes.
And to be able to prove that it was taken from a GPLd source it has to be quite unique.
Asmodeus
15th February 2006, 14:37
Thx Hank :)
HCqui just exit on open, or have AviSynt Unrecognized exeption on line 7 or 15 (lottery each open, mainly 7)
I'm on freeBSD+wine, and movie is XVID, 23.976, interlaced. No problems with VD or HCE016.
EDIT
actualy, nothing works
simple script
crashes encoder window (gui opens it fine)
As I mentioned above, 016 gui opens it fine, and encoder does it work :\
I think that this must be problem with sources loaded by Avisynth. Duno if it's Avisynth fault or HCenc's.
When I open movie in VirtuaDub, and then make frameserver of it, and put it as avisource in AVS script, everything goes fine.
Of course this still concerns Wine+BSD. I know, I'm masochistic ;)
Sounddude
20th February 2006, 07:05
I strongly suggest using tsp's Avisynth build and MT.dll. Using SetMTMode gives a nice boost on my encodes :)
Nevertheless, it would be nice if HC utilized multithreading.
I downloaded and installed tsp's Avisynth build and MT.dll.
What setting (script) do you use with SetMTMode in HC? I have a P4 2.8C HT processor.
SetMTMode(2) I tried this in my script and saw no increase in cpu usage or speed at all.
Does it work in 017?
Thanks,
Boulder
20th February 2006, 08:02
Place SetMTMode(2) as the very first line in your script, before any AVISource, MPEG2Source etc. You also need to extract the avisynth.dll from the latest MT package to your Windows\System32 folder, replacing the old avisynth.dll.
Sounddude
20th February 2006, 14:03
Place SetMTMode(2) as the very first line in your script, before any AVISource, MPEG2Source etc. You also need to extract the avisynth.dll from the latest MT package to your Windows\System32 folder, replacing the old avisynth.dll.
That's exactly what I did, and I saw no increase in cpu usage in the task manager, nor did I notice any increase in the encoding speed.
In fact according to the logs from HC 017, using SetMTMode was slower by 4 minutes using the same source.
doxville
20th February 2006, 18:25
Hank, please disregard my posting above for the moment, I think the main problem I was having was a borked Windows installation. After seeing more and more programs f***ing up I decided to completely reinstall W2k, and now... it seems that HC017 works without crashing... :rolleyes:
Anyways, keep up the great work! I am excited to do further testing with HC017! :)
Centurione
20th February 2006, 18:59
To me it seems that some problem with GUI and Win2K exists.
I also get the problem of freezing GUI when loading Avisinth, but it is sporadic, sometimes I change file, then it works, then I take again the original file and it work with no problem.
Once that it seemed to be no way to make it work (it was an MJPEG video capture) I tried simply editing manually the avs file name into the HC.ini and then I launched the GUI, and it worked ????
Avisinth 2.56 and Win2K.
As I told at the end there seems to be workaround, but it is annoying and I do not know if there is something hidden behind.
No problem with the encoder itself, always working through the HC.ini file.
Regards, Centurione
ron spencer
21st February 2006, 15:41
thanks!!!!
Trahald
18th April 2006, 16:47
It's quite alot of work but yes, it's one of the things I want to implement but not restricted to 1280x720, max. resolution will be 1920x1152, some day :D
any update on the progress of that? my favorite encoders (cce and hcenc ) are limited to dvd res and under. quenc does support it but i was hoping to use hcenc. thanks
hank315
18th April 2006, 22:09
any update on the progress of that? my favorite encoders (cce and hcenc ) are limited to dvd res and under. quenc does support it but i was hoping to use hcenc. thanks
It won't be in the next release (HC018 will be out soon).
It needs an update of the data structure, will see if it can be done in HC019.
One thing is for sure, you need 1 GB memory to run it with resolution 1920x1152...
dragongodz
19th April 2006, 12:22
max. bitrate Kb/s: 90000
so can i assume this wasnt to be used for dvd authoring ? or maybe it was a typo ?
maximum bitrate: 20966
one of the things that i have change and will be in the next QuEnc is that when someone sets the max bitrate higher than 9800(max dvd) then buffer size is also increased. that could possibly help with this sort of case.
danpos
20th April 2006, 02:49
@dragongoz
Damn!! What a mess, man! ::eek: Yes, it was a typo, but this happened when I was setting HCEnc up at 3 h a.m (local time), what explains this sort of mistake, oh boy! :( In this way, I think that my post is useless and so I'm gonna erase it right now.
Sorry by the inconvenience.
Regards,
dragongodz
20th April 2006, 04:18
Yes, it was a typo, but this happened when I was setting HCEnc up at 3 h a.m (local time), what explains this sort of mistake, oh boy!
hahaha no problem. been there and done that myself. :)
however its still an interesting find and 1 which hank315 may want to make the change i mentioned above to combat. of course that wont fix human error but would be good for cases where people are really encoding to higher than dvd bitrates.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.