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. |
23rd February 2008, 00:44 | #21 | Link | |
(schein)heilig
Join Date: Jun 2003
Location: Germany
Posts: 512
|
This is fantastic news! Thx for that patch, Dark Shikari. Now, there’s no chance you might get super-bored and port CRF to Xvid?
I did some tests with wizboy11’s binary and short clips (10000 frames) from five PAL DVDs. Quote:
Code:
| size (KByte) | Diff. | Diff. by frame type (%) sample | VAQ off | VAQ on | % | I | P | B -----------+---------+--------+-------+-------+-------+-------- 1 dialogue | 100958 | 87338 | -13.4 | -11.3 | -23.0 | +7.5 -----------+---------+--------+-------+-------+-------+-------- 2 night | 186572 | 169400 | -9.2 | -8.6 | -14.2 | +2.7 -----------+---------+--------+-------+-------+-------+-------- 3 CG | 180319 | 156962 | -13.0 | -9.5 | -19.9 | +5.1 -----------+---------+--------+-------+-------+-------+-------- 4 action | 246899 | 218558 | -11.5 | -8.1 | -16.3 | +2.0 -----------+---------+--------+-------+-------+-------+-------- 5 noisy | 460090 | 403804 | -12.2 | -10.9 | -18.6 | +2.9
__________________
Brother John When lost in BeSweet's options, have a look at the Commandline Reference. DVD nach MPEG-4 klappt nicht? Verzweifelt? Auf zum Encodingwissen! |
|
23rd February 2008, 01:05 | #22 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
Xvid has really really nasty restrictions on quantizers. From what I recall: 1. A "DQuant" block is a block that has a different quantizer from the previous block. In the case of VAQ, this would be an edge block, for example. 2. DQuant blocks cannot have a difference of more than +/- QP from the frame QP (I think). 3. DQuant blocks cannot use 4mv. (WTF? Why?) 4. DQuant blocks cannot use GMC. (WTF? Why?) 5. B-frames have even weirder restrictions on quantizers. 6. The quantizer scale as a whole is crap. It has less quantizer resolution at high qualities, and high quantizer resolution at low qualities (i.e. the difference between 1 and 2 and 3 is much bigger than the difference between 25 and 26 and 27). The only real reason other than simplicity to lower quantizer resolution is to save bits when encoding QP_deltas... but this means you spend more bits on QP_deltas at lower bitrates, where it actually matters, but fewer bits at higher bitrates, where it hardly matters at all. How senseless. Last edited by Dark Shikari; 23rd February 2008 at 01:12. |
|
23rd February 2008, 01:56 | #23 | Link |
Turkey Machine
Join Date: Jan 2005
Location: Lowestoft, UK (but visit lots of places with bribes [beer])
Posts: 1,953
|
Holy s**t Dark Shikari! This is great news.
And are those weird restrictions you refer to specific to Xvid, or do they exist in MPEG-4 ASP as a spec?
__________________
On Discworld it is clearly recognized that million-to-one chances happen 9 times out of 10. If the hero did not overcome huge odds, what would be the point? Terry Pratchett - The Science Of Discworld |
23rd February 2008, 03:23 | #25 | Link |
Turkey Machine
Join Date: Jan 2005
Location: Lowestoft, UK (but visit lots of places with bribes [beer])
Posts: 1,953
|
That's a shame. No wonder you like to program for AVC so much!
__________________
On Discworld it is clearly recognized that million-to-one chances happen 9 times out of 10. If the hero did not overcome huge odds, what would be the point? Terry Pratchett - The Science Of Discworld |
23rd February 2008, 03:44 | #26 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,391
|
Regarding (2) - AFAIR for DQUANT blocks, QP may not differ more than +/-2 from the previously coded block. So theoretically the full quant range from 1 to 31 can be used in a frame, just the difference between "adjacent" blocks is limited. Dunno, perhaps it's a restriction to make implementations of HW decoders easier? Could also be the reason for not allowing 4mv for DQUANTS, but again dunno.
GMC is "WTF" anyway - major effort, minor gain. There must be a reason GMC isn't in the spec's for AVC ...
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
23rd February 2008, 04:06 | #28 | Link |
Registered User
Join Date: Feb 2007
Location: ::1
Posts: 1,236
|
Yeah, even in animes where there's lots of panning+zooming, I see very little benefit with GMC. And it breaks many, many standalones and portables. Same thing with QPel. Not enough benefit to break the chance that I will use the video on one of those later on.
|
23rd February 2008, 04:44 | #29 | Link | ||
easily bamboozled user
Join Date: Sep 2002
Location: Atlanta
Posts: 373
|
Quote:
In the grand scheme of things, Advanced Simple Profile was a very transitory standard, and the current state of hardware has actually made ASP's initial purpose totally irrelevant, while the standard at the same time severely constrains any further development. Practically since 2004 there hasn't been anywhere to go except H.264. Quote:
I can't believe there are still standalone players that can't handle either GMC or QPel. Especially considering how little potential ASP has without QPel. Who are these people who own such incredibly old DVD players yet haven't thrown them in the trash yet? |
||
23rd February 2008, 09:21 | #30 | Link |
User of free A/V tools
Join Date: Jul 2006
Location: SK
Posts: 826
|
Yes, I'd really appreciate that xvid_encraw version with separate VAQ option. The current state where it overrides lumimasking option is not a good solution IMHO. One could easily forget about it and be VERY confused with outcoming encodes later
|
23rd February 2008, 13:31 | #31 | Link | ||
(schein)heilig
Join Date: Jun 2003
Location: Germany
Posts: 512
|
@Dark Shikari
I see. So VAQ basically is about as close to CRF as Xvid can get. Those bad quant restrictions indeed are one of the reason why I’d like to abandon Xvid. There are more important ones making me stay, though. And VAQ is definitely one more of those. Quote:
Quote:
__________________
Brother John When lost in BeSweet's options, have a look at the Commandline Reference. DVD nach MPEG-4 klappt nicht? Verzweifelt? Auf zum Encodingwissen! |
||
23rd February 2008, 18:00 | #32 | Link | |
Registered User
Join Date: Feb 2007
Location: ::1
Posts: 1,236
|
Quote:
http://www.archos.com/products/gen_5...global&lang=en Yep, to my eyes, not enough benefit to make up for lost compressibility. |
|
23rd February 2008, 22:41 | #33 | Link |
Registered User
Join Date: Feb 2007
Location: ::1
Posts: 1,236
|
tested with VDub 1.7.8. The new AQ shaves 9MB off a formerly 54MB video. CQ 4, little over 3mins. This is Gears of War footage.
I couldn't tell a difference playing at full speed. Frame-by-frame, no AQ was better overall, but only very slightly. Some frames it actually seemed to help. One thing I did notice was in the beginning, I had some text that was in a special font. It was a deep red, with small black holes in the letters. Just interesting. No AQ: AQ: It's a lot easier to see a difference flipping between them |
23rd February 2008, 22:50 | #34 | Link |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Note that AQ is *designed* to decrease quality on sharp edges, such as text like that, so you can clearly see the difference there.
The idea is that generally such sharp edges and complex text takes such a large amount of bits that the bits are probably better used elsewhere. As you can tell, AQ lowers quality slightly at the same QP, but of course can improve quality if you try to keep to the same bitrate. |
23rd February 2008, 23:49 | #35 | Link |
Aging Video Hobbyist
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
|
I'm sorry, I'm having some trouble understanding the benefit of VAQ and wonder if someone can explain it in layman's terms?
My usage of Xvid these days is mostly HDTV profile w/single pass target 2.00 quantizer and I don't care about filesize--will I see a benefit anyway to VAQ? Or is text the only place one should see a difference? |
24th February 2008, 00:10 | #36 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
Text is an extreme example of the former. |
|
24th February 2008, 00:33 | #38 | Link |
Learning
Join Date: Nov 2006
Location: Earth
Posts: 88
|
What a great addition. I'll definitely give it a go. Thanks a lot, DarkShikari
(Apart from our eyes ofc,) similar to x264 encode (SSIM, Avg QP, etc), are there any numbers that should look which would tell us something about the xvid quality? |
24th February 2008, 00:40 | #39 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
And save as full-size PNGs. |
|
24th February 2008, 01:16 | #40 | Link |
Aging Video Hobbyist
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
|
Dark, I somehow managed to get the videos OPPOSITE from what they actually were!!!???!! Man, dunno how I did that--the non-AQ video is the washed-out one; the VAQ has better contrast. I will edit my other post, sorry...
|
Tags |
xvid aq, xvid vaq |
Thread Tools | Search this Thread |
Display Modes | |
|
|