views:

1377

answers:

4

I've been searching for while now and I can't find a simple example of how to capture a webcam stream with FMJ. Are there any tutorials or examples available which could help me?

+1  A: 

I know this isn't what you want to hear, but I've used JMF for this task and it works very well. There are enough examples online to get a simple web cam capture app running pretty easily. I'll post more if you're interested.

thedude19
I have a JMF example with the following problem http://stackoverflow.com/questions/1272018/painting-over-jmf-componentThats why I wanted to try FMJ
Alexander Stolz
A: 

Hello,

I would also need an example of how to instanciate a civil datasource using fmj to be usable with jmf after. In ohter words how to create a "civil:/0" datasource.

Because I got the code to detect and use the webcams with lti-civil, this code is given in the source of lti-civil. But I don't know how to convert it to a datasource. And I can't find that anywhere.

Maybe juste an example of using the webcam with fmj.

If anyone could help me, I would really appreciate.

Thank you.

bob
+1  A: 

I have been working with FMJ for a while and I haven't found many examples to start with either. What I would do is to explore the FmjStudio class that has the webcam functionality integrated and its pretty straight forward.

For bob:

What you want is FMJ. FMJ uses an DataSource implementation for civil to use it with JMF. I would recommend you to go to http://fmj-sf.net/ download the latest source and explore FmjStudio aswell since it uses civil to capture.

For theDude:

You are right, you can use JMF aswell but the same code you use for JMF will most likely work with FMJ (maybe with a coupla changes) and the performance will be much better, specially if you want a wide range of different webcams to work with your software.

panete
A: 

@ Bob


did you find out how to convert the civil detected devices into datasource readable by fmj / jmf ?

i.Psi
This should have been a comment and not an answer...you should read the faq
Alexander Stolz