<div dir="ltr">You can google for output example, there are example of using it uses buffers encode_video, but it's deprecated function, but I'm sure libav has some replacement for this<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-07-31 17:03 GMT+04:00 Xiaofei Yang <span dir="ltr"><<a href="mailto:yxf0605@gmail.com" target="_blank">yxf0605@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thanks for your quick response. I could store the audio stream in a buffer and then decode the buffer and output to a new buffer, does that sound OK? BUT I don't know how to decode from a buffer :(<div>
<span style="font-family:Menlo;font-size:18px">you mean the transcoding.c example?</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-31 20:57 GMT+08:00 Dmitry Adjiev <span dir="ltr"><<a href="mailto:adjiev.dmitry@gmail.com" target="_blank">adjiev.dmitry@gmail.com</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>FFmpeg has transcoding example, but it doesn't work with network because it can't detect the output format, you can set it manually (edit the code). I tested it for udp, so currently I have udp video stream.<br>
</div>Ofcourse I made my code, but after investigation ot transcode example, so the code is works under android too.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-31 16:53 GMT+04:00 Xiaofei Yang <span dir="ltr"><<a href="mailto:yxf0605@gmail.com" target="_blank">yxf0605@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr">Hi:<div><br></div><div>I am doing audio stream transcoding things, the scenario is that I keep receiving audio data through HTTP protocol, storing it in memory buffer and meanwhile I have to transcode it to the required target format for further use. The original audio data may come in various formats. So the whole process runs like a stream. Could any one show me some hints how to do it? What are the key APIs ?</div>
<div><br></div><div>Thanks.</div></div>
<br></div>_______________________________________________<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/listinfo/libav-user</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br>Regards,<br>Dmitry
</font></span></div>
<br>_______________________________________________<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/listinfo/libav-user</a><br>
<br></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Dmitry
</div>