View Full Version : sub zlib compression support in XviD calc


Stian
16th June 2004, 16:39
First of all, I love the fact that the XviD calc supports matroska, and subs for that matter. However, I've found that the prediction can be quite misleading at times, especially when i'm using mkv and subs together. The default for matroska is to compress the subs (.idx/.sub) files using zlib. This reduces the filesize of the subs considerably (e.g 72mb -> 16mb) as you can see, this can definatly cause file predictioin to be a little off. Is there any chance this can be taken into account in the calc? perhaps a little checkbox?

Sharktooth
16th June 2004, 16:45
I dont think it's possible because there isn't a fixed compression factor for the subtitles.
It may be only extimated (using the zlib compression efficiency as a basis) but it will never be exact.
There is also another reason. The codec doesnt know the ripped subtitles size.

Stian
16th June 2004, 16:51
I realize it cant be exact, but it can at least be a LOT closer? or what about the ability to enter zlib files in the sub area also?

P0l1m0rph1c
17th June 2004, 23:47
Originally posted by Sharktooth

There is also another reason. The codec doesnt know the ripped subtitles size.

Why not? can't you put the get the .sub file size in the calc?

Sharktooth
18th June 2004, 12:13
Originally posted by P0l1m0rph1c
Why not? can't you put the get the .sub file size in the calc?
Yes, i mean you have to put it in manually... so what's the purpose of adding zlib subs to the calc if you have already ripped and compressed them?

Stian
18th June 2004, 15:39
they're compressed during muxing btw, at least with mkvtoolnix.

P0l1m0rph1c
18th June 2004, 17:41
Exactly.

I think the best you can get is an estimative of zlib compression...

Sharktooth
18th June 2004, 19:08
Thats the only way... or xvid devs should add zlib to xvid calc so once you specify the subs file it compress it and get the exact compressed size of the subs...