View Full Version : HCenc 022 released
Irakli
9th March 2008, 21:47
Newbie question alert :eek:
I'm encoding a VC-1 source which has an aspect ratio of 2.40:1. Which aspect ration should I use, 16.9:1 or 2.21:1?
I think it's better to add black bars to top and bottom of your source to make it 16:9 and encode as 16:9 in HC.
Otherwise, the aspect ratio will be distorted. Also, 2.21:1 is not supported for DVD.
Regards,
Irakli
Boulder
9th March 2008, 22:09
A little bug in HC022.1: when the lossless option is enabled and you abort the encoder during the first pass, the temporary lossless file is not deleted from the db directory.
A feature request regarding the lossless file: would it be possible to show an estimated final size for the file?
mparter
10th March 2008, 15:24
I've been getting the source mismatch errors on my first attempts at using HC to encode a VC-1 source to MPEG2.
Last night, I installed the latest version of AviSynth (2.8 Alpha2 I think). Also, when using EvoDemux, I removed everything from the source and left only the main movie in and remuxed this to a single EVO file.
I then created a graph using the Haali Media Splitter as the input for the EVO and the WMVideo decoder as the output. I then used this in a basic AviSynth script using a DirectShowSource with the usual parameters, e.g. framerate, seek, etc
I then ran this through HC setting the avg bitrate at 10000 with a max of 20000, a DC Prec of 10, the MPEG matrix and the Normal profile.
I haven't had a chance to check the file yet but this time I got no errors, with the ecnode taking around 9.5 hrs :)
In essence the only things I did different were;
Updated AviSynth to 2.5.8 (Alpha2)
Made sure the EVO contained only video
Used the Normal profile in HC instead of Best
Chumbo
10th March 2008, 22:25
I've been getting the source mismatch errors on my first attempts at using HC to encode a VC-1 source to MPEG2.
Last night, I installed the latest version of AviSynth (2.8 Alpha2 I think). Also, when using EvoDemux, I removed everything from the source and left only the main movie in and remuxed this to a single EVO file.
I then created a graph using the Haali Media Splitter as the input for the EVO and the WMVideo decoder as the output. I then used this in a basic AviSynth script using a DirectShowSource with the usual parameters, e.g. framerate, seek, etc
I then ran this through HC setting the avg bitrate at 10000 with a max of 20000, a DC Prec of 10, the MPEG matrix and the Normal profile.
I haven't had a chance to check the file yet but this time I got no errors, with the ecnode taking around 9.5 hrs :)
In essence the only things I did different were;
Updated AviSynth to 2.5.8 (Alpha2)
Made sure the EVO contained only video
Used the Normal profile in HC instead of Best
Thanks for sharing this info. I've had nothing but problems with vc1 and this error. I've tried several containers, splitters, and on and on. This weekend alone, I tried reencoding my vc1 source 5 or 6 times with each one having the mismatch error.
I'm going to try avisynth 2.5.8 alpha 2 and see if that makes a difference.
btw, if you're doing HBR reencodes, consider using the Professional matrix. :)
mparter
10th March 2008, 22:43
No problem. Don't know much about this stuff but happy to share my findings, etc
My encode was fine. When muxed with the ac3 the audio was out of sync but fixed this by using a delay of 1000ms :)
Is the "Professional" matrix a custom one because I don't have it in my list of matrices?
Chumbo
11th March 2008, 02:20
...Is the "Professional" matrix a custom one because I don't have it in my list of matrices?
You have to browse and select the file professional.cqm from the matrix folder.
Rogi
11th March 2008, 19:04
First of all, many thanks for this wonderful piece of software, and must admit I use it exclusively.
I have one small question, do you consider implementation of minimum bitrate option?
Thank you in advance for your answer.
ron spencer
11th March 2008, 19:52
min bitrate could be good, but most use VBR Bias of 30 to achieve a reasonable effect in this case
mparter
12th March 2008, 08:59
Thanks for sharing this info. I've had nothing but problems with vc1 and this error. I've tried several containers, splitters, and on and on. This weekend alone, I tried reencoding my vc1 source 5 or 6 times with each one having the mismatch error.
I'm going to try avisynth 2.5.8 alpha 2 and see if that makes a difference.
btw, if you're doing HBR reencodes, consider using the Professional matrix. :)
Did you get any further with this? Since changing, I've done 3 encodes and all have been fine.
Chumbo
13th March 2008, 03:18
Did you get any further with this? Since changing, I've done 3 encodes and all have been fine.
LOL, I just got on to provide the info. :) Thanks for asking.
No luck unfortunately. I did several encode runs with 2.5.8 of avisynth and it made no difference. If anything, one thing seemed consistent, the error always apeared very early on in the 2nd pass, in the first 2000 frames. Also, the error mismatch message is now "printing" twice, back-to-back in the log.
I was using the professional matrix in all the cases. I'm running another one now using the MPEG STANDARD matrix just out of curiosity. If it doesn't show the error, I'll run it a couple more times just to be sure.
btw, I've never run into this issue with anything but vc-1 sources. And it doesn't matter what splitter, container, decoder and so on I use, I very rarely get a clean 2-pass encoding with vc-1. Just agonizing.
Boulder
13th March 2008, 05:28
What script did you use, and did you enable the Avisynth script reloading in HC? You could use the lossless file mode if you have the extra HD space for it.
Chumbo
13th March 2008, 15:34
Well, I've used many scripts with different setting when I started having this problem. Mainly tried every seek setting and different containers, e.g., avi. But here's my usual script that I use:directshowsource("video.grf",fps=23.976,audio=false,seekzero=true,framecount=xxxxxx)
converttoyv12()My graphedt graph is usually Haali Simple Splitter->WMVideo Decoder DMO, but I've had the problem too with others, e.g., File Async->Sonic HD Demuxer->Sonic Video Decoder.
Yes, I've tried both, reloading and not reloading AVS. Per my message above, I just tried installing 2.5.8 Alpha 2 to see if it impacts anything. I tried a different matrix too and that didn't help.
I'll use the 22.1 Beta and select the lossless option now and see if that makes a difference. Thanks for that suggestion. :)
mparter
13th March 2008, 18:10
Well, I've used many scripts with different setting when I started having this problem. Mainly tried every seek setting and different containers, e.g., avi. But here's my usual script that I use:directshowsource("video.grf",fps=23.976,audio=false,seekzero=true,framecount=xxxxxx)
converttoyv12()My graphedt graph is usually Haali Simple Splitter->WMVideo Decoder DMO, but I've had the problem too with others, e.g., File Async->Sonic HD Demuxer->Sonic Video Decoder.
Yes, I've tried both, reloading and not reloading AVS. Per my message above, I just tried installing 2.5.8 Alpha 2 to see if it impacts anything. I tried a different matrix too and that didn't help.
I'll use the 22.1 Beta and select the lossless option now and see if that makes a difference. Thanks for that suggestion. :)
I'm using the same script as you bar the converttoyv12() setting. Have (can) you tried it without that?
Chumbo
13th March 2008, 19:59
I'm using the same script as you bar the converttoyv12() setting. Have (can) you tried it without that?
HC expects yv12 input, so you have to use either the pixel_type DirectShowSource property set to "YV12" or the ConvertToYV12(). I've tried both.
I'm curious how you're able to use HC. I have tried to not use the yv12 convert but HC gave an error in every case where I omitted converttoyv12(). Are you using something in your graph like the color space converter to do that rather than in the script?
mparter
13th March 2008, 20:25
I'm curious how you're able to use HC. I have tried to not use the yv12 convert but HC gave an error in every case where I omitted converttoyv12(). Are you using something in your graph like the color space converter to do that rather than in the script?
Nope. As mentioned above, I'm only using the Haali Media Splitter and the WMVideo Decoder in my graphs.
Everything works fine. :confused:
Chumbo
14th March 2008, 04:38
Nope. As mentioned above, I'm only using the Haali Media Splitter and the WMVideo Decoder in my graphs.
Everything works fine. :confused:
Ah, you're right. I was thinking of the ones that use other decoders like Sonic's. WMVideo Decoder DMO outputs yv12 already. Duh, on my part. Sorry, I've done so many different scenarios, I'm getting them confused.
Good news though, the 22.1 Beta seems to have worked just fine using the lossless method. Used almost 100Gig for a movie that's 1hr 40min. It was faster too. So a big THANK YOU to Boulder for that suggestion. :)
I'm going to run a few more that had the mismatch errors using lossless over the next week and see how those go as well. Gotta dig up a drive for this now. ;)
phXql
14th March 2008, 11:30
Sure these mismatch errors disappear when you use the lossless file. Mismatch errors are no bug in HCEnc, they are bugs in the decoder. If the decoder doesn't output the same picture in 2nd pass as in 1st pass, a mismatch error is reported. With lossless file HCEnc doesn't use the encoder in the 2nd pass, it stores the output from the 1st pass in the lossless file and use it as source for second pass. So the picture from the 2nd pass equals the picture from the 1st pass, because it is the same picture... ;)
Chumbo
14th March 2008, 15:16
Sure these mismatch errors disappear when you use the lossless file. Mismatch errors are no bug in HCEnc, they are bugs in the decoder. If the decoder doesn't output the same picture in 2nd pass as in 1st pass, a mismatch error is reported. With lossless file HCEnc doesn't use the encoder in the 2nd pass, it stores the output from the 1st pass in the lossless file and use it as source for second pass. So the picture from the 2nd pass equals the picture from the 1st pass, because it is the same picture... ;)
I figured as much. :) Thanks for the confirmation.
AlanHK
16th March 2008, 09:20
HC crash:
I've just encoded a 13 similar files (TV episodes).
I use a batch file command:
set rate=1727
set ar=4:3
set hc=P:\HCenc\HCenc_022
set mpgd=s:\mpg\
for %%A in ( a1.avs a2.avs a3.avs a4.avs d1.avs d2.avs d3.avs d4.avs d5.avs d6.avs d7.avs e1.avs e2.avs)
do (
%hc% -i %%~fA -o %mpgd%%%~nA.m2v -b %rate% -aspectratio %ar% -pulldown -profile best -matrix qlb -frames all -noini -2pass -maxbitrate 8000 -log %%~dpAhenc.log
call avsaften %%~fA
move %%~dpnA.ac3 %mpgd%
)
12 of the files worked fine. One however failed, the encode simply aborting with no error messages.
It also crashed if it was the only file listed in the batch.
The AVS opened in VDub without any problems;
AVISource("e2.avi")
EnsureVBRMP3sync()
LanczosResize(672,552)
AddBorders(24, 16,24, 8)
AmplifydB(-1.5)
Identical to the other files except for the filename and audio amp.
So I tried HCGui and it encoded with the same settings , no problems.
The respective log files are :
Failed batch file encode log:
-----------------------------------------
| HCenc - MPEG2 encoder - rel. 0.22.1.0 |
-----------------------------------------
MPEG profile@level: MP@ML
input: p:\dvd\e2.avs
output: s:\mpg\e2.m2v
--------------------
| encoder settings |
--------------------
profile: BEST
frames: 0 - 33182
framerate: 25.000
aspect ratio: 4:3
bitrate Kb/s: 1727
max. bitrate Kb/s: 8000
pulldown: no
closed gops: no
VBV check: yes
scene change det.: yes
interlaced: auto, TFF
goplen,B-pic: AUTO
dc_precision: 9
scan method: auto
bias: 0
chapter frames: 0
time code: 0 0 0 0
CPU: MMX
priority: idle
SMP active: no
matrix: QLB
luminance gain: no
------------------
| source stats |
------------------
nr. of frames in source: 33183
width*height: 720x576
fps: 25.000
nr. of frames to encode: 33183
frames to encode: 0 - 33182
Successful HCGui log:
-----------------------------------------
| HCenc - MPEG2 encoder - rel. 0.22.1.0 |
-----------------------------------------
MPEG profile@level: MP@ML
input: p:\dvd\e2.avs
output: S:\mpg\e2.m2v
--------------------
| encoder settings |
--------------------
profile: BEST
frames: 0 - 33182
framerate: 25.000
aspect ratio: 4:3
bitrate Kb/s: 1727
max. bitrate Kb/s: 8000
pulldown: no
closed gops: no
VBV check: yes
scene change det.: yes
interlaced: no, BFF
goplen,B-pic: AUTO
dc_precision: 9
scan method: zigzag
bias: 0
chapter frames: 0
time code: 0 0 0 0
CPU: MMX
priority: idle
SMP active: no
matrix: QLB
luminance gain: no
------------------
| source stats |
------------------
nr. of frames in source: 33183
width*height: 720x576
fps: 25.000
nr. of frames to encode: 33183
frames to encode: 0 - 33182
---------------------
| encoding - pass 1 |
---------------------
pass 1 encoding time: 0:33:10 (1989.81 s)
fps: 16.7
--------------------------------
| encoding - intermediate pass |
--------------------------------
bitrate set to: 1727 kb/s
est. outfile length: 279820 kB
intermediate encoding time: 0.03 s
---------------------
| encoding - pass 2 |
---------------------
pass 2 encoding time: 0:30:35 (1835.28 s)
fps: 18.1
------------------
| encoding stats |
------------------
intra matrix used
8 16 19 22 26 27 29 34
16 16 22 24 27 29 34 37
19 22 26 27 29 34 37 39
22 22 26 27 29 34 38 42
22 26 27 29 32 36 40 50
26 27 29 32 36 40 50 61
26 27 29 35 40 50 59 75
27 29 35 40 50 59 75 89
non-intra matrix used
16 17 18 19 20 21 22 23
17 18 19 20 21 22 23 25
18 19 20 21 22 23 24 26
19 20 21 22 23 24 26 28
20 21 22 23 25 26 28 29
21 22 23 24 26 28 29 31
22 23 24 26 28 29 31 34
23 24 25 28 29 31 34 38
nr. of gops: 2265
nr. of frames: 33183
nr. of I-frames: 2265
nr. of P-frames: 8966
nr. of B-frames: 21952
average bitrate: 1727
minimum bitrate: 156
maximum bitrate: 5358
bytes in bitstream: 286812667
bits in bitstream: 2294501336
average Quantizer: 6.618
total CPU time: 1:00:46 (3645.83 s)
total elapsed time: 1:03:46 (3826.26 s)
The only difference I can see is that the batch encode used
"scan method:auto" while the GUI method used "scan method:zigzag".
Trying HCGui using the "scan auto" setting did not crash, though I didn't run it to completion (the batch crashed almost immediately).
---------------
Postscript:
I made some changes in the AVS.
Original (crashes):
AVISource("e2.avi")
EnsureVBRMP3sync()
LanczosResize(672,552)
AddBorders(24, 16,24, 8)
AmplifydB(-1.5)
Delete Amplify line: DOES NOT crash:
AVISource("e2.avi")
EnsureVBRMP3sync()
LanczosResize(672,552)
AddBorders(24, 16,24, 8)
#AmplifydB(-1.5)
Delete EnsureVBRMP3sync line: DOES NOT crash:
AVISource("e2.avi")
#EnsureVBRMP3sync()
LanczosResize(672,552)
AddBorders(24, 16,24, 8)
AmplifydB(-1.5)
Delete AddBorders and simplify resize line: DOES NOT crash:
AVISource("e2.avi")
EnsureVBRMP3sync()
LanczosResize(720,576)
AmplifydB(-1.5)
However, as mentioned, the other 12 files were almost identical to the original, and did not crash.
mparter
16th March 2008, 21:40
Is it possible to use this with an h264 file? If so, can someone give me some pointers?
Thanks.
hartford
27th March 2008, 02:06
For h264 use DGAVCIndex. Feed HCenc the avs containing the result. Worked fine for me.
@hank315
Request feature
Could you add an option to CLI and INI file to setup HCenc window status? Something like:
*STATUS
parameter maximized, normal, minimized
Status not required
Default normal
Example *STATUS minimized
Thanks for your great app
:)
Bye
45tripp
2nd April 2008, 12:40
Request feature
i'll ask for gui drag and drop again please
fib0by
4th April 2008, 05:16
However, as mentioned, the other 12 files were almost identical to the original, and did not crash.
Something similar happened to me a while ago, the files were DV made with my digital camcorder.
But when I launched HCenc manually on the file that previously failed, it worked fine. :confused:
It was an isolated occurrence anyway.
EDIT: Oh, and I'm running it on Linux under WINE.
video_magic
5th April 2008, 11:14
Request feature
i'll ask for gui drag and drop again please
Is that just for the initial avs, or the avs plus an ini - or is it for a batch 'queue of jobs' feature?
45tripp
5th April 2008, 19:49
Is that just for the initial avs, or the avs plus an ini - or is it for a batch 'queue of jobs' feature?
are you going to implement it? :)
i'd be happy with drag and drop of input to gui.
although it could be done for ini as well,
and there could be a 'preset save' function added,
and batch queuing i'm sure has been requested before,
and will continue to be requested.
fib0by
5th April 2008, 20:59
and batch queuing i'm sure has been requested before
As in processing more than one file? But that's easily achievable with an external script.
I could be biased since I'm a Linux user and I'm really running HCenc under WINE (Windows Emulator) on Linux, and scripting is very strong on Linux, but I'm sure it can be done on Windows too. Just read one of the many Windows Scripting tutorials on the net, either for BAT files or VBScript it doesn't matter, then write your own script. It will be more powerful and much more flexible than any batch queuing that will ever be implemented in HCenc.
http://msdn2.microsoft.com/en-us/library/ms950396.aspx
http://www.pctools.com/guides/scripting/
http://www.pctools.com/guides/article/id/2/
My script takes a bunch of edited DV files, runs HCenc to create a video track out of each one, runs SoundOut/AviSynth to create their respective audio tracks, runs a multiplexer on each audio/video pair to create VOB files, runs a DVD authoring program on all VOB files. What's left to do at the end is just burn the DVD. And that's all in one script that I wrote in 30 minutes one day. It makes it so easy to create a DVD, since the only manual part is editing the initial DV files. Then I run the script, test the DVD image, then burn - the biggest portion of this process is fully unsupervised.
mikeytown2
5th April 2008, 23:04
I made a batch program for HCenc, its simple
http://www.autoitscript.com/forum/index.php?showtopic=58691&st=0&p=444330&#entry444330
The code needs some work, but it is functional & simple. Uses the default ini, so all files get processed the same.
phXql
6th April 2008, 07:34
If you need HCEnc batch processing, try EncSchedGui (http://forum.doom9.org/showthread.php?t=128312).
45tripp
7th April 2008, 08:34
As in processing more than one file? But that's easily achievable with an external script.
no doubt
It will be more powerful and much more flexible than any batch queuing that will ever be implemented in HCenc.
still the request will pop up,
batching within the main interface,
uncomplicated for end user.
click click click
that there were quick replies just to the hint of the feature,
and that secondary programs have been written to handle the job,
just shows how much integrating a batch tool would be appreciated.
i don't batch,
i'm a fan of the manual,
and painfully slow.
i just want drag and drop :)
but i'll be sure to check out your guys' solutions,
give them a taste.
thanks
AlanHK
7th April 2008, 09:55
still the request will pop up,
batching within the main interface,
uncomplicated for end user.
click click click
i don't batch,
i'm a fan of the manual,
and painfully slow.
i just want drag and drop :).
See HCbatchGUI (http://www.videohelp.com/tools/HCbatchGUI)
This does exactly what you want.
that there were quick replies just to the hint of the feature,
and that secondary programs have been written to handle the job,
just shows how much integrating a batch tool would be appreciated.
Actually, it shows that people can easily use HC in their own workflow.
Integrate it into a nice GUI and you lose the flexibility.
In any case Hank is a one man show, and if he spends time on that, he won't be spending time on the engine.
Since several people have made elaborate GUIs for it, why should he waste his time?
Personally, I have a couple of batch files I use. This for instance:
echo: input AVS files
echo: output m2v at constant Q and AC3
set CQrate=4.5
set ar=16:9
::set ar=4:3
set hc=P:\HCenc\HCenc_022
set mpgd=s:\mpg\
:LOOP
for %%A in (
%1
) do (
%hc% -i %%~fA -o %mpgd%%%~nA.m2v -aspectratio %ar% -pulldown -profile best -matrix qlb -frames all -cq_maxbitrate %CQrate% -maxbitrate 8000
rename %mpgd%%%~nA.m2v %%~nA.m2v
call avsaften %%~fA
move %%~dpnA.ac3 %mpgd%
)
SHIFT
if %1X==X goto END
goto LOOP
:END
type
cq avsfile1.avs avsfile2 avsfile3.avs
and it creates an m2v at constant Q and an AC3 for each AVS.
I can then drop these into GuiforDVDAuthor and generate and burn a DVD.
I make the inital AVS using FitCD, and then modify to taste. Filters, trims, etc.
It might not suit everyone, but it suits me, and the flexibility of the command line makes that possible.
I have a similar one for batching several files for a normal two-pass encode; I usually run that overnight.
45tripp
7th April 2008, 23:28
See HCbatchGUI (http://www.videohelp.com/tools/HCbatchGUI)
This does exactly what you want.
it doesn't
Actually, it shows that people can easily use HC in their own workflow. Integrate it into a nice GUI and you lose the flexibility.
why? is cli to die?
It might not suit everyone, but it suits me, and the flexibility of the command line makes that possible.
exactly.
i know
In any case Hank is a one man show,
i know
Since several people have made elaborate GUIs for it, why should he waste his time?
always reason if you look for it.
just a reminder.
i'm not requesting a batch utility,
i'm not planning on using a batch utility.
thanks for the suggestions anyway though :)
AlanHK
8th April 2008, 03:43
it doesn't
And if Hank wasted his time writing a nicer front end it probably wouldn't do what you want either.
What is it that you want, anyway?
why? is cli to die?
If Hank spends his time on a GUI, he spends less time on the core.
Quote:Originally Posted by AlanHK
Since several people have made elaborate GUIs for it, why should he waste his time?
always reason if you look for it.
Sorry, I still don't understand.
Really, why not use one of the several third-party GUIs?
just a reminder.
i'm not requesting a batch utility,
i'm not planning on using a batch utility.
thanks for the suggestions anyway though :)
Since you never say what you do want, makes it hard to make any suggestions.
45tripp
8th April 2008, 08:09
Since you never say what you do want, makes it hard to make any suggestions.
if you read back about 10 posts you;ll see
:)
video_magic
8th April 2008, 18:00
Hmmm.. this is quite interesting :)
When You say "drag input files" do You mean drag video files (rather than a created avs script)?
I guess that is what You would like to use Drag 'N' Drop for? And perhaps you have some ini files as templates to drag rather than having to click through and set each individual encode.
If we are looking at D'N'D as a time-saver and You don't really want it for batch-encoding :)
mikeytown2
9th April 2008, 08:08
Updated my Program... can auto generate avs files if needed. Once again this is used for only one ini file. if u want multiple ini files, the code gets vastly more complicated; thats what the other programs are there for.
http://img341.imageshack.us/img341/8752/screenshoteq1.th.png (http://img341.imageshack.us/my.php?image=screenshoteq1.png)
http://www.autoitscript.com/forum/index.php?showtopic=58691&st=0&p=503684&#entry503684
Dkruskie
9th April 2008, 20:39
Thanks for the update Mike
45tripp
10th April 2008, 00:27
oh my God...
my request is for drag and drop of input files into the gui,
d'n'd of already supported formats.
i'm not asking to extend support of input formats.
(although avi input was requested if i recall, and Hank said he'd consider, time permitting)
And perhaps you have some ini files as templates to drag rather than having to click through and set each individual encode.
that's probably a good idea.
You don't really want it for batch-encoding :)
no.
i'm not interested in batching.
but.
My script takes a bunch of edited DV files, runs HCenc...
post it if you'd like to set people in the right direction.
See HCbatchGUI (http://www.videohelp.com/tools/HCbatchGUI)
This does exactly what you want.
as it stands i don;t like it.
If you need HCEnc batch processing, try EncSchedGui (http://forum.doom9.org/showthread.php?t=128312).
i think it needs a lot of polish. a lot.
Updated my Program... can auto generate avs files if needed. Once again this is used for only one ini file. if u want multiple ini files, the code gets vastly more complicated; thats what the other programs are there for.
http://www.autoitscript.com/forum/index.php?showtopic=58691&st=0&p=503684&#entry503684
not bad.
half the game is freedom of multiple templates...
you make it sound like there are dozens of programs for the job... :)
regarding HC_Batch.
i find 'always on top' very annoying.
option to set destination folder?
you have a bug:
add a file with the 'add files' button and nothing works.
furthermore, you have to kill the program and restart to get things working again.
thanks
mikeytown2
10th April 2008, 03:04
oh my God...
regarding HC_Batch.
i find 'always on top' very annoying.
option to set destination folder?
you have a bug:
add a file with the 'add files' button and nothing works.
furthermore, you have to kill the program and restart to get things working again.
thanks
Responded here, Didn't want this to get too off topic.
http://forum.doom9.org/showthread.php?p=1124011#post1124011
Chumbo
12th April 2008, 05:48
@hank,
I noticed this in my last log and wanted to let you know about it. :) I quickly looked through a few of my previous logs and did not see this. Please let me know if you need any other info.
I am using the lossless file option btw which is very nice. Thank you much for that.
-----------------------------------------
| HCenc - MPEG2 encoder - rel. 0.22.1.0 |
-----------------------------------------
...
---------------------
| encoding - pass 2 |
---------------------
*** INFO, adjusting average bitrate: -0.02 %
*** INFO, adjusting average bitrate: -0.04 %
*** INFO, adjusting average bitrate: -0.05 %
*** INFO, adjusting average bitrate: -0.08 %
*** INFO, adjusting average bitrate: -0.09 %
*** INFO, adjusting average bitrate: -0.11 %
*** INFO, adjusting average bitrate: -0.13 %
*** INFO, adjusting average bitrate: -0.15 %
pass 2 encoding time: **:**:** (-46952.31 s)
fps: -4.4
...
total CPU time: 35:33:39 (128018.62 s)
total elapsed time: 0:**:** (-176.31 s)
rcubed
9th May 2008, 23:35
@Hank,
edited: Sorry for screwing around with this post so much. I finally found the entry in the thread that has the link to HC022.1. From what I've been able to gather the use lossless check box in Settings 3 would accomplish what I have been trying to do by building an intermediate file. Would it be possible to put the link to any beta versions that you are willing to share into the 1st entry of the thread to make it easier to find them, and possibly a link to the discussion around it?
I had been building an intermediate file using VirtualDub with direct stream copy since the source was a capture and in avi form. I've noticed other approaches that were doing this, but encoding using Huffy. Just for information is there something wrong with using direct stream copy?
Also Hank could you elaborate on what the differences are in the Settings 1 tab, interlacing options. For example why one might select them. Sorry if this seems like a dumb newbie question but I've always been confused on this topic.
Thanks, I really appreciate the effort you've taken with the development of this encoder, and I use it almost exclusively and as the encoder of choice with DVD-RB.
rcubed
rcubed
10th May 2008, 18:41
Hank,
Version 22.1 with lossless selected solves the mismatch problem very nicely, plus really speeds up the total encode time. Thanks again. The file size of the temp file seems reasonable give the original size of the input file, good compression.:):cool:
One or two requests. If two instances of HC are being run with the lossless option, it's necessary to specify different folders for the lossless files, the current implementation tries to create a temp file with the same name (or is this by design?) and errors out. Would it be possible to allocate a different temp file name in this case? In the Gui could an interactive option be given to specify the lossless folder, or change the one that may be currently assigned?
Again thanks for the excellent work, and for providing features that solve user problems.:thanks::thanks::thanks:
rcubed
Chumbo
11th May 2008, 18:10
I wanted to report a strange issue that just popped up. I'm wanting to convert some of my 007 movies I've recorded from transport streams to DVD. I normally don't use HC for DVD-compliant conversions, so this is the first time.
When I use the LOSSLESS option, the encoder starts then crashes with a typical application crash that wants to launch the debugger, etc. When I don't use the lossless option, the encoder works fine.
My source is an mpeg2 TS file with one AC3 audio track. Here's what my avs script looks like:LoadPlugin("d:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("d:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("d:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("d:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("d:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = directshowsource("l:\hd movies\007.08.ts",audio=false)
fixed_aspect = 1.5
c_width = width(movie)
c_height = round(height(movie) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 720
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
Telecide(movie,guide=1,post=2).Decimate(mode=0)
LanczosResize(out_width,out_height)
bNeedBorders = (out_height < 480)
border = bNeedBorders ? (480-out_height)/2 : 0
AddBorders(0, border, 0, border)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false,threads=0)
converttoyv12()
Here's one of my .ini files:*INFILE d:\media\movies\dvds\sd\007\08.avs
*OUTFILE D:\Media\movies\DVDs\SD\007\08.m2v
*LOGFILE D:\Media\movies\DVDs\SD\007\08.log
*DBPATH K:\HD MOVIES\dbpath
*BITRATE 4830
*MAXBITRATE 8000
*FRAMES 0 174822
*AUTOGOP 12
*PROGRESSIVE
*MASK_SHIFT 32 50 -8
*LOSSLESS
*PULLDOWN
*MATRIX mpeg
*PRIORITY normal
Any ideas? Thank you.
btw, I noticed that the input file always gets forced to lowercase. Any chance the next release can keep it as is please? Thanks.
Boulder
11th May 2008, 19:15
Have you tried processing the normal way, that is, using DGIndex to create a d2v project file out of the transport stream and then MPEG2Source instead of DirectShowSource to load the source?
hank315
11th May 2008, 23:33
Also Hank could you elaborate on what the differences are in the Settings 1 tab, interlacing options. For example why one might select them. Sorry if this seems like a dumb newbie question but I've always been confused on this topic.
HCenc gets planes from Avisynth or DGDecode in YV12 format. It scans all frames for interlacing effects, if interlaced is set to auto it will encode pure progressive frames as progressive and interlaced frames as interlaced.
When it's set to interlaced or DVsource all frames are encoded interlaced, interlaced has standard TFF, DVsource has BFF as standard.
When it's set to progressive all frames are encoded progressive and the whole sequence is marked as progressive in the sequence header.
If you don't know what your source is, auto mode will be the most appropriate setting.
One or two requests. If two instances of HC are being run with the lossless option, it's necessary to specify different folders for the lossless files, the current implementation tries to create a temp file with the same name (or is this by design?) and errors out. Would it be possible to allocate a different temp file name in this case? In the Gui could an interactive option be given to specify the lossless folder, or change the one that may be currently assigned?
The next release has an option to set the path for the lossless file.
@Chumbo
I don't know what makes it crash, I never got a crash using the lossless option, maybe the next release solves it.
The case sensitivity is solved in the next release.
Chumbo
13th May 2008, 04:47
Have you tried processing the normal way, that is, using DGIndex to create a d2v project file out of the transport stream and then MPEG2Source instead of DirectShowSource to load the source?
I have not, but a very good suggestion. I only bypassed it because I had a bunch of these to do and wanted to save some time. I guess if I did that in the first place, it probably would've worked and actually saved a lot of encoding time. ;) I'll have to try at least one just to provide an answer for this issue so we all know. :)
@hank,
I've used the lossless exclusively with no issues in converting directshow sources that are HD to HD, e.g., vc-1 and/or avc to mpeg2. Those scripts, though, were basic, i.e., the directshowsource and converttoyv12.
This is the first time I've tried to go to DVD-compliant encoding with HC and using a bit more complicated script. It's working fine, just not with the lossless option. :( Looking forward to the next version. Thanks so much for all your hard work.
bshater
24th May 2008, 18:17
hello, can someone explain why im getting a warning error during the second pass of encoding my avi file? i don't remember exactly what the error message was, but i believe it goes somewhat like this:
"warning: source mismatch starting at frames...."
i didn't get this error message till i upgraded HC to the lastest version, .23.
any help would be highly appreciated.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.