[opus] OPUS encoding mono sine wave

Kolesov, Alexander Alexander.Kolesov at echostar.com
Tue Aug 2 14:59:09 UTC 2016


I wonder if anybody try to compress a pure sine wave using OPUS codec.
When I compressed the mono 1KHz, 16bits 48000 samples per sec. audio stream using the 'opus_demo' utility:
  opus_demo -e audio 48000 1 2min_1kHz_Sine_16bit_48kHz.wave  2min_1kHz_Sine_16bit_48kHz.opus_raw

I had the output stream that is shown below.

00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00
00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00
00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00
00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00
00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00
00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00
01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00
78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01
00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78
00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00
00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00
00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00
00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00
00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00
00 78 00 00 00 01 00 00 00 00 78 .... ...... ......

The OPUS codec failed to decode this stream.
Is there any restriction on the OPUS input stream that I missed or I have done something incorrectly?
If somebody else had this issue and was able to solve it, please, share you solution with me.

   Alexander.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/opus/attachments/20160802/164b6d93/attachment.html>


More information about the opus mailing list