[opus] opus lossless?

Benjamin Schwartz benjamin.m.schwartz at gmail.com
Wed Aug 22 17:14:47 PDT 2012


On Wed, Aug 22, 2012 at 5:09 PM, Gregory Maxwell <gmaxwell at gmail.com> wrote:
> Flac can have latency as low as you like— e.g. you can code 64 sample
> frames. You do lose compression efficiency in doing this, however.

For more info on how to do this see encoder_set_blocksize:
http://flac.sourceforge.net/api/group__flac__stream__encoder.html#ga21

However, for low-latency lossless audio, you may actually want use
uncompressed PCM (like WAV).  With a lossless compressor like FLAC,
there is no guarantee that the audio will be made smaller (it can even
become larger), so you will need enough bandwidth to send uncompressed
audio anyway.  if you rely on the compression to work, then your
system will break on the occasional incompressible block. For
low-latency lossless audio, compression only makes sense if you have a
lot of available peak bandwidth, but for some reason (e.g. ISP quota)
are trying not to use it.


More information about the opus mailing list