[Résolu] Webcam Creative Labs PD1001

Bonjour,

Je possède une webcam Creative Labs PD1001 avec une puce OV518.

[quote]# lsusb
Bus 001 Device 022: ID 05a9:0518 OmniVision Technologies, Inc. OV518 WebCam[/quote]

Ses pilotes (ov51x-jpeg et ov511) sont correctement installés.

Voici ce que me renvois mon dmesg :

[quote]/home/nls/ov51x-jpeg-1.5.4/ov51x-jpeg-core.c: USB OV518 video device found
/home/nls/ov51x-jpeg-1.5.4/ov51x-jpeg-core.c: Device revision 17
/home/nls/ov51x-jpeg-1.5.4/ov51x-jpeg-core.c: Sensor is an OV6620
/home/nls/ov51x-jpeg-1.5.4/ov51x-jpeg-core.c: Device at usb-0000:00:02.0-10 registered to minor 0
usbcore: registered new driver ov51x
/home/nls/ov51x-jpeg-1.5.4/ov51x-jpeg-core.c: 1.5.4 : ov51x USB Camera Driver
usbcore: registered new driver ov511
drivers/media/video/ov511.c: v1.64 for Linux 2.5 : ov511 USB Camera Driver[/quote]

Et puis lorsque je lance camstream, camorama ou tout autre logiciels permettant de visualiser ma webcam, ils se figent sans laisser de message d’erreur.

Exemple de camstream :

[quote]CCamWindow::CCamWindow()
CWebCamViewer::CWebCamViewer(0x80ce470, 0x0)
CVideoDevice::Init()
Using mmap(), VMBuf.size = 608272
Trying to find video options for OV518 USB Camera:/dev/video0
searching OV518 USB Camera
CSnapshotSettingsDlg::CSnapshotSettingsDlg(…)
CVideoSettingsDlg::SizeChanged(352x288)
CVideoSettingsDlg::FramerateChanged(10)
CCamPanel::SetSize(352x288)
CCamPanel::SetImageSize(352x288)
CCamPanel::SetVisibleSize(352x288)
CCamPanel::SetSize(352x288)
CCamPanel::SetImageSize(352x288)
CCamPanel::SetVisibleSize(352x288)
RecalcTotalViewSize: resize viewport(352x288)
EnableRGB: +
CVideoDevice::SetPalette picked palette 4 [rgb24]
CVideoDevice::CreateImagesRGB()
allocating space for RGB
CVideoDevice::StartCapture() go![/quote]

Exemple de Camorama :

[quote]VIDIOCGCAP
device name = OV518 USB Camera
device type = 513
can use mmap()

of channels = 1

of audio devices = 0

max width = 352
max height = 288
min width = 160
min height = 120

VIDIOCGWIN
x = 0
y = 0
width = 352
height = 288
chromakey = 0
flags = 30

VIDIOCGWIN
x = 0
y = 0
width = 176
height = 144
chromakey = 0
flags = 30

VIDIOCGPICT:
bright = 6400
hue = 64768
colour = 24576
contrast = 32512
whiteness = 26880
colour depth = 12
YUV420

VIDIOCGMBUF
mb.size = 608272
mb.frames = 2
mb.offset = 304136
update_tooltip called
tip - acap off
** Message: SET PIC
** Message: SET PIC
** Message: SET PIC
** Message: SET PIC
** Message: SET PIC
update_tooltip called
tip - acap off[/quote]

Je suis sous :
Linux debian 2.6.18-4-k7 #1 SMP Wed May 9 23:42:01 UTC 2007 i686 GNU/Linux
Sous un environnement graphique Gnome, et ça ne fonctionne ni en Etch, ni en Lenny.
(Je suis en Lenny actuellement)

Et puis tant que j’y suis :

[quote]# lsmod |grep ov
ov511 66256 0
ov51x_jpeg 135608 0
compat_ioctl32 1792 2 ov511,ov51x_jpeg
videodev 21440 2 ov511,ov51x_jpeg
usbcore 113412 5 ov511,ov51x_jpeg,ehci_hcd,ohci_hcd[/quote]

:wink:

Merci d’avance pour votre aide, si vous avez une petite idée d’où peut venir le problème.
Cordialement,
Kassandre

salut Kassandre

On dirait que ta cam est bien prise en charge, c’est étrange.

Juste une question : as-tu autre chose de branché sur le même concentrateur USB ?
Je m’explique tes softs réussissent à prendre la main sur le périph et à le configurer, donc la prise en charge semble ok.
Par contre dès qu’il faut lancer un flux video et donc récupérer des trames ça s’arrête : ça sent le problème interruption usb.
On a le même problème quand on branche 2 cam sur le même concentrateur.

Pour voir si c’est ça tu peux regarder ton syslog ou ton kern.log au moment où tu lances camstream.

Bonjour,

Merci pour la réponse mais ma webcam est seule sur son concentrateur. Et mon kern.log renvois la même chose que le dmesg dont j’ai fait un copié collé dans mon premier post.

Une autre idée ? :smt003

