Streaming a webcam in Linux with VLC

I wanted a simple way to make my Linux security camera server stream live video to my TV.

The server ususally runs “motion”. I disable motion, and launch this command on the server:

vlc v4l:/dev/video0:size=640×480:channel=1:norm=ntsc:fps=12 –sout ‘#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=mmsh,mux=asfh,dst=:8080}}’ -v –noaudio

and this on a Linux client to test:

mmsh://10.4.4.25:8081/

Then, once that is all working, I use VLC on the AppleTV to play the video to the TV. I used iScripts to get it launching.

The only problem I have right now is a 8 or so second delay.


Posted

in

by

Tags:

Comments

One response to “Streaming a webcam in Linux with VLC”

  1. h2non Avatar

    I’m trying this now, but, why u’re using mmsh protocol? not is more efficient use http for flash embebed or similar. I know u want to view via tv, but, for web, which u recomend?
    PS: on debian machine

Leave a Reply

Your email address will not be published. Required fields are marked *