title: Avcodec : generate OPUS header for a stream
body: <p>I'm using OPUS with avcodec to encode sounds and stream it using my own protocol.</p>
  
  <p>It works with the MP2 codec so far but when I'm switching to OPUS, I have this issue :</p>
  
  <pre><code>[opus @ 1b06d040] Error parsing the packet header.     
  </code></pre>
  
  <p>I suppose that unlike MP2, I need to generate a header for my OPUS encoded data stream but I don't know how.</p>
  
  <p>Can someone explain me how to do that? Thanks.</p>