You are not logged in.

#1 2009-11-30 16:32:47

murfMan
Member
Registered: 2009-10-27
Posts: 161

streaming webcam

anyone know of a way to broadcast my webcam over http?
i tried to install the package webcam_server from the AUR but i can't seem to get it to install correctly.

does anyone know of any alternatives?

Last edited by murfMan (2009-11-30 16:36:47)

Offline

#2 2009-11-30 16:37:57

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: streaming webcam

VLC and FFserver from FFmpeg come to mind.

Offline

#3 2009-11-30 18:55:16

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: streaming webcam

VLC: http://www.videolan.org/doc/streaming-h … /ch03.html

Also, depending on what your purpose is, maybe you want to look into something like zoneminder.

Offline

#4 2009-12-01 14:32:27

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: streaming webcam

hmm yeah i've been messing around with vlc.  i can get it to play my webcam but not stream it.  what im trying to do is, create stream and embed it into an html document.  anyone ever attempted this?

also when i try to open the camera via the vlc gui everything works fine.  but if i type the following in terminal
cvlc v4l:// :v4l-vdev="/dev/video0"
i get
VLC is unable to open the MRL 'v4l://'. Check the log for details.

Last edited by murfMan (2009-12-01 14:39:12)

Offline

#5 2009-12-01 14:45:35

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: streaming webcam

also ... with this command

cvlc v4l:///dev/video0:width=352:height=288:fps=12 --sout '#transcode{vcodec=wmv2,vb=800,scale=1}:duplicate{dst=std{access=http{user=guest,pwd=123456,mime=video/x-ms-wmv},mux=asf,dst=:8080/stream.wmv}}' --no-sout-audio &

i get:
5c10] main access error: no access module matched "v4l"
[0x9c910e8] main input error: open of `v4l:///dev/video0:width=352:height=288:fps=12' failed: no access module matched "v4l"
[0x9c910e8] main input error: Your input can't be opened
[0x9c910e8] main input error: VLC is unable to open the MRL 'v4l:///dev/video0:width=352:height=288:fps=12'. Check the log for details.

Last edited by murfMan (2009-12-01 14:46:55)

Offline

#6 2009-12-01 14:47:30

mvdvarrier
Member
Registered: 2008-10-04
Posts: 47

Re: streaming webcam

murfMan wrote:

hmm yeah i've been messing around with vlc.  i can get it to play my webcam but not stream it.  what im trying to do is, create stream and embed it into an html document.  anyone ever attempted this?

also when i try to open the camera via the vlc gui everything works fine.  but if i type the following in terminal
cvlc v4l:// :v4l-vdev="/dev/video0"
i get
VLC is unable to open the MRL 'v4l://'. Check the log for details.

Hai!
Please use
cvlc v4l2:// :v4l2-vdev="/dev/video0"
instead
mvdvarrier


mvdvarrier is a Warrior; Born to Expedite!!!

Offline

#7 2009-12-01 14:51:11

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: streaming webcam

ok ... that got my webcam to display on screen.  now i just need to get it to stream.

also does anyone know how to embed the stream in an html file?

with the command

 cvlc v4l2:// :v4l2-vdev="/dev/video0" --sout '#transcode{vcodec=wmv2,vb=800,scale=1}:duplicate{dst=std{access=http{mime=video/x-ms-wmv},mux=asf,dst=:8080/stream.wmv}}' --no-sout-audio &

i am able to connect on a remote machine to http://hostip:8080/stream.wmv
the wmv plugin shows up but it won't play anything.

Last edited by murfMan (2009-12-01 15:23:39)

Offline

#8 2011-09-29 13:10:11

vibha
Member
Registered: 2011-09-29
Posts: 1

Re: streaming webcam

Hi murfMan,

Did you get success in embed the stream in an html file?
Even i m also fetching same problems, i've vlc version 1.1.4
Please reply

Offline

#9 2011-09-29 15:03:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: streaming webcam

Moderator comnent:
vibha,

Welcome to Arch Linux.  Just so that you are aware, this thread is coming up on two years old.  Generally we discourage posting to ancient threads, because things change so fast they may no longer be relevant.

You may, or may not get a reply.  If you don't, please report this thread and a moderator will close it.  Then, go ahead and open a new thread in which you state your issue, provide background, and tell us where you have looked and what you have tried.

Thanks,
ewaller


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB