VLC set input command line stream

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
DANZI
New Cone
New Cone
Posts: 4
Joined: 06 Feb 2016 23:45

VLC set input command line stream

Postby DANZI » 30 Mar 2019 13:12

Hello-

I am able to stream audio using vlc 3.0.6 from a Win10 machine using the GUI set up as below:

Media
Stream
Capture device
Capture mode- direct show
video device- none
Audio device- stereo mix
Stream output- source dshow:\\
Destination ---HTTP
Port 35535
path /radio.mp3
transcoding options - actvate transcoding checked
profile Audio-MP3
Stream all elementady streams
Generated string-:sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100,scodec=none}:duplicate{dst=http{mux=mp3,dst=:8080/},dst=display} :sout-all :sout-keep
stream (success!)

What I want to do is save this config so I do not have to re-enter all the parameters each time.

As I understand it, the only way to do that is with a bat file.

This is what my bat file looks like:

start vlc -vvv input_stream --sout '#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100,scodec=none}:standard{access=http,mux=ogg,dst=192.168.1.54:65535/radio.mp3}'

vlc starts but no streaming.

I do not know how to set the input,

from the GUI I pulled out these input statements:

dshow-adev: Stereo Mix (Realtek High Definition Audio)

dshow debug: asking for device: Stereo Mix (Realtek High Definition Audio)
dshow debug: asked for Stereo Mix (Realtek High Definition Audio), binding to Stereo Mix (Realtek High Definition Audio)
main debug: `dshow://' successfully opened
main debug: adding a new sout input for `s16l` (sout_input: 000001a860894370)
main debug: input 's16l' 44100 Hz Stereo frame=1 samples/4 bytes

I have not been able to find a way to set the input can anyone help?

Also not sure if my -sout is correct.

Thanks DAN

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: VLC set input command line stream

Postby mederi » 31 Mar 2019 20:46


DANZI
New Cone
New Cone
Posts: 4
Joined: 06 Feb 2016 23:45

Re: VLC set input command line stream

Postby DANZI » 14 Apr 2019 13:52

thanks for the help, all works now. here is my bat file

start vlc -vvv dshow:// :dshow-vdev=none :dshow-adev="Stereo Mix (Realtek High Definition Audio)" :live-caching=100 :sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100,scodec=none}:http{dst=:65535/radio.mp3} :sout-all :sout-keep

Dan


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 22 guests