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

About encoding, codec settings, muxers and filter usage
strobile
New Cone
New Cone
Posts: 5
Joined: 26 Apr 2021 21:03

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

Postby strobile » 26 Apr 2021 21:07

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!

Lotesdelere
Cone Master
Cone Master
Posts: 9964
Joined: 08 Sep 2006 04:39
Location: Europe

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

Postby Lotesdelere » 27 Apr 2021 08:35

--program=x where the value for x is the Service PID, aka SID, of the channel.

strobile
New Cone
New Cone
Posts: 5
Joined: 26 Apr 2021 21:03

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

Postby strobile » 27 Apr 2021 12:57

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,

Lotesdelere
Cone Master
Cone Master
Posts: 9964
Joined: 08 Sep 2006 04:39
Location: Europe

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

Postby Lotesdelere » 27 Apr 2021 16:52

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

strobile
New Cone
New Cone
Posts: 5
Joined: 26 Apr 2021 21:03

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

Postby strobile » 27 Apr 2021 21:07

Thanks, I’ll post my solution once I figure it :)

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

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

Postby InTheWings » 28 Apr 2021 10:37

--no-sout-all
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

BradinLae
New Cone
New Cone
Posts: 1
Joined: 09 Aug 2022 05:41

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

Postby BradinLae » 09 Aug 2022 05:55

"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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 16 guests