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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th January 2012, 06:31   #1  |  Link
rahzel
Registered User
 
Join Date: Jul 2005
Posts: 359
aq-strength - grainy/clean sources

When is it better to use a high or low aq-strength?

I've encoded a grainy source where I found an aq-strength of 0.60 worked best. On a clean source, I found that an aq-strength of 0.70 worked best. From what I've heard, it's best to use a lower aq-strength on both clean and grainy sources. So when is it better to use a higher aq-strength; like say, 0.9-1.2?
rahzel is offline   Reply With Quote
Old 19th January 2012, 13:44   #2  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
From the tunings:
still image: 1.2
default and film: 1.0
animation: 0.6
grain: 0.5

These are the recommendations of the x264 developers, but everyone has his own opinion, as you've already "heard".
sneaker_ger is offline   Reply With Quote
Old 19th January 2012, 13:48   #3  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 583
Quote:
Originally Posted by rahzel View Post
I've encoded a grainy source where I found an aq-strength of 0.60 worked best. On a clean source, I found that an aq-strength of 0.70 worked best.
Seems that 0.65 should be a good compromise for you.
(But I don't think AQ is that linear)

AQ is really a strong knob wich drasticly changes the perceived quality.
But since quality is relative to the user, you have to choose what it is looking best for you.

To SHORTLY resume :
It is Ringing versus Banding.
High AQ strength retains more gradients but produces ringing.
Low AQ strength preserves edges but produces banding.

But dont forget psy-rd
MatLz is offline   Reply With Quote
Old 19th January 2012, 14:42   #4  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
Depends on whether you are using Variance (mode 1, default) or Auto-Variance (mode 2).
burfadel is offline   Reply With Quote
Old 19th January 2012, 18:01   #5  |  Link
creamyhorror
Registered User
 
Join Date: Mar 2008
Posts: 118
AQ makes a lot of difference under certain conditions.

From an old post on Videohelp (by poisondeathray), about the difference that aq-strength (under mode 1) makes:
Quote:
Originally Posted by poisondeathray View Post
This is a short AVCHD 1080i30 camcorder clip, yadif, lanczosresized 720x400, encoded at 1000kbps. You can find the original here for your own testing and learning: http://www.megaupload.com/?d=9B84U1II

It's a good clip to illustrate what x264's AQ does. Now there is no model here to distract you . Pay attention to the shadow detail, and details in the water (and under the water). After examining this clip, go back to the FFV1 clip and re-examine that one. If you still can't see the differences clearly, I'll post cropped image to highlight some of the bigger differences.

Not to sound like a broken record, but again this is a single frame just to illlustrate a point, and you should be looking temporally at the whole clip, different frames, different quality measures, etc. etc....blah blah blah....you get the point. Note I only posted AME , but every encoder that doesn't have AQ like functions has similar results (I tested about 20 different ones)

Original


Adobe Media Encoder CS4 (based on MC)


x264 AQ=0


x264 AQ=0.5


x264 AQ=1.0


x264 AQ=1.5
As poisondeathray showed, at low bitrates and under different aq-strengths, large differences in bit distribution can become apparent.

Last edited by creamyhorror; 19th January 2012 at 18:04.
creamyhorror is offline   Reply With Quote
Old 19th January 2012, 18:36   #6  |  Link
rahzel
Registered User
 
Join Date: Jul 2005
Posts: 359
Quote:
Originally Posted by MatLz View Post
Seems that 0.65 should be a good compromise for you.
(But I don't think AQ is that linear)

AQ is really a strong knob wich drasticly changes the perceived quality.
But since quality is relative to the user, you have to choose what it is looking best for you.

To SHORTLY resume :
It is Ringing versus Banding.
High AQ strength retains more gradients but produces ringing.
Low AQ strength preserves edges but produces banding.

But dont forget psy-rd
Hehe.. I've used more than 0.7 and 0.6... I've used anywhere from 0.6-0.9 (depending on the source). I know aq-strength greatly affects the picture, and I do adjust it based on the source. I guess I'm just wondering because I personally never found that a setting of 1.0 or higher to produce a good result. I usually find that it produces too many artifacts on faces/edges. And it doesn't make sense to me that a lower aq-strength is recommended for clean AND grainy sources, but a higher aq strength is recommended for "film". What exactly is considered "film"? Maybe I just haven't done enough encodes yet, I dunno.

BTW, I've used both aq mode 1 and 2. I'm not 100% sure of the differences. I just used whatever works best to my eyes. I do usually find that my QP averages are higher if I use mode 2, but sometimes it still looks better despite the higher QP averages.

Regarding psy-rd, my understanding is that it's a sharpness retention by applying less compression to edges/grain and that psy-trellis takes bits from flat/low detail areas and applies it to edges/grain. So with that said, would it be good to decrease it if you do notice some blocking or gradation issues in dark scenes and/or for clean sources? If it's a grainy film, is it better to increase psy to help retain grain?

Last edited by rahzel; 19th January 2012 at 18:57.
rahzel is offline   Reply With Quote
Old 20th January 2012, 06:44   #7  |  Link
nibus
Telewhining
 
Join Date: Mar 2010
Posts: 272
I think sources are so different that there is no "better" with AQ, even with sources that appear similar at first glance. You really just have to experiment with every encode if you want the optimal settings. And MatLz is right, I've found the best results come from tweaking psy-rd along with AQ. It also depends on the resolution you are encoding to - I've found HD material looks better with a lower aq while SD material needs a little higher.
nibus is offline   Reply With Quote
Reply


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 13:43.


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