Ubuntu – How to stream a video with VLC in a LAN


I wish to execute a video in my PC and stream it in the LAN so anybody can connect to it and watch it. What steps do I need to do to accomplish this in an easy manner.

Best Answer

Here is a command line to stream webcam:

vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 --sout="#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:8554/live.ts}" -I dummy