Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-2 Encoding

Reply
 
Thread Tools Display Modes
Old 28th March 2009, 04:37   #121  |  Link
QuadraQ
Registered User
 
QuadraQ's Avatar
 
Join Date: Jun 2003
Location: Loomis, CA
Posts: 99
Quote:
Originally Posted by Sharc View Post
Ooops ... works perfectly when I
- Do the encoder settings in HCgui_023 and save the HCini
- Exit HCgui and fire up HCenc_023.exe separately
Looks as if the HCgui cannot start the encoder properly.
Scratching my head .... perhaps something is borked here ....
Just wanted to add that I ran into the exact same issue. I create a dga from a film avc mkv file, and then create an avs file using meGUI. Open it up in HCgui 0.23 fine, but when I press encode it's stuck. Tried opening up the HCenc 0.23 directly as suggested and it runs through the first pass fine, but then freezes on the second pass. Suspend then resume doesn't help. :-(

Here's my AVS script:
AVCSource("C:\Users\Isaac\Videos\720p AVCHD\Test.dga")
#deinterlace
#crop
Spline36Resize(720,480) # Spline36 (Neutral)
#denoise

Here's my HC.ini file:
*INFILE c:\users\isaac\videos\720p avchd\Test.avs
*OUTFILE C:\Users\Isaac\Videos\Temp Files\Test.m2v
*LOGFILE C:\Users\Isaac\Videos\Temp Files\Test.log
*BITRATE 4000
*MAXBITRATE 8000
*FRAMES 0 71154
*AUTOGOP 12
*PROGRESSIVE
*PULLDOWN
*MATRIX mpeg

I've tried the 0.24 beta as well with the same results. I'm tearing my hear out here!

Last edited by QuadraQ; 29th March 2009 at 03:12.
QuadraQ is offline   Reply With Quote
Old 30th March 2009, 06:44   #122  |  Link
neuron2
_
 
neuron2's Avatar
 
Join Date: Jan 2002
Posts: 16,653
Hank never gave me a solution for this and without the source code I am powerless.
neuron2 is offline   Reply With Quote
Old 30th March 2009, 07:14   #123  |  Link
QuadraQ
Registered User
 
QuadraQ's Avatar
 
Join Date: Jun 2003
Location: Loomis, CA
Posts: 99
I should have stated that this only seems to be a problem with the NV version of DGAVCDec. When I tried it with the "normal" DGAVCDec it works perfectly fine.
QuadraQ is offline   Reply With Quote
Old 31st March 2009, 23:33   #124  |  Link
hank315
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 445
It will be solved in the final 0.24 release, I can replicate the issue using DGAVCDecNV.
It's a complete lack of time ATM to get a new release out
__________________
HCenc at: http://hcencoder.bitburners.com
hank315 is offline   Reply With Quote
Old 21st April 2009, 13:09   #125  |  Link
G_M_C
Registered User
 
Join Date: Feb 2006
Posts: 827
Finnaly found the time to do a BD -> DVD conversion, using HCEnc & DVD-lab. The encoder works perfectly, as usual; But is was kind of funny.

It's been some time that i've done such a project, and i've upgraded to a Core 2 Quad Xtreme 9650, wich runs at a conservative 3200 MHz (400 x 8). The funny thing is that the whole 2-pass encoding process of a 2 hrs movie took less than the 2 hours the movie is long. It ran at more than 150 fps during encode

I remember times that encoding went @ 5 or 6 fps. That goes to show how technoligy has evolved in the years, but also that HCEnc seems to have matured considerably during that time as well. And that not oly gos for the speed of the encoder, but the quality it produces as well; Thats very very good (lum_gain=1 and AQ=1 seems to be a very good combo). So thanx again for all the work and time you have invested in the years !

Last edited by G_M_C; 21st April 2009 at 13:12.
G_M_C is offline   Reply With Quote
Old 16th May 2009, 06:23   #126  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 638
Quote:
Originally Posted by QuadraQ View Post
create a dga from a film avc mkv file, and then create an avs file ... Open it up in HCgui 0.23 fine, but when I press encode it's stuck. Tried opening up the HCenc 0.23 directly as suggested and it runs through the first pass fine, but then freezes on the second pass.
Oh NO !
Quote:
Originally Posted by hank315 View Post
It will be solved in the final 0.24 release, I can replicate the issue using DGAVCDecNV.
It's a complete lack of time ATM to get a new release out
Oh Good. Thank goodness, this is significant, DGAVCDecNV is of no use to me otherwise. Is it still a problem when using the lossless intermediate file ?

Any timeframe on it as yet ?
halsboss is offline   Reply With Quote
Old 16th May 2009, 06:25   #127  |  Link
neuron2
_
 
neuron2's Avatar
 
Join Date: Jan 2002
Posts: 16,653
You can use version 0.22 as I do.

Unfortunately it's an HCEnc issue. I tried to work around it but there is no way.

If Hank wants to lend me the source code I can try to fix it, otherwise we are totally at his mercy.

Don
neuron2 is offline   Reply With Quote
Old 16th May 2009, 07:11   #128  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 638
Thanks Neuron2. OK.

It it works for a 1st pass for QuadraQ, I wonder if it'll work when an intermediate lossless file is used for the 2nd pass to "work off". Will clutch at that straw tomorrow

Hank, you into sharing, matey ?
halsboss is offline   Reply With Quote
Old 17th May 2009, 20:56   #129  |  Link
hank315
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 445
Here's a new HCenc 0.24 beta:

- added *INTRAVLC command
- added 4:2:2 input / output
- fixed some issues using AVCsource input

This will fix the problems using DGAVCDecNV.
__________________
HCenc at: http://hcencoder.bitburners.com
hank315 is offline   Reply With Quote
Old 17th May 2009, 21:08   #130  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 3,462
Thanks a lot, hank It feels weird that v023 was released a year ago..time flies so fast!
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 17th May 2009, 22:33   #131  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 1,083
Quote:
Originally Posted by hank315 View Post
- fixed some issues using AVCsource input
This will fix the problems using DGAVCDecNV.
Thanks, hank!
Sharc is offline   Reply With Quote
Old 18th May 2009, 12:13   #132  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 638
Hank, you are a Legend, mate.
halsboss is offline   Reply With Quote
Old 18th May 2009, 18:29   #133  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Posts: 605
Thanks a lot, Hank!

I can confirm that the -1pass and -2pass command line parameters are now working...

Cheers
manolito
manolito is offline   Reply With Quote
Old 18th May 2009, 21:48   #134  |  Link
Fr4nz
Registered User
 
Join Date: Feb 2003
Location: Venice, Italy
Posts: 403
Thanks Hank for your efforts!

Excuse me for this question: did you see this thread? Are you planning something in the upcoming 0.24, in order to improve encoding in "dark areas"?
Fr4nz is offline   Reply With Quote
Old 19th May 2009, 01:09   #135  |  Link
kumi
Straight to video
 
kumi's Avatar
 
Join Date: Jun 2005
Posts: 634
Thanks for the new beta!

Can hank315 or someone else explain in layman's terms what INTRAVLC is, and what it's good for?
__________________
.
kumi is offline   Reply With Quote
Old 19th May 2009, 09:36   #136  |  Link
hank315
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 445
About IntraVLC...

MacroBlocks can be encoded in two different ways:

Code:
-------------------------------------
| Intra VLC	    |   0   |   1   |
|------------------------------------
| Intra blocks      |  B14  |  B15  |
|------------------------------------
| Non-intra blocks  |  B14  |  B14  |
-------------------------------------
B14 and B15 are two tables which are used to perform the VLC: Variable Length Coding.
The outcome of this will be written in the video bitstream.
Table B14 is more efficient when there are only a few values in the 8x8 block, table B15 is more efficient when there are lot of values in the 8x8 block.
So in general table B14 should be used for low bitrates, B15 for higher bitrates.
IntraVLC can be changed for every frame.
So *INTRAVLC 0 means: always use table B14, *INTRAVLC 1 means always use table B15, *INTRAVLC 2 will use the VLC method which gives the lowest nr of bits for that frame, *INTRAVLC 2 simply does both and picks the table which generates the lowest nr of bits to represent the encoded block.
__________________
HCenc at: http://hcencoder.bitburners.com
hank315 is offline   Reply With Quote
Old 19th May 2009, 10:23   #137  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,484
How much gain in bitrate do you estimate by Automatic IntraVLC compared to fixed IntraVLC?
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 25th May 2009, 19:27   #138  |  Link
hank315
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 445
The table shows file sizes of a testclip for different INTRAVLC settings using different Quantizers.
All other settings are the same so it shows the efficiency of the INTRAVLC setting only.

Code:
---------------------------------------------
| CQ | intravlc 0 | intravlc 1 | intravlc 2 |
|----|------------|------------|------------|
|  2 |   101674   |   100606   |   100576   |
|  3 |    53550   |    53140   |    53086   |
|  4 |    45531   |    45247   |    45182   |
|  5 |    33787   |    33782   |    33629   |
|  6 |    28421   |    28541   |    28330   |
|  8 |    23530   |    23844   |    23507   |
| 10 |    16561   |    17036   |    16561   |
---------------------------------------------
It shows table 14 (intravlc 0) is better at low bitrates (high Q) and table 15 (intravlc 1) is better at high bitrates (low Q).
Intravlc 2 (auto mode) always produces the smallest file size and converges at low bitrates to table 14.

So the gain using auto mode is pretty small... but it comes at almost no extra cost, about 1% extra encoding time.
__________________
HCenc at: http://hcencoder.bitburners.com
hank315 is offline   Reply With Quote
Old 27th May 2009, 23:12   #139  |  Link
doxville
Registered User
 
doxville's Avatar
 
Join Date: Aug 2004
Location: Germany
Posts: 26
Hi hank315, many thanks for all the time you spend on this great encoder!

Since 0.24 is a beta, I wanted to ask you, if you had the time to look over this issue, because I found the same behaviour as in 0.23. Would be great if that could be fixed in the final release (i am still sticking to 4:3 encodings), even if it's not a big thing to change AR yourself.

doxville is offline   Reply With Quote
Old 28th May 2009, 08:09   #140  |  Link
cweb
Registered User
 
cweb's Avatar
 
Join Date: Oct 2002
Location: Cyberia
Posts: 443
Just to thank you Hank for your new beta release..
__________________
PC specs for bug reports: Athlon 64-bit FX-62 2.8Ghz Win7/XP Pro/Linux multiboot PCI express NVIDIA GTX 285 graphics card
http://twitter.com/cwebdesign
cweb is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:19.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.