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 Search this Thread Display Modes
Old 2nd October 2007, 01:54   #1  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,269
HCEnc Living FAQ

Being HCEnc was voted the most used mpeg-2 encoder currently, Id figure id supply a living faq. Current stable version is 023. Current beta is 024

The thread will be closed but anyone liking to contribute, please pm me.

FAQ:
1.
Q.Where did this application come from?

A.
Base Info:
HCEnc was created a few years ago by HANK315 written in Fortran95 (with a small amount of C and a bit of assembler for CPU optimization.) The project is currently free. First public test version released January 2005. Fortran being a math concentrated language works well for this purpose delivering a very fast encoder considering its quality.

Releases have generally featured a gui version, and a cli version (helpful for batch support.)

HCEnc supports encoding at SD(main @ main) and HD (main @ high) 4:2:0. 024 beta supports 4:2:2 output.

Since version 022 HCEnc supports multi processor encoding.

2.
Q.What applications will I need or will be helpful when I get started.

A.
Support Utilities:

Avisynth/DGIndex:
HCEnc supports input from Avisynth(.avs) and .d2v(dvd2avi/dgindex) files.
http://neuron2.net/dgmpgdec/dgmpgdec.html
http://avisynth.org

EncSchedGui
Video encoder batch processing
http://forum.doom9.org/showthread.ph...ht=EncSchedGui



more to come...
__________________
...yeah...but...why on earth would I compare apples with apples?

Last edited by Trahald; 31st December 2008 at 15:30.
Trahald is offline   Reply With Quote
Old 16th December 2009, 22:52   #2  |  Link
Jackie
Registered User
 
Join Date: Dec 2001
Posts: 48
Thanks alot, is there a quality comparison about the quality it produces compared to others, especially commercial encoders?
Jackie is offline   Reply With Quote
Old 18th March 2011, 21:07   #3  |  Link
verydoomed
Registered User
 
Join Date: Jan 2008
Posts: 40
Its an mpeg2 encoder but what sort of files will it accept as input?
verydoomed is offline   Reply With Quote
Old 19th March 2011, 09:33   #4  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
HCEnc relies on a avisynth frontend, so takes .avs scripts as input.
Just one line of script will do.

Or you can add preprocessing to your liking, refine, resize, crop, add borders...

Everything that can be decoded by avisynth source filters and comes out there
in DVD or MPEG-2 Blu-ray legal resolution, colour space and framerates can be accepted as HC input.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 26th December 2011, 02:22   #5  |  Link
Richard1485
Guest
 
Posts: n/a
The "Make BD Compliant" button checks both progressive sequence and 3:2 pulldown. Are both of these required in the BD spec? I especially want to know about the 3:2 pulldown.

EDIT: I came across an old thread that mentioned that 3:2 pulldown is not a requirement for 23.976/24 fps sources. Given that this is the case, I wonder why clicking the "Make BD Compliant" button checks the 3:2 pulldown option. Is this a hangover from the "Make DVD Compliant" button, which it is presumably based on?

From looking at retail BDs, it seems that the progressive_sequence flag should be set and that TFF should not be set. It should be possible to remove it with Restream.

Last edited by Richard1485; 26th December 2011 at 23:59.
  Reply With Quote
Old 21st February 2012, 02:36   #6  |  Link
hartford
Registered User
 
hartford's Avatar
 
Join Date: Nov 2003
Posts: 324
Encoding Video for Blu-Ray using H264/AVC

See here: http://forum.doom9.org/showthread.php?t=154533

Look at the charts.

If your source has height of 480 or 576 and is the PRIMARY video then you must make it interlaced to be BD compliant.

The SECONDARY video can be 23.976 fps.
hartford is offline   Reply With Quote
Old 21st February 2012, 06:44   #7  |  Link
Biggiesized
Registered User
 
Biggiesized's Avatar
 
Join Date: Apr 2007
Location: Pittsburgh, PA
Posts: 225
Can you use the fake interlaced encoding mode for SD resolutions in primary video mode?
Biggiesized is offline   Reply With Quote
Old 22nd February 2012, 21:14   #8  |  Link
Richard1485
Guest
 
Posts: n/a
Quote:
Originally Posted by hartford View Post
See here: http://forum.doom9.org/showthread.php?t=154533

