Help - Search - Members - Calendar
Full Version: Decode to 8 bits
Hydrogenaudio Forums > Lossy Audio Compression > Ogg Vorbis > Ogg Vorbis - Tech
manuelator
Hi have some wav's at 8 bits at 22050 if i encode with ogg i have no problem, but if i decode with the option -b 8, by default is convert the data to 16 bits...

The wav it's really bad, any good oggdec for 8 bits?

Thanks!!
Shade[ST]
Why do you want to decode to 8 bits?
manuelator
Testing audio options, to compress more.
Shade[ST]
QUOTE(manuelator @ Feb 4 2006, 11:20 AM)
Testing audio options, to compress more.
*


Whether you encode a source that has 8 or 16 bits, logically it should compress just as much, since it's just like padding the last bits with zeros. I don't think you'll get increased compression from reducing bit depth (and I believe Vorbis is a floating point encoder anyways : bit depth has no signification for it..)

Good luck in your experimentation,
Shade.
manuelator
But you know how i can decode a ogg vobis or LAME to 8 bits, the source it' s 8 bits, but the decode it's 16 (double size).
manuelator
Okay i tried sox biggrin.gif
gasmann
QUOTE(manuelator @ Feb 4 2006, 07:26 PM)
But you know how i can decode a ogg vobis or LAME to 8 bits, the source it' s 8 bits, but the decode it's 16 (double size).
*



Well, you have to know that every input, whatever resolution it has (8,16,24 or 32) is encoded into floating point with pretty much every lossy codec. The coded file (mp3,ogg,...) doesn't really have a bit resolution, because it may round something to save space. So how should the decoder know that the input file to the encoder was 8bit? It can't. And it doesn't make any sense to feed a lossy encoder with 8bit (except the original is already at that bit depth).

To decode to 8bit (for every lossy file), you have to set output resolution to 8bit in the decoder.
[JAZ]
QUOTE(manuelator @ Feb 4 2006, 06:26 PM)
But you know how i can decode a ogg vobis or LAME to 8 bits, the source it' s 8 bits, but the decode it's 16 (double size).
*



CODE

FORMAT OPTIONS (ONE option ONLY may be used)
-b,  --bits  X    Set output sample format, where X =
            1    for       Unsigned 8 bit PCM data.
            2    for       16 bit PCM data (default).
            3    for       24 bit PCM data.
            4    for       32 bit PCM data.
            5    for       32 bit floats.



I believe you misinterpreted the parameter.
john33
oggdropXPd will also decode to 8 bit PCM output. However, if you really must decode to 8 bit, I would recommend that you dither the output - it will make quite a difference to the perceived quality.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.