View Full Version : Camera vs Java JMF ?

October 1, 2009, 03:12:21

Since I don't have my camera yet, I have a question about the driver and its possible interfaceability with Java JMF (Java Media Framework). Maybe it is a trivial question but I have no idea about the answer.

For an application, using Java and JMF would be much easier to me than using C/C++. It is written that the driver is DirectX compatible. I know that I can connect a webcam to Java/JMF (I have an old Logitech Quick Pro 3000). Will it be possible to do the same with the ImagingSource DFK cameras?

Maybe I ask the wrong question? I don't know... Someone has some experience with Java (and JMF)? :question:

Thanks in advance for your answers!


Stefan Geissler
October 1, 2009, 08:52:31

I never worked with JMF, but if it supports DirectShow drivers, then you can access any camera, that comes with a WDM DirectShow driver.

Since I never worked with JMF, I have no sample source code for you. I am very sorry for this.

October 1, 2009, 18:04:40
Well, in Java/JMF docs it is written that it supports most webcam with a VFW driver. VFW stands for "Video For Windows"... If you refer to Wikipedia (http://en.wikipedia.org/wiki/Video_for_Windows) it seems that theses drivers are part of DirectShow (DirectX?) since 1997.

Maybe I'm answering myself my own question :silly: ...

Thanks anyway and if someone has some experience with Java (and the IS cameras), I'll appreciate to know about it!


Stefan Geissler
October 2, 2009, 09:01:42
The Video for Windows interface is a little bit outdated since many years and was replaced by DirectShow. The problem of Video for Windows ism that it can not handle Y800 video format.
But there must be a DirectShow extension for JMF. For example look here: http://www.ohloh.net/p/jmds
I guess, it is not the only source, so you may search in the internet for "JMF DirectShow".

October 5, 2009, 03:09:26
I found DirectShow Java Wrapper (dsj, http://www.humatic.de/htools/dsj.htm) that seems to be very interresting. :good:

I'll try it and tell you if it worths the download.