VLC on Raspberry Pi Using Terminal

*nix specific usage questions
TanaPanda19
New Cone
New Cone
Posts: 2
Joined: 22 Nov 2022 15:24

VLC on Raspberry Pi Using Terminal

Postby TanaPanda19 » 22 Nov 2022 15:34

I have a project that I am able to do via the VLC GUI but would like to break it down into a Terminal command line so that in the event that my Raspberry Pi reboots I can create a script to open VLC and restart the stream automatically. Specifically I am trying to have VLC open a network stream located at

http://media4.tripsmarter.com:1935/Live ... ylist.m3u8 this is for a local TV station in Florida. I then want VLC to send the stream out using legacy UDP to 192.168.6.2:20 for example

I am having issue making it work. I have something like this so far.

cvlc -vvv http://media4.tripsmarter.com:1935/Live ... ylist.m3u8 --sout “#transcode{acodec=ac3, ab=129, channels=2, samplerate=48000, scodec=none} : udp{dst=192.168.6.2:20}” :sout-all :sout-keep

Any insight on what I am missing or where I messed this up would be greatly appreciated.

TanaPanda19
New Cone
New Cone
Posts: 2
Joined: 22 Nov 2022 15:24

Re: VLC on Raspberry Pi Using Terminal

Postby TanaPanda19 » 22 Nov 2022 15:45

Likewise I had a command line that I used to use but then it stopped working. and thoughts on this one?

cvlc --loop /home/pi/Desktop/ActiveChannel/(Filename) --sout “#transcode{acodec=mpga, ab=129, channels=2, samplerate=48000, scodec=none} : udp{dst=(IP:Port)}” :sout-all :sout-keep

I would create a playlist using VLC and then save that playlist as a file. then I would point to that file replacing (Filename)

Alaric
Developer
Developer
Posts: 36
Joined: 27 Apr 2022 18:37

Re: VLC on Raspberry Pi Using Terminal

Postby Alaric » 23 Nov 2022 15:51

Could you share some logs? Or describe the errors you are getting? Does it work if you replace the udp output by a local file output for instance `#transcode{...}:file{dst=/tmp/test.ts,mux=ts}` ?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests