Page 1 of 1

How to stream a specific Program from TS Stream

Posted: 10 Jul 2009 13:17
by brain!ac
Hi .

I`m receiving from IP a DVB-s Stream on TS with many Services and i am able to chose one of services with Playback-Program menu which Service (channel) i want to show .

How i`m a possible to stream a specific channel not the all stream ,because by deffault VLC stream the first Service on the TS Stream .

Best on advance.

Re: How to stream a specific Program from TS Stream

Posted: 10 Jul 2009 17:27
by thannoy
If you are using command line interface, add this parameter

Code: Select all

--program=PRMGID
More information on Command_line/VLC_command-line_help pages on the wiki.

Re: How to stream a specific Program from TS Stream

Posted: 13 Jul 2009 04:11
by brain!ac
If you are using command line interface, add this parameter

Code: Select all

--program=PRMGID
More information on Command_line/VLC_command-line_help pages on the wiki.
Thanks for the answer

After some searches and some lessons i am able to split (or separate) a channel on vlc 1.0.0 with this command

Code: Select all

:sout-all :sout=#duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:8080},select=program=608,dst=display,select=program=608}
but the same one it does not work on vlc 0.9.9
I need it to work on 0.9.9 because i`m working on an API for my school which needs that way integrated on .

Best on advance

Re: How to stream a specific Program from TS Stream

Posted: 13 Jul 2009 13:23
by thannoy
Try with

Code: Select all

:sout-all :sout=#duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:8080},select="program=608",dst=display,select="program=608"}
or (I find it more simple):

Code: Select all

:program=608 :sout=#duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:8080},dst=display}
NB: if you are using a bash environment, #foo char will be a comment so you will have to add quotes:

Code: Select all

:program=608 :sout='#duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:8080},dst=display}'
and if you don't need to see what you are streaming:

Code: Select all

:program=608 :sout='#std{access=http,mux=ts,dst=0.0.0.0:8080}'
Also, the default .host file of VLC http server may lock incoming connecions to 127.0.0.1.

Re: How to stream a specific Program from TS Stream

Posted: 15 Jul 2009 16:46
by brain!ac
Thanks a lot buddy ,it worked with commands and you just solved me a lot of problems that i must used to work on them (i worked on them morally but after 1 tired week i lost the confident) .