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 31st May 2013, 12:38   #161  |  Link
colinhunt
Registered User
 
Join Date: Dec 2002
Posts: 1,022
Quote:
Originally Posted by Groucho2004 View Post
Any chance you can cut a sample from that file?
I'm not allowed, sorry :/ ... but I can create one with exactly same specs this weekend, if that helps any.
colinhunt is offline   Reply With Quote
Old 2nd June 2013, 10:10   #162  |  Link
colinhunt
Registered User
 
Join Date: Dec 2002
Posts: 1,022
Here's a link to a file with the same codec, bitrate and resolution: http://www.sendspace.com/file/rvmjv8

It's a 1080p24 ProRes HQ .mov file, 7.5 seconds and 151 MB.

Happy testing!

Last edited by colinhunt; 2nd June 2013 at 10:13.
colinhunt is offline   Reply With Quote
Old 2nd June 2013, 14:36   #163  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by colinhunt View Post
Here's a link to a file with the same codec, bitrate and resolution: http://www.sendspace.com/file/rvmjv8

It's a 1080p24 ProRes HQ .mov file, 7.5 seconds and 151 MB.

Happy testing!
I get about 40 FPS with my i5 2500K @ 4GHz, 4 threads, ffms2.
It appears that Quicktime decoding is simply sloooow.
Groucho2004 is offline   Reply With Quote
Old 2nd June 2013, 17:11   #164  |  Link
colinhunt
Registered User
 
Join Date: Dec 2002
Posts: 1,022
Quote:
Originally Posted by Groucho2004 View Post
I get about 40 FPS with my i5 2500K @ 4GHz, 4 threads, ffms2.
It appears that Quicktime decoding is simply sloooow.
Well, ProRes HQ 220, but yes, so it would seem. So who do I approach with a donation to write a much faster decoder?
colinhunt is offline   Reply With Quote
Old 8th August 2013, 12:25   #165  |  Link
Quarkboy
Registered User
 
Join Date: May 2005
Posts: 55
Hey everyone, I was wondering if someone could help here although maybe only Hank would know...

I'm trying to compile my own custom matrix.dll for experimental purposes on windows, but it looks like I need the Intel fortran compiler...
I tried using gfortran and made the .dll, but the encoder gives an error saying it can't find the EXTMATRIX function.

Looking into the DLL I realized that gfortran uses different conventions when it comes to function name exports and the exported function was being lowercased to extmatrix...

Does anyone know how to successfully compile a matrix.dll on windows? Maybe I could use C++ or some other language?
Quarkboy is offline   Reply With Quote
Old 8th August 2013, 12:57   #166  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
What's a Matrix.dll? A quantisation matrix isn't a DLL. The ones in HCEnc are all CQMs. Or am I misunderstanding you? Care to show us the matrix you created? There are already quite a few available in HCEnc.

If you're looking to create custom matrices, maybe LigH's Custom Quantization Matrix Editor will prove useful:

http://forum.doom9.org/showthread.php?p=469040

Or maybe the Rockas Rebuilder Matrix Editor will do:

http://www.jdobbs.com/Pages/Downloads.htm
manono is offline   Reply With Quote
Old 8th August 2013, 13:02   #167  |  Link
Quarkboy
Registered User
 
Join Date: May 2005
Posts: 55
Quote:
Originally Posted by manono View Post
What's a Matrix.dll? A quantisation matrix isn't a DLL. The ones in HCEnc are all CQMs. Or am I misunderstanding you? Care to show us the matrix you created? There are already quite a few available in HCEnc.

If you're looking to create custom matrices, maybe LigH's Custom Quantization Matrix Editor will prove useful:

http://forum.doom9.org/showthread.php?p=469040

Or maybe the Rockas Rebuilder Matrix Editor will do:

