Choose network streams by command line

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
b-frame
Blank Cone
Blank Cone
Posts: 42
Joined: 13 Sep 2010 17:00

Choose network streams by command line

Postby b-frame » 12 Jun 2011 16:55

Hi,
I'm broadcasting DVB-C video and audio into my LAN with the following command line:

Code: Select all

"I:\Programme\VideoLAN\VLC\vlc.exe" dvb-c://frequency=618000000 :dvb-srate=6900 :dvb-modulation=256 :dvb-network-name="DVB-C Tuning Space" :programs="898,900" :dvb-adapter=0 :sout=#udp{mux=ts,dst=192.168.0.255:3001} :no-sout-rtp-sap :no-sout-standard-sap :sout-keep
As you can see, it's two channels with the service IDs 898 and 900. Now, when I open the MRL "udp://@:3001" on another computer in the same network, I receive both programs. One of them is in the main window of VLC and another window is opened for the second video (VLC plays only one sound stream though).

Eventually, I want to stream all 6 channels, which I receive on the same DVB-C frequency, at once. Of course I don't want to watch all of them on the same computer, though. So now I'm looking for a command line option, that defines the desired video and audio stream, so that I only see/hear one of those six streams. I already tried

Code: Select all

:program=900 :video-title=0 :audio-title=0 (which don't seem to be existing options)
, but it seems to be a wrong guess. I couldn't find anything else in the command line help.

VLC version is 1.1.10 @Win XP Pro (sending) and 1.1.4 @Win Vista HP (receiving) both 32 bits, although I don't think the OS matters.

Thank you in advance!

Rémi Denis-Courmont
Developer
Developer
Posts: 15324
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Choose network streams by command line

Postby Rémi Denis-Courmont » 12 Jun 2011 19:50

Try with --sout-all, but I am not sure the VLC TS multiplexer can preserve the PMT. dvblast may be more suited than VLC for this.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

b-frame
Blank Cone
Blank Cone
Posts: 42
Joined: 13 Sep 2010 17:00

Re: Choose network streams by command line

Postby b-frame » 13 Jun 2011 16:02

Probably I was too unprecise. There are 8 dvb-c channels broadcasted on the same frequency. Two of them are crap (doing hotline games 24/7), so I only want to stream 6 of 8 channels into the network. I can manage that using the :programs="46,47,51,898,899,900" option.

But the problem is, if I open the stream on another computer, typing the MRL "udp://@:3001", there are 6 windows opening, one for each channel. So I'm looking for a command line option, which makes VLC open only one of these 6 streams (and only one window).

Alternatively, I need an option for the sending computer, which makes VLC broadcasting every program on another port. (e.g. ServiceID 46 on port 3000, SID 47 on 3001 etc.)

When I'm using :sout-all, every program is being broadcasted (also the two crap channels) and all on the same port. I'm afraid, dvblast won't work for me either, because the sending computer works with windows and not every stream is a MPEG-2 stream (there's also h.264 for HDTV). But thank you for your suggestions!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 69 guests