Hello,
First things first: I have already seen the other simiral thread about black webcam, and have searched in the forums, but this is not the same problem with these.
Now:
I have a very strange problem with a webcam i just got.
I am using Ubuntu Gutsy.
I have compiled aMSN from source (with debugging enabled) 9107 cvs version.
It is a Creative Vista Live IM that works on linux.
The webcam works in every software, even in xawtv ( using xawtv -nodga)
The really strange probmem:
running the /utils/linux/capture/test.tcl the webcam WORKS perfectly, it is well configured, the resolutions change nice.
BUT, inside aMSN audio/webcam wizard, the webcam window is just BLANK !!
using "set Capture::Debug 1" i have found that the output of test.tcl and aMSN inside the wizard is exactly the same. That is:
test.tcl
vid-probe: trying: v4l2...
ioctl VIDIOC_QUERYCAP: Invalid argument
open(/dev/video1): No such file or directory
open(/dev/video2): No such file or directory
open(/dev/video3): No such file or directory
vid-probe: trying: v4l...
open(/dev/video1): No such file or directory
open(/dev/video2): No such file or directory
open(/dev/video3): No such file or directory
Found OV519 USB Camera at /dev/video0
//------------------------------------------------------------------------//Pressing Choose Device and choosing the webcam Device from the Chooser window produces this:
vid-open: trying: v4l2...
v4l2: open
vid-open: failed: v4l2
vid-open: trying: v4l...
v4l: open
mbuf: size=1843216 frames=2
v4l: using mapped buffers for capture
v4l: init: /dev/video0 (OV519 USB Camera)
capabilities: capture
size : 64x48 => 640x480
channels: 1
Camera: 0 camera
audios : 0
PAL NTSC SECAM AUTO
fbuffer : base=0x(nil) size=0x0 depth=0 bpl=0
picture : brightness=32768 hue=36352 colour=0 contrast=32768
picture : whiteness=26880 depth=12 palette=yuv420
v4l: close
vid-open: ok: v4l
vid-open: flags: 2
v4l: close
//------------------------------------------------------------------------------- Now choosing the "Channel" from Chooser produces this:
vid-open: trying: v4l2...
v4l2: open
vid-open: failed: v4l2
vid-open: trying: v4l...
v4l: open
mbuf: size=1843216 frames=2
v4l: using mapped buffers for capture
v4l: init: /dev/video0 (OV519 USB Camera)
capabilities: capture
size : 64x48 => 640x480
channels: 1
Camera: 0 camera
audios : 0
PAL NTSC SECAM AUTO
fbuffer : base=0x(nil) size=0x0 depth=0 bpl=0
picture : brightness=32768 hue=31232 colour=0 contrast=32768
picture : whiteness=26880 depth=12 palette=yuv420
v4l: close
vid-open: ok: v4l
vid-open: flags: 2
v4l: close
vid-open: trying: v4l2...
v4l2: open
vid-open: failed: v4l2
vid-open: trying: v4l...
v4l: open
mbuf: size=1843216 frames=2
v4l: using mapped buffers for capture
v4l: init: /dev/video0 (OV519 USB Camera)
capabilities: capture
size : 64x48 => 640x480
channels: 1
Camera: 0 camera
audios : 0
PAL NTSC SECAM AUTO
fbuffer : base=0x(nil) size=0x0 depth=0 bpl=0
picture : brightness=32768 hue=33280 colour=0 contrast=32768
picture : whiteness=26880 depth=12 palette=yuv420
v4l: close
vid-open: ok: v4l
vid-open: flags: 2
v4l: open
mbuf: size=1843216 frames=2
v4l: using mapped buffers for capture
ng_dev_open: opened OV519 USB Camera [refcount 1]
v4l: setformat
v4l: capture probe 24 bit TrueColor (BE: rgb)... failed
v4l: setformat
v4l: capture probe 24 bit TrueColor (LE: bgr)... ok
v4l: startvideo
//---------------------------------------------------------------At this point the webcam video appears correctly inside the chooser, everything works fine (and with minimum cpu usage by the cam)
Here is the debug output of amsn when starting the audio/webcam wizard and pressing next:
vid-probe: trying: v4l2...
ioctl VIDIOC_QUERYCAP: Invalid argument
open(/dev/video1): No such file or directory
open(/dev/video2): No such file or directory
open(/dev/video3): No such file or directory
vid-probe: trying: v4l...
open(/dev/video1): No such file or directory
open(/dev/video2): No such file or directory
open(/dev/video3): No such file or directory
Found OV519 USB Camera at /dev/video0
vid-probe: trying: v4l2...
ioctl VIDIOC_QUERYCAP: Invalid argument
open(/dev/video1): No such file or directory
open(/dev/video2): No such file or directory
open(/dev/video3): No such file or directory
vid-probe: trying: v4l...
open(/dev/video1): No such file or directory
open(/dev/video2): No such file or directory
open(/dev/video3): No such file or directory
Found OV519 USB Camera at /dev/video0
vid-probe: trying: v4l2...
ioctl VIDIOC_QUERYCAP: Invalid argument
open(/dev/video1): No such file or directory
open(/dev/video2): No such file or directory
open(/dev/video3): No such file or directory
vid-probe: trying: v4l...
open(/dev/video1): No such file or directory
open(/dev/video2): No such file or directory
open(/dev/video3): No such file or directory
Found OV519 USB Camera at /dev/video0
vid-open: trying: v4l2...
v4l2: open
vid-open: failed: v4l2
vid-open: trying: v4l...
v4l: open
mbuf: size=1843216 frames=2
v4l: using mapped buffers for capture
v4l: init: /dev/video0 (OV519 USB Camera)
capabilities: capture
size : 64x48 => 640x480
channels: 1
Camera: 0 camera
audios : 0
PAL NTSC SECAM AUTO
fbuffer : base=0x(nil) size=0x0 depth=0 bpl=0
picture : brightness=32768 hue=32768 colour=0 contrast=32768
picture : whiteness=26880 depth=12 palette=yuv420
v4l: close
vid-open: ok: v4l
vid-open: flags: 2
v4l: close
vid-open: trying: v4l2...
v4l2: open
vid-open: failed: v4l2
vid-open: trying: v4l...
v4l: open
mbuf: size=1843216 frames=2
v4l: using mapped buffers for capture
v4l: init: /dev/video0 (OV519 USB Camera)
capabilities: capture
size : 64x48 => 640x480
channels: 1
Camera: 0 camera
audios : 0
PAL NTSC SECAM AUTO
fbuffer : base=0x(nil) size=0x0 depth=0 bpl=0
picture : brightness=32768 hue=23552 colour=0 contrast=32768
picture : whiteness=26880 depth=12 palette=yuv420
v4l: close
vid-open: ok: v4l
vid-open: flags: 2
v4l: open
mbuf: size=1843216 frames=2
v4l: using mapped buffers for capture
ng_dev_open: opened OV519 USB Camera [refcount 1]
v4l: setformat
v4l: capture probe 24 bit TrueColor (BE: rgb)... failed
v4l: setformat
v4l: capture probe 24 bit TrueColor (LE: bgr)... ok
v4l: startvideo
//---------------------------------------------------------------------------At this point the webcam window is just black!!
I have also tryed with every pallete i could load in the driver, with the same results. Whenever the pallete worked in test.tls, the msn window was just black.
What i forgot to mention is that i am using the ov51x-jpeg
dmesg produced this output when connecting:
[10361.248000] /home/trv/projects/camera/ov51x-jpeg/trunk/ov51x-jpeg-core.c: USB OV519 video device found
[10361.600000] /home/trv/projects/camera/ov51x-jpeg/trunk/ov51x-jpeg-core.c: Sensor is an OV7670
[10362.240000] /home/trv/projects/camera/ov51x-jpeg/trunk/ov51x-jpeg-core.c: Device at usb-0000:00:1d.1-2 registered to minor 0
lsusb is this:
$lsusb
Bus 002 Device 005: ID 041e:4052 Creative Technology, Ltd
and v4l-info:
$ v4l-info
### video4linux device info [/dev/video0] ###
general info
VIDIOCGCAP
name : "OV519 USB Camera"
type : 0x201 [CAPTURE,SUBCAPTURE]
channels : 1
audios : 0
maxwidth : 640
maxheight : 480
minwidth : 64
minheight : 48
channels
VIDIOCGCHAN(0)
channel : 0
name : "Camera"
tuners : 0
flags : 0x0 []
type : CAMERA
norm : 0
tuner
ioctl VIDIOCGTUNER: Invalid argument
audio
ioctl VIDIOCGAUDIO: Invalid argument
picture
VIDIOCGPICT
brightness : 32768
hue : 26624
colour : 0
contrast : 32768
whiteness : 26880
depth : 12
palette : YUV420
buffer
VIDIOCGFBUF
base : (nil)
height : 0
width : 0
depth : 0
bytesperline : 0
window
VIDIOCGWIN
x : 0
y : 0
width : 640
height : 480
chromakey : 0
flags : 30
What could be wrong?
One thing I have also noticed is this:
Before upgrading to the cvs version, i was using some the amsn deb files from the Trevino's Repository, that were made with cvs snapsots of some date back in September.
The webcam was working in the amsn wizard with these deb files!
Unfortunately i dont have the necessary knowledge to see if (and what) changed since that version and what are the differences between the test.tcl which works, and the actual wizard.
By the way, the "test.tcl" file is not much of a test if it works but amsn does not :lol: