webcam work on cheese, but not on camora, nor in skype, nor in aMSN, not in mplayer, not in ffmpeg
Hi,
My webcam work fine on cheese, but not on camorama, nor in skype, not
in aMSN, not in mplayer, not in ffmpeg.
:~$ cat /proc/version
Linux version 2.6.29-1-686 (Debian 2.6.29-3) (maks@debian.org) (gcc
version 4.3.3 (Debian 4.3.3-8) ) #1 SMP Fri Apr 17 14:35:16 UTC 2009
:~$ lsusb
Bus 007 Device 003: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader
Bus 007 Device 002: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 005: ID 093a:2460 Pixart Imaging, Inc. Q-TEC WEBCAM 100
Bus 006 Device 002: ID 15ca:00c3 Textech International Ltd. Mini Optical Mouse
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
:~$ lsmod | grep gspca
gspca_pac207 5776 0
gspca_main 18956 1 gspca_pac207
videodev 33448 1 gspca_main
usbcore 124912 7 gspca_pac207,gspca_main,usbhid,uhci_hcd,ehci_hcd
:~$ mplayer -fps 15 tv:// -tv driver=v4l2:device=/dev/video0
MPlayer dev-SVN-r29170Can't open joystick device /dev/input/js0: No
such file or directory
Can't init input joystick
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 ;-)
Selected device: CIF Single Chip
Capabilites: video capture read/write streaming
supported norms:
inputs: 0 = pac207;
Current input: 0
Current format: unknown (0x37303250)
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: Cannot get fps
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5.
s3fb: Couldn't map S3 registers: Operation not permitted
[vdpau] Could not open dynamic library libvdpau.so.1
Opening video filter: [hqdn3d]
Opening video filter: [pp=de]
==========================================================================
Cannot find codec matching selected -vo and video format 0x37303250.
Read DOCS/HTML/en/codecs.html!
==========================================================================
v4l2: ioctl set mute failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.
Exiting... (End of file)
:~$ gstreamer-properties
Gtk-Message: (for origin information, set GTK_DEBUG): failed to
retrieve property `GtkOptionMenu::indicator-size' of type
`GtkRequisition' from rc file value "0" of type `glong'
Gtk-Message: (for origin information, set GTK_DEBUG): failed to
retrieve property `GtkOptionMenu::indicator-spacing' of type
`GtkBorder' from rc file value "0" of type `glong'
gstreamer-properties-Message: Skipping unavailable plugin 'artsdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'glimagesink'
gstreamer-properties-Message: Skipping unavailable plugin 'sdlvideosink'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lmjpegsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'qcamsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'esdmon'
:~$
On gstreamer-properties test my webcam work nice!
:~$ camorama
Unable to capture image
:~$ ffmpeg -f oss -i /dev/dsp -f video4linux2 -s 320x240 -i /dev/video0 out.mpg
FFmpeg version SVN-r18508, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache
cc' --libdir=${prefix}/lib --shlibdir=${prefix}/lib
--bindir=${prefix}/bin --incdir=${prefix}/include/ffmpeg
--enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad
--mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads
--enable-libfaac --enable-libxvid --enable-postproc --enable-libamr-nb
--enable-libamr-wb --enable-x11grab --enable-libgsm --enable-libx264
--enable-libtheora --enable-libdc1394 --enable-nonfree
--disable-stripping --enable-avfilter --enable-libdirac
--disable-decoder=libdirac --enable-libschroedinger
--disable-encoder=libschroedinger --enable-libspeex
--enable-avfilter-lavf --disable-altivec --disable-armv5te
--disable-armv6 --disable-vis
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.25. 0 / 52.25. 0
libavformat 52.32. 0 / 52.32. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 0. 5. 0 / 0. 5. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Apr 14 2009 18:53:03, gcc: 4.3.3
Input #0, oss, from '/dev/dsp':
Duration: N/A, start: 1242238053.423363, bitrate: N/A
Stream #0.0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
[video4linux2 @ 0x9e4a450][4]Capabilities: 5000001
[video4linux2 @ 0x9e4a450]The V4L2 driver changed the video from
320x240 to 176x144
[video4linux2 @ 0x9e4a450]Cannot find a proper format.
/dev/video0: I/O error occurred
Usually that means that input file is truncated and/or corrupted.
Any help?
Thank you very much!
--
Marcelo Luiz de Laia
Universidade do Estado de Santa Catarina
UDESC - www.cav.udesc.br
Lages - SC - Brazil
Linux user number 487797
Reply to: