Page 1 of 1

Problem selecting a programme to play from a TS over UDP

Posted: 04 Jun 2009 14:54
by scollins
Hi All,

I am new to VLC so forgive me if I'm ignorant of all the VLC features. I'm currently using VLC 0.9.9 on Windows XP.

I initially used VLC to read a MPEG TS file containing multiple programmes (services). I simply selected the programme to play using the GUI menu (Playback -> Programme). So far so good.

I would now like to stream the TS file over UDP on the same computer. I therefore ran 2 instances of VLC, one as a server and one as a client. For the server, I ran the command:

vlc -vvv d:\data\myvideo.ts --sout "#std{access=udp,mux=ts,dst=127.0.0.1:1234}" --sout-all

It's important that ALL services are streamed to the client, hence the use of --sout-all. On the client side, I ran the command:

vlc udp://@:1234

The problem is that the client creates a separate window for each programme in the TS and plays the programmes simultaneously. I would like to be able to select the required programme as before, i.e. through the GUI menu (Playback -> Programme). That way only one of the programmes is played.

Are there any command line options I can use for the VLC client (or VLC server) that prevents each programme being played in a separate window and allows me to select only one of the programmes to play via the GUI menu?

Many thanks for your help.

Re: Problem selecting a programme to play from a TS over UDP

Posted: 04 Jun 2009 18:18
by Jean-Baptiste Kempf
I don't think you can do that easily now.

Re: Problem selecting a programme to play from a TS over UDP

Posted: 08 Jun 2009 09:14
by scollins
After a bit more investigation, I think it's the VLC server that is causing the VLC client to open a separate window for each programme. When Istreamed a TS to the client over UDP using a C# application (which simply encapsulates a raw TS into UDP packets), the client opened a single window to play one of the programmes in the TS. The remaining programmes could then be selected using the Playback->Programme option in the VLC GUI menu. This is exactly what I wanted :D

Re: Problem selecting a programme to play from a TS over UDP

Posted: 08 Jun 2009 13:54
by The DJ
By default, VLC will only create a SINGLE "program". So that means that all video windows will be in the same program of the stream and should thus all be displayed.
If want to simply stream the original TS, then the better option in this case is to use the "Fast UDP streaming" option of the MPEG-TS demux, which basically entirely bypasses VLC and immediately streams all packets over a UDP port (I think ... --ts-out="127.0.0.1:1234"). I'm not sure if there is a simple way to stream multiple programs from VLC's "stream output", but at the very least they would be very difficult.