Logitech Webcam Pro 9000 (делюсь впечатленьями и проблемами)

Установка, настройка TV-тюнеров, видеокамер, веб-камер, плат видеозахвата, flash(MP3)-плееры

Модератор: Модераторы разделов

Ответить
Аватара пользователя
infra_hdc
Сообщения: 376
ОС: GNU/Linux
Контактная информация:

Logitech Webcam Pro 9000

Сообщение infra_hdc »

появилась в хозяйстве сабж, 960-000483

ОС: Debian GNU/Linux i386
`uname -r`: 2.6.26-2-686

Код: Выделить всё

$ lsusb | grep Logitech
Bus 005 Device 003: ID 046d:0809 Logitech, Inc.


что работает:
1. Cheese :)
В среде GNOME, меню: Приложения - Графика - Cheese
вижу себя :)

2. Опрос камеры консольной утилитой streamer, несжатый рисунок:

Код: Выделить всё

streamer -s 640x480 -f ppm -o test.ppm

после получения снимка его надо сжать, например с помощью optipng,
на это уходит несколько секунд. а сжимается всего в два раза.

3. просмотр mplayer-ом
вижу себя :)

Код: Выделить всё

$ mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=15:outfmt=mjpeg:device=/dev/video0
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 3, Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come;-)
v4l2: ioctl get standard failed: Invalid argument
Selected device: UVC Camera (046d:0809)
 Capabilites:  video capture  streaming
 supported norms:
 inputs: 0 = Camera 1;
 Current input: 0
 Current format: MJPEG
==================================================================
 WARNING: UNTESTED OR UNKNOWN OUTPUT IMAGE FORMAT REQUESTED (0x47504a4d)
 This may cause buggy playback or program crash! Bug reports will
 be ignored! You should try again with YV12 (which is the default
 colorspace) and read the documentation!
==================================================================
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
[VO_XV] Could not grab port 355.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0xb7ef43f8]SwScaler: BICUBIC scaler, from yuv422p to yuv420p using MMX
[swscaler @ 0xb7ef43f8]SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0xb7ef43f8]SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0xb7ef43f8]SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
[swscaler @ 0xb7ef43f8]SwScaler: 640x480 -> 640x480
VO: [xv] 640x480 => 640x480 Planar YV12
V:   0.0  20/ 20 ??% ??% ??,?% 0 0

MPlayer interrupted by signal 8 in module: free_demuxer
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
 [ This binary of MPlayer in Debian is currently compiled with
   '--enable-debug'; the debugging symbols are in the package
   'mplayer-dbg'.]


что не работает:

1. Опрос камеры консольной утилитой streamer, сжатый рисунок:

Код: Выделить всё

$ streamer -d -s 640x480 -f jpeg -o test.jpg
checking writer files [multiple image files] ...
  video name=ppm ext=ppm: ext mismatch [need jpg]
  video name=pgm ext=pgm: ext mismatch [need jpg]
  video name=jpeg ext=jpeg: ext mismatch [need jpg]
checking writer raw [single file, raw video data] ...
  video name=rgb ext=raw: ext mismatch [need jpg]
  video name=gray ext=raw: ext mismatch [need jpg]
  video name=422 ext=raw: ext mismatch [need jpg]
  video name=422p ext=raw: ext mismatch [need jpg]
  video name=4mpeg ext=yuv: ext mismatch [need jpg]
  video name=4mpeg-o ext=yuv: ext mismatch [need jpg]
checking writer avi [Microsoft AVI (RIFF) format] ...
  video name=rgb15 ext=avi: ext mismatch [need jpg]
  video name=rgb24 ext=avi: ext mismatch [need jpg]
  video name=mjpeg ext=avi: ext mismatch [need jpg]
  video name=jpeg ext=avi: ext mismatch [need jpg]
no match found
neither audio nor video format specified/found


2. Опрос камеры другой консольной утилитой, кстати, с богатыми возможностями (если верить манам).

Код: Выделить всё

$ vgrabbj -f test.jpeg -d /dev/video0 -D 7
Updated pointers to new allocated memory.
Done parsing commandline
Setting tmpout file to test.jpeg.tmp
Device /dev/video0 successfully opened
Checking settings of device /dev/video0
Trying palette RGB24
Unable to set palette
Trying palette RGB32
Unable to set palette
Trying palette YUYV
Set palette successfully to YUYV
Initializing memory
Memory initialized, size: 202752 (in), 304128 (out)
Reading image from /dev/video0
Palette to be used: YUYV (8), size: 202752
Could not get mmap-buffer - Falling back to read()
Using normal read for image grabbing
Image successfully read
Got YUYV, converting...
converted to RGB24
Temporary outputfile test.jpeg.tmp closed
Temporary output test.jpeg.tmp moved to final destination test.jpeg
Updated pointers to new allocated memory.
There was no map allocated to be freed...
Device /dev/video0 closed
Buffers freed
vars freed


на выходе получается зелёный квадрат, вместо изображения.
также, не моргает оранжевое кольцо на камере, что обычно происходит при обращении к ней.

судя по всему, ей нужна 24-битность камеры, о чём упомянуто в описании пакета.
данная камера держит 24 бита (если верить информации с сайта market.yandex.ru)
но выдача информации через утилиту говорит о каких-то 16-ти битах

Код: Выделить всё

$ vgrabbj -s /dev/video0
vgrabbj, Version 0.9.6
Videodevice name: /dev/video0 (UVC Camera (046d:0809))
Capabilities
Type     : 1    Values can be looked up at videodev.h
Channels : 1
Audio    : 0
MaxWidth : 1600
MaxHeight: 1200
MinWidth : 48
MinHeigth: 32

Current Settings:
Brightness: 32896
Hue       : 0
Color     : 7196
Contrast  : 8224
Whiteness : 0
Depth     : 16
Palette   : YUYV (8)
Width     : 352
Height    : 288
Chromakey : 0


что хотелось бы:
смотреть из веб-странички на картинку, которая видится камерой (в момент обращения клиента -- камера делает снимок)
желательно в jpeg. пока играюсь кирпичиками вот :)

зы: микрофон работает в скайпе, но не очень громко. хотелось бы, чтобы он был более чувствительным
Спасибо сказали:
GRSrus
Сообщения: 52

Re: Logitech Webcam Pro 9000

Сообщение GRSrus »

здраствуйте у меня тоже pro 9000 , вы какойнибудь нормальный софт нашли на эту вебку?
Спасибо сказали:
Ответить