[Ffmpeg-devel] address in use problem with multiple RTSP streams
Michael A. Kohn
mike
Mon Nov 20 22:47:09 CET 2006
On Mon, 20 Nov 2006, M?ns Rullg?rd wrote:
> "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
That is a really cool idea. I'm going to try that tonight and see if I
can get a nicer patch out of it. That should be way cleaner than what I
did here.
/mike
More information about the ffmpeg-devel
mailing list