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-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th August 2005, 20:06   #1  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
DeathTheSheep United: x264 Guide and VfW Builds

DeathTheSheep United: The ultimate x264 VFW spot has been born.

Download new VfW builds here or here (Bugmaster)! Special thanks to Komisar!

New x264 VfW builds, comprehensive x264 settings guide [server currently down], small community forum.

Last edited by DeathTheSheep; 2nd November 2008 at 17:30. Reason: New VfW Builds! New servers and sourceforge site!
DeathTheSheep is offline   Reply With Quote
Old 4th August 2005, 21:35   #2  |  Link
Caroliano
Registered User
 
Join Date: Feb 2005
Location: São Paulo, Brazil
Posts: 392
Don't ever use me-range higher than 32... it will only low the PNSR and increase the encoding time. ( http://forum.doom9.org/showthread.php?t=96636 )

And the B-frame reduction for anime is intersting... I think it can work, but don't tested yet. In that case I can use B-frames as references?
Caroliano is offline   Reply With Quote
Old 4th August 2005, 21:58   #3  |  Link
berrinam
Registered User
 
berrinam's Avatar
 
Join Date: Apr 2005
Posts: 1,740
Quote:
Originally Posted by DeathTheSheep
the "Video Quality (PSNR)":"filesize" ratio will increase.
I'm a bit surprised by this. Are you saying that you compared two files with different filesizes and different PSNRs? AFAIK, PSNR doesn't scale linearly with filesize.

Anyway, except for that, thank you for all your work and your guide.
berrinam is offline   Reply With Quote
Old 12th August 2005, 01:06   #4  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
Quote:
Originally Posted by Caroliano
Don't ever use me-range higher than 32... it will only low the PNSR and increase the encoding time.
Ah, thanks for that. You're right about it increasing the encoding time. As for the filesize, though, it will actually decrease with -esa (where it was mentioned), but PSNR values may be sacrificed in some cases. Due to the apparent variability of these results, I'll have this upper bound removed.

Quote:
Originally Posted by berrinam
I'm a bit surprised by this. Are you saying that you compared two files with different filesizes and different PSNRs? AFAIK, PSNR doesn't scale linearly with filesize.
Actually, I just meant that you will achieve better PSNR for your file size (presumably, the same filesize proffers heightened PSNR with the higher-quality approach-- and vise versa).
I'll clarify that in my guide. Thanks!
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds!

Last edited by DeathTheSheep; 14th August 2005 at 22:39.
DeathTheSheep is offline   Reply With Quote
Old 12th August 2005, 02:12   #5  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
Good! I will try the SMEQ at 6 and bframe reduction 50%!
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 12th August 2005, 04:46   #6  |  Link
neo_anderson
Guest
 
Posts: n/a
i use 1 b-frame, 3 ref. frames and +512 to-512 range in nero digital avc max. def. and i get great quality!i see the average bitrate in info. in recode 2 and i use 20% of that bitrate in 2-pass encoding!
  Reply With Quote
Old 12th August 2005, 21:28   #7  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
Good news. What type of source material do you typically use? Animation, "real" movies, etc?

You mentioned how you got 20% of "that bitrate" when encoding in Nero. What exactly do you mean by this? ex: Have you achieved 20% better compression with Nero Recode than with x264 using the above method? Or did you simply use 20% of the average bitrate Nero reported to you?

My regards,
DTS
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds!
DeathTheSheep is offline   Reply With Quote
Old 12th August 2005, 23:46   #8  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
The Guide is really long now...In fact, it can't get much longer at all due to the post size limit... *gulps in anxiety*

ADDED:

<> Deblocking Guide

<> Bitrate Variability Section

<> Streaming sections

NEED:

<> Cosmetics Work

