Page 1 of 1

How to stream single program out of multi-program ts file

Posted: 26 Apr 2021 21:07
by strobile
Hello,

I would appreciate your help with the command line to stream to multicast single program out of a multi-program ts file.
The file I use is located at: https://tsduck.io/streams/netherlands-d ... 0-06-21.ts

I tried using the windows VLC UI but I don't see anywhere in the wizard an option to select the wanted program.

thanks a lot!

Re: How to stream single program out of multi-program ts file

Posted: 27 Apr 2021 08:35
by Lotesdelere
--program=x where the value for x is the Service PID, aka SID, of the channel.

Re: How to stream single program out of multi-program ts file

Posted: 27 Apr 2021 12:57
by strobile
Thanks Lotesdelere,

Since I am new to the ts format and VLC command line, may I further ask two question to be able to create a learning environment:

1. What would be the command line to stream single program from this file: https://tsduck.io/streams/netherlands- ... 0-06-21.ts (let’s say service id 0x02c6 which contains 6 PIDs: 0x1b62 - 0x1b69) to UDP 127.0.0.1:1234

2. What would be the command line to open VLC instance that listen and play the program streamed at 127.0.0.1:1234

I’m sorry for my novice questions.

Regards,

Re: How to stream single program out of multi-program ts file

Posted: 27 Apr 2021 16:52
by Lotesdelere
Sorry but I don't know much about streaming with VLC, I hope you'll find some help here:
http://wiki.videolan.org/Documentation:Streaming_HowTo
http://wiki.videolan.org/Documentation: ... _HowTo_New

Re: How to stream single program out of multi-program ts file

Posted: 27 Apr 2021 21:07
by strobile
Thanks, I’ll post my solution once I figure it :)

Re: How to stream single program out of multi-program ts file

Posted: 28 Apr 2021 10:37
by InTheWings
--no-sout-all

Re: How to stream single program out of multi-program ts file

Posted: 09 Aug 2022 05:55
by BradinLae
"C:\Program Files\VideoLAN\VLC\vlc.exe" --preferred-resolution 540 "C:\Users\Fred\Desktop\Batch\ukSports.m3u8" --input-title-format "9 Rush" --loop :sout=#transcode{vcodec=h264,vb=800,acodec=mpga,ab=192,channels=2,samplerate=44100,maxrate=1600,vbv-bufsize=1600}:udp{mux=ts,dst=224.120.120.115:5115} :sout-all :sout-keep

the m3u8 file contains
#EXTM3U
#EXTINF:72,master.m3u8
#EXTVLCOPT:network-caching=10000
https://9now-livestreams.akamaized.net/ ... aster.m3u8

This formatting worked for me. That site is now dead from here. The recently updates VLC seems to have a lot more in it for streaming in the preferences section, now I have to work out how to batch that.