Login  Register

Re: JMF - Vista

Posted by Peter Stierlen on Oct 10, 2007; 12:07am
URL: http://imagej.273.s1.nabble.com/Re-JMF-Vista-tp3698237.html

Dear list,

I found a fix for my Vista/JMF problem.

In my first tests I used a MS Lifecam NX6000 which worked on XP without any
trouble. As discribed in many other lists the drivers for the MS Lifecams
are still not really Vista-compatible. Vista-ready ... Good joke MS.

Step 1
New Logitech Quickcam Pro 9000

Step 2
I changed the code as shown at the end of this post. I think that there are
some problems with "CaptureDeviceManager.getDeviceList" in Vista. I don't
know why it works now, but maybe one of the experts here can give an
explanation for that.

The resolution is limited to 640x480 but this should not be a problem for my
scanner application. All the buffered images of a scan job must copied in an
single stack for the following scanline sklettonization by spacetime
analysis. A scan can include  200 or more images. Higher resolutions will
lead to memory problems.
But on the other hand .. if someone has an idea how to get higher
resolutions via the JMF pipe ...please let us know. Any ideas if dsj wrapper
could be a solution for that (http://www.humatic.de/htools/dsj.htm)

The next step will be the implementation of the USB stepper driver board USI
-2 into my application. I hope that this will be less strange.

cheers

Peter

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

else if (source == preView)
{
n=0;
  if (preView.isSelected())
        {
        JWindow jf=new JWindow();
        JWindow mask=new JWindow();

        String mediaFile =  "vfw:Microsoft WDM Image Capture (Win32):0";          
               
        try {
           MediaLocator mlr = new MediaLocator( mediaFile );
 
           p = Manager.createRealizedPlayer( mlr );
           FormatControl fc =
FormatControl)p.getControl("javax.media.control.FormatControl");
           Format[] formats = fc.getSupportedFormats();
           fc.setFormat(formats[4]);


        } catch (Exception e) {
                IJ.write("Failed to create a player from the given DataSource:\n \n" +
e.getMessage());
                return;
        }

no changes for the rest of code