Page 1 of 1

VLC Command line Stream out

Posted: 12 Nov 2019 00:28
by TanaPanda
I am trying to run VLC via command line. What I am trying to do it have VLC open, then start streaming a designated video file as UDP to the address 192.168.6.2 port 17. I want it to send it out as H.264 with MP3 audio. Can someone help me with how I would build this command line out?

Re: VLC Command line Stream out

Posted: 12 Nov 2019 10:05
by unidan
Hi, what did you try so far ?

you probably want to use the dummy interface first:

Code: Select all

--intf dummy
then you need the stream output option with transcoding, and output as udp

Code: Select all

--sout="#transcode{vcodec=h264,acodec=mp3,.....}:std{access=udp,mux=ts,dst=yourip:yourport}"
and finally, put the file you want to stream.

Re: VLC Command line Stream out

Posted: 12 Nov 2019 15:56
by TanaPanda
I got it to work using:

vlc /home/pi/Desktop/(filename) -vvv --sout "#std{access=udp,mux=ts,dst=(IP Address):(Port)}"