View Full Version : HC encoder
Pages :
1
2
3
4
5
6
7
8
9
10
11
[
12]
13
14
15
16
Prodater64
29th September 2005, 21:58
I just changed all 'DirectShowSource()' to 'AVISource()' in my AVS-files. No I'm reencoding using a batchfile. Luckily it are not that big files. ...
Just for test you can append to your avisource() command a selectrangeevery(1200,12) and it will give you a 1% sample. (or 1500,15, or 2500,25)
avisource("c:\...", false).SelectRangeEvery(1500,15)
colinb
30th September 2005, 16:29
I'm thinking of giving HC a try to convert letterboxed 4:3 to anamorphic 16:9 using crop and LanczosResize in avisynth.
The input will be an mpv file which was previously demultiplexed from a VOB. Can I open an mpv file directly in avisynth or do I need to pre-process it first?
How does HC know the frame rate to use in the encoding - there doesn't seem to be a setting for that? Yes it just has to encode each input frame so it shouldn't matter but presumably it needs to store the frame rate in an MPEG header?
I'd also be interested if anyone can suggest any avisynth filters that I could run on the decoded mpv which might help HC produce a better encode.
jdobbs
30th September 2005, 16:33
You could use DGINDEX/DGDECODE to read the mpv files through AVISYNTH. The framerate, etc., is available through the simulated AVI.
colinb
30th September 2005, 16:58
Thanks. Sorry for being thick but what do you mean by the simulated AVI ?
Does this mean that the frame rate value is preserved from the AVIsynth input (mpv) through to the AVIsynth output to HC (so you don't have to worry about it) ?
Prodater64
1st October 2005, 00:21
Thanks. Sorry for being thick but what do you mean by the simulated AVI ?
Does this mean that the frame rate value is preserved from the AVIsynth input (mpv) through to the AVIsynth output to HC (so you don't have to worry about it) ?
If you create an avs script without any fps filter resulting video will have same fps as original one.
Also you could want to change fps, then you should to use something like convertfps() in the script and the resulting video will have fps enclosed by parenthesis.
colinb
3rd October 2005, 09:33
Thanks. I just tried it out and the results are very impressive even without using any Avisynth filters.
The source video was encoded as interlaced top-field-first, but on stepping through the fields it was clear that the material itself was progressive. So I decided that it would be better to do the re-encoding as progressive. It seemed to make sense to let the encoder encode whole frames at once rather than split it into fields and encode those separately when they really were not true fields with temporal separation. And giving Avisynth a whole frame on which to perform the resampling/resizing seemed better than it having to resize the fields separately.
Also if I had encoded as interlaced and it was played back on a player which needed to re-letterbox it (for a 4:3 TV) then it would have to deinterlace, scale, then interlace again - it seemed to make more sense to just encode it as progressive then the player would just have to scale and interlace. I hope that makes sense.
This is my simple script (there may be some mistakes as this is from memory, not a cut & paste):
# Convert PAL letterbox to anamorphic
LoadPlugin("dgdecode.dll")
mpeg2source("myvideo.d2v")
AssumeFrameBased()
Crop(0,72,0,-72)
LanczosResize(720,576)
Unfortunately some letterboxed source material is encoded slightly zoomed-in (square-er than 16:9) so I'll have to decide whether to clip some of the top and bottom of of the image, or zoom out a little in the resize so that there are narrow black columns on either side. I didn't like the idea of zooming out much as this would introduce resampling in the horizontal direction aswell whereas the above only resamples in the vertical direction - although in practice it may make no visible difference!
Alternatively crop and stretch the image a little LESS vertically and hope that it isn't really noticeable. e.g.
Crop(0,60,0,-60)
LanczosResize(720,576)
Incidentally, is there likely to be a problem with resizing material sourced from a DVD in this way as regards the color sampling? i.e. is any correction to the color sampling needed before rescaling?
bucho
10th October 2005, 12:51
I was reading awhile ago about a problem with blocking. All the blocking occurs during high action scenes. I have yet to encode a clip using HCEnc that doesn't produce some blocking on my DVD Player (have confirmed this on at least one other DVD Player). All encoded clips play fine on a PC.
I use FitCD to create very simple scripts (aside from a crop and resize, no filters). I have tried various settings (using the standard 4000-8000 bitrates or using CQ values of 2-5), various clips and use the standard MPEG matrix. Passing the same script to QuEnc produces clips that play flawlessly on stand alone players.
Is there anything that I could be doing that would cause this?
urvieh
10th October 2005, 13:08
The current version seems to have problems with certain hardware players, a Pioneer 520 DVD-R in my case. This will be fixed in the next version.
From what I have understood, QuEnc uses the same motion vector length but does not produce blocking. Maybe the powers that be have a weird sense of humour ... :-).
Switch back to v0.14 until 0.16 is out.
Xeno86
10th October 2005, 18:06
On my Panasonic S35 QuEnc, FreeEnc, Mencoder and other libavcodec based encoders produce heavy blocking at motion scenes, but guess what... HC doesn't !!
Isn't that strange? :)
Boulder
10th October 2005, 18:30
Switch back to v0.14 until 0.16 is out.
Have you tried the v0.16 test release 2?
urvieh
10th October 2005, 20:28
No, I haven't. If it works fine with my stand-alone, I'll have enough time to wait. If it doesn't, it doesn't mean anything.
LigH
10th October 2005, 23:48
Just a remark:
Hank's MPEG-2 encoder was tested in version 0.15A in the german "PC-Magazin 11/05" in an article over four pages. Result: "Surprisingly good, almost equal to CCE, surpassing TMPGEnc in high motion scenes easily". Hmm... well, the "PC-Magazin" is not really one of the most respected magazines by professionals; but at least, good to see that HC is considered a serious competitor already!
__
Oops - there is already an own thread (http://forum.doom9.org/showthread.php?t=101033) about it ... sorry.
urvieh
11th October 2005, 08:24
LigH, don't get me wrong, HC is excellent, and so is DVD Rebuilder. I just wanted to say that there must be a problem if either DVD-RB or HC or both produce about 7 % too many data. Please understand it as an attempt to help, not a complaint. :)
FredThompson
11th October 2005, 09:41
I don't have that problem with HC and DVD-RB Pro 1.01 nor does it happen here with 0.94/5/whatever...the freeware version.
Prodater64
15th October 2005, 16:15
@hank315:
As you know (i think so) i was working a lot with HC, specially in cq_maxbitrate mode. Im waiting for HC with OPV and prediction routines and i hope the program could soon to bring back to the stream those bits tha ATM it merely cut.
Meanwhile i want to point you that the GOPs in multi pass vbr, cq and cq_maxbitrate modes are not all of same fixed length.
This behaviour in CQ mode is not desirable as it make prediction imprecise.
Maybe you already has thought this point, so my appointment is just in case.
Thanks.
See you.
asia_minor
18th December 2005, 06:59
Apologies if I should've looked deeper into the documentation or something, but I was wondering if there is a "restart pass 2" option (or something similar) in the GUI somewhere (like 0.15 had).
Anyway, this is a really nice MPEG2 app, and the price is perfect :)
Thanks hank315 for the work you put into this app!
hank315
19th December 2005, 00:20
No, the restart option is dumped...
It was just too complicated to support it with the new GUI.
LigH
19th December 2005, 00:50
After you had a session with katjarella (as far as she told me) - did you succeed in hunting the last bug of the 0.16 test version, towards a Release (Candidate)?
acki
20th December 2005, 14:57
Is there a known bug list somewhere ?
I've been having a problem with HC 0.16 since beta. Release is not
working either.
Scenario:
Two huffyuv (via ffdshow) encoded AVI files. ONE is EVEN fields and TWO is
ODD fields from interlaced source.
AVS script (mixfields.avs):
-----------------------------------------------------------------
ODD = avisource("two.avi").AssumeFieldBased()
EVEN = avisource("one.avi").AssumeFieldBased()
Interleave(EVEN,ODD)
Weave()
# No need to converttoyv12(), it is YV12 already.
-----------------------------------------------------------------
INI file feeded into (last) HCBATCH. Created with HCGUI 016
---------------------------------------------------------
*INFILE z:\mixfields.avs
*OUTFILE z:\mixedvideo.m2v
*LOGFILE z:\mixedvideo.log
*BITRATE 4000
*MAXBITRATE 8000
*FRAMES 1 18871
*PROFILE best
*ASPECT 4:3
*DC_PREC 10
*INTERLACED
*BFF
*CLOSEDGOPS
*PREVIEW
*MATRIX avamat7
-------------------------------------------------------------------
Another INI created with HIG
------------------------------------------------------------------
______________________________________________
HIG 0.16.1.0 INI.template
______________________________________________
*infile z:\mixfields.avs
*outfile z:\mixedvideo.m2v
*logfile z:\mixedvideo.log
*bitrate 4000
*maxbitrate 8000
*profile best
______________________________________________
*matrix AVAMAT7
*frames 0 0
*autogop
______________________________________________
*dc_prec 10
*cpu AUTO
*scanmethod ALT
*aspect 4:3
*bias 30
*timecode 0 0 0 0
*TFF
*interlaced
______________________________________________
Ther result is NOTHING. HCBATCH (0.16) opens and immediately closes. HCGUI 016 beta yields the same results. Nevertheless, HCBATCH 015 and HCGUI 015 work flawlessly.
Any hints anyone ? Is it just me or could it be a bug ?
Thanks.
Boulder
20th December 2005, 15:01
Use DirectShowSource to open the files. I've noticed that AVISource+ffdshow is not a working combination with HC.
acki
20th December 2005, 15:31
@Boulder: :thanks::thanks::thanks::thanks:
I was getting really nuts about this issue... er... is this be considered
a bug or just a feature ? I mean... is it intended or just faulty ?
Anyhow, thanks a lot again. And very many thanks to Hank315 for a _GREAT_
tool.
Regards.
vlada
21st December 2005, 01:43
@acki: I think it is a bug and it should be fixed. I can reproduce it too. I wanted to covert a DivX 3 movie to DVD and used FFDShow as VfW codec. I got the same behaviour as you, although the AVS script works fine in VD and HC015. Then I disabled DIV3 in FFDShow, so DivX 5 decoder is used, and everything works fine.
I noticed also another strange thing, if I select XviD decoder in FFDShow VfW configuration, it works without problems in HC. What is causing this issue? Can you fix it hank315, please? It is the only problem I have with your great encoder.
Btw. I have one feature requests: I'd like HC to automatically fill-in output LOG and M2V paths/files according to input AVS file. Thank you.
gilligan2
30th December 2005, 01:01
Hello Hank,and Happy Holidays to you. Just wanted to drop you a line to let you know how much i appreciate all your efforts on your encoder. I use it for any movies over 2 hours and 20 minutes because it does a very nice job with them. But i use CCE with the shorter ones because of the time difference in encoding.
Have you still got plans to enable multi processor/thread ability on HC Enc ? and if so,any ETA on when it would become available.
Thanks again for all your work !!
g:) :cool:
Schnoodledorfer
14th February 2006, 10:08
Sorry if this is posted elsewhere (or is common knowledge), but a forum search turned up only two mentions of "HCO17", and neither of them were on a thread specifically about HC Encoder. (One was about tools for HC, but some people might not be using them.)
Click here to download the latest HC Encoder.
Currently hosting version v0.17 (05-Feb-2006).
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
Last Updated ( Sunday, 05 February 2006 )
I also noticed another quote (on other pages for both HC016 (http://www.bitburners.com/Software/Download/Video_Codecs_and_Encoders/HC_Encoder/HC_Encoder_v0.16/) and HC017 (http://www.bitburners.com/Software/Download/Video_Codecs_and_Encoders/HC_Encoder/HC_Encoder_v0.17/)):
HC Encoder is high quality freeware MPEG-2 encoder by Hank315. HCEnc is supported by DVD-RB and is considered to be the best freeware encoder for DVD backups and is able to challenge all commercial encoders as well.
Is that hyperbole? I haven't tried it yet, so I don't know.
I also noticed that only the HC016 page has this:
License: Freeware
OTOH, I didn't see anything in the download that says anything about backing away from being freeware, so I assume that doesn't mean anything.
@Hank315: I hope you intended this to be public knowledge. :D Also, it might help people figure out the latest version and download location if you include that in your signature. I think (not certain) the forum software always displays the current sig, even when people are reading older posts. Just a suggestion.
smok3
14th February 2006, 10:15
Is that hyperbole? I haven't tried it yet, so I don't know.
is not (at least on the progressive DV & MJPEG source material i tested it on, didn't test interlaced stuff yet.)
also on blind comparision between mjpeg source and hc016 q5.maxbitrate a small group of ppl was not able to tell the difference on the 19" CRT monitor (iam sure lcd could show more thought).
Boulder
14th February 2006, 10:17
Sorry if this is posted elsewhere (or is common knowledge), but a forum search turned up only two mentions of "HCO17", and neither of them were on a thread specifically about HC Encoder. (One was about tools for HC, but some people might not be using them.)
Didn't you notice the thread "HC encoder, release 017" ? If you searched for O17, no wonder you didn't find what you wanted to ;)
Schnoodledorfer
15th February 2006, 15:02
Didn't you notice the thread "HC encoder, release 017" ? If you searched for O17, no wonder you didn't find what you wanted to ;)
No, I didn't see the HC encoder, release 017 thread, but I sure did see HC encoder, release 016. That figures! :rolleyes: Another thing that threw me is that the starter post on this thread still says:
HC016 latest release at: http://hcencoder.bitburners.com/
At least I didn't search for HCO17 - that was just a typo that fortunately I didn't make on the search page. But it wouldn't have done any good to search for '017' either; the forum doesn't index 3-letter words, apparently. I might have found it using Google (017+site:forum.doom9.org), though.
I assumed hank315 was busy and didn't think to post/edit anything here. Oh, well...
Sounddude
23rd February 2006, 06:57
@Hank315,
Would it be too much to ask to have the 017 gui work like the 015 version in respect to when you select your AVS file it automatically fills in the .m2v and .log file in the same location or is the way it is now from an earlier request?
Your encoder is about the only one i use now, keep up the great work
Boulder
23rd February 2006, 07:01
I also have one small request : could you make the fps show as floating point values, for example 5.4fps etc.
Firesurfer
23rd February 2006, 09:23
@hank315
First:
Please keep up the great work! :)
A bug:[edited]
Just a small glitch in the GUI, before loading a script or d2v, when you click the 'file length' radiobuttion, then put in 2000000 (thats what I did), click on the 'max bitrate' field and then back into 'file length' the GUI just crashes.
And a small request:
could the 'shutdown' option be made switchable while the encoder is running? Sometimes I just what to change that without restarting the whole process.
Firesurfer
Heini011
11th March 2006, 16:59
Hi,
i want to use HCenc 0.17 for dvd backup without colorspace-conversion like in cce. the movie is well denoised and sharp. i tried it serveral times, but the hc result is a not dvd-compliance stream, according to dvd-lab 1.4b2: "A serious error occured during compiling the files. the compile process can't continue... make sure..", no further hints of the problem...
i have no problems with cce generated streams...
hc.ini:
*INFILE d:\foo\foo-dvd.avs
*OUTFILE d:\foo\foo-hc.m2v
*LOGFILE d:\foo\foo.log
*BITRATE 5390
*MAXBITRATE 9000
*FRAMES 0 154283
*PROFILE best
*DC_PREC 10
*CUSTOMMATRIX
8 11 11 12 13 14 17 20
11 11 12 13 15 17 20 22
11 12 13 15 18 20 22 25
12 13 15 18 21 23 25 28
13 15 18 21 23 26 28 32
14 17 20 23 26 29 33 38
17 20 22 25 28 33 40 48
20 22 25 28 32 38 48 60
12 13 14 14 15 16 17 20
13 14 14 15 16 17 20 22
14 14 15 16 18 21 22 26
14 15 16 18 21 23 26 28
15 16 18 21 23 27 29 31
16 17 21 23 27 29 32 35
17 20 22 26 29 32 36 41
20 22 26 28 31 35 41 48
foo.log
-----------------------------------------
| HCenc - MPEG2 encoder - rel. 0.17.0.0 |
-----------------------------------------
input: d:\foo\foo-dvd.av
output: d:\foo\foo-hc.m2v
--------------------
| encoder settings |
--------------------
profile: BEST
frames: 0 154283
framerate: 25.00
aspect ratio: 16:9
bitrate Kb/s: 5390
max. bitrate Kb/s: 9000
closed gops: no
VBV check: yes
scene change det.: yes
interlaced: no
goplen,B-pic: AUTO
dc_precision: 10
scan method: ZIGZAG
bias: 0
chapter frames: 26
time code: 0 0 0 0
CPU: MMX/ISSE
matrix: CUSTOM
--------------------
| source stats |
--------------------
nr. of frames in source: 154284
width*height: 720*576
fps: 25.00
nr. of frames to encode: 154284
frames to encode: 0 - 154283
---------------------
| encoding - pass 1 |
---------------------
pass 1 encoding time: 1:49:24 (6564 s)
average fps: 23.5
--------------------------------
| encoding - intermediate pass |
--------------------------------
bitrate set to: 5390000 b/s
est. outfile length: 4060502 kB
intermediate encoding time: 0.5 s
---------------------
| encoding - pass 2 |
---------------------
pass 2 encoding time: 1:48:35 (6515 s)
average fps: 23.7
------------------
| encoding stats |
------------------
total encoding time: 3:38:00 (13080 s)
intra matrix used
8 11 11 12 13 14 17 20
11 11 12 13 15 17 20 22
11 12 13 15 18 20 22 25
12 13 15 18 21 23 25 28
13 15 18 21 23 26 28 32
14 17 20 23 26 29 33 38
17 20 22 25 28 33 40 48
20 22 25 28 32 38 48 60
non-intra matrix used
12 13 14 14 15 16 17 20
13 14 14 15 16 17 20 22
14 14 15 16 18 21 22 26
14 15 16 18 21 23 26 28
15 16 18 21 23 27 29 31
16 17 21 23 27 29 32 35
17 20 22 26 29 32 36 41
20 22 26 28 31 35 41 48
nr. of gops: 10559
nr. of frames: 154284
nr. of I-frames: 10559
nr. of P-frames: 42112
nr. of B-frames: 101613
average quant (non linear): 3.332
VBV underflows detected: 81
VBV underflows fixed: 81
minimum bitrate: 183
maximum bitrate: 8967
average bitrate: 5381
Boulder
11th March 2006, 17:18
Try muxing with MuxMan and see what it reports. It could be that you've run into the same problem I had some time ago, and it's caused by the HC rate control.
Heini011
11th March 2006, 17:50
dvd-lab pro 1.53 trial can compile my hc encoded project!
but dvd-lab 1.4b2 can only compile my cce encoded stream ?!
btw: same problem with HCenc 0.16
Heini011
12th March 2006, 00:45
ahh...
i worked on my pc while hcenc gui was running in the background. i wrote a text as hcenc suddenly finished the job and popped up. i was just hitting 'enter' and hcenc starts again and overwrites the already encoded file. :-(
please change that behaviour of the gui! it is really annoying!
Rockas
15th March 2006, 00:46
I just noticed (during my SynthEditor tests) that when the avrg bitrate is set to 8000kbps (or more... I didn't test inferior values yet) and the max is set to 9000... the second pass is slower than the first... anyone has noticed this?
Mug Funky
15th March 2006, 03:33
the closer avg is to max, the more underflows need fixing, the slower it goes.
HC's super-safe underflow prevention means GOPs get re-encoded, and the more the encode rides the max bitrate, the more this is going to happen :)
PlazzTT
18th March 2006, 17:04
I'm encoding from an AVS file (which loads an Arithyuv AVI using AviSource) and I find that the preview only works for first pass?
Not a critical problem, I'm just wondering if the problem is at my end?
Riuyin
19th March 2006, 21:11
:confused: I want to encode some videos (10 total), i try to use the batch mode and have some problems all my videos are loaded from an avs (dvd1.avs,dvd2.avs......dvd#.avs):
In the pdf of hc encoder it says "Parameters passed have a higher priority than the values supplied in the ini file.", but thats not true, let me explain what happen, these are my files:
HC.ini
*INFILE g:\dvd\dvd1.avs
*OUTFILE g:\dvd\ep.m2v
*BITRATE 4015
*MAXBITRATE 9000
*FRAMES 1 33566
*PROFILE best
*ASPECT 4:3
*CLOSEDGOPS
*MATRIX mpeg
I crated a bat file i will put only the first 2 lines.
encode.bat
HCbatch_016.exe –i G:\dvd\dvd1.avs –o G:\dvd\ep1.m2v –b 4015 –maxbitrate 9000 –ini G:\dvd\HC016\HC.ini
HCbatch_016.exe –i G:\dvd\dvd2.avs –o G:\dvd\ep2.m2v –b 4015 –maxbitrate 9000 –ini G:\dvd\HC016\HC.ini
The result of the first line HC crates a file name ep.m2v instead of ep1.m2v, after that HC overwrite the file, so HC takes the Parameters for input and output from the ini thats is not a problem.
I tried to create another hc.ini file (HC2.ini) and edit the first hc.ini i had:
HC.ini
*INFILE g:\dvd\dvd1.avs
*OUTFILE g:\dvd\ep1.m2v
*BITRATE 4015
*MAXBITRATE 9000
*FRAMES 1 33566
*PROFILE best
*ASPECT 4:3
*CLOSEDGOPS
*MATRIX mpeg
HC2.ini
*INFILE g:\dvd\dvd2.avs
*OUTFILE g:\dvd\ep2.m2v
*BITRATE 4015
*MAXBITRATE 9000
*FRAMES 1 33566
*PROFILE best
*ASPECT 4:3
*CLOSEDGOPS
*MATRIX mpeg
I chance the bat too.
encode.bat
HCbatch_016.exe –i G:\dvd\dvd1.avs –o G:\dvd\ep1.m2v –b 4015 –maxbitrate 9000 –ini G:\dvd\HC016\HC.ini
HCbatch_016.exe –i G:\dvd\dvd2.avs –o G:\dvd\ep2.m2v –b 4015 –maxbitrate 9000 –ini G:\dvd\HC016\HC2.ini
Now the problem is: First line create a ep1.m2v cuz thats the output in the HC.ini, but in the second line hc does the same that in the first line (overwrites the ep1.m2v) so HC doesn't change the ini too.
If i delete *INFILE and *OUTFILE in the ini i get an error "input not complete" as you can see the batching mode is not passing any of the parameters.
Ebobtron
19th March 2006, 21:34
@Riuyin
What are we going to do with you. :)
Take the ini file out of your batch file and use it for the things common to all files and pass only those things that are dif.
If you pass the ini file in the command line, HC will do as told.
Try that. I think you'll find that it will work.
Shameless plug
http://members.aol.com/avsfilmcutter
Riuyin
19th March 2006, 21:50
@Riuyin
What are we going to do with you. :)
Take the ini file out of your batch file and use it for the things common to all files and pass only those things that are dif.
If you pass the ini file in the command line, HC will do as told.
Try that. I think you'll find that it will work.
Shameless plug
http://members.aol.com/avsfilmcutter
I did as you told (Take the ini file out of your batch file) but i can't delete *INFILE and *OUTFILE in the ini so it is doing the same.
Ebobtron
19th March 2006, 22:17
you do
HCbatch_016.exe –i G:\dvd\dvd1.avs –o G:\dvd\ep1.m2v –b 4015 –maxbitrate 9000 –ini G:\dvd\HC016\HC.ini
do this instead
HCbatch_016.exe –i G:\dvd\dvd1.avs –o G:\dvd\ep1.m2v –b 4015 –maxbitrate 9000
or this if the above does not work
HCbatch_016.exe –i "G:\dvd\dvd1.avs" –o "G:\dvd\ep1.m2v" –b 4015 –maxbitrate 9000
the last line works for me in filmcutter (http://members.aol.com/avsfilmcutter) with a fixed INI file than looks like this
*INFILE e:\christmas.avs
*OUTFILE e:\pop2.m2v
*BITRATE 4000
*MAXBITRATE 8000
*FRAMES 0 7572
*INTERLACED
*TFF
*NOSEQ_ENDCODE
*MATRIX mpeg
note that inserting a space in front of a line disables it.
oops my bad try HC 17 if your are indeed using 16
Riuyin
19th March 2006, 22:48
:rolleyes: I'm missing something look.
HC:ini
*INFILE g:\dvd\dvd1.avs
*OUTFILE g:\dvd\ep1.m2v
*BITRATE 4015
*MAXBITRATE 9000
*FRAMES 0 33565
*PROFILE best
*ASPECT 4:3
*CLOSEDGOPS
*MATRIX mpeg
I'm this case using 017 ver, i will put some imgs
http://www.geocities.com/riuyin_vahn/error1.JPG
http://www.geocities.com/riuyin_vahn/error2.JPG
As you can see the input and output is the same and look that in both cases arguments are not passed
Ebobtron
19th March 2006, 23:21
and your hc.ini is in the same folder as HCenc_017.exe ??
I am missing something too.
Riuyin
19th March 2006, 23:26
Yes the hc.ini is in the same folder
A solution just came to my mind and it is just that after the fisrt line in the bat file, we can prevent the .m2v file to be overwrite like this:
.bat
HCenc_017.exe –i "G:\dvd\dvd1.avs" –o "G:\dvd\ep1.m2v" –b 4015 –maxbitrate 9000
del G:\dvd\dvd1.avs
ren G:\dvd\dvd2.avs dvd1.avs
ren G:\dvd\ep.m2v ep1.m2v
HCenc_017.exe –i "G:\dvd\dvd1.avs" –o "G:\dvd\ep1.m2v" –b 4015 –maxbitrate 9000
del G:\dvd\dvd1.avs
ren G:\dvd\dvd3.avs dvd1.avs
ren G:\dvd\ep.m2v ep2.m2v
:rolleyes:I should have think that before
Ebobtron
20th March 2006, 00:20
that is a solution, but not much of one. I have tried to duplicate your trouble and can not, sorry I am no help. :o
The only time I have trouble passing arguments from cli to HC is when I introduce an error.
Boulder
20th March 2006, 07:45
Did you try feeding only the ini file in HCenc_017? I always create an ini file for each video clip I need to encode and create a bat file which only loads the ini file in HC.
Your two ini files are the same except for the input and output file so there's no need to add any other cli parameters.
JasonFly
27th March 2006, 18:52
Hi!
I 've tried to use HCenc0.17 to encode some VHS capture in MPEG2 but I've been faced with some problems. I know it's not related to HCenc but I want to know if there is a possible workaround.
The problem is that I have 39 2Gb (lossless lagarith) files which I load into Hcenc with avisynth's AVISource(). I've seen in the avisynth forum that AVISource isn't able to load a high number of files at the same time.(VirtualDub doesn't want to open an avs file with more than 70 files for example)
Hcenc is able to open the avs with 39 files(the preview also works) but when I start the encode, it doesn't want and close(ERROR, invoke, pass1). I've tried to encode without using the GUI with a .bat but again, HVEnc doesn't want and show the same error message.
Is there a work around or should I'l try an other way to load my files to HCenc?
Boulder
27th March 2006, 19:05
What is your script?
JasonFly
27th March 2006, 19:21
Her is my script:
Clip=AviSource("I:\1993\1993.00.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.01.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.02.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.03.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.04.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.05.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.06.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.07.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.08.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.09.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.10.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.11.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.12.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.13.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.14.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.15.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.16.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.17.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.18.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.19.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.20.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.21.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.22.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.23.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.24.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.25.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.26.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.27.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.28.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.29.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.30.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.31.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.32.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.33.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.34.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.35.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.36.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.37.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.38.avi").ChangeFPS(25000, 1000)++AviSource("I:\1993\1993.39.avi").ChangeFPS(25000, 1000)
Deinterlace=Clip.Telecide(order=1,guide=2,post=2,gthresh=15,vthresh=20,dthresh=4,blend=false,nt=20,show=false).ChromaShift(C=6).cnr2("xxx", 4, 5, 255).ColorYUV(gamma_y=16,cont_y=16,cont_u=24,cont_v=24).Fluxsmooth(7,7).crop(20,2,698,570).BicubicResize(720,576,0.33,0.33).Blockbuster(method="noise",block_size=4,detail_min=1,detail_max=10,luma_threshold=1,luma_offset=0,mean=0,variance=0.5,cache=2048,seed=0)
Return Deinterlace
Boulder
27th March 2006, 20:32
Try adding ConverttoYV12() at the end of the script.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.