Page 2 of 5

Webcam

Posted: Wed 08 Jun 2011, 20:07
by Minnesota
Downloaded the v1.1, please help. How do I set up the web cam? Probably could search for awhile, but figured I would ask. I have two USB webcams. A Gear Head and a Winbook, Tried plugging in with the software running and tried booting with both plugged in. Can not see a menu entry any place to set up the software. Thanks for help.

G

Posted: Wed 08 Jun 2011, 21:52
by aarf
no cd.
unpacked v1.1 and failed to boot with grub: syntax error -gt and also cant find pup_216.sfs
failed to boot with grub2 on flashdrive: cant find something on idehd

Posted: Thu 09 Jun 2011, 07:13
by rhadon
@ Aarf
I know nothing about Grub2, but have similar problems with Grub legacy. I think, it has something to do with boot options (hda instead of sda, I think it's not possible to use a subdir in 2.16, maybe PDEF1 instead of pmedia). It's only a guess because I started Puppy with 3.01. No time now, but will test later more.

@ Minnesota
I also don't know this program, and it was too late for me yesterday night to get it running. So I also don't know, was it me or my webcam.
A good start is by clicking of the orange source "/dev/video0 (0)" in wdog-v1.1.png, i think.

Rolf

Posted: Thu 09 Jun 2011, 09:54
by CatDude
Hi

@ Aarf
This is the GRUB stanza that i use (Legacy GRUB)

Code: Select all

# Linux bootable partition config begins
  title Puppy Watchdog-v1.1 (216)(Frugal) at hda6
  rootnoverify (hd0,5)
  kernel /vmlinuz root=/dev/ram0 PMEDIA=idehd vga=normal acpi=force
  initrd /initrd.gz
# Linux bootable partition config ends
You may or may not need the last bit on the kernel line acpi=force (i do)
As you can see, i have it in the root of the partition (not in a subdirectory)

Also, on the first boot, i had to run the xorgwizard
otherwise it sat there with a black screen (on two different machines :roll: )


@ Minnesota
First thing is, you need to figure out which drivers you require for your cameras,
i have no idea what they are personally (sorry)

When you eventually have them installed,
you could try running the following command:

Code: Select all

zmu -d /dev/video -q -v
which should give a result similar to this:
sh-3.00# zmu -d /dev/video -q -v
Video Capabilities
Name: CPiA Camera
Type: 513
Can capture
Can capture subareas of the image
Video Channels: 1
Audio Channels: 0
Maximum Width: 352
Maximum Height: 288
Minimum Width: 48
Minimum Height: 48
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 32768
Hue: 32768
Colour :32768
Contrast: 32768
Whiteness: 0
Channel 0 Attributes
Name: Camera
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
  • NOTE:
    That is the output with my Pace VC6452V002 ZoomCam plugged in.
    This camera required that i modprobe the driver module:

    Code: Select all

    modprobe cpia_usb
    To ensure that it is loaded at each boot, i added the above command to: /etc/rc.d/rc.local

Pay particular attention to the things i have put in bold (in the output from my camera)
and then click on the Source to configure your camera and enter some details.
You may need to play around with the Capture Width & Capture Height,
obviously DO NOT exceed what your camera is capable of.


Hope this helps
CatDude
.

Posted: Thu 09 Jun 2011, 10:01
by nooby
Suppose I want to use it to record how I move around in the bed at night.

Sleep Apnea. So when I move it start taken webcam pics and when I lay like dead it stop taking pics.

How many such pics can one expect them during say 10 hours recording and how big space on the HDD does that take up?

Thanks

Posted: Thu 09 Jun 2011, 11:42
by Minnesota
Thanks for your response.. will see what I can find later today for a driver.

G

Posted: Thu 09 Jun 2011, 18:21
by aarf
CatDude wrote:Hi

@ Aarf
This is the GRUB stanza that i use (Legacy GRUB)

Code: Select all

# Linux bootable partition config begins
  title Puppy Watchdog-v1.1 (216)(Frugal) at hda6
  rootnoverify (hd0,5)
  kernel /vmlinuz root=/dev/ram0 PMEDIA=idehd vga=normal acpi=force
  initrd /initrd.gz
# Linux bootable partition config ends
You may or may not need the last bit on the kernel line acpi=force (i do)
As you can see, i have it in the root of the partition (not in a subdirectory)

Also, on the first boot, i had to run the xorgwizard
otherwise it sat there with a black screen (on two different machines :roll: )
Hope this helps
CatDude
.
thanks CatDude with your boot code, xorgwizard, and xwin, got a boot. got running. now need to sort drivers for camera and wifi and perhaps other things..

Posted: Thu 09 Jun 2011, 20:14
by rhadon
@ CatDude, thanks again :D

@ Aarf, Extra drivers for Puppy 2 with 2.6.18.1 kernel Maybe you have more success than I :?

Rolf

Posted: Thu 09 Jun 2011, 20:41
by rhadon
nooby wrote:How many such pics can one expect them during say 10 hours recording and how big space on the HDD does that take up?
I think it's a question about the sensitivity, and I guess, that you can adjust it. If you get a picture on every breath you take, you get about 3600 pics/10h. The other extreme would be one pic if you fall out the bed :lol: . I'm not sure about the size of each pic, it depends from the resolution you choose. The main question is, does the program work with your hardware? This you can only find out by testing.

Rolf

Posted: Thu 09 Jun 2011, 21:21
by nooby
I maybe should have explained myself better. Is it 2GB or 20GB or 200GB?
I mean roughly what to expect lowest quality?

Posted: Fri 10 Jun 2011, 06:06
by rhadon
@ nooby,

with Motion, a program for similar purposes, I get a picture size of about 1k (320x240). So I would guess you need less than 2GB. But as I tried to explain, no one can tell you for sure. You must try yourself.

Rolf

Posted: Fri 10 Jun 2011, 12:28
by rhadon
Hi,

I installed the right video driver, but still no go.
My webcam is detected in Menu-> System-> Usbview.

I installed uvcvideo-20070706-k2.6.18.1.pet.
uvcvideo is the appropriate driver for me in all Puppies since 4.11 and works OOTB.

Running

Code: Select all

modprobe uvcvideo
I get no error message.

Running

Code: Select all

zmu -d /dev/video0 -q -v
I get

Code: Select all

sh-3.00# zmu -d /dev/video0 -q -v
Error, failed to get channel 0 attributes: Invalid argument.
Different options also unsuccessful.

If I change /dev/video0 to /dev/video or /dev/video1-16 (that's what I also find in /dev/), I get
"no such device".

I downloaded and installed luvcview-0.2.4.pet. It works. So I think it's a problem of my settings in Zoneminder or Zoneminder itself.

Also tried to change resolution: 160x120, 320x240, 640x480, 800x600, no go.

Any idea, where I'm wrong or what I could try or test?

Rolf

Posted: Sun 12 Jun 2011, 00:57
by aarf
@rhadon Also failing here but the webcam program is also failing. Will try the second of the drivers you mention http://distro.ibiblio.org/pub/linux/dis ... -0.2.4.pet
Edit. Also failed, and muppy webcam which comes into the menus after restartx also fails.

Posted: Sun 12 Jun 2011, 04:12
by aarf

Code: Select all

sh-3.00# luvcview
luvcview 0.2.4

SDL information:
  Video driver: x11
  A window manager is available
Device information:
  Device path:  /dev/video0
ERROR opening V4L interface: No such device
sh-3.00# luvcview -i 15
luvcview 0.2.4

SDL information:
  Video driver: x11
  A window manager is available
Device information:
  Device path:  /dev/video0
ERROR opening V4L interface: No such device
sh-3.00# 

wifi pet failed also. am thinking a new approach into a latest puppy is the way forward.

Posted: Sun 12 Jun 2011, 08:48
by aarf
anyone able to download this?
http://www2.zoneminder.com/downloads/Zo ... 4.4.tar.gz
i cant at present at least.

Posted: Sun 12 Jun 2011, 08:56
by rhadon
@Aarf

Code: Select all

sh-3.00# luvcview
luvcview 0.2.4

SDL information:
  Video driver: x11
  A window manager is available
Device information:
  Device path:  /dev/video0
Stream settings:
  Frame format: YUYV (MJPG is not supported by device)
  Frame size:   640x480
  Frame rate:   30 fps
Luvcview is only a viewer, not a driver.
You should see uvcvideo in Menu->System->PupScan (should be visible, if you open the first line).

After every boot you need to "modprobe uvcvideo" or you have to write it in rc.local as CatDude mentioned.

I remember vague that uvcvideo has 3 or 4 dependencies, one was something with v4l. But this shouldn't be your problem because I've not installed anything else and it works (I mean luvcview)..

As far as I remember, everything about webcam, which worked or worked not for Eee900 also worked or worked not for 701. I remember 3.01, eeetiger and ripple (good ol' times btw.).

I have not tested wifi with Eee and 2.16 (first step for me is to get webcam working). I remember, I needed the madwifi driver from tempestuous in 3.01. I think, you also need this one for 2.16.

I tried wifi with my Gericom but no go. I need rt2500pci driver but can't find it. So if I get the rest working, maybe I would take the occasion to try it by my own, or more likely, I would ask tempestuous friendly for help.

Muppy webcam also doesn't work for me.

HTH

Rolf

BTW, did you install it on usbflash? I was not able to do it there. It allways comlpained about pmedia=usbflash . Must install it on my internal chips. :evil:

Posted: Sun 12 Jun 2011, 08:59
by aarf
ok got it now from http://www.zoneminder.com/downloads/Zon ... 4.4.tar.gz
going to play in dpup and or lupu.
earlier debian and ubuntu specific at
http://linuxappfinder.com/package/zoneminder

Posted: Sun 12 Jun 2011, 09:04
by aarf
rhadon wrote:

BTW, did you install it on usbflash? I was not able to do it there. It allways comlpained about pmedia=usbflash . Must install it on my internal chips. :evil:
have it on sdcard in mnt/sdb1/ .

Posted: Sun 12 Jun 2011, 09:10
by rhadon
Aarf wrote:anyone able to download this?
http://www2.zoneminder.com/downloads/Zo ... 4.4.tar.gz
Also doesn't work for me. :wink:

I installed zoneminder in lupu 5.25 from PPM. A lot of dependencies, and some are still missing. Maybe I could find.

The real problem for me seems to be that I'm a complete noob about apache, mysql and ZoneMinder itself :oops: . No glue, which program to run first, how to set up and so on. It seems to be a never ending story to me.

Rolf

Posted: Sun 12 Jun 2011, 11:02
by aarf
zonemider documentation at http://www.zoneminder.com/wiki/index.php/Documentation
havent read it yet, if necessary i plan to use xampp to do the apache/mysql and php stuff as i have had xampp up and running before in puppy.http://www.apachefriends.org/en/xampp-linux.html