AnimeSuki Forums

Register Forum Rules FAQ Members List Social Groups Search Today's Posts Mark Forums Read

Go Back   AnimeSuki Forum > Anime Related Topics > General Anime > Fansub Groups

Notices

Reply
 
Thread Tools
Old 2008-03-31, 02:31   Link #1
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
x264: Adaptive Quantization and You!

There's been quite a lot of improvements to x264 lately, mostly speed-oriented. Indeed, performance has gotten 10-20% faster in just the past 3 weeks, depending on what settings you use. The latest builds can be found at x264.nl.

But there has recently been one very major change that will certainly affect anime encoding with x264: adaptive quantization. Now in the official x264 and enabled by default, variance-based AQ (VAQ) attempts to improve quality in flatter areas of the image at the cost of more complex areas of the image. Generally, this helps resolve the classic problem x264 has of overflattening and blurring out fine detail in an image. Even in anime, which it wasn't designed for, the result can be pretty beneficial:



On the other hand, especially for those groups that love to release subs at absurdly low bitrates, AQ might not always be beneficial, since the only way to get acceptable quality at stupidly low bitrates is to just accept the blurring of fine details.

tl;dr: if you're one of those people who loves to make 40MB x264 rips of animes, you might want to try turning AQ off and seeing if its better or not to your eyes. As a general warning, AQ redistributes bits between frames, so some scenes will lose bits and others gain bits as AQ sees fit.
Dark Shikari is offline   Reply With Quote
Old 2008-03-31, 02:59   Link #2
checkers
Part 8
*IT Support
 
 
Join Date: Jul 2006
Location: Western Australia
Age: 36
Send a message via MSN to checkers
Or if it's sort-of breaking stuff, you can reduce the strength with --aq-strength. My tests with low-detail low-bitrate anime have basically shown there's very little difference either way. Obviously it produces magic & stars at high bitrates though :-)

Last edited by checkers; 2008-03-31 at 05:08.
checkers is offline   Reply With Quote
Old 2008-03-31, 06:36   Link #3
martino
makes no files now
 
 
Join Date: May 2006
And how does it compare to Haali's AQ then? I remember Shikari mentioning somewhere that it wasn't as good for anime as for live action footage...
__________________
"Light and shadow don't battle each other, because they're two sides of the same coin"
martino is offline   Reply With Quote
Old 2008-03-31, 10:03   Link #4
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Quote:
Originally Posted by martino View Post
And how does it compare to Haali's AQ then? I remember Shikari mentioning somewhere that it wasn't as good for anime as for live action footage...
That seems to be somewhat questionable also at this point. Haali's AQ is good at avoiding blocking in "flat but not completely flat" areas, but does absolutely nothing for the kind of blurring shown in the first post.

Overall I think VAQ is probably better than Haali's, even for anime.
Dark Shikari is offline   Reply With Quote
Old 2008-12-24, 21:51   Link #5
guest0815
Member
 
Join Date: Aug 2008
Is VAQ supposed to save that much bits, without a noteworthy hit on encoding speed to boot? Those are the numbers for a minute of mixed material with no VAQ and default VAQ 1 there:

Spoiler:
guest0815 is offline   Reply With Quote
Old 2008-12-24, 23:17   Link #6
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Quote:
Originally Posted by guest0815 View Post
Is VAQ supposed to save that much bits, without a noteworthy hit on encoding speed to boot? Those are the numbers for a minute of mixed material with no VAQ and default VAQ 1 there:
CRF values with very different AQ values are not comparable in terms of quality. Remember, CRF X with Y settings is not necessarily exactly the same quality as CRF X with Z settings, especially if Y and Z are very very different. That is not the purpose of CRF.
Dark Shikari is offline   Reply With Quote
Old 2008-12-25, 01:53   Link #7
guest0815
Member
 
Join Date: Aug 2008
How would I go about evaluating its use? I compared a few before/after frames and all I noticed was a slight image degradation but flat areas (provided I understand what those are correctly. I used backgrounds of a cloudy sky, a wooden table and a marbled floor) looked pretty much the same. Pixel may have been shuffled around a little bit but it didn't seem like an improvement to me. The raws could have been too smooth or maybe x264 is just so awesome that there is no detail lost to begin with . If I can't make out a visual difference should I have it turned on or off then?

Last edited by guest0815; 2008-12-25 at 02:04.
guest0815 is offline   Reply With Quote
Old 2008-12-25, 05:47   Link #8
Soichiro
Real-life Lolicon
 
 
Join Date: Jun 2008
The easiest way to compare would be to compare PSNR and SSIM values (which means getting rid of the --no-psnr and --no-ssim flags). Of course, this isn't the best way (which would be using your eyes), but it is simple and generally effective, as long as Psy optimizations are not being compared.
Soichiro is offline   Reply With Quote
Old 2008-12-25, 08:03   Link #9
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Quote:
Originally Posted by Soichiro View Post
The easiest way to compare would be to compare PSNR and SSIM values (which means getting rid of the --no-psnr and --no-ssim flags). Of course, this isn't the best way (which would be using your eyes), but it is simple and generally effective, as long as Psy optimizations are not being compared.
AQ counts as a psyopt, remember...
Quote:
Originally Posted by guest0815 View Post
How would I go about evaluating its use? I compared a few before/after frames and all I noticed was a slight image degradation but flat areas (provided I understand what those are correctly. I used backgrounds of a cloudy sky, a wooden table and a marbled floor) looked pretty much the same. Pixel may have been shuffled around a little bit but it didn't seem like an improvement to me. The raws could have been too smooth or maybe x264 is just so awesome that there is no detail lost to begin with . If I can't make out a visual difference should I have it turned on or off then?
You should general leave it on unless there's good reason not to. Also, all comparisons should be done at the same bitrate.
Dark Shikari is offline   Reply With Quote
Old 2008-12-31, 21:48   Link #10
lubczyk
Senior Member
 
Join Date: Jan 2005
Is there a point to leaving AQ on if you're doing CRF 18 encoding?
lubczyk is offline   Reply With Quote
Old 2008-12-31, 21:58   Link #11
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Quote:
Originally Posted by lubczyk View Post
Is there a point to leaving AQ on if you're doing CRF 18 encoding?
Sure--you often need QPs as low as 10-12 to stop banding in completely flat areas, so it certainly still helps.
Dark Shikari is offline   Reply With Quote
Old 2008-12-31, 22:38   Link #12
lubczyk
Senior Member
 
Join Date: Jan 2005
Quote:
Originally Posted by Dark Shikari View Post
Sure--you often need QPs as low as 10-12 to stop banding in completely flat areas, so it certainly still helps.
Thanks for the advice.
lubczyk is offline   Reply With Quote
Reply

Thread Tools

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 -5. The time now is 19:36.


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