VLC Command line Stream out

About encoding, codec settings, muxers and filter usage
TanaPanda
New Cone
New Cone
Posts: 2
Joined: 12 Nov 2019 00:23

VLC Command line Stream out

Postby TanaPanda » 12 Nov 2019 00:28

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?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: VLC Command line Stream out

Postby unidan » 12 Nov 2019 10:05

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.

TanaPanda
New Cone
New Cone
Posts: 2
Joined: 12 Nov 2019 00:23

Re: VLC Command line Stream out

Postby TanaPanda » 12 Nov 2019 15:56

I got it to work using:

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 21 guests