wapcam.mobi Forum Index wapcam.mobi
The forum dedicated to the Wapcam Suite Application
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Could not connect to capture device" sur ubuntu l

 
Post new topic   Reply to topic    wapcam.mobi Forum Index -> Installation
View previous topic :: View next topic  
Author Message
morphinux
newbie


Joined: 23 Nov 2007
Posts: 3

PostPosted: Fri Nov 23, 2007 10:28 pm    Post subject: "Could not connect to capture device" sur ubuntu l Reply with quote

Bonjour,

Je viens d'installer wapcamserver sur ubuntu linux avec quelques difficultés mais que j'ai pu régler le problème grace aux différents topics sur ce forum concernant JMF.

Cette commande m'a permis de régler le problème de detection de ma webcam :

Code:
export LD_LIBRARY_PATH=/home/morphinux/WapcamServer/lib/


Néanmoins, il me reste un problème lorsque je clic sur "start" pour demarrer le visionnage via la webcam. Voici le message d'erreur en image Wink



Comment puis-je régler ce problème ?

Merci d'avance
Back to top
View user's profile Send private message
wapcamer
Site Admin


Joined: 03 Jan 2006
Posts: 275
Location: Paris

PostPosted: Sat Nov 24, 2007 12:40 am    Post subject: Reply with quote

Bonsoir morphinux,
bienvenue Laughing

Deja merci d'avoir pris la peine de fouiller le forum avant de poster.

Concernant le "could not connect...", malheureusement ça arrive parfois pour d'obscures raisons.
Ce que tu peux vérifier, c'est qu'aucun autre programme n'utilise la caméra en même temps.
Parfois simplement débrancher et rebrancher la caméra fonctionne aussi.
Je suppose que la webcam fonctionne avec un autre programme (xawtv ou autre)?

Pourrais-tu aussi poster le log complet? On n'en voit pas assez sur le screenshot
Back to top
View user's profile Send private message Visit poster's website
morphinux
newbie


Joined: 23 Nov 2007
Posts: 3

PostPosted: Sat Nov 24, 2007 11:37 am    Post subject: Reply with quote

Bonjour,

Merci pour ta réponse Smile

Quote:
Pourrais-tu aussi poster le log complet? On n'en voit pas assez sur le screenshot


ok, voici la totalité Wink

Code:
morphinux@PC-ubuntu-morphinux:~/WapcamServer$ java -jar WapcamServer.jar
trying loading jar:mp3plugin.jar
com.sun.media.codec.audio.mp3.JavaDecoder
Codec registered:com.sun.media.codec.audio.mp3.JavaDecoder
setting new codec list
setting new demux list
setting new effect list
setting new mux list
setting new render list
new plugins list set up
javax.swing.UnsupportedLookAndFeelException: [The Microsoft Windows Look and Feel - com.sun.java.swing.plaf.windows.WindowsLookAndFeel] not supported on this platform
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:524)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:581)
        at WapcamServer.aw.<init>(Unknown Source)
        at WapcamServer.Wapcam.Application.<init>(Unknown Source)
        at WapcamServer.Wapcam.Application.main(Unknown Source)
ProxySupport: remove http proxy
ProxySupport: remove socks proxy
javax.swing.UnsupportedLookAndFeelException: [The Microsoft Windows Look and Feel - com.sun.java.swing.plaf.windows.WindowsLookAndFeel] not supported on this platform
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:524)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:581)
        at WapcamServer.fc.<init>(Unknown Source)
        at WapcamServer.aw.a(Unknown Source)
        at WapcamServer.aw.<init>(Unknown Source)
        at WapcamServer.Wapcam.Application.<init>(Unknown Source)
        at WapcamServer.Wapcam.Application.main(Unknown Source)
startup res:0
Exception in thread "main" java.lang.UnsatisfiedLinkError: no tray in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1030)
        at org.jdesktop.jdic.tray.internal.impl.GnomeTrayAppletService.<clinit>(Unknown Source)
        at org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(Unknown Source)
        at org.jdesktop.jdic.tray.internal.ServiceManager.getService(Unknown Source)
        at org.jdesktop.jdic.tray.TrayIcon.<init>(Unknown Source)
        at WapcamServer.Wapcam.Application.<init>(Unknown Source)
        at WapcamServer.Wapcam.Application.main(Unknown Source)
Initializing camera
v4l:QCM USB Camera:0
dev sel:-1:null
dev sel:0:v4l:QCM USB Camera:0
cap sel:-1:null
cap sel:0:Format: RGB, 320.0x240.0: 24bpp
rebuildContextualMenu
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at WapcamServer.Wapcam.Application.a(Unknown Source)
        at WapcamServer.dq.actionPerformed(Unknown Source)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
