<div>><span style>Or even "dream on" which API calls do you want?<br>As far as I understood the problem with rtsp/rtp protocol and customIO because of there more the one endpoint (or entrypoint). </span></div>
<div><span style>there are al least 3 connection should be established 1 tcp and 2 udp. </span></div><div><span style>It seems, from API user's point of view, problem could be solved be providing additional custom callback handler (provides user allocated socket descriptor,for example)</span></div>
<div><span style><br></span></div><div><span style>></span><span style>Then could you expose how your loop looks like?</span></div><div><span style>1) main polling loop monitor all program's async IO descriptors. </span></div>
<div><span style>2) Set of data processing chains</span></div><div><span style><font color="#222222" face="arial, sans-serif">When data arrives on any of these descriptor the eventloop feeds data to it's chain input. So for the any data to be processed its descriptor should be added to EVLoop</font></span></div>
<div><span style><font color="#222222" face="arial, sans-serif"><br></font></span></div><div><span style><font color="#222222" face="arial, sans-serif"><br></font></span></div><div><span style><font color="#222222" face="arial, sans-serif">I original idea was to feed some raw rtp data to libavformat inside one of the processing element</font></span></div>
<div><br></div><br><div class="gmail_quote">On Fri, Feb 24, 2012 at 4:37 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">> Oh, my fault. I had to mention that I can't use threads and locking<br>
> mechanisms for efficiency reasons (highloaded application).<br>
> I need to make rtsp/rtp stream processing with least possible overhead.<br>
> Event loop is libevent-based.<br>
> But thanks you, again, for advices!:)<br>
> I have no questions anymore<br>
<br>
</div>Then could you expose how your loop looks like?<br>
Or even "dream on" which API calls do you want?<br>
<br>
There's a WIP on non-blocking protocol functions, BTW.<br>
grep NONBLOCK libavformat/*.h<br>
<div class="HOEnZb"><div class="h5"><br>
--<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Be happy,<div>Best regards,<br><div>Dmitry Volyntsev</div></div><br>