trbarry
27th February 2002, 21:39
Maybe this isn't the right forum for it and I'll obviously betray my ignorance no matter where I post it. But lots of interesting developers hang out here, so I'll try anyway.
I don't understand DivX and Xvid 2-pass. It seems it does it twice, to take advantage of info gained on the first pass and get the size right on the 2nd try. I can agree it certainly seems to always work better on either Xvid or DivX than any single pass.
But why is it done like it is? It does not keep enough information on the first pass so you have to go through the same, say, DVD2AVI, Avisynth, IVTC, filters, etc., all over again.
Wouldn't it just be more efficient to write a complete bigger file with the min quantizer, or max bit rate, or whatever. Then the second pass could operate just from that file and the log file, shrinking the size somewhat more precisely. Maybe it could operate somewhat like ReMPEG if that sort of approach works for mpeg4.
Even at a high bit rate the IO on the second pass would probably be much lower because the XviD file would typically be smaller. And it might avoid all the other baggage and overhead. The motion search would be already done and maybe also much of the DCT.
Is there something about mpeg4 that makes it hard to shrink in place?
Just another dumb idea. ;)
- Tom
I don't understand DivX and Xvid 2-pass. It seems it does it twice, to take advantage of info gained on the first pass and get the size right on the 2nd try. I can agree it certainly seems to always work better on either Xvid or DivX than any single pass.
But why is it done like it is? It does not keep enough information on the first pass so you have to go through the same, say, DVD2AVI, Avisynth, IVTC, filters, etc., all over again.
Wouldn't it just be more efficient to write a complete bigger file with the min quantizer, or max bit rate, or whatever. Then the second pass could operate just from that file and the log file, shrinking the size somewhat more precisely. Maybe it could operate somewhat like ReMPEG if that sort of approach works for mpeg4.
Even at a high bit rate the IO on the second pass would probably be much lower because the XviD file would typically be smaller. And it might avoid all the other baggage and overhead. The motion search would be already done and maybe also much of the DCT.
Is there something about mpeg4 that makes it hard to shrink in place?
Just another dumb idea. ;)
- Tom