VLC HTTP-streaming command line

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
ejvl
New Cone
New Cone
Posts: 1
Joined: 21 Apr 2022 13:00

VLC HTTP-streaming command line

Postby ejvl » 21 Apr 2022 20:06

Hi all,
I've a project to convert a RTSP-stream to HTTP MP3 to play the sound on my Google speaker.
When I do it manualy, it works fine. See this YouTube how it works fine on my computer.
https://www.youtube.com/watch?v=ao3b_JUN_iU
You see in the end the following information:

:sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=mp3,dst=:8089/} :no-sout-all :sout-keep

I want to make a script to run but I can't figure it out.
In the CLI i've tried:

vlc :sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=mp3,dst=:8089/} :no-sout-all :sout-keep
vlc -vvv input_stream :sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=mp3,dst=:8089/} :no-sout-all :sout-keep
vlc -vvv input_stream --sout '#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=mp3,dst=:8089/}
And I've checked https://wiki.videolan.org/Documentation ... _streaming
But I can't figure it out.

What is the correct command for me to start streaming, so it works the same as in the YouTube?

Many thanks.

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

Re: VLC HTTP-streaming command line

Postby Rémi Denis-Courmont » 22 Apr 2022 17:42

It depends. But your quotes are unbalanced.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 35 guests