Code: Select all
webcam_localhost on
control_localhost on
Code: Select all
webcam_localhost off
control_localhost off
I've got 2 webcams on my Pi now.flutey wrote:Scratch my last post. Managed to do it. Next is to try and get 2 webcams on the pi.
Comment out the on_picture_save and on_movie_end lines for nowflutey wrote:Not sure what to put. I see the webcam in each conf file as /dev/video0 and /dev/video1
at the bottom is:
# Live Webcam Server
############################################################
# The mini-http server listens to this port for requests (default: 0 = disabled)
webcam_port 8081
# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
# The filename of the picture is appended as an argument for the command.
on_picture_save /usr/local/motion-extras/camparse1.pl
# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
# Filename of movie is appended as an argument for the command.
on_movie_end /usr/local/motion-extras/mpegparse1.pl
What do I need to do. When I ran this, my video stops. Not sure what to do next. I saw your blog and you're running another way. Will try that next as soon as I succeed with just motion.
Lagz,SirLagz wrote: I've got 2 webcams on my Pi now.
Easy enough to do, just configure motion.conf with all the general settings, uncomment thread1.conf and thread2.conf down the bottom and put the cam specific settings in thread1 and thread2.conf
Code: Select all
# in thread1.conf
videodevice /dev/video0
...
# in thread2.conf
videodevice /dev/video1
Using Raspbian. and yes, like thatrasusr wrote:Lagz,SirLagz wrote: I've got 2 webcams on my Pi now.
Easy enough to do, just configure motion.conf with all the general settings, uncomment thread1.conf and thread2.conf down the bottom and put the cam specific settings in thread1 and thread2.conf
I'm trying to do two webcams, but haven't gotten it to work so far. What OS are you using? Also, in the thread1.conf and thread2.conf files, how did you point to the two USB webcams? Like this?
Code: Select all
# in thread1.conf videodevice /dev/video0 ... # in thread2.conf videodevice /dev/video1
Nice suggestion, I'll try it when I get home later.SirLagz wrote:Can you access the stream via VLC rather than via web browser ?
Code: Select all
lsof -i | grep 8081Well I did that (had to install lsof using apt-get first) and it returned no output at all??SirLagz wrote:When motion is running, can you run aon the Pi to see what the output is (assuming that you're using default settings) ?Code: Select all
lsof -i | grep 8081