You are not logged in.
Pages: 1
Hey guys ;-) ,
Last days i am trying to figure out how to make JMF-like applets(lets say mercury instant messager program) detect my webcam with no success up to now.I followed the according wiki page http://wiki.archlinux.org/index.php/Jav … _Framework as well as instructions/tips after a lot googling , but seems like i cant get my JMF installation done/configured correctly in my arch linux installation.Here are my specs and information of interest:
Webcams tried: Logitech QuickCam pro for notebooks / Logitech QuickCam Ultra Vision (linux-uvc-svn package installed// webcams correctly work with other non java programs such as kopete and luvcview)
JMF package tried: Aur package/ Suns package
1st i followed the configuration instructions at suns homepage here:http://java.sun.com/javase/technologies … linux.html except that i wrote all these in my /home/username/.bashrc as follows:
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
export JMFHOME=/home/img/camera/JMF-2.1.1e
export CLASSPATH=$JMFHOME/lib/jmf.jar:.:${CLASSPATH}
export LD_LIBRARY_PATH=$JMFHOME/lib:${LD_LIBRARY_PATH}
i reloged on my desktop to get the enviroment's variables up to date but again couldnt get any program using JMF to find my camera.
Here is jmfinit output with my webcam pluged in a usb port:
JavaSound Capture Supported = true
JavaSoundAuto: Committed ok
Name = v4l:UVC Camera (046d:08c9):0
Trying 4 320 240
Trying 3 160 120
Trying 3 320 240
Trying 3 640 480
Trying 3 176 144
Trying 3 352 288
Trying 3 768 576
Trying 4 160 120
Trying 4 320 240
Trying 4 640 480
Trying 4 176 144
Trying 4 352 288
Trying 4 768 576
Trying 5 160 120
Trying 5 320 240
Trying 5 640 480
Trying 5 176 144
Trying 5 352 288
Trying 5 768 576
Trying 6 160 120
Trying 6 320 240
Trying 6 640 480
Trying 6 176 144
Trying 6 352 288
Trying 6 768 576
Trying 7 160 120
Trying 7 320 240
Trying 7 640 480
Trying 7 176 144
Trying 7 352 288
Trying 7 768 576
Trying 8 160 120
Trying 8 320 240
Trying 8 640 480
Trying 8 176 144
Trying 8 352 288
Trying 8 768 576
Trying 9 160 120
Trying 9 320 240
Trying 9 640 480
Trying 9 176 144
Trying 9 352 288
Trying 9 768 576
Trying 10 160 120
Trying 10 320 240
Trying 10 640 480
Trying 10 176 144
Trying 10 352 288
Trying 10 768 576
Trying 11 160 120
Trying 11 320 240
Trying 11 640 480
Trying 11 176 144
Trying 11 352 288
Trying 11 768 576
Trying 12 160 120
Trying 12 320 240
Trying 12 640 480
Trying 12 176 144
Trying 12 352 288
Trying 12 768 576
Trying 13 160 120
Trying 13 320 240
Trying 13 640 480
Trying 13 176 144
Trying 13 352 288
Trying 13 768 576
Trying 14 160 120
Trying 14 320 240
Trying 14 640 480
Trying 14 176 144
Trying 14 352 288
Trying 14 768 576
Trying 15 160 120
Trying 15 320 240
Trying 15 640 480
Trying 15 176 144
Trying 15 352 288
Trying 15 768 576
java.lang.Error: Can't open video card 1
java.lang.Error: Can't open video card 2
java.lang.Error: Can't open video card 3
java.lang.Error: Can't open video card 4
java.lang.Error: Can't open video card 5
java.lang.Error: Can't open video card 6
java.lang.Error: Can't open video card 7
java.lang.Error: Can't open video card 8
java.lang.Error: Can't open video card 9
No matter what i tried, my jmfregistry doesnt show any video capture devices, so i guess thats why my programs cant find it at all. Jmfregistry only shows JavaSound audio capture under "Capture Devices" tab. Pressing "detect capture devices" produces same result as jmfinit pasted above.
Any tips/pointers on what i am missing here to solve this puzzle will be greatly apreciated.
Enjoy,
IMG
Offline
Hi IMG. I wrote the JMF pkgbuild and wiki article.
Did you run "jmfinit" as root to register your devices? I suppose jmfinit recognizes your webcam ("Name = v4l:UVC Camera (046d:08c9):0") but it doesn't register it correctly. Or maybe your webcam have some issue with jmf.
I only did the JMF pkgbuild to add media support in OpenOffice (audio playback in presentations). JMF is obsolete. There are other alternatives, like FMJ (but I couldn't configure it properly)
Darío Andrés
KDE BugSquad Team and Developer
Offline
Hey darzephyr ,
Yes i have ran jmfinit as root, and the result is posted at my first post. Howerver i am mostly concerned about the enviroment variables i have set.I forgot to mention that the "jmf diagnostics test" at http://java.sun.com/javase/technologies … stics.html simply causes my firefox to freeze, or produces the following result using Konqueror:
Trouble Shooting
Browser not compatible: JMF requires a Java 1.1 compliant browser. Recommended browsers are Netscape Navigator 4.06 or later, MS Internet Explorer 4.0 or later, Sun's Hotjava 1.1.x. If you are using older versions of any of these browsers, please upgrade to the latest.
Classes not found: JMF classes are not included in the CLASSPATH environment variable. Please make sure the CLASSPATH points to jmf.jar that comes with your installation. If you are running Windows 95/98, rebooting after the install might help.
Libraries not found: If you are using the version of JMF that requires native libraries to boost performance, the directory with the shared library files should be added to your PATH variable (LD_LIBRARY_PATH variable on Solaris). These libraries are in the \lib directory.
Should you have any ideas, on what the problem could be i would be glad to hear them.
Cheers
IMG
Offline
Mh, running the JMF diagnostics test in my new Arch setup freezed my Firefox too, BUT, the java applet inside was responsible. You can left-click and open the java console. I got this message:
java.lang.ClassNotFoundException: JMFDiagnostics
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:194)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:640)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:786)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2107)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:715)
at sun.applet.AppletPanel.run(AppletPanel.java:369)
at java.lang.Thread.run(Thread.java:619)
In my previous arch setup JMF worked like a charm , and even inside Firefox displaying the JMF version in the diagnostics test. Maybe I forgot to install or configure something.
I'm working on it
Darío Andrés
KDE BugSquad Team and Developer
Offline
Just in case this helps anyone track the problem, the java diagnostics concole on my firefox displays (randomly?) one of the following messages:
load: class JMFDiagnostics not found.
java.lang.ClassNotFoundException: JMFDiagnostics
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:194)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:640)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:786)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2107)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:715)
at sun.applet.AppletPanel.run(AppletPanel.java:369)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "Thread-7" java.lang.NullPointerException
at sun.plugin.util.AnimationPanel.createTranslucentImage(AnimationPanel.java:231)
at sun.plugin.util.AnimationPanel.createGradientShapeImage(AnimationPanel.java:243)
at sun.plugin.util.AnimationPanel.initBackground(AnimationPanel.java:319)
at sun.plugin.util.AnimationPanel.preloadResources(AnimationPanel.java:508)
at sun.plugin.util.AnimationPanel.doPaint(AnimationPanel.java:564)
at sun.plugin.util.AnimationPanel.run(AnimationPanel.java:1062)
at java.lang.Thread.run(Thread.java:619)
load: class JMFDiagnostics not found.
java.lang.ClassNotFoundException: JMFDiagnostics
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:194)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:640)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:786)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2107)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:715)
at sun.applet.AppletPanel.run(AppletPanel.java:369)
at java.lang.Thread.run(Thread.java:619)
Enjoy ;-),
IMG
Offline
I checked out the JMF configuration in my old setup (another PC), and it freezed Firefox2 and Firefox3. I didn't change anything in my old setup or in my JMF or Java configuration( and it previously worked. the diagnostics test showed all the Java/JMF information) So, it would be something related to the Java package or its configuration. It's strange :\
UPDATE
When running JMFINIT in my old setup (i have a TVTuner) , it shows:
Name = v4l:(...DeviceName...) : 0
(like your webcam)
but then it also shows:
Added device v4l:(...DeviceName...) : v4l://0
so I suppose this is the moment when JMF register the device in its registry.
It seems that your webcam is not being registered by JMF (but it's detected)
Last edited by darzephyr (2008-05-27 23:07:08)
Darío Andrés
KDE BugSquad Team and Developer
Offline
IMG: It seems that the JMF diagnostics tests is broken. I checked it with Opera and it show "Applet not found" (but it didn't freeze the whole app )
I found out another JMF check applet: http://ku-prism.org/virtualprism/explor … tpage.html . It worked on Opera and Firefox (Konqueror didn't show the applets)
I get:
JMF Version... 2.1.1e
All Java Build
Native Libraries Found
So, the Firefox freeze in the official JMF diagnostics test is not the same fault as yours webcam configuration
Last edited by darzephyr (2008-05-27 23:20:29)
Darío Andrés
KDE BugSquad Team and Developer
Offline
hey darzephyr,
last days i have been investigating the issue described in this thread with my camera and JMF. Your last two posts proved to be really valuable for me, as clearly pointed out that my JMF installation is possibly correct , and gave me a picture of what a correct jmfinit ouput consists of. I tried some non-logitech cameras with the gspcav1 driver and found out that they are correctly recognized by JMF, and registered, although i didnt manage yet to get any image from any program, which possibly means some installation problems , as the camera appears to be disconnected or gets disconnected immidiately after opening. My conclusion is that the linux-uvc-driver doesnt support well enough my logitech cameras, thus the needed JMF operations during jmfinit cannot get done properly, and registration isnt done. So i guess this thread should be concluded. For any other chaps out there struggling with JMF keep in mind that you may encounter some driver issues.
Thanks for the help darzephyr!
Enjoy,
IMG
Offline
Pages: 1