Sane aq settings for h264 encoding
- BasharOfTheAges
- Just zis guy, you know?
- Joined: Tue Sep 14, 2004 11:32 pm
- Status: Breathing
- Location: Merrimack, NH
Sane aq settings for h264 encoding
So, I'm removing some minor banding, made more obvious with an upscale from 480p to 720p (not in the mood to debate the need of it). I've followed advice from a previous encode where I had horribly strong banding, and added grain and whatnot, but when it came to the second part of the advice, adjusting the aq setting for the encode, I found I didn't really have a grasp on the scale that was being used and where the benefit/drawback tipping points were... or even what the drawbacks to high values might be. Anyone have insight?
Anime Boston Fan Creations Coordinator (2019-2023)
Anime Boston Fan Creations Staff (2016-2018)
Another Anime Convention AMV Contest Coordinator 2008-2016
| | |
Anime Boston Fan Creations Staff (2016-2018)
Another Anime Convention AMV Contest Coordinator 2008-2016
| | |
- mirkosp
- The Absolute Mudman
- Joined: Mon Apr 24, 2006 6:24 am
- Status: (」・ワ・)」(⊃・ワ・)⊃
- Location: Gallarate (VA), Italy
- Contact:
Re: Sane aq settings for h264 encoding
Values lower than 1 help compression, but if too low introduce obvious banding. Values greater than one will preserve fine detail, at the cost of even huge bitrate increases. We're talking more or less of actual bitrate doubling from 0.7 to 1.4 (which makes sense, I guess). Generally a 0.8 value is very safe, won't inflate the filesize and overall the banding should be absent. The default 0.6 for the animation preset is more meant for western animation, which has much less gradients and details than eastern animation, as it uses more paint bucket-like fillings.
- BasharOfTheAges
- Just zis guy, you know?
- Joined: Tue Sep 14, 2004 11:32 pm
- Status: Breathing
- Location: Merrimack, NH
Re: Sane aq settings for h264 encoding
Exactly what I was looking for, thanks.
Anime Boston Fan Creations Coordinator (2019-2023)
Anime Boston Fan Creations Staff (2016-2018)
Another Anime Convention AMV Contest Coordinator 2008-2016
| | |
Anime Boston Fan Creations Staff (2016-2018)
Another Anime Convention AMV Contest Coordinator 2008-2016
| | |
-
- Joined: Tue Dec 25, 2007 8:26 am
- Status: better than you
- Contact:
Re: Sane aq settings for h264 encoding
If you have heavy handing (FMA:B, Cobra, etc) then AQ of up to about 1.2-1.3 is necessary. Anything more than that and you want to look at dithering and 10bit encoding tbqh. The general way it works is as mirko said, where bits from flat areas are relocated to areas of higher detail. The strength is a scale of 0-3 on how aggressive that is. Note that you can use zones in x264 to apply different strengths to different sections, IIRC anyway. Once you get to high AQ strengths however, you tend to make flat areas blocky, and at lower strengths you'll have the opposite effect of detailed areas getting squandered for useless chroma gradients.
- mirkosp
- The Absolute Mudman
- Joined: Mon Apr 24, 2006 6:24 am
- Status: (」・ワ・)」(⊃・ワ・)⊃
- Location: Gallarate (VA), Italy
- Contact:
Re: Sane aq settings for h264 encoding
No, you can't. As D_S stated himself, the way aq works is incompatible --zones and would require its own --aq-zones command if anything.Mister Hatt wrote: Note that you can use zones in x264 to apply different strengths to different sections, IIRC anyway.
Related: http://forum.doom9.org/showthread.php?t=162268
-
- Joined: Tue Dec 25, 2007 8:26 am
- Status: better than you
- Contact:
Re: Sane aq settings for h264 encoding
Oh right. When I wrote that I was like "now AQ either works with zones or is the one thing that doesn't… well nobody would zone crf, must be aq" and then I remembered a few hours later w. Also I totally wrote IIRC, first "I" of which is "if" :3
- mirkosp
- The Absolute Mudman
- Joined: Mon Apr 24, 2006 6:24 am
- Status: (」・ワ・)」(⊃・ワ・)⊃
- Location: Gallarate (VA), Italy
- Contact:
-
- Joined: Tue Dec 25, 2007 8:26 am
- Status: better than you
- Contact:
Re: Sane aq settings for h264 encoding
Yes I know. What I meant was the main reason for zoning was either CRF or AQ but I forgot which.