Log in

View Full Version : What's the Best Quality for XviD


DoC hEx
21st January 2005, 07:54
I'm trying to restore a very noisy source and have an AviSynth script that does a very good job of fixing this problem while retaining a lot of the picture's detail. But I don’t know what would be the best settings to use in XviD.

I plan on only doing a single pass because the AviSynth takes about 3 seconds a frame (LoL don’t ask :( ) so bitrates are unlimited for the initial encoding. I was considering Huffman but the files were just too large. Would should body be able to help me out with the best settings for a single pass, unlimited bitrate, plus I’m not concerned about encoding time, I’m just after high quality.

b0b0b0b
21st January 2005, 07:58
min quant 1, max quant 1, across the board?

Didée
21st January 2005, 12:42
Originally posted by DoC hEx
to restore a very noisy source and have an AviSynth script that does a very good job of fixing this problem while retaining a lot of the picture's detail ... AviSynth takes about 3 seconds a frame
Would you mind posting the script?

About XviD settings - personally I wouldn't use quant 1 (somehow I'm allergic against that).
Use XviD's defaults, plus:

- qpel
- 1 Bframe max. / sensitivity = -1
- MSE 6 - Ultra high
- VHQ=2 if there's some noise left, else VHQ=4
- VHQ for Bframes
- use a hi-bitrate custom quant matrix like SixOfNine or even EQM_V3uhr
- with such a matrix, encode @ fixed quant 2.

You could also disable Bframes completely, but that would make the encoding noticeably bigger. (You said "unlimited bitrate" - but then, you also said that the lossless encoding was "just too large". Aaaah, you *do have* a bitrate limit ;) )

stephanV
21st January 2005, 12:53
Originally posted by Didée
- 1 Bframe max. / sensitivity = -1

Why sensitivity -1? Isnt that almost the same as turning them off?

Didée
21st January 2005, 13:23
No. -1 gives just slightly fewer B-frames. Big (small) values in range of -10 to -30 will "almost disable" Bframes.

Besides, it gives more of a "pro" feeling to have adjusted something ;) - but in that range of weak compression, I doubt there is to see much difference at all. Especially when the original source was "very noisy" - I'm keen on seeing that magic script :)

DoC hEx
21st January 2005, 15:51
You’ve already seen it over at http://mf.onthanet.com/forum/ Though the script is a combination of Soulhunter & mf!wN0rsoU7vI work which I have tweaked for my own needs.

http://mf.onthanet.com/forum/index.php/topic,127.msg1277.html#msg1277

Didée
21st January 2005, 16:52
Oh, THAT script. Yes I remember. Actually never tried it, since none of my sources fit to the script ;)

Though the script is a combination of Soulhunter & mf!wN0rsoU7vI work So how comes there is lots of code in it that seems so familiar to me, in an unexplainable manner :D

DoC hEx
21st January 2005, 17:23
So how comes there is lots of code in it that seems so familiar to me, in an unexplainable manner :D
LoL, is some of your code in there also??? If so me bad.

Trephin
17th February 2005, 22:22
Originally posted by Didée
Use XviD's defaults, plus:

- qpel
- 1 Bframe max. / sensitivity = -1
- MSE 6 - Ultra high
- VHQ=2 if there's some noise left, else VHQ=4
- VHQ for Bframes
- use a hi-bitrate custom quant matrix like SixOfNine or even EQM_V3uhr
- with such a matrix, encode @ fixed quant 2.

I'm experimenting right now with saving some DVs of mine as high quality XviD. "fixed quant 2" above, what does that mean? Does it mean I set Target quantizer to 2 or should I specify something in Zone Options or by setting min and max quantizer to 2 for all frame types?

KaiserS
17th February 2005, 22:26
If you are just doing a 1 pass encode, then yes you just set target quantizer of 2.

Trephin
17th February 2005, 22:33
OK. But that isn't really fixed quant then, since the b-frames are quant 4.

KaiserS
17th February 2005, 22:48
Originally posted by Trephin
OK. But that isn't really fixed quant then, since the b-frames are quant 4.

That is the quant for the P-frames that you are setting, so yes it is a fixed quant. If you want the b-frames to be quant 2 as well, just make the offset 0 and ratio 1.

Sharktooth
18th February 2005, 13:56
@DoC hEx: For a lossless-like (that means it is not lossless but you won't notice it...) compression i suggest you to try a custom matrix named EQM V3EHR. You can find it in my signature. Use it @ Q2, but be aware of the filesize, it should be lower than huffyuv though.
If you need a smaller but still detailed file use EQM V3UHR @ Q2.

DoC hEx
18th February 2005, 17:31
@Sharktooth
Cheers I'll give it a go over the weekend!