Look at the charts. If your source has height of 480 or 576 and is the PRIMARY video then you must make it interlaced to be BD compliant. The SECONDARY video can be 23.976 fps.
Thanks, but I knew that already. My videos are 1920x1080, so the question remains.
  Reply With Quote
Old 24th May 2012, 15:41   #9  |  Link
sven_x
Registered User
 
Join Date: Oct 2011
Location: Germany
Posts: 39
Wrong Flags (progressive)

Many thanks for the fine encoder!

I had interlacing problems with this workflow:
avisynth -> hc enc (progressive) -> TMPG author

A video that was encoded with hc enc as progressive allways was flagged as interlaced. This leads to the bad mistake that TMPG author is re-coding the whole video when you change the clip properties to progressive (takes 2.5 h of work instead of 10 minutes and probably the new encoding is not so good as the hc enc output file).
Analyzing the hc enc output file with GSPOT gives the same information: stream is flagged as interlaced, not as progressive.

I found this intermediate solution:
There is a freeware "Restream v.0.9" that can change the flags of MPG streams without recoding. I load the file into Restream, change the picture coding extension to Frametype = progressive and also the Sequence extension = progressive. The resulting new output file works fine.

see: http://forum.doom9.org/showthread.php?t=164111 (another file, but same problem)

Perhaps you can change the flags that hc enc is setting.
sven_x is offline   Reply With Quote
Old 25th May 2012, 16:26   #10  |  Link
TheSkiller
Registered User
 
Join Date: Dec 2007
Location: Germany
Posts: 632
Actually, HCEnc does set those two flags accrodingly if you say so. Under "Settings 1" in "interlacing options" set it to "progressive" and set field order to BFF (TFF + progressive is not allowed). Then under "Settings 2" tick "progressive sequence".

If you used Restream you should make very sure that "top field first" is unchecked if you check both "Frametype progressive" and "Progressive sequence" because otherwise it would be an illegal combination of flags that is known to get refused by some DVD-Players.
TheSkiller is offline   Reply With Quote
Old 24th September 2017, 02:00   #11  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 540
The HCEnc faq isn't so living any more However, just for interest,

There's a "new" version v0.28 at http://hank315.nl/ with the manual at http://hank315.nl/files/HC_028/HC028.pdf per this thread https://forum.doom9.org/showthread.php?t=172098

It seems we can use Donald Graft's DGIndexNv and DGDecodeNV (DGSource) with an nvidia GPU to hugely speed up decoding and also use some GPU based filters. The caveat seems to be per the manual which says "Avisynth 2.6 RC1 or higher is required to run HCenc 0.28" which I guess must be 32bit. Here's a link where I was given the info by gonca http://rationalqm.us/board/viewtopic...7&p=7192#p7192

I'll search and if I find a way to install portably install that version of avisynth then that'd be really really nice and I'll edit/post it here.

edit 1: reviewed this thread https://forum.doom9.org/showthread.php?t=172124 I'd forgotten about, and have decided to go down that track specifying the HCEnc folder to put things into.

edit 2: Success using HCEnc and avisynth and Donald Graft's GPU tools, without installing avisynth https://forum.doom9.org/showthread.php?p=1819518

Last edited by hydra3333; 24th September 2017 at 07:12. Reason: rediscovered groucho's https://forum.doom9.org/showthread.php?t=172124
hydra3333 is offline   Reply With Quote
Old 10th July 2020, 19:46   #12  |  Link
tyee
Registered User
 
Join Date: Oct 2001
Posts: 416
I'm trying to input an HD video to HCenc via avisynth but the source is 10 bits. The HCenc error says "input is not YV12, YUY2, YV16 or YV24 color space". So.... is my problem 10 bits or color space? I tried adding Colormatrix as shown below but I get another error of "input to filter must be YV12 or YUY2".

Code:
FFVideoSource("source.mkv")
Colormatrix(mode="rec.709->rec.601",clamp=0)
tyee is offline   Reply With Quote
Old 10th July 2020, 22:10   #13  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,078
Try this:
Quote:
FFVideoSource("source.mkv", colorspace="YV12")
manolito is offline   Reply With Quote
Old 13th July 2020, 04:57   #14  |  Link
tyee
Registered User
 
Join Date: Oct 2001
Posts: 416
Thanks, works good!
tyee is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 09:07.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.