<> More space for the rest of the guide (there's a 16000-char. limit here)!
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds!

Last edited by DeathTheSheep; 13th August 2005 at 16:49.
DeathTheSheep is offline   Reply With Quote
Old 13th August 2005, 00:36   #9  |  Link
CiNcH
Registered User
 
CiNcH's Avatar
 
Join Date: Jan 2004
Posts: 567
Quote:
//<>\\ When they become available for use, take advantage of custom H.264 quantization matrices. These nifty little numerical spreadsheets control how and where different frames are quantized. Typically, these matrices are not in widespread circulation and are still being tweaked to provide the best quality possible. The x264 codec currently (rev. 285) does not support this feature.
It actually does. Guess that it is just not part of the VfW interface.

CLI:
Code:
--cqm <string>          Preset quant matrices ["flat"]
                            - jvt, flat
--cqmfile <string>      Read quant matrices from a JM-compatible file
                            Overrides any other --cqm* options.
--cqm4 <list>           Set all 4x4 quant matrices
                            Takes a comma-separated list of 16 integers.
--cqm8 <list>           Set all 8x8 quant matrices
                            Takes a comma-separated list of 64 integers.
--cqm4i, --cqm4p, --cqm8i, --cqm8p
                        Set both luma and chroma quant matrices
--cqm4iy, --cqm4ic, --cqm4py, --cqm4pc
                        Set individual quant matrices
Problem is that ffdshow still doesn't support CQM. Have to use Nero Digital AVC Decoder instead.


Interesting information on motion search engine/motion search algorithms in x264: Motion Search Method
__________________
Bye

Last edited by CiNcH; 13th August 2005 at 01:16.
CiNcH is offline   Reply With Quote
Old 13th August 2005, 00:55   #10  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
We could make that sticky
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 13th August 2005, 11:30   #11  |  Link
neo_anderson
Guest
 
Posts: n/a
Quote:
Originally Posted by DeathTheSheep
Good news. What type of source material do you typically use? Animation, "real" movies, etc?

You mentioned how you got 20% of "that bitrate" when encoding in Nero. What exactly do you mean by this? ex: Have you achieved 20% better compression with Nero Recode than with x264 using the above method? Or did you simply use 20% of the average bitrate Nero reported to you?

My regards,
DTS
My sources are widescreen DVD movies, and yes, i use 20% of the bitrate recode reports, with range as +-512.5,3 ref. frames, 1 b-frames, psycho off, color optimization on, and using -1 deblocking!

check out these screenshots:
DVD Screen : http://img223.imageshack.us/img223/4...dickdvd1vg.jpg
Nero Max-Def AVC Screen:http://img223.imageshack.us/img223/56/riddickmp46wg.jpg
  Reply With Quote
Old 13th August 2005, 16:04   #12  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
Cool.

The thing that frazzles me is that the people who use Nero often confuse the "range:32" of x264 and the "range:512" of Recode2. I think some "range" clarification is in order for us poor folks (motion vector range : motion estimation range).

neo_anderson:
Slightly OT... But btw, in the screenshots, the guy looks more pleasant and clean-shaven in the AVC encode...He looks more menacing/dirty in the DVD frame with all his stubble. Gotta love that MPEG-4 smoothing!

Quote:
Originally Posted by CiNcH
It actually does [already support CQM]. Guess that it is just not part of the VfW interface.
...
Problem is that ffdshow still doesn't support CQM. Have to use Nero Digital AVC Decoder instead.
Indeed. This is precisely the reason I left it out of my guide. I changed the wording a bit, though.

Quote:
Interesting information on motion search engine/motion search algorithms in x264: Motion Search Method
Yes, my guide is fully compliant with that thread. I just wrote up the best methods in my guide to illimate the need for users to poke about.

Is there any way to increase the post size limit? (From 16000 characters to, say... 25000?)
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds!

Last edited by DeathTheSheep; 13th August 2005 at 16:59.
DeathTheSheep is offline   Reply With Quote
Old 13th August 2005, 18:40   #13  |  Link
neo_anderson
Guest
 
Posts: n/a
umm..., i used chronicles of riddick r1 director's cut dvd, so it's the best quality available for this movie!
  Reply With Quote
Old 13th August 2005, 18:42   #14  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
I know-- The source DVD looks very good in your screenshot . I meant that the AVC encode smooths out his whiskers and makes him look less feirce.

But maybe only I think that....
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds!
DeathTheSheep is offline   Reply With Quote
Old 13th August 2005, 18:48   #15  |  Link
neo_anderson
Guest
 
Posts: n/a
hey, thank god u're online, please can u tell me some other way for finding out bitrate to be used,along with -1 deblocking, and 5 ref. frames? also, should i use more than 1 b-frames?
  Reply With Quote
Old 13th August 2005, 20:36   #16  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
To find out what bitrate to use, start out by asking yourself what the maximum should be. For instance, if I wanted to encode The Matrix 3, I'd probably set aside 2 CDs to acheive the maximum quality. Then use a bitrate calculator (like the one in xvid).

But, if you wanted a more exact bitrate based on quality, try to take a sample of the source (make it a fairly large) and encode it with your desired QP. With the resulting file, perform this calculation:

{ (# of MB in file x 1024) / (# of seconds in file) } x 8 = (Average Bitrate)

This will give you an average bitrate for the quality you desired.

An example: I take out 10 minutes of a cool scene in the middle and encode it with a quantizer of 22, 26, and 28. I find that the file with the quantizer of 26 fits my liking, so I apply my formula to it. With the resulting bitrate, I encode the entire movie in 2-Pass mode with the "High Speed, High Quality" mode above.

Of course, if you knew your target size (ex: you wanted to fit your content fit to two CDs), use the following formula:

( {(target MB x 1024) / (# of seconds in video)} x 8 ) - (audio bitrate) = (bitrate needed)

Cheers.
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds!
DeathTheSheep is offline   Reply With Quote
Old 13th August 2005, 20:50   #17  |  Link
neo_anderson
Guest
 
Posts: n/a
thks DTS Dude, pls tell me what are ur thoughts or recommendations on Psycho-Visual Enhancements in Nero Digital AVC!
  Reply With Quote
Old 14th August 2005, 15:52   #18  |  Link
_E_
Registered User
 
Join Date: Oct 2004
Posts: 19
MeGUI comes with a bitrate calculator You don't need to do any calcuations. It detects the type & size of audio used and it generates the average bitrate/target filesize based on the inputted framerate, total frames number, b frames mode on/off and desired container. So far it's giving accurate results.

Last edited by _E_; 14th August 2005 at 15:54.
_E_ is offline   Reply With Quote
Old 14th August 2005, 22:33   #19  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
Psychovisual Enhancements? Okay, I added the section. The guide is shaping up, right?

Well, I'll really have to do something about that accursed 16000 character limit in this forum... I had to tone down the guide already, and it's already full to the max! LOL
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds!
DeathTheSheep is offline   Reply With Quote
Old 14th August 2005, 23:37   #20  |  Link
CiNcH
Registered User
 
CiNcH's Avatar
 
Join Date: Jan 2004
Posts: 567
Here's my interpretation of Psychovisual Modeling / Psychovisual Heuristics:

Psychovisual modeling algorithms exploit the peculiarities of the Human Visual System (HVS). This knowledge allows the encoder to more efficiently allocate video data, helping it to increase perceptual quality. This area is full of possibilities which are continuously being explored and developed.

On FrameLevel data is reduced for a video sequence at full frame rate in a way that the HVS does not notice.

On MacroblockLevel distortions are masked in dark/bright (luminance masking) or highly textured areas of the picture (in other words bit spend is reduced) where the HVS does not notice it, details in flat areas, where the human eye is most sensitive, are enhanced.

Although psychovisual heuristics appear to improve quality the PSNR score drops, so the PSNR metric does not have a good correlation with subjective perception of video quality.


Psy-Vis in latest Ateme AVC Encoder Beta (I am not a tester so I am not aware of its effects)

Quote:
There are 4 psychovisual levels, which are independant from the other settings.

* psy 0 -> no psychovisual heuristics
* psy 1 -> psychovisual heuristics on a frame level
* psy 2 -> psychovisual heuristics on a macroblock level
* psy 3 -> enhanced psychovisual heuristics on a macroblock level. Some people prefer it over psy 2, others don't.
__________________
Bye

Last edited by CiNcH; 14th August 2005 at 23:51.
CiNcH 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 04:06.


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