OK, if so. May be I wrong. <div>Could you, please, explain how can I integrate the libavformat rtsp protocol to my program, in case it already has own global event loop. </div><div>Using libavformat in case of rtsp format leads to blockage of my event loop from time to time.</div>
<div>Thanks you for answering<br><br><div class="gmail_quote">On Fri, Feb 24, 2012 at 2:56 PM, Andrey Utkin <span dir="ltr"><<a href="mailto:andrey.krieger.utkin@gmail.com">andrey.krieger.utkin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/2/24 Dmitry Volyntsev <<a href="mailto:xeioexception@gmail.com">xeioexception@gmail.com</a>>:<br>
<div class="im">> I found out the answer by myself. May be it could be useful for other<br>
> ffmpeg newbies.<br>
><br>
> It is impossible to feed only rtp stream to libav for just depacketising<br>
> purpose without establishing rtsp input by means of libav<br>
<br>
</div>It is possible, although inconvenient. libavformat has good RTSP<br>
protocol client, so usially there's no need to take another one.<br>
<div class="im"><br>
> //! Demuxer will use avio_open, no opened file should be provided by the<br>
> caller.<br>
> #define AVFMT_NOFILE 0x0001<br>
><br>
> [rtp @ 0x8d2500] Custom AVIOContext makes no sense and will be ignored with<br>
> AVFMT_NOFILE format.<br>
><br>
> ./libavformat/rtspenc.c: .flags = AVFMT_NOFILE | AVFMT_GLOBALHEADER,<br>
> ./libavformat/rtsp.c: .flags = AVFMT_NOFILE,<br>
> ./libavformat/rtspdec.c: .flags = AVFMT_NOFILE,<br>
><br>
><br>
> /*<br>
> * I/O context.<br>
> *<br>
> * decoding: either set by the user before avformat_open_input() (then<br>
> * the user must close it manually) or set by avformat_open_input().<br>
> * encoding: set by the user.<br>
> *<br>
> * Do NOT set this field if AVFMT_NOFILE flag is set in<br>
><br>
> * iformat/oformat.flags. In such a case, the (de)muxer will handle<br>
> * I/O in some other way and this field will be NULL.<br>
> */<br>
> AVIOContext *pb;<br>
<br>
</div>In both of your letters, you wrote lots of low-level stuff that is not<br>
so closely relevant to question you ask.<br>
Next time, be more concise. We're glad to help anyone who asks, but<br>
it's hard to comprehend long and confused letters.<br>
<br>
Without meaning to be rude,<br>
Andrey Utkin<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Be happy,<div>Best regards,<br><div>Dmitry Volyntsev</div></div><br>
</div>