Installation of JMF - Java Media Framework to work with ImageJ capturing
plugin
Author: |
Peter
Stierlen (peter.stierlen@t-online.de) |
History: |
2008/08/11: second version |
Installation: |
Download the Java Media Framework from the Sun
Microsystems page JMF |
Description: |
Installation tipps for JMF needed for the VfW based
Capture plugin for Webcams. |
Download the JMF from the Sun website
If you want to use my ImageJ
Capture Plugin you first have to install the Java Media Framework from Sun.
You can download the JMF
from:
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/download.html
Please keep in mind, that I developed the whole plugin and processing working
on windows system. I tested it on Windows XP and Windows Vista.
I can not give any guaranty that this installation will also work on your
computer system. I can also give no guaranty for the installation or any system
problems caused by the installation. If you install the JMF and the ImageJ
plugins you will do this for your own risk. Wrong installations can damage your
system.
Sun gives also good informations how to install the JMF on Windows systems.
You can find the detailed description for the JMF Windows performance pack on:
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/setup-win.html
You can also use the Diagnostic Applet to test if your plugin is
installed properly.
JMF-Installation on my computers (new way after a request)
System
Preparation
I cleaned my system from former Java and ImageJ installations.
I than downloaded the newest Java JDK from the sun page:
I than installed the JDK together with the included JRE in the default
path suggested by the JDK installer.
C:/program_files/Java/jdk1.6.0_07
C:/program_files/Java/jre1.6.0_07
JMF-Installation
I installed it in
the default path suggested by the JMF installer. It is very important to wait
until the JMF installation finished the check for capture devices ...don't
hurry.
Than reboot the system.
All the files will be stored in the folder:
C:\Programme\JMF2.1.1e
After that I found
copies of the JMF.JAR file in the following folders:
C:\Programme\JMF2.1.1e\lib
C:\Programme\Java\jre1.6.0_07\lib\ext\
C:\Programme\Java\jdk1.6.0_07\jre\lib\ext\
The JMF installation also made changes in the CLASSPATH
.;.;.;.;.;.;.;.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;C:\PROGRA~1\JMF21~1.1E\lib;
After the installation you can
also find the Java Media Framework 2.1.1e item in your Start Menu
JMF-Customization on my computers
The following description will give you a short overview how I installed the JMF on my systems.
Click the JMF Customizer
Item to start the Customizer Tool. The starting dialog
will look like following:
Enable the Capture function
On Vista systems the target folder should not be
within the system paths. You can later copy/paste the customized Jar-File into
your JMF-folder.
Click Next to proceed with the Protocol selection dialog
Enable the VfW
protocoll
Click Next for the source
media formats
Enable the Mpeg format
Click Next
to proceed with the Decoder selection
Enable
all Video Decoders
Click Next to select the Audio/Video Renderer
Enable the DirectAudio Audio
Renderer
Enable the all Video Renderera
Click Customize to finish the Customization
JMF-Registration
on my computers
Click the JMF Registry
Item to start the JMF Registry Editor. Change to the Capture Devises
Menu.
Click Detect Capture Devices
to start the JMF Registry Editor to search for devices connected to your
computer.
If your webcam is connected to your PC and the JMF Customization was done correctly the Registration Editor should show the vfw devices as listed below.
If there are more formats listed then the ones which
could be handled by your cam disconnect the cam and
Click
Remove
Click
Restore
Click Detect Capture Devices to start the JMF Registry Editor again. If it still find any formats than you have some other capture devices like a grabber card installed in your system.
I
checked the system device manager and found the Conexant's BtPCI WDM Video
Capture Driver installed.
I uninstalled it and checked with the JMF registry again. And now it found only
the video formats from the quickcam. It is also important to use the newest
drivers for your cam. Follow the installation instructions closely. First
install ... than plug the cam.
ImageJ-Installation
I
dowloaded the Imagej installation without an included JRE Customization
http://rsbweb.nih.gov/ij/download/win32/ij140-nojre-setup.exe
and
installed it on drive D:
I only
changed the drive in the default path given by the installer.
The
installation found the JRE on the C: drive without problems and ImageJ started
without problems.
Classpath-inputs on my computers / Windows Vista System / Windows XP System
Click Start > Settings > System Settings to open the system control dialog.
I only have German language systems, so please excuse if there are some different terms.
The first three steps are only required for Vista
System
Click Classic Style to change to the well-known appearance
Click System to open the system settings dialog
Click Additional
System Settings
to open the system property dialog
From this dialog Vista and XP Systems
can be handled similar.
Click System
Variables
With this settings the JMF can be found from the
ImageJ plugins on my computers. I
hope that this infos can help one to successfully install JMF and to get
a stable link between ImageJ plugins and different webcams types.
You are visitor counter