[Libav-user] Opening an UDP stream for reading :usingavformat_open_input()?

huanggh0108 huanggh0108 at sina.com
Fri Apr 6 04:01:59 CEST 2012

 >> Of course.
>> If the parametric filename like "udp://?localport=7899", it will receive
>> data from port 7899.

>Wrong. udp:// will do that. Maybe ip part can be
>eliminated, haven't try it.
>localport option is used on udp output, not input.

Please don't jump to conclusions when you haven't try it. the ffmpeg source code will tell us all. There are several forms(including yours) to achieve his aim.

static int udp_open(URLContext *h, const char *uri, int flags);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120406/18cf2436/attachment.html>

More information about the Libav-user mailing list