<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hey Kevin!<br>
    <br>
    Once you start dropping under (I think) 32kbps, the codec naturally
    starts losing stereo separation for the benefit of quality.<br>
    If you really want perfect stereo at 16kbps CBR (this is
    horrifically low in my opinion) you might be better off splitting
    the audio and encoding each part at 8kbps CBR.<br>
    Or, there may be a magic "enforce 100% stereo" one could pass?
    (doesn't look like it at
<a class="moz-txt-link-freetext" href="https://mf4.xiph.org/jenkins/view/opus/job/opus-tools/ws/man/opusenc.html">https://mf4.xiph.org/jenkins/view/opus/job/opus-tools/ws/man/opusenc.html</a>)<br>
    <br>
    You can always ask stuff at the #opus channel at
    <a class="moz-txt-link-freetext" href="https://webchat.freenode.net/">https://webchat.freenode.net/</a><br>
    <br>
    <div class="moz-cite-prefix">On 16/11/2015 17:37, Honeyager, Kevin
      S. wrote:<br>
    </div>
    <blockquote
      cite="mid:9bb1bf75b91549dba9aa2ea66bc3ecba@MBX256.adm.swri.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hello,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I’ve been using Opus on an STM32 M4
          platform for speech coding in mono mode.  I thought I’d try
          stereo for grins to see if I can handle the CPU load, and I’m
          getting a return code of -1 from opus_decode_float (using CBR
          and 40ms frames).<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I decided to try the opusenc and opusdec
          tools to just see how the command line apps would behave.  I
          am getting decoded audio, but I am losing the stereo
          separation.  My test file has speech obtained with a Tascam
          Recorder, and I spoke directly into each mic individually.  I
          can clearly hear the stereo separation in the recorded audio.
          I do not hear any stereo separation once I encode from wav and
          decode back to wav.     My encoding command line is “opusenc
          --hard-cbr --bitrate 16.000 --complexity 10 --framesize 20
          stereo_voice.wav temp.opus”.  My decoding script is: “opusdec 
          --force-wav temp.opus decode.wav”.  Opusenc reports that my
          encoded file is 2 channels (coupled) and opusdec reports that
          my file is 2 channels.  Can someone tell me how to retain my
          stereo separation?  If I can’t get stereo separation from the
          codec, there’s no point in me investigating the error return
          in my ARM application.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <table class="MsoNormalTable" style="border-collapse:collapse"
          border="0" cellpadding="0" cellspacing="0">
          <tbody>
            <tr style="height:14.1pt">
              <td rowspan="3" style="width:.95in;padding:0in 5.4pt 0in
                5.4pt;height:14.1pt" valign="top" width="91">
                <p class="MsoNormal">Kevin<o:p></o:p></p>
              </td>
              <td style="width:157.5pt;padding:0in 5.4pt 0in
                5.4pt;height:14.1pt" valign="top" width="210">
                <p class="MsoNormal"><b><span
                      style="font-size:9.0pt;color:#0033CC"><o:p> </o:p></span></b></p>
              </td>
            </tr>
            <tr style="height:14.1pt">
              <td style="width:157.5pt;padding:0in 5.4pt 0in
                5.4pt;height:14.1pt" valign="top" width="210">
                <p class="MsoNormal"><b><span
                      style="font-size:9.0pt;color:#0033CC"><o:p> </o:p></span></b></p>
              </td>
            </tr>
            <tr style="height:14.1pt">
              <td style="width:157.5pt;padding:0in 5.4pt 0in
                5.4pt;height:14.1pt" valign="top" width="210">
                <p class="MsoNormal"><span style="font-size:9.0pt"><o:p> </o:p></span></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
opus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:opus@xiph.org">opus@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/opus">http://lists.xiph.org/mailman/listinfo/opus</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>