http://www.jdobbs.com/Pages/Downloads.htm
Read the last pages of hcenc's manual.
There is an option to manipulate the matrices procedurally based on the motion and luminosity per GOP. To do this you need to compile a custom dll. Sample fortran code is provided for this.
Quarkboy is offline   Reply With Quote
Old 8th August 2013, 13:07   #168  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Oh, OK then. Sorry.
manono is offline   Reply With Quote
Old 7th September 2013, 10:31   #169  |  Link
techreactor
Registered User
 
Join Date: Nov 2005
Posts: 180
Quote:
Originally Posted by hank315 View Post
Still investigating but I have to admit my time for it is very scarce ATM

MPEG analyser Pro is a pretty old program which I still use to analyse MPEG2 streams.
Development has stopped AFAIK, developer is Jean-Luc Pons, I don't know if it's available for download.
@hank, any updates for HCenc in the planning.

Are you planning to integrate Intel Quick Sync Video in HC Enc by using the Intel's Media SDK for its 4th gen processor, Intel claims that by using this, the video creation and conversion is 17x faster since its uses the dedicated media processing which is built right into their processor.

Handbrake started using it (in Beta) and some commercial converters are already on it.
techreactor is offline   Reply With Quote
Old 9th September 2013, 21:53   #170  |  Link
hank315
HCenc author
 
Join Date: Nov 2003
Location: Netherlands
Posts: 570
I've recently started again doing some work on HCenc after not seeing the code for about 2 years.
Until now some small improvements are done.

Things I'm also thinking about:
- 64 bit version
It will improve speed, not because its 64 bit but more 128 registers available to work with.
This will take a while, all hand written assembler code has to updated and optimized.
- 4:4:4 color space
- Update bitrate and VBV control
For some high bitrate encodes this could be better...
- Trellis quantization
The articles I've read about it clearly show a full trellis will be slow as hell, if I ever finish it it will probably be some kind of pseudo-trellis.

And now find some time for it

Quote:
Originally Posted by techreactor
Are you planning to integrate Intel Quick Sync Video in HC Enc by using the Intel's Media SDK for its 4th gen processor, Intel claims that by using this, the video creation and conversion is 17x faster since its uses the dedicated media processing which is built right into their processor.
This isn't easy to use/implement, also don't know if this will really improve performance.
Some dedicated asm code using the latest SIMD SSE/AVX instructions will probably be a better choice for HCenc.
__________________
HCenc at: http://hank315.nl
hank315 is offline   Reply With Quote
Old 9th September 2013, 23:36   #171  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
Hi Hank,

good to see you back after such a long time...
I already thought you had abandoned HCenc for good.

HCenc 0.26 Beta is in almost daily use here - I only use it for DVD output, no problems whatsoever (I even hexedited out the 'Beta' from the title bar).


Welcome back!
manolito
manolito is offline   Reply With Quote
Old 10th September 2013, 04:23   #172  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Wonderful to see you are well (enough to post).

I had wondered about updated instruction sets for AVX.
My current machine I use HCenc on (mostly) has AVX instrcution set but SSE4 (4.2) is used instead.

64bit would make for an interesting update to play with.

Question regarding 64x HCenc: If the input is an AVS script, would the AVS version have to be x64 as well?
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 12th September 2013, 14:01   #173  |  Link
techreactor
Registered User
 
Join Date: Nov 2005
Posts: 180
Quote:
Originally Posted by hank315 View Post
This isn't easy to use/implement, also don't know if this will really improve performance.
Some dedicated asm code using the latest SIMD SSE/AVX instructions will probably be a better choice for HCenc.
Good to know that some changes are in the offing.

Currently the following converter are using it as per Intel:

Arcsoft MediaConverter
Arcsoft MediaImpression
Badaboom Media Converter
Corel Digital Studio
CyberLink MediaEspresso
CyberLink PowerDirector
MainConcept
Movavi Video Converter
Roxio Creator

along with freeware's like Mediacode HQ and Handbrake, I personally have not used any of the above commercial softwares but reading the feedback posted by some endusers definitely mention the gains in terms of speed and time. Dvdfab has posted this comparison sheet on their website.

