<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div><br></div><div><br></div><div id=""><div>Hello,<br></div><div><br></div><div>I am trying to mux a opus audio stream to a webm file. (I know audio only can be muxed into a ogg container. I tried that. But, FFMpeg is not detecting the file format when I write the file headers using <span class="s1">avformat_write_header() of libavformat). I have configured the FFMpeg build with --enable-libopus and --enable-libvorbis. Now, after writing the audio data when I call  av_write_trailer() to close the file, it is throwing the following error :</span><br></div><div><br></div><div><span class="s1">"Only VP8 or VP9 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM."</span><br></div><div><br></div><div><span class="s1">And, <span class="s1">av_write_trailer() is returning a -22 value, meaning "Invalid arguments". I am not able to find what invalid arguments I have passed here and why FFMpeg is throwing the above message when writing the trailer ? Please help.</span></span><br></div><div><br></div><div><br></div><div>Thanks.</div><div>Regards,<br></div><div>Ravi Kiran B S<br></div></div><div><br></div></div><br></body></html>