Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Decode to 8 bits (Read 5816 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Decode to 8 bits

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!!

Decode to 8 bits

Reply #1
Why do you want to decode to 8 bits?

Decode to 8 bits

Reply #2
Testing audio options, to compress more.

Decode to 8 bits

Reply #3
Quote
Testing audio options, to compress more.
[a href="index.php?act=findpost&pid=361875"][{POST_SNAPBACK}][/a]

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.

Decode to 8 bits

Reply #4
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).

Decode to 8 bits

Reply #5
Okay i tried sox

Decode to 8 bits

Reply #6
Quote
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).
[a href="index.php?act=findpost&pid=361877"][{POST_SNAPBACK}][/a]


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.
flac 1.2.1 -8 (archive) | aoTuVb5.7 -q 4 (pc, s1mp3)

Decode to 8 bits

Reply #7
Quote
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).
[a href="index.php?act=findpost&pid=361877"][{POST_SNAPBACK}][/a]


Code: [Select]
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.

Decode to 8 bits

Reply #8
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.