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: encoding 96khz/24bit audio? (Read 15388 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

encoding 96khz/24bit audio?

is ogg vorbis good to encode 96khz/24bit audio? which setting to make no difference with the original (same as for 44.1khz/16bit ?)

thanks

encoding 96khz/24bit audio?

Reply #1
nobody has ever done it ?

encoding 96khz/24bit audio?

Reply #2
The purpose of lossy compression schemes like mp3 and vorbis is to discard whatever parts of the audio data make no perceptual difference to the sound and compress what's left with specialized algorithms.  Since you can't hear anything above 20kHz the encoder will discard almost all of it.  Since there's no practical way to hear anything with a dynamic range larger than 16 bits it's also gone.  If you want to encode 96/24 audio you have to use a lossless codec like FLAC or WavePack.  Lossy 96/24 is an oxymoron of sorts.

encoding 96khz/24bit audio?

Reply #3
The purpose of lossy compression schemes like mp3 and vorbis is to discard whatever parts of the audio data make no perceptual difference to the sound and compress what's left with specialized algorithms.  Since you can't hear anything above 20kHz the encoder will discard almost all of it.  Since there's no practical way to hear anything with a dynamic range larger than 16 bits it's also gone.  If you want to encode 96/24 audio you have to use a lossless codec like FLAC or WavePack.  Lossy 96/24 is an oxymoron of sorts.



Why is that ? Surely at higher settings like 320~384k it is near lossless. I tried keys sample from pcabx.com and it seems to works good at Q9 and over.

http://64.41.69.21/product/cardd_deluxe/index.htm

encoding 96khz/24bit audio?

Reply #4
Why is that ? Surely at higher settings like 320~384k it is near lossless. I tried keys sample from pcabx.com and it seems to works good at Q9 and over.

320 is nowhere near lossless and has nothing to do with the question.  Perceptual encoding discards all of that material... period.  That's what it does.  The higher bitrate simply enhances the ability to encode the material that is left.  It's irrelevant the bitrate when discussing trying to encode 96/24 material into a lossy codec.

encoding 96khz/24bit audio?

Reply #5
It's not so simple Curtor.

I have to preface this by saying that I rarely use Vorbis, but understand the issue regarding lossy codec in general fairly well.


Taking the bit depth first. Lossy codecs don't have a fixed internal bitdepth - the effective bitdepth changes dynamically, frequency band by frequency band, moment by moment - that's how they work. Within a given frequency band, there are often only a few bits of resolution. However, the noise floor can easily be below that of a 16-bit signal. Many encoders can accept 24-bit samples as input. Just like 16-bit samples, most of the accuracy will be thrown away, but there will be moments (typically very quiet moments!) where some of the extra accuracy will be used in some way. Just because it's probably inaudible does not mean that a lossy codec will always destroy it.

As for sample rate: IIRC here vorbis is different from other common lossy codecs, in that it does support higher sample rates. mp3 doesn't go above 48kHz. Whatever the bitrate, any sensible psychoacoustic model is going to dump everything above ~20kHz, but it seems that, for very high bitrates, vorbis does not implement a fixed low pass filter. I've never checked to see if the psychoacoustics allow anything above 20kHz through at any point. I'd expect the absolute threshold of hearing calculation to cause it all to be dumped, but you never know.


What bitrate is required for transparency @ 24/96?

16-bit vs 24-bit makes no difference. If anything, a 24-bit source can in theory be slightly easier to encode because there's less quantisation noise to confuse the psy model, though in practice it rarely makes a difference (noise shaped 16-bit dither is an exception - you can often see codecs wasting bits on this, which won't happen with original 24-bit sources).

44.1kHz vs 96kHz - I don't know. Depending on design, the codec could be less efficient at 96kHz than at 48kHz. Most Hydrogen Audio members would argue that downsampling 96kHz content to 48kHz is a transparent process, so encoding 24-bit 48kHz at a similar bitrates to normal 16-bit 44.1kHz CD content should produce similar results. Encoding it at 96kHz probably needs a higher bitrate for no audible improvement in quality, or may work equally way at exactly the same bitrate.


Apparently CaptainTrips, you may be the first to try it, though I don't think enough vorbis experts have read this thread to be sure of that yet.

For compatibility, I think downsampling to 48kHz (or 44.1kHz) and encoding with your normal settings is a good option.

Cheers,
David.

encoding 96khz/24bit audio?

Reply #6
I have a decoded DTS-MA track and would like to encode it 24-bit Vorbis.  I've noticed that oggenc will accept both 16-bit and 24-bit input, but that the decoders only output 16-bit.  Regardless of the bitdepth of the source, the encoder still puts a similar bitrate into it.

Is there a way to preserve some of the extra detail without doing FLAC?

encoding 96khz/24bit audio?

Reply #7
DTS-MA, is that more than two channels? idk if vorbis supports more than 2 channels, i think AAC does. but if your source is a DTS-MA, you're better off preserving it with flac

encoding 96khz/24bit audio?

Reply #8
I have a decoded DTS-MA track and would like to encode it 24-bit Vorbis.  I've noticed that oggenc will accept both 16-bit and 24-bit input, but that the decoders only output 16-bit.


Use a 24 bit decoder.  The one in foobar can be configured for arbitrarily large bits per sample (24, 32, etc).

Regardless of the bitdepth of the source, the encoder still puts a similar bitrate into it.


The bit depth of the source probably won't change the bitrate of the file much if at all.

Is there a way to preserve some of the extra detail without doing FLAC?


Why do you say it isn't preserving detail?  Have you ABXed it or just assuming you can hear a difference?

encoding 96khz/24bit audio?

Reply #9
The purpose of lossy compression schemes like mp3 and vorbis is to discard whatever parts of the audio data make no perceptual difference to the sound and compress what's left with specialized algorithms.  Since you can't hear anything above 20kHz the encoder will discard almost all of it.

I would think so, yes.

Since there's no practical way to hear anything with a dynamic range larger than 16 bits it's also gone.

Formats like Vorbis and MP3 support a much larger dynamic range than what 16bit has to offer. I don't think there's anything wrong with feeding a lossy encoder with a 24bit signal. The Vorbis encoder's psychoacoustic model is signal-adaptive with respect to the overall level, AFAIK. It'll always conservativly assume a playback level so that the parts that are locally (in time) "loudest" represent 100 dB (or something like that).

Cheers!
SG