Problem selecting a programme to play from a TS over UDP

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
scollins
New Cone
New Cone
Posts: 2
Joined: 04 Jun 2009 14:09

Problem selecting a programme to play from a TS over UDP

Postby scollins » 04 Jun 2009 14:54

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 04 Jun 2009 18:18

I don't think you can do that easily now.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

scollins
New Cone
New Cone
Posts: 2
Joined: 04 Jun 2009 14:09

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

Postby scollins » 08 Jun 2009 09:14

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

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

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

Postby The DJ » 08 Jun 2009 13:54

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.
Don't use PMs for support questions.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 56 guests