LINUX.ORG.RU

Веб-камера


0

0

Подарили мне Genius VideoCAM Trek.
Полазив по интернету нашел такую строчку: VideoCam Trek -> This cam uses the  Sonix SN9C101 chip

Действительно, модуль sn9c102 создает в /dev/v4l/video0:

sn9c102: V4L2 driver for SN9C10x PC Camera Controllers v1:1.24
usb 3-1: SN9C10[12] PC Camera Controller detected (vid/pid 0x0C45/0x6005)
usb 3-1: TAS5110C1B image sensor detected
usb 3-1: Initialization succeeded
usb 3-1: V4L2 device registered as /dev/video0
usb 3-1: Optional device control through 'sysfs' interface ready
usbcore: registered new driver sn9c102

По любые попытки получить картинку приводят к одному и тому же:

/dev/v4l $ sudo streamer -c /dev/video0 -b 16 -o ~/outfile.jpeg
sudo: cannot get working directory
files / video: JPEG (JFIF) / audio: none
no way to get: 320x240 JPEG (JFIF)
movie writer initialisation failed

/dev/v4l $ sudo streamer -c /dev/video0 -o ~/outfile.jpeg
sudo: cannot get working directory
files / video: JPEG (JFIF) / audio: none
no way to get: 320x240 JPEG (JFIF)
movie writer initialisation failed

/dev/v4l $ sudo streamer -q -c /dev/video0 -t 00:30:00 -o ~/outfile.avi
sudo: cannot get working directory
no way to get: 320x240 15 bit TrueColor (LE)
movie writer initialisation failed

/dev/v4l $ sudo xawtv -hwscan
sudo: cannot get working directory
This is xawtv-3.94, running on Linux/i686 (2.6.12-gentoo-r10)
looking for available devices
port 240-240
    type : Xvideo, image scaler
    name : NV17 Video Overlay

port 241-241
    type : Xvideo, image scaler
    name : NV17 Video Texture

port 242-273
    type : Xvideo, image scaler
    name : NV05 Video Blitter

port 274-274                            [ -xvport 274 ]
    type : Xvideo, video overlay
    name : NVIDIA Video Interface Port

/dev/video0: OK                         [ -device /dev/video0 ]
    type : v4l2
    name : SN9C10x PC Camera
    flags:  capture

/dev/v4l $ xawtv -c /dev/video0
This is xawtv-3.94, running on Linux/i686 (2.6.12-gentoo-r10)
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
WARNING: Your X-Server has no DGA support.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOC_G_STD(std=0xbfed4a30b7d997a8 [PAL_H,PAL_D,PAL_K,PAL_M,PAL_N,PAL_Nc,NTSC_M,?,SECAM_B,SECAM_H,SECAM_K,SECAM_L,?
ATSC_8_VSB,ATSC_16_VSB,(null),(null),(null),(null),(null),(null),(null),(null),(
null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(nul
l),(null),(null),(null)]): Invalid argument
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
no way to get: 384x288 32 bit TrueColor (LE: bgr-)
no way to get: 2048x1572 24 bit TrueColor (BE: rgb)
no way to get: 384x288 32 bit TrueColor (LE: bgr-)
no way to get: 384x288 32 bit TrueColor (LE: bgr-)

$ camorama VIDIOCGCAP  --  could not get camera capabilities, exiting.....

Доки которые вы советывали Cactus_daLipa, почитал.
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.