Stream Webcam with VLC

By | 2010/06/29

How can I stream video from my webcam in Linux?

One way is to use VLC! VLC can make a stream accessible over http, for one example.

On the streaming computer, make sure first that a webcam or video device is connected. Then issue this command from the terminal:

vlc "v4l2://" --v4l-vdev="/dev/video" --v4l-adev="/dev/null" --sout #transcode{vcodec=theo,vb=256}:standard{access=http,mux=ogg,dst=:1234}" -I dummy

Leave that running – this will create a video stream available from that computer’s ip address on port 1234.

Now, use VLC on any other computer to connect to your video stream!

For instance if the streaming computer’s ip address is on your home network, you would use VLC to open this http network stream:


You can also get creative with port forwarding in your router to access this outside of your home network. Though streaming video out across the internet of course depends on your available upstream bandwidth.