babyray-uk
10th February 2005, 10:07
Hi Guys
Up till a short time ago I assumed (incorrectly it would seem) that doing a single pass X-viD encode was CBR and that the main reason for doing two pass X-viD encode was for the encoder to distribute the bits to obtain the same file size but 'better' quality (i.e. VBR), so a 1000mb two pass file would be better quality than a 1000mb single pass file.
After reading this thread (http://forum.doom9.org/showthread.php?s=&threadid=80066&highlight=1000mb) it would seem I am not correct in my assumption :) and that 2 pass encoding is only worth doing if you want to hit a file size.
I am currently working on a Perl script that automates a lot of my video encoding I am not worried about hitting a file size and my current logic at the moment is
1. Do a quant 2 full quality first pass.
2. Take the total of the 6th column in the .stats file.
3. Add the .avi overhead size.
4. Multiply this by the quality desired (70% for example).
5. Do a second pass using the size.
My two questions are...
If I am not worried about hitting a file size but I am worried about the actual file size (or I would just encode everything at single pass quant 2) should I carry on using the above method or will single pass at a lower quant give me the same quality as two passes?
If I should use a single pass instead of two passes what is the relationship between quality and quant? is it a sliding scale or a direct relationship i.e.
100% = Quant 2 (1?)
75% = Quant 8.5
50% = Quant 16
25% = Quant 23.5
If it is a sliding scale how do I work out what percentage quality = what quant?
Many thanks in advance, as always :)
BabyRaY
Up till a short time ago I assumed (incorrectly it would seem) that doing a single pass X-viD encode was CBR and that the main reason for doing two pass X-viD encode was for the encoder to distribute the bits to obtain the same file size but 'better' quality (i.e. VBR), so a 1000mb two pass file would be better quality than a 1000mb single pass file.
After reading this thread (http://forum.doom9.org/showthread.php?s=&threadid=80066&highlight=1000mb) it would seem I am not correct in my assumption :) and that 2 pass encoding is only worth doing if you want to hit a file size.
I am currently working on a Perl script that automates a lot of my video encoding I am not worried about hitting a file size and my current logic at the moment is
1. Do a quant 2 full quality first pass.
2. Take the total of the 6th column in the .stats file.
3. Add the .avi overhead size.
4. Multiply this by the quality desired (70% for example).
5. Do a second pass using the size.
My two questions are...
If I am not worried about hitting a file size but I am worried about the actual file size (or I would just encode everything at single pass quant 2) should I carry on using the above method or will single pass at a lower quant give me the same quality as two passes?
If I should use a single pass instead of two passes what is the relationship between quality and quant? is it a sliding scale or a direct relationship i.e.
100% = Quant 2 (1?)
75% = Quant 8.5
50% = Quant 16
25% = Quant 23.5
If it is a sliding scale how do I work out what percentage quality = what quant?
Many thanks in advance, as always :)
BabyRaY