2012/4/6 huanggh0108 <huanggh0...@sina.com>: > >> 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. > > libavformat/udp.c: > static int udp_open(URLContext *h, const char *uri, int flags);
if ((s->is_multicast || !s->local_port) && (h->flags & AVIO_FLAG_READ)) s->local_port = port; Indeed, i was wrong. My apologies. -- Andrey Utkin _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user