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

Måns Rullgård mru
Mon Nov 20 22:38:55 CET 2006


"Michael A. Kohn" <mike at mikekohn.net> writes:

> 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.

Why not let the kernel automatically choose free port numbers?

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list