how do I stream a webcam
Posted: 02 Jul 2010 04:44
I am trying to stream but am having problems. My input is working fine, that is, this works:
vlc v4l2://:v4l2-dev=/dev/video0
and I get the video from the webcam.
But now I am trying to stream this video out to a browser client. In an html file I have the <embed> tag that is specifing the vlc-plugin. If I use
a "target" of a file, I can play a movie out just fine. So, the plug-in in firefox is working. What I still cannot get working is streaming out
a multicast address on my local LAN, that is, the stream out side of vlc. This is what I am using but it does not work.
cvlc v4l2://:v4l2-dev=/dev/video0 --sout 'std{access=udp,mux=ts,url=239.255.0.100}' --ttl 12
The error says:
no access _and_ no muxer (fatal error)
stream chain failed for `standard{mux="",access="",dst="std{access=udp,mux=ts,url=239.255.0.100}"}'
cannot start stream output instance, aborting
The syntax for the --sout is not too friendly. I am reading the command line interface chapter of the documentation but still do not understand it all yet.
Any suggestions?
Thanks,
-Andres
cvlc v4l2://:v4l2-dev=/dev/video0 --sout 'std{access=udp,mux=ts,url=239.255.0.100}' --ttl 12
vlc v4l2://:v4l2-dev=/dev/video0
and I get the video from the webcam.
But now I am trying to stream this video out to a browser client. In an html file I have the <embed> tag that is specifing the vlc-plugin. If I use
a "target" of a file, I can play a movie out just fine. So, the plug-in in firefox is working. What I still cannot get working is streaming out
a multicast address on my local LAN, that is, the stream out side of vlc. This is what I am using but it does not work.
cvlc v4l2://:v4l2-dev=/dev/video0 --sout 'std{access=udp,mux=ts,url=239.255.0.100}' --ttl 12
The error says:
no access _and_ no muxer (fatal error)
stream chain failed for `standard{mux="",access="",dst="std{access=udp,mux=ts,url=239.255.0.100}"}'
cannot start stream output instance, aborting
The syntax for the --sout is not too friendly. I am reading the command line interface chapter of the documentation but still do not understand it all yet.
Any suggestions?
Thanks,
-Andres
cvlc v4l2://:v4l2-dev=/dev/video0 --sout 'std{access=udp,mux=ts,url=239.255.0.100}' --ttl 12