[Ffmpeg-devel] address in use problem with multiple RTSP streams

Michael A. Kohn mike
Mon Nov 20 19:50:07 CET 2006



On Mon, 20 Nov 2006, Michael Niedermayer wrote:

> Hi
>
> On Mon, Nov 20, 2006 at 08:19:58AM -0600, Michael A. Kohn wrote:
>>
>> Has anyone had a chance to look into this problem/patch:
>>
>> http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2006-November/048547.html
>>
>> The latest ffmpeg is still having this issue.
>
> IIRC adding "?reuse=1" to the url will do what you want

It didn't work.  Is this supposed to turn on SO_REUSEADDR?  SO_REUSEADDR
isn't the issue here.  The problem is that RTSP opens 2 UDP sockets on
the same ports every time, so if you have 2 processes trying to use the
same 2 UDP ports, one process is going to fail.  The patch I submitted
would increment port numbers if they are in use.






More information about the ffmpeg-devel mailing list