[Ffmpeg-devel] [PATCH] rtsp address in use

Michael A. Kohn mike
Wed Nov 15 15:42:56 CET 2006



On Wed, 15 Nov 2006, Thijs Vermeir wrote:

> Hi,
>
>> I don't think address reuse is going to allow multiple instances of ffplay
>> to run on the same computer.
>
> Not 2 ffplay's, but a ffmpeg and a ffplay will work, or 2 ffmpeg...
>
> Gr,

Hmm.. strange.  The way I found out this issue was I wrote a program
that opens up rtsp streams in libavformat.  I opened 1 stream and it
worked fine, but after opening up a second stream the whole thing hung.
So I went to the command line and opened 2 ffplays at the same time and
it hung the second ffplay and didn't display any video and gave that
error.  It looks like libavformat always uses the same 2 ports to bind
to when making rtsp connections (5000 and 5001 if I remember right).
The patch I sent here fixes that.

/mike





More information about the ffmpeg-devel mailing list