<div dir="ltr">Hello Gonzalo,<div><br></div><div>Unfortunately, I can not do <span style="font-family:arial,sans-serif;font-size:14px">avcodec_encode_video2 because it would cost too many cpu resources in </span><font face="arial, sans-serif"><span style="font-size:14px">embedded system.</span></font></div>
<div><font face="arial, sans-serif"><span style="font-size:14px"><br></span></font></div><div><font face="arial, sans-serif"><span style="font-size:14px">Normally, ffmpeg user will packet format with muxer and encode. </span></font></div>
<div><font face="arial, sans-serif"><span style="font-size:14px">But, I only use the muxer to packet rtp and send it.</span></font></div><div><font face="arial, sans-serif"><span style="font-size:14px">Thanks a lot.</span></font></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-10 22:47 GMT+08:00 Gonzalo Garramuno <span dir="ltr"><<a href="mailto:ggarra13@gmail.com" target="_blank">ggarra13@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On 10/07/14 06:33, Psychesnet Hsieh wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
2. Who has the sample code or any suggestion, please help me out??<br>
<br>
</blockquote></div>
Seems you are missing calling avcodec_encode_video2() to fill the packet with compressed data.<br>
<br>
______________________________<u></u>_________________<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" target="_blank">http://ffmpeg.org/mailman/<u></u>listinfo/libav-user</a><br>
</blockquote></div><br></div>