Webcam using motion

Ask questions about Arch Linux ARM. Please search before making a new topic.

Webcam using motion

Postby odinb » Sun Feb 16, 2014 12:47 am

Hi!

Would like to have a webcam running on my pogoplug. I have the V4 with Archlinux installed, and then I installed:
$this->bbcode_second_pass_code('', '[root@alarm /]# pacman -Sy motion')
and:
$this->bbcode_second_pass_code('', '[root@alarm /]# pacman -Sy ffmpeg')
As far as I can see, it should be running on port 8081 from the config (/etc/motion/motion.conf):
$this->bbcode_second_pass_code('', '# The mini-http server listens to this port for requests (default: 0 = disabled)
webcam_port 8081
')
But I cannot see anything!

The process is running:
$this->bbcode_second_pass_code('', '[root@alarm /]# ps -ef |grep motion
root 162 1 6 18:13 ? 00:01:34 /usr/bin/motion
root 316 293 0 18:39 pts/0 00:00:00 grep motion
[root@alarm /]#
')
My webcam details:
$this->bbcode_second_pass_code('', 'Make and Model Device Id Driver
Logitech Quickcam Communicate STX 046d:08d7 gspca')
$this->bbcode_second_pass_code('', '[root@alarm ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 046d:08d7 Logitech, Inc. QuickCam Communicate STX
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[root@alarm ~]#')
Kernel:
$this->bbcode_second_pass_code('', '[root@alarm ~]# uname -a
Linux alarm 3.1.10-32-ARCH #1 PREEMPT Tue Feb 11 06:26:34 MST 2014 armv5tel GNU/Linux
[root@alarm ~]#')
Loaded drivers:
$this->bbcode_second_pass_code('', '[root@alarm ~]# lsmod
Module Size Used by
snd_usb_audio 76792 0
snd_usbmidi_lib 16087 1 snd_usb_audio
snd_hwdep 4916 1 snd_usb_audio
snd_rawmidi 16404 1 snd_usbmidi_lib
snd_seq_device 4854 1 snd_rawmidi
snd_pcm 62063 1 snd_usb_audio
snd_page_alloc 4783 1 snd_pcm
snd_timer 17409 1 snd_pcm
snd 36906 7 snd_timer,snd_pcm,snd_seq_device,snd_rawmidi,snd_hwdep,snd_usbmidi_lib,snd_usb_audio
soundcore 690 1 snd
gspca_zc3xx 35886 1
gspca_main 17448 2 gspca_zc3xx
videodev 77800 2 gspca_main
i2c_core 16545 1 videodev
mv_cesa 9362 0
ipv6 272990 16
autofs4 22305 2
[root@alarm ~]#')

So as far as I can see, it looks like it should work, but it is not.

Any advice?
odinb
 
Posts: 9
Joined: Wed Jan 29, 2014 1:27 am

Re: Webcam using motion

Postby Geoff » Sun Feb 16, 2014 6:38 am

Try a different browser. Some don't display anything until the connection is closed, but motion never closes the connection.
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm

Re: Webcam using motion

Postby odinb » Sun Feb 16, 2014 7:01 am

Wow! thanks!

Had 2 issues, first one was that localhost access only is on in the default settings!
$this->bbcode_second_pass_code('', '#turn off localhost access only
sed -i 's:webcam_localhost on:webcam_localhost off:' ./motion.conf
')
If you turn this off, you probably want to limit control also:
$this->bbcode_second_pass_code('', '#disable http remote control
sed -i 's:control_port 8080:control_port 0:' ./motion.conf')

Second thing was as Geoff pointed out a browser issue!
Chrome is a dud here!

Thanks!
odinb
 
Posts: 9
Joined: Wed Jan 29, 2014 1:27 am

Re: Webcam using motion

Postby grayman4hire » Sun Feb 16, 2014 5:24 pm

My recommendation is to use mjpg_streamer versus the internal webcam built into motion (only use motion for motion detection).
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: Webcam using motion

Postby odinb » Sun Feb 16, 2014 8:21 pm

Sounds like something I would like to try, as motion web does not play well with my alarm provider (eyez-on) and their web-GUI.

Any hints/guide you can point to?

Is it just to install mjpg_streamer? I assume i have to disable motion web part somehow, but still keep it for motion detection as you stated....

Edit:
Found this: http://rolandsoft.blogspot.com/2012/09/ ... i-res.html

But it does not mention the integration/setup of how to only record when there is motion...
odinb
 
Posts: 9
Joined: Wed Jan 29, 2014 1:27 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 2 guests