[Libav-user] Opening an UDP stream for reading :usingavformat_open_input()?
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://127.0.0.1:7899 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...
More information about the Libav-user