You are the best judge of what will work better for HCenc.
techreactor is offline   Reply With Quote
Old 24th September 2013, 11:02   #174  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Might I ask but a humble request for any future considerations?

Request:
If the source is an AVS script, would it be possible to copy the script to the designated *LOGFILE?

It would come in handy when doing multiple samples with different AVS scripting; such as, brightness tweaking, etc.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 3rd October 2013, 05:29   #175  |  Link
Fishman0919
FishmanMod Android Dev
 
Fishman0919's Avatar
 
Join Date: Apr 2004
Location: Somewhere else, maybe Arizona Bay
Posts: 1,143
Quote:
Originally Posted by hank315 View Post
I've recently started again doing some work on HCenc after not seeing the code for about 2 years.
Until now some small improvements are done.

Things I'm also thinking about:
- 64 bit version
It will improve speed, not because its 64 bit but more 128 registers available to work with.
This will take a while, all hand written assembler code has to updated and optimized.
- 4:4:4 color space
- Update bitrate and VBV control
For some high bitrate encodes this could be better...
- Trellis quantization
The articles I've read about it clearly show a full trellis will be slow as hell, if I ever finish it it will probably be some kind of pseudo-trellis.

And now find some time for it



This isn't easy to use/implement, also don't know if this will really improve performance.
Some dedicated asm code using the latest SIMD SSE/AVX instructions will probably be a better choice for HCenc.
Oh yeah... nice to see around again.
__________________
"Cinderella story, out of nowhere,
former greenskeeper, now about
to become the Masters champion.
It looks like a mirac- it's in the hole!"
Fishman0919 is offline   Reply With Quote
Old 13th December 2013, 16:55   #176  |  Link
ChiDragon
Registered User
 
ChiDragon's Avatar
 
Join Date: Sep 2005
Location: Vancouver
Posts: 600
All of a sudden I'm getting a crazy Visual Fortran popup window when I try to encode more than 961 frames with HCenc 0.26 beta.

[EDIT: Err. I figured out the issue. The drive I'm writing to ran out of space. Perhaps this could be handled with a more elegant message.]

"Visual Fortran run-time Error

forrtl: severe (27): too many records in I/O statement, unit -5, file
Internal Formatted Write
Image PC Routine Line Source
HCenc.exe 00593B5A Unknown Unknown Unknown

Stack trace terminated abnormally."

Also, HCgui 0.26 crashes upon attempting to open a script whose return value is not a video clip (undefined), rather than rendering an error message.

Example:
Code:
BlankClip(30,720,480,"YV12",30000,1001)
X = 0
Attached Images
 

Last edited by ChiDragon; 13th December 2013 at 17:14.
ChiDragon is offline   Reply With Quote
Old 30th May 2014, 01:32   #177  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Is there any simple math to calculate the *LOSSLESS temp file?

I'd like to better guess a better place for it instead of going to largest place (usually USB 2.0 external with at least 500GB free space).
I use anamorphic resolution (NTSC) 704x480.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 4th June 2014, 23:39   #178  |  Link
hank315
HCenc author
 
Join Date: Nov 2003
Location: Netherlands
Posts: 570
The size of the lossless file can't be calculated exactly, the size is variable, it depends on the compressibility of the source.

In your case (YV12 color space):
each plane:
704 x 480 = 337920 bytes (Y plane)
2 x 352 x 240 = 168960 bytes (UV planes)
total per plane: 506880 bytes
per minute:
23.976 x 60 x 506880 = 730 MB

Each frame is compressed, average compression: 40 - 50%, so per minute the file size will be approx. 330 MB.
__________________
HCenc at: http://hank315.nl
hank315 is offline   Reply With Quote
Old 5th June 2014, 00:37   #179  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Thank you, this should be plenty enough to work with.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank 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 03:12.


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