[streaming] Re: RTSP Streaming (main http server warning: cannot select sockets : Bad file descriptor)

Jean-Paul Saman jean-paul.saman at planet.nl
Tue Mar 6 22:37:44 CET 2007


Christophe Nowicki wrote:
> Hi,
> 
> I can't make more than two RTSP sessions with VLC.

Your problem is that you only have one tuner. That simply means you can 
only watch one TV program VOD cannot automagically change the properties 
of your hardware.

> I've got the same version of VLC on the server and the client :
> 
> $ vlc --version
> VLC media player 0.8.6 Janus
> VLC 0.8.6 Janus
> Compilé par buildd at palmer.buildd
> Compilateur: gcc version 4.1.2 20061212 (prerelease) (Ubuntu 4.1.1-21ubuntu2)
> 
> I start my vlc server with the following command line :
> 
> $ vlc  -I telnet -vvv --rtsp-host 0.0.0.0:5554
> 
> I setup my server via a telnet session :
> 
> $ telnet server 4212
> Trying 192.168.42.41...
> Connected to loutre.csquad.lan.
> Escape character is '^]'.
> Password:
> Welcome, Master
>> new TF1 vod enabled
>> setup TF1 input pvr:// :pvr-device="/dev/video0"
> :pvr-radio-device="/dev/radio0" :pvr-norm=8323072 :pvr-frequency=10860
>> new France2 vod enabled
>> setup France2 input pvr:// :pvr-device="/dev/video0"
> :pvr-radio-device="/dev/radio0" :pvr-norm=8323072 :pvr-frequency=11124
> 
> I can watch the stream with the vlc client :
> 
> $ vlc rtsp://loutre:5554/France2
> 
> But If I want to watch another stream or the same stream. It does not work.

You cannot connect to the card twice at the same time. The old 
connection should be closed and a new one opened. A better solution 
would be to use broadcast or multicast the stream to your network 
segment. Then you can watch the stream (one stream) from every pc in 
your network.

> $ vlc rtsp://loutre:5554/TF1
> VLC media player 0.8.6 Janus
> Sending request: OPTIONS rtsp://loutre:5554/TF1 RTSP/1.0
> CSeq: 1
> User-Agent: VLC media player (LIVE555 Streaming Media v2006.03.16)
> <NOTHING HAPPEN>
> 
> And on the server side, there is a lot of errors :
> 
> [00000290] main http server warning: cannot select sockets : Bad file
> descriptor
> [00000290] main http server warning: cannot select sockets : Bad file
> descriptor
> ...
> 
> Best Regards,
> 

Gtz,
Jean-Paul Saman.

-- 
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the streaming mailing list