PDA

View Full Version : Xvid is undersized in matroska


robchartley
1st May 2005, 01:31
Xvid consistently undershoots by a meg or two when I use the matroska format. I vaguely remember that Xvid takes into account the AVI overhead which I guess matroska does not have, so I guess I am asking whether is anyway to make xvid not assume an AVI output or fix this in some otherway.

darkavatar1470
1st May 2005, 02:55
use Gordian Knot for filesize/bitrate calculations, it can do the mkv overhead estimate and other things for you.

robchartley
1st May 2005, 06:10
no I know and I do use gordian knot, and I still get undersized files. I think the problem is that XVID also does overhead prediction based on the AVI format, but when the xvid stream is muxed into an MKV it is too small. For example i recently encoded a movie where the target size of the video was 663242KB according to GKnot but the mkv with just the video stream was 661790KB i then muxed it into an avi and it was 663112KB. Which is pretty damn close to the target bit rate.

Doom9
1st May 2005, 11:54
as this might be a problem with GKnot's MKV bitrate calculations I'm moving this to the GKnot forum.

len0x
1st May 2005, 12:23
You have to check carefully which overhead settings you're using in "Interleaving and AV-Overhead" section.

iradic
1st May 2005, 14:59
i thing rob is right...

just check gknot calc and xvid calc... for the same settings of course

example:
2h video on 1cd - 716800 kb (no audio)

gnkot - 716800 target video size
xvid - 718461 target video size

bye

len0x
1st May 2005, 15:29
yes, XviD indeed has AVI overhead taken into account when producing video stream...