Log in

View Full Version : Fixed quantiser, unexpectedly high bit rate


evilclive
29th December 2006, 19:58
I would like to use DivX Pro 6.4 to compress my huge collection of MPEG-1 files, to save some hard disk space.

The files were recorded using an original All in Wonder Radeon and MMC 7.7 software, from a PAL source with very little noise or ghosting. I used 2400 kbit/s at 352x288 pixels for the video - a good 70% higher than the recommended bit rate, and the files contain occasional long strings of 0xFF bytes, where there wasn't enough video data in the uncompressed source to fill the CBR stream.

I have tried transcoding them using VirtualDubMod and the DivX codec, with a one-pass quantiser-based setting, light noise reduction and the Balanced speed/quality preset. Turning on B-frames makes the files about 10% smaller for a given quantiser setting.

At a quantiser of 3, the transcoded files are scarcely any smaller than the source files, which defeats the purpose of transcoding them. A quantiser of 5 gets the DivX video files down to about 1000 kbit/s, which is what I want, but I know the usual recommendation given on this forum is to set the quantiser to 2, 2.5 or 3 when space is not that critical, and to use a two-pass encoding otherwise.

As MPEG-4 is meant to be a more efficient codec than MPEG-1, if my target files are the same size as the source files, all the extra data must be encoding artifacts in the source data, rather than the original signal.

I don't think I'm doing anything wrong, other than perhaps being a bit optimistic in trying to halve the size of all my files, without appreciable loss of video quality, just by using a more efficient codec.

Can I really hope to get near-DVD quality, albeit at quarter resolution, at around 1.0 Mbit/s video plus 160 kbit/s (ABR MP3) audio?

Is the art of DivX compression to obtain a bit rate you desire for a quality you're prepared to tolerate, rather than the other way round?

DarkZell666
29th December 2006, 20:24
I suspect your videos to be music videos, which often have high-motion and flashy colors. I had the same bad surprise: encoding @ Q2 didn't lower the filesize much, even with the low resolution.

I suggest you have a try with the insane/extreme (maximum) setting, and use more than 1 bframe (2 or 3 are welcome).

But hmm.. I suppose your MPEG1 files aren't the maximum quality possible either, which is why you should be grateful that DivX managed to keep a similar filesize at Q3.

Btw, if Q5 looks good for you, then stick to it. The recommendation is only based on what people here are prepared to watch. Q5 is the maximum I'm prepared to watch anyway.

dukey
30th December 2006, 13:43
i found with xvid and the same settings (constant quant) the files come out much smaller. Like up to 30% smaller. I am not sure what divx is doing with b frames in 1 pass mode. It's either not using many b frames or using the same quant for b frames as I/P frames. The drf analyser and the mpeg4 modifier give me different results for b frames which is confusing.