starting capture
java.io.IOException: java.lang.Error: Couldn't initialize capture device
rebuildContextualMenu
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at WapcamServer.Wapcam.Application.a(Unknown Source)
        at WapcamServer.dw.actionPerformed(Unknown Source)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
starting capture
java.io.IOException: java.lang.Error: Couldn't initialize capture device



Quote:
Ce que tu peux vérifier, c'est qu'aucun autre programme n'utilise la caméra en même temps.


non aucun autre programme n'utilise la webcam, j'avais installé 'motion" mais je l'avais désinstallé avant d'installer wapcamserver.

Quote:
Parfois simplement débrancher et rebrancher la caméra fonctionne aussi.


J'ai testé mais ça ne change rien et d'ailleurs quand je débranche la webcam et que je clic sur init, il detecte ma webcam Rolling Eyes il ne devrait rien détecter du tout dans ce cas ?

Sinon ma webcam fonctionne avec amsn,

Merci d'avance
Back to top
View user's profile Send private message
wapcamer
Site Admin


Joined: 03 Jan 2006
Posts: 275
Location: Paris

PostPosted: Sat Nov 24, 2007 11:34 pm    Post subject: Reply with quote

Merci pour le log.
En fait les erreurs qu'ils indiquent sont liées à l'intégration dela petite icone dans la barre des fenetres du bureau. Je pense que ça ne marche qu'avec KDE, ou en tout cas pas chez toi, mais ce n'est pas vraiment problématique.
En tout cas c'est sans rapport avec la gestion de la caméra.

Quote:
J'ai testé mais ça ne change rien et d'ailleurs quand je débranche la webcam et que je clic sur init, il detecte ma webcam Rolling Eyes il ne devrait rien détecter du tout dans ce cas ?

En fait, la détection a proprement parler se passe lorsque tu fais "Detect capture devices", qui enreigstre alors les données dans un registre, le JMFRegistry.

Quand tu fais Init, le programme va simplement chercher le contenu du registre. C'est pour cela que même caméra débranchée, tu as la caméra qui apparait dans le menu. Si tu refais une recherche de devices caméra débranchée, alors cette fois-ci l'entrée devrait disparaitre de la liste.

Malheureusement, concernant le "could not connect", c'est un problème relativement récurrent pour lequel je n'ai pas de réponse. Ca peut venir des drivers de la webcam ou des drivers webcam de JMF; en tout cas aucun élément sur lequel j'ai réellement de maitrise. Crying or Very sad

Peut-être peux-tu essayer avec une autre webcam si tu en as une sous la main?Rolling Eyes

Sinon je viens de voir un truc bizarre sur ton screenshot: l'@IP de ta machine: 127.0.1.1 . C'est normal ça?
Back to top
View user's profile Send private message Visit poster's website
morphinux
newbie


Joined: 23 Nov 2007
Posts: 3

PostPosted: Sun Nov 25, 2007 11:47 am    Post subject: Reply with quote

Salut,

Quote:
Malheureusement, concernant le "could not connect", c'est un problème relativement récurrent pour lequel je n'ai pas de réponse. Ca peut venir des drivers de la webcam ou des drivers webcam de JMF; en tout cas aucun élément sur lequel j'ai réellement de maitrise.


Ok c pas grave, je vais tester avec une autre webcam Wink

Quote:
Sinon je viens de voir un truc bizarre sur ton screenshot: l'@IP de ta machine: 127.0.1.1 . C'est normal ça?


Rolling Eyes qu'est-ce que c'est que cha Question je vais modifier ça tout de suite en mettant 127.0.0.1 Wink

Merci encore pour ton aide. je n'abandonne pas et continue à essayer de trouver une solution si il y en a une .

bravo pour ton travail

A+
Back to top
View user's profile Send private message
wapcamer
Site Admin


Joined: 03 Jan 2006
Posts: 275
Location: Paris

PostPosted: Sun Nov 25, 2007 11:41 pm    Post subject: Reply with quote

Désolé de ne pas pouvoir être d'une aide plus précieuse.
C'est vraiment le seul problème que je n'ai pas réussi à régler ou à contourner et j'avoue que ça M'ENERVE Evil or Very Mad

J'espère en tout cas qu'avec une autre webcam, tu obtiendras de meilleurs résultats.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    wapcam.mobi Forum Index -> Installation All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group