FMJ Webcam capture example

16,189

Solution 1

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.

Solution 2

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.

Share:
16,189
Alexander Stolz
Author by

Alexander Stolz

Software Developer from Wiesbaden, Germany

Updated on June 26, 2022

Comments

  • Alexander Stolz
    Alexander Stolz almost 2 years

    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?

  • Alexander Stolz
    Alexander Stolz almost 15 years
    I have a JMF example with the following problem stackoverflow.com/questions/1272018/painting-over-jmf-compon‌​ent Thats why I wanted to try FMJ
  • wrahool
    wrahool over 10 years
    I know this is old, but could you point me to a working JMF example?
  • thedude19
    thedude19 over 10 years