jon.schaffer
24th May 2004, 12:01
Continuation of a discussion here:
http://forum.doom9.org/showthread.php?postid=497294#post497241
Originally posted by Teegedeck
Can you do a comparison sometime and post screenshots of some frames from the same video with and without AQ?
...You could/should make it a new comparison-thread and perhaps leave a redirect here.
Here it is. I tested two movie sequences. The first belongs to Minority Report (1600 frames sequence - about 100 frames are hurt), the second to Singin' in the Rain (1000 frames sequence - the whole sequence is hurt) - I choose these ones because they presented the problem in these full-movies encodings. I used simple AVS scripts (AviSynth 2.53 - MPEG2Dec3dg_110.dll plug-in autoloaded):
MPEG2Source("D:\Werxx\Video\Minority Report\Minority.d2v")
ConvertToYV12
BicubicResize(640,256,0,0.75,4,80,716,416)
###
MPEG2Source("D:\Werxx\Video\Singin' in the rain\Singin.d2v")
ConvertToYV12
BicubicResize(640,480,0,0.75)
Then I used VirtualDub 1.5.10 and XviD 1.0 Final to make 2-pass encodings, with the XviD default settings (except that I used Full Quality 1st-pass - this improved quality of the 2nd pass). I then verified these first results with 1-pass encodings at fixed quantizers - Q2, Q3 and Q4 (I got the same results). I didn't post the original frames (from DVD), their quality is OK.
•The results (captured in VDub; below is the same frame using AviSynth's DirectShowSource plug-in, with the FFDShow's OSD - but... you know it...):
Without AQ:
http://img9.imageshack.us/img9/175/MinorityR_DefaultSettings_AQ-.jpg
With AQ:
http://img9.imageshack.us/img9/8578/MinorityR_DefaultSettings_AQon.jpg
=>As you can see, for this frame, the normal quantizer is 3, but numerous macroblocks are Q4. For this picture and for these zones, it's too high...
• The following pictures are the same frame as above, but the sequence was encoded with personnal settings (MPEG-quantization; only 1 B-frame each time; B-frame quantizer offset = 0.75; key-frame every 250 frames - all the rest is default):
Without AQ:
http://img9.imageshack.us/img9/5084/MinorityR_PersonnalSettings_AQ-.jpg
With AQ:
http://img9.imageshack.us/img9/7294/MinorityR_PersonnalSettings_AQon.jpg
=> My settings lead to a Q4 frame (with more detail thanks to MPEG-quantization), which then lead up to Q6-macroblocks with AQ...
• Results of the second sequence (once again: XviD default settings are used, with I]Full Quality 1st-pass[/I]):
Without AQ:
http://img9.imageshack.us/img9/588/Singin01_DefaultSettings_AQ-.jpg
With AQ: (look at the lantern)
http://img9.imageshack.us/img9/8500/Singin01_DefaultSettings_AQ.jpg
Without AQ:
http://img9.imageshack.us/img9/35/Singin02_DefaultSettings_AQ-.jpg
With AQ: (the left side of the picture is the most hurt)
http://img9.imageshack.us/img9/9949/Singin02_DefaultSettings_AQ.jpg
=> here, even some details (the lantern on the first picture) are hurted.
Maybe this blocking may appear slight for some... in particular on still images (and especially the second frame from Singin' in the Rain). But the problem is more important when the movie is played back: the blocks are moving and become much more visible.
It seems to me that the problem in these cases is that the AQ process is applied to zones which are not dark enough nor bright enough for the eyes... AQ is here applied to zones with nearly-plain colors or color gradients, and this seems to be too destructive.
By disabling AQ in such scenes, we can keep good quality without losing much bytes for the rest of the movie.
It's the reason why I evoked a possibility to enable/disable AQ for specific scenes ("zones"). For example, for some scenes with dark colored lightings/skies or underwater views.
Anyway AQ remains, for me, a powerful option... "Still, the effect is remarkable" as you said... ;-)
Hope it may be useful,
Jon
PS: I used low-compressed JPEG and compared them with PNG, and the quality is OK for this test (since the thing to see is blocking). And... beware, photobucket.com is cool... but... pictures above 250 KB are downsized...
http://forum.doom9.org/showthread.php?postid=497294#post497241
Originally posted by Teegedeck
Can you do a comparison sometime and post screenshots of some frames from the same video with and without AQ?
...You could/should make it a new comparison-thread and perhaps leave a redirect here.
Here it is. I tested two movie sequences. The first belongs to Minority Report (1600 frames sequence - about 100 frames are hurt), the second to Singin' in the Rain (1000 frames sequence - the whole sequence is hurt) - I choose these ones because they presented the problem in these full-movies encodings. I used simple AVS scripts (AviSynth 2.53 - MPEG2Dec3dg_110.dll plug-in autoloaded):
MPEG2Source("D:\Werxx\Video\Minority Report\Minority.d2v")
ConvertToYV12
BicubicResize(640,256,0,0.75,4,80,716,416)
###
MPEG2Source("D:\Werxx\Video\Singin' in the rain\Singin.d2v")
ConvertToYV12
BicubicResize(640,480,0,0.75)
Then I used VirtualDub 1.5.10 and XviD 1.0 Final to make 2-pass encodings, with the XviD default settings (except that I used Full Quality 1st-pass - this improved quality of the 2nd pass). I then verified these first results with 1-pass encodings at fixed quantizers - Q2, Q3 and Q4 (I got the same results). I didn't post the original frames (from DVD), their quality is OK.
•The results (captured in VDub; below is the same frame using AviSynth's DirectShowSource plug-in, with the FFDShow's OSD - but... you know it...):
Without AQ:
http://img9.imageshack.us/img9/175/MinorityR_DefaultSettings_AQ-.jpg
With AQ:
http://img9.imageshack.us/img9/8578/MinorityR_DefaultSettings_AQon.jpg
=>As you can see, for this frame, the normal quantizer is 3, but numerous macroblocks are Q4. For this picture and for these zones, it's too high...
• The following pictures are the same frame as above, but the sequence was encoded with personnal settings (MPEG-quantization; only 1 B-frame each time; B-frame quantizer offset = 0.75; key-frame every 250 frames - all the rest is default):
Without AQ:
http://img9.imageshack.us/img9/5084/MinorityR_PersonnalSettings_AQ-.jpg
With AQ:
http://img9.imageshack.us/img9/7294/MinorityR_PersonnalSettings_AQon.jpg
=> My settings lead to a Q4 frame (with more detail thanks to MPEG-quantization), which then lead up to Q6-macroblocks with AQ...
• Results of the second sequence (once again: XviD default settings are used, with I]Full Quality 1st-pass[/I]):
Without AQ:
http://img9.imageshack.us/img9/588/Singin01_DefaultSettings_AQ-.jpg
With AQ: (look at the lantern)
http://img9.imageshack.us/img9/8500/Singin01_DefaultSettings_AQ.jpg
Without AQ:
http://img9.imageshack.us/img9/35/Singin02_DefaultSettings_AQ-.jpg
With AQ: (the left side of the picture is the most hurt)
http://img9.imageshack.us/img9/9949/Singin02_DefaultSettings_AQ.jpg
=> here, even some details (the lantern on the first picture) are hurted.
Maybe this blocking may appear slight for some... in particular on still images (and especially the second frame from Singin' in the Rain). But the problem is more important when the movie is played back: the blocks are moving and become much more visible.
It seems to me that the problem in these cases is that the AQ process is applied to zones which are not dark enough nor bright enough for the eyes... AQ is here applied to zones with nearly-plain colors or color gradients, and this seems to be too destructive.
By disabling AQ in such scenes, we can keep good quality without losing much bytes for the rest of the movie.
It's the reason why I evoked a possibility to enable/disable AQ for specific scenes ("zones"). For example, for some scenes with dark colored lightings/skies or underwater views.
Anyway AQ remains, for me, a powerful option... "Still, the effect is remarkable" as you said... ;-)
Hope it may be useful,
Jon
PS: I used low-compressed JPEG and compared them with PNG, and the quality is OK for this test (since the thing to see is blocking). And... beware, photobucket.com is cool... but... pictures above 250 KB are downsized...