<!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 using FFMpeg libavformat library in my application. My objective is to generate a webm file from video and audio RTP streams that I receive on my server from the client. In the process of initializing the library, when I allocate AVFormatContext using  <span class="s1">avformat_</span><span class="s2">alloc</span><span class="s1">_output_context2() function, by passing the filename as "test.webm", the default video codec selected is VP9. <br><br>But, I want to select VP8 as I will get only a VP8 encoded video stream. How can I specify  to the library explicitly, to select VP8 as video codec while allocating AVFormatContext ? </span></div><div><br></div><div><span class="s1">Any help is appreciated. I am kind of stuck here. It will also be helpful if there is any documentation or material which I can refer while using FFMpeg. </span><br>Thanks in advance.<br><br>P.S. I am following the FFMpeg doxygen documentation right now.</div><div><br></div><div>Regards,<br></div><div>Ravi Kiran B S<br></div><div>Zoho Corporation</div></div><div><br></div></div></body></html>