Bienvenue sur eagle-usb.org

WikiEagle

WebCamSonix

PagePrincipale :: DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur :: Vous êtes 18-97-9-172.crawl.commoncrawl.org

Some diagnostics

With my laptop HP dv6162 there's an integrated WebCam that advertises as :

lspcidrake -v|grep -i cam
uvcvideo : Sonix Technology Co., Ltd.|USB 2.0 Camera [Video|Video Control] (vendor:0c45 device:62c0)

lsusb
Bus 005 Device 002: ID 0c45:62c0 Microdia

lsmod | grep -iE "video|uvc|v4l"
video 19976 0
uvcvideo 36356 0
v4l1_compat 16772 1 uvcvideo
videodev 13568 1 uvcvideo
v4l2_common 20992 1 uvcvideo
usbcore 129696 4 uvcvideo,ehci_hcd,uhci_hcd

uname -a
Linux benLapix.eagle-usb.org 2.6.17-6mdv #1 SMP Wed Oct 25 12:17:57 MDT 2006 x86_64 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz GNU/Linux

update : uvcvideo is included in the kernel 2.6.17-14mdv see http://wiki.mandriva.com/en/Development/Ideas/Mandriva_2007.1/Kernel#New_USB_drivers
Linux BenBartux.is-a-geek.net 2.6.17-14mdv #1 SMP Wed May 9 21:11:43 MDT 2007 i686 AMD Athlon(tm) XP 2800+ GNU/Linux


Infos about the uvcvideo driver

webcam 0c45:62c0 seems supported :



Using the webcam

ekiga works with the webcam (and the microphone)

Some tests

./luvcview -d /dev/video0 -C -L
uvcview version 0.1.7
Video driver: x11
A window manager is available
video /dev/video0
Unable to set format: 22.
Init v4L2 failed !! exit fatal

xawtv -hwscan
This is xawtv-3.95, running on Linux/x86_64 (2.6.17-6mdv)
looking for available devices
port 274-274
type : Xvideo, image scaler
name : NV17 Video Texture

port 275-306
type : Xvideo, image scaler
name : NV05 Video Blitter

/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : USB 2.0 Camera
flags: capture

To record video, I used this scriptshell function with ffmpeg:

function record_cam () {
[ "$#" -ne 2 ] && echo "usage: ./$0 /dev/video file" && return 1
ffmpeg -vd "$1" -target svcd -s 640x480 -ad /dev/dsp -ad /dev/dsp -ac 1 "$2"
}

then specify record_cam /dev/video0 /tmp/video.avi

you can fix the framerate with -fps option and put this function in another scriptshell function that will append date and hour to the file name.
To record for one hour, use the -t duration option.


Requirements for compilations



detecting intrusion


videodog -s -d /dev/video1
init: VIDIOCGCHAN: Invalid argument

VideoDog Version 0.31

Device Name     : Logitech QuickCam Pro 4000
Device          : /dev/video1
Max Width       : 640
Max Height      : 480

Current Settings :

        Mode            : NTSC
        Brightness      : 512
        Hue             : 65535
        Colour          : 19034
        Contrast        : 27648
        Input names     : 
                0 - Webcam

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]