I must compress some thousands of very small WAV samples. I compressed them with OGG and got a very strange result: uncompressed WAV size is 1 kb, and compressed OGG size is 3 kb. (I tried a minimal quality settings (--managed -m 16 -M 16 -b 16)) Is this a bug, or OGG file header is so huge? Is there any way to compress such a small files? Thanks. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> Is this a bug, or OGG file header is so huge? > Is there any way to compress such a small files?The Vorbis header is a few kB and I don't think there is a way to prevent that. What you could do is to encode all the wav files into one Ogg file and store it together with a table containing information about where to find each wav segment within the single Ogg file. Tor-Einar --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Wednesday 02 July 2003 19:42, Rany. wrote:> I must compress some thousands of very small WAV samples. I compressed them > with OGG and got a very strange result: > > uncompressed WAV size is 1 kb, > and compressed OGG size is 3 kb. > > (I tried a minimal quality settings (--managed -m 16 -M 16 -b 16)) > > Is this a bug, or OGG file header is so huge? > Is there any way to compress such a small files? >Yes, this is one downside of the vorbis bitstream format - it includes large headers (several kB). There may or may not be things you can do about this, depending on what you're using it for. If you want normal ogg files as output, then you're pretty much stuck - that's how the format works. However, if you're doing this for use in an application-specific way, and you have control over the application, there are several things you could do. The headers are the same every time (assuming you're using the same encoder with the same settings), so you could just save a single copy of the headers, then, on decoding, supply this header to the decoder along with the actual compressed data. Obviously, then, you don't have standard ogg files, but this is pretty easy to implement and use in some circumstances. Mike --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Rany. wrote:> Is this a bug, or OGG file header is so huge? > Is there any way to compress such a small files?You could try rehuff; search the mail archives for an old version of it to try out, or wait patiently until I release the first official version (shouldn't be long...) <p>Segher --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.