<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 15, 2016 at 5:47 PM, PanZhoujin <span dir="ltr"><<a href="mailto:panzhoujin@tsari.tsinghua.edu.cn" target="_blank">panzhoujin@tsari.tsinghua.edu.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I am trying to encode the file read by opencv VideoCapture into webm.<br>
After searching the official document of ffmpeg, github, and stackoverflow, I am still far away from my target.<br>
<br>
Can somebody tell me, how to use libvpx, ffmpeg to connect with opencv?<br></blockquote>You'll need to first convert cv::Mat to AVFrame, some code likeĀ <a href="http://stackoverflow.com/questions/35907094/converting-cvmat-image-from-bgr-to-yuv-using-ffmpeg">http://stackoverflow.com/questions/35907094/converting-cvmat-image-from-bgr-to-yuv-using-ffmpeg</a><div>Then encode the frames using codec libvpx and mux using format webm (take a look atĀ <a href="https://www.ffmpeg.org/doxygen/3.2/muxing_8c-example.html">https://www.ffmpeg.org/doxygen/3.2/muxing_8c-example.html</a> which is kind of old though.)</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I will appricate for any reply.<br>
<br>
<br>
THX<br>
<br>
______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
</blockquote></div><br></div></div>