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 31st March 2008, 02:24   #1  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,688
VAQ 2.0 Alpha Testing

VAQ 1 is official, so as I promised, I am releasing VAQ 2.0 for initial alpha testing. Thanks to Alex W for the basic concept behind VAQ 2.0!

How to use (change from normal VAQ):

--aq-metric presents four options for the AQ metric to use. Each is progressively slower than the last; option 0 is equivalent to VAQ1.

Since the VAQ committed to official x264 has 1.0 strength as default (equivalent to 0.5 with unofficial AQ, since all values were doubled for simplicity's sake), 1.0 is default here also.

Try playing with the different AQ metrics and strengths and testing the results.

Download patched build (based on r777).
Dark Shikari is offline   Reply With Quote
Old 31st March 2008, 03:44   #2  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,319
--aq-mode?
Should it be by default fot this time of testing?


Is r777 with VAQ 2.0 multhitreaded? It uses only one core of my e2160 while r798.modified (VAQ 0.48) use 2 cores.

Code:
x264_AQ2.exe --threads 3 --pass 3 --progress --stats "x264_stat.log" --qcomp 0.75 --bframes 3 --no-b-adapt --bime --weightb --subme 7 --keyint 300 --ref 8 --trellis 2 --mixed-refs --8x8dct --partitions all --b-rdo --direct auto --b-pyramid --bitrate 2500 --no-fast-pskip --me umh --merange 16 --aq-metric 3 --deblock -1:-1 -o 2xVAQ2_3_Balance2_777.h264 1.avs

Last edited by IgorC; 31st March 2008 at 04:08.
IgorC is offline   Reply With Quote
Old 31st March 2008, 04:33   #3  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,229
Quote:
Originally Posted by IgorC View Post
--aq-mode?
Code:
--aq-mode <integer>     How AQ distributes bits
    - 0: Disabled
    - 1: Avoid moving bits between frames
    - 2: Move bits between frame
I'd guess that "--aq-mode 2" is the default, while "--aq-mode 1" equals "aq-sensitivity 0" in VAQ v0.48
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 31st March 2008 at 04:35.
LoRd_MuldeR is offline   Reply With Quote
Old 31st March 2008, 04:35   #4  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,319
I know. The question is what to do with it. Leave it or test it?
IgorC is offline   Reply With Quote
Old 31st March 2008, 04:54   #5  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,229
Quote:
Originally Posted by IgorC View Post
I know. The question is what to do with it. Leave it or test it?
Well, unless I have missed something, "--aq-mode 1" (aka "aq-sensitivity 0") is not recommended and "--aq-mode 0" will turn off all AQ.
So I'd go with "--aq-mode 2" unless there is a good to do otherwise...
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 31st March 2008, 05:24   #6  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,688
Quote:
Originally Posted by LoRd_MuldeR View Post
Well, unless I have missed something, "--aq-mode 1" (aka "aq-sensitivity 0") is not recommended and "--aq-mode 0" will turn off all AQ.
So I'd go with "--aq-mode 2" unless there is a good to do otherwise...
Correct
Dark Shikari is offline   Reply With Quote
Old 31st March 2008, 06:05   #7  |  Link
MythCreator
Registered User
 
Join Date: Dec 2007
Location: Beijing,China
Posts: 90
@Dark Shikari

Could you release the diff file of VAQ 2.0? Thanks a lot~
MythCreator is offline   Reply With Quote
Old 31st March 2008, 07:05   #8  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,688
Quote:
Originally Posted by MythCreator View Post
@Dark Shikari

Could you release the diff file of VAQ 2.0? Thanks a lot~
The code is extremely ugly and the diff won't work on any recent revision of x264. Anyone who publicly distributes builds of this with any intent other than to experiment is crazy.

diff
Dark Shikari is offline   Reply With Quote
Old 31st March 2008, 08:04   #9  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 6,418
two side questions:
1. What in the value range allowed for --aq-strength?
2. Does --aq-strength 0.0 also disable adaptive quantization?

Cu Selur

Ps.: there's a 'new-line' missing before '--nr' (after metric options) when calling --long-help
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is offline   Reply With Quote
Old 31st March 2008, 08:07   #10  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,688
Quote:
Originally Posted by Selur View Post
two side questions:
1. What in the value range allowed for --aq-strength?
2. Does --aq-strength 0.0 also disable adaptive quantization?
AQ strength = 0 to infinity (though values above 2.0 may get stupid).

AQ strength = 0 = disabled.

Exactly the same as the AQ in the official x264.
Dark Shikari is offline   Reply With Quote
Old 31st March 2008, 09:10   #11  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 6,418
Thanks for the Info.

Cu Selur
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is offline   Reply With Quote
Old 31st March 2008, 18:02   #12  |  Link
MasterNobody
Registered User
 
Join Date: Jul 2007
Posts: 540
For those who are interested here is diff which can be applied on the current git version (r808). Also I fix bug in x264_autosense_aq (incorrect use of h->mb.i_mb_x and h->mb.i_mb_y instead of mb_x and mb_y)
MasterNobody is offline   Reply With Quote
Old 31st March 2008, 18:27   #13  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
Warning: ALPHA BUILD, ONLY USE FOR TESTING VAQ2!

x264.808.vaq2.modified.exe (gcc 3.4.6 fprofiled)

General thread:
http://forum.doom9.org/showthread.php?t=130364

x264_vaq2_alpha.01.r808.diff
http://forum.doom9.org/showthread.ph...23#post1120023
x264.gaussian.cplxblur.01.diff
Dark Shikari: - gaussian cplxblur: gives a tiny improvement in 2pass ratecontrol
x264_me-prepass_DeathTheSheep.01.diff
http://forum.doom9.org/showthread.php?p=1093523
x264_2pass_vbv.6.diff
http://thread.gmane.org/gmane.comp.v...093/focus=3550
x264_hrd_pulldown.04_interlace.diff
- HRD and pulldown for HD compatibility, updated patch for interlacing
http://forum.doom9.org/showthread.ph...19#post1047919

Link to x264 patches collected: http://files.x264.nl/x264_patches/

Warning: ALPHA BUILD, ONLY USE FOR TESTING VAQ2!
bob0r is offline   Reply With Quote
Old 31st March 2008, 19:03   #14  |  Link
Umamio
Cost Effective
 
Join Date: Nov 2007
Posts: 64
Here is a collection of tests I did on a couple of 4 second football clips. They are slightly worthless for comparison purposes because they are mostly different framesizes and different bitrates and CQ / 2pass / 3pass whatever.

The only thing they have in common is they all use VAQ2 (using patched build based on r777)! Unless specified.

So if you want a collection of slightly useless (for comparative purposes) encodes of football on a rainy imperfect pitch you can get them here.


Better comparisons in here

Last edited by Umamio; 2nd April 2008 at 00:00.
Umamio is offline   Reply With Quote
Old 31st March 2008, 22:31   #15  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
Excellent job, MasterNobody. Thou art truly the master o'er bugs, o BugMaster.

I will certainly give this a test soon. How is the speed on BugMaster's mod? Does it do the same thing as the original on 777?
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds!
DeathTheSheep is offline   Reply With Quote
Old 1st April 2008, 04:07   #16  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
The answer appears to be yes on both fronts.

I made a test on my quintessential anime clip.
0.46 yields 0.9741681 SSIM 4537KB
2.0a yields 0.9710652 SSIM 4557KB (--aq-strength 2 --aq-metric 3)
2.0a yields 0.9724646 SSIM 4546KB (--aq-strength .3 --aq-metric 3)

Baseline profile, defaults, no fast pskip.
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds!

Last edited by DeathTheSheep; 1st April 2008 at 04:25.
DeathTheSheep is offline   Reply With Quote
Old 1st April 2008, 04:16   #17  |  Link
Razorholt
Cyberspace Citizen
 
Razorholt's Avatar
 
Join Date: Nov 2005
Posts: 457
Quote:
Originally Posted by DeathTheSheep View Post
The answer appears to be yes on both fronts.

I made a test on my quintessential anime clip.
0.46 yields 0.9741681 SSIM 4537KB
2.0a yields 0.9710652 SSIM 4557KB (--aq-strength 2 --aq-metric 3)

Ah. Baseline profile, defaults, no fast pskip,
What's your --aq settings with 0.46?
Razorholt is offline   Reply With Quote
Old 1st April 2008, 04:26   #18  |  Link
DeathTheSheep
<The VFW Sheep of Death>
 
DeathTheSheep's Avatar
 
Join Date: Dec 2004
Location: Deathly pasture of VFW
Posts: 1,149
Updated post.

Settings with 0.46 were strength 1.1, sens 24.5. Of course with better settings and keyframe tweaks (since DS found problems near keyframes in my past 46vs47 tests), SSIM can go up to .9752XXX easily with 0.46. With qcomp active for anime, even more still.

[edit] But by goodness that's not to say 0.46 is better than 2.0!! Just that for this clip, for these settings, at this bitrate, for this material, SSIM is higher.
__________________
Recommended all-in-one stop for x264/GCC needs on Windows: Komisar x264 builds!

Last edited by DeathTheSheep; 1st April 2008 at 04:42.
DeathTheSheep is offline   Reply With Quote
Old 1st April 2008, 04:50   #19  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,688
Quote:
Originally Posted by DeathTheSheep View Post
The answer appears to be yes on both fronts.

I made a test on my quintessential anime clip.
0.46 yields 0.9741681 SSIM 4537KB
2.0a yields 0.9710652 SSIM 4557KB (--aq-strength 2 --aq-metric 3)
2.0a yields 0.9724646 SSIM 4546KB (--aq-strength .3 --aq-metric 3)

Baseline profile, defaults, no fast pskip.
Please stop poisoning my development threads with your totally useless comparisons that:

1) Do not include no-AQ numbers.
2) Only include values for one metric, and with two wildly varying strengths with nothing sane in between.



P.S. SSIM is not that useful. SSIM tells me that AQ mode 1 is better than 2, which it isn't.
Dark Shikari is offline   Reply With Quote
Old 1st April 2008, 05:18   #20  |  Link
Razorholt
Cyberspace Citizen
 
Razorholt's Avatar
 
Join Date: Nov 2005
Posts: 457
@DS:

1.- Is there any minimum birates required for VAQ2 to be efficient?
2.- How can we compare different settings if SSIM is irrelevant?
3.- What is the --aq mode/metric/strength default in VAQ2?


Thanks a lot DS for your great job!

- Dan
Razorholt 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 00:27.


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