Cordialement,
Kassandre

Bonsoir,
Je me suis demandé si cela pouvait venir de ta carte graphique ? Ayant une ATI, j’ai souvent des problèmes de ce côté là. Mais je suis pas sur du tout… n’ayant pas de messages d’erreurs.
A++

Bonjour,

Ah non non non, pas du tout. Vu qu’en fait c’est juste le logiciel qui fait la capture webcam qui se fige et un ctrl+c dans la console le coupe.

J’avais déjà eu des soucis avec ma carte graphique mais c’était la machine complète qui se figeait et je n’avais pas d’autre solution que de redémarrer. Je n’ai plus ce problème là, je ne sais pas comment je m’y suis pris mais je l’ai résolu. :wink:

Merci quand même de l’idée.

Cordialement,
Kassandre

Désolé, j’espère que tu trouveras ta solution rapidement. Bonne année, c’est aujourd’hui ou jamais :wink:

Merci, bonne année à vous aussi. :wink:

Cordialement,
Kassandre

Enfin un message d’erreur ! (Youpi ?) :mrgreen:

Je l’ai obtenu en installant le logiciel “webcam” :

[quote]# webcam
reading config file: /root/.webcamrc
v4l: timeout (got SIGALRM), hardware/driver problems?
ioctl: VIDIOCSYNC(int=0): Interrupted system call
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=7): Device or resource busy
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=13): Device or resource busy
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=15): Device or resource busy
can’t get rgb24 data[/quote]

Dites dites dites, vous pouriez m’aider maintenant s’il vous plaît ? :cry:

Merci d’avance,
Kassandre

[EDIT] : Non mais sans rire, c’est la fête ! Je passe deux jours à chercher des messages d’erreurs et là j’en ai pleins d’un coup ! En voilà encore :

[quote]# xawtv -c /dev/video0
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-3-k7)
xinerama 0: 1152x864+0+0
/dev/video0 [v4l]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string “--ledfixed-medium-r-–39----c---” to type FontStruct
v4l: timeout (got SIGALRM), hardware/driver problems?
ioctl: VIDIOCSYNC(int=0): Appel système interrompu
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=15): Périphérique ou ressource occupé
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=9): Argument invalide
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=5): Argument invalide
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=4): Périphérique ou ressource occupé
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=1): Périphérique ou ressource occupé
ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=13): Périphérique ou ressource occupé[/quote]

Bonjour,
Petit up car je n’ai toujours trouvé pas la solution à mon problème.
Merci d’avance pour vos réponses,
Cordialement,
Kassandre

Problème résolu !

Voici la solution à mon problème :

Créer un fichier webcam dans le répertoire “/etc/init.d/” et y mettre ceci :

[code]#!/bin/bash

start_webcam () {

ovcamchip=$(lsmod |grep ovcamchip)
if [[ “$ovcamchip” != “” ]]; then
rmmod ovcamchip;
fi

ovjpeg=$(lsmod |grep ov51x_jpeg)
if [[ “$ovjpeg” != “” ]]; then
rmmod ov51x-jpeg;
fi

ov=$(lsmod |grep ov511)
if [[ “$ov” != “” ]]; then
rmmod ov511;
fi

modprobe ovcamchip
echo “Module Ovcamchip installé.”

modprobe ov511
echo “Module Ov511 installé.”

modprobe ov51x-jpeg
echo “Module Ov51x-jpeg installé.”

echo “Webcam installée !”
}

stop_webcam () {
ovcamchip=$(lsmod |grep ovcamchip)
if [[ “$ovcamchip” != “” ]]; then
rmmod ovcamchip;
echo “Module Ovcamchip supprimé.”;
else echo “Module Ovcamchip absent.”;
fi

ovjpeg=$(lsmod |grep ov51x_jpeg)
if [[ “$ovjpeg” != “” ]]; then
rmmod ov51x-jpeg;
echo “Module Ov51x-jpeg supprimé.”;
else echo “Module Ov51x-jpeg absent.”;
fi

ov=$(lsmod |grep ov511)
if [[ “$ov” != “” ]]; then
rmmod ov511;
echo “Module Ov511 supprimé.”;
else echo “Module Ov511 absent.”;
fi

echo “Webcam désinstallée !”
}

case “$1” in
start)
start_webcam
;;
stop)
stop_webcam
;;
restart|force-reload)
stop_webcam
sleep 1
start_webcam
;;
*)
N=/etc/init.d/webcam
echo “Usage: $N {start|stop|restart|force-reload}” >&2
exit 1
;;
esac
exit 0[/code]

Ensuite il faut faire un chmod +x /etc/init.d/webcam
Puis un update-rc.d webcam defaults

Et à tout les démarrages la webcam se lancera.

Et puis voilà, tout fonctionne comme par magie. En fait je m’était planté dans l’ordre d’installation des modules.

Donc en premier il faut installer ovcamchip, puis ov511 puis en dernier ov51x-jpeg et tout fonctionne.

Merci à tous pour votre soutient.
Cordialement,
Kassandre

Bravo :laughing: et merci du partage de solution.