Simulate camera input with Java Media Framework

I'd like to ask, if there is a way to simulate camera input with JMF?
I'd like to write a program that registers (somehow) in Windows a new camera device, and I can create a video stream in Java that supplies data of what is "visible" through that "software camera".
Is it even possible with pure Java (with JMF)?

Bump!
The question is sill open and Dukes are waiting.

Similar Messages

  • Java Media Framework fails on Windows 7

    I wrote a Java program to manage and play my MP3 files. This program works fine on Windows XT and Windows Vista but does not work on the new laptop I just purchased with Windows 7. The Java Media Framework cannot play my MP3 files running on Windows 7. Does anyone know of a fix? I saw some very old forum posts where the poster asked if anyone knew how to obtain the source code for the Java Media Framework. If I could get my hands on the source, I would debug the problem and provide the fix to the Java community. So does anyone know of a fix to Windows 7 problems or know how to get the Java Media Framework source code????

    I believe you are right. I didn't know how much native support the JMF code requires but that must be the problem because it doesn't work on Windows 7. I think I would get some other error if the native libraries needed by JMF were not available on Windows 7. Appears that the native code is invoked but fails for some reason resulting in the JMF ControllerEventError that I get when attempting to play my MP3 files. I always had an error on a very few MP3 files that I have downloaded using LimeWire but the songs were playable by Windows Media. So whatever native support JMF uses, it is not the same as Windows Media or JMF is just not using the native MP3 support correctly. I guess I will just have to keep my Music Library on one of my older computers and not use my Java program on Windows 7 to play my MP3 files. Do you have any idea if the programmers who wrote the JMF code are still maintaining it? Perhaps they would be interested in fixing the Windows 7 problem in a new release??

  • Java Media Framework silent install

    Hi,
    When I install JMF on HP laptop, in JM studio File->Capture i donot get "use video device" portion so i am not able to capture video with the help of WebCam :( on other hand if i install JMF on Dell laptop, JM studio->File->Capture is disabled may i know what can be possible reason of this?
    Please guide me help.

    983818 wrote:
    I need to install the Java Media Framework to over 1000 windows computers. How to do this. MSI package does not exist. Oracle does not change this installer since 1998. Oracle spit of the fact that someone is forced to use this software. I hate proprietary software.You should take the hint: it is abandoned, don't use it.

  • Is the Java Media Framework still supported by Sun or not ??

    Hello my name is Michael.
    I have questions about the JFM, are there any person who can response it, please post it.
    I don't know if the technology is up to date if there is no release or bug fix since 2003.
    Please tell me something about the plan from Sun about the Java Media Framework.
    Is there any substitute java framework to work with ??
    Thank you for your benefit !!
    Michael

    Doug,
    Your iPod should work with no issues on 10.4.11 and iTunes 8+.
    When the iPod "locks up" do you hear any clicking noises? Your symptoms sound like the hard drive is having hardware issues.
    Here's a trick I used to use to fix the older iPods. It involves opening up the iPod, so if you don't feel comfortable, you might want to go to someone who does.
    Take a blade from a box cutter and gently move it along where the plastic meets the metal on the iPod. Use the blade to pry open the iPod from the metal case for the back.
    Once you get the iPod out, look towards the bottom of the iPod, and you should see the hard drive with a wide cable attached to it. Take that cable out of the hard drive (gently). Find a Bic pen cap (or something similar) and push it in between the two rows of pins on the cable. Try to make sure the pins are spread apart evenly and all pointing directly out. Once you get that in place, firmly push the cable back into the hard drive and gently put the iPod back together.
    You may then want to restore just to be safe, and try loading your music again. I've used this trick on many old iPods to bring another couple of years of life into them. (sometimes this cable comes loose, causing the issues you're describing)
    Justin

  • Java Media Framework (JMF) Installation on Linux platform

    Currently I'm developing a Cross-Platform Media Player. My application runs properly on my machine running Windows. But I'm unable to test my application on my machine running Linux just because I'm unable to Install and configure Java Media Framework (JMF) on Linux.
    Can somebody tell me how to Install and Configure Java Media Framework (JMF) on Linux platform? Please tell me about all the required steps in detail.

    Are you perhaps trying to install a specific verion of Oracle on a specific verison of Linux?
    Both sets of specific version information are useful.
    For example, Fedora Core 5 has made a lot of changes in the stdandard c/C++ libraries and is incompatible with an regular Oracle install. (You would need to install the 'compatible' libraries in Fedora Core 5 before attempting to install Oracle..)

  • Request: Java Media Framework

    http://java.sun.com/products/java-media … nload.html
    OpenOffice.org 2,x uses the Java Media Famework (JMF) to render media such as film and sound under Linux.
    It would be very usefull in Impress presentations
    I tryed but was unable to make a package
    Thanks in advance

    Try this package:
    http://aur.archlinux.org/packages.php?d … 1&ID=11728
    Give me feedback please
    See you
    You also have to:
    Set up OpenOffice.org to use Java Media Framework
    Use the Tools > Options > OpenOffice.org > Java menu
    Click the Class Path... Button.
    Click the Add Archive... Button.
    Browse to the /opt/java/jre/lib/ext/jmf.jar file to add it.
    More info at http://www.oooforum.org/forum/viewtopic … mfhome+sun
    Last edited by darzephyr (2007-06-20 19:23:47)

  • Silent installation Java Media Framework

    Anyone knows the parameters to install the Java media framework 2.1.1 in silent mode?
    Thanks

    Abra-Cadabrah!
    There is no such option. Though you might deploy JMF using JWS, for a less painful experience for your users.

  • Please HELP !!! Signed Applet & Java Media Framework(JMF)

    Hi,
    I have written a self signed applet that is used for Recording voice running in browser:
    The tag that I've given is as follows:
    <OBJECT
    classid = "clsid:CAFEEFAC-0014-0001-0000-ABCDEFFEDCBA"
    id="recordApplet"
    codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4_1-windows-i586.cab#Version=1,4,1,0"
    WIDTH = 268 HEIGHT = 27>
    <PARAM NAME = CODE VALUE = "RecWindow">
    <PARAM NAME = ARCHIVE VALUE = "jmf.jar,sound.jar,SignedRecWindow.jar">
    <PARAM NAME = "soundtrack" VALUE="testFile.mp3">
    <PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.4.1">
    <PARAM NAME = "scriptable" VALUE = "true">
    <PARAM NAME = "MAYSCRIPT" VALUE = "true">
    </OBJECT>
    I've also signed jmf.jar as well as sound.jar that come in JMF 2.1 and am including it the archive. These jars are downloaded on client machine.
    My code works perfectly BUT only when JMF 2.1 is installed on the clients machine else I get a RunTime Exception stating "no permission to capture from applet".
    JMF FAQ states that If a user chooses to allow playing back locally stored media files or saving media files locally, he/she can do so by making use of a policy file. http://java.sun.com/products/java-media/jmf/2.1.1/faq-jmf.html#jmf2-applet-run
    My requirement is that once the user has agreed to the signed applet to run then there should be no need to install JMF rather use the jmf.jar that is downloaded on client machine.
    Also how can I grant the permission (permission javax.sound.sampled.AudioPermission "record";) to my applet in client computers ?
    The client should not be asked to add any files (policy) by itself, all must be transparent for him.
    Thanks in advance.
    Vipin.

    I too have been trying to get Java JMF sound recording to work via webstart. No luck so far.
    I even tried playing (security.AllPermissions) with .java.policy file in the user's home directory and even modifying java.policy in the JRE/lib/security directory. No luck there too!
    I also added security.AllPermissions to the javaws.policy in the JRE/jawas/javaws.policy file. Still no luck!
    Any idea, anyone?

  • Java media framework

    the browser is not able to pick the jmf classes.the same piece of code is running fine in the applet viewer but not in the browser.
    errors are
    class not found exception

    HAva a look at http://java.sun.com/products/java-media/jmf/2.1.1/solutions/ and look at "RTP Streaming Transmitting/Receiving media over RTP"

  • Using Java media framework

    I am look at this source code and it imports java.media when i compile it it says there is no such package. So i installed the JMF and it still doesn't work. Srry i am new to this and thanx fot the help.

    Hi,
    did you mean that you got some program's source code and they have javax.media imported?? That is the JMF package. Pls check if your installing of JMF is correct? Like for me, I am using eclipse. You can check in the JRE System lib. You will see the jmf.jar etc in there.
    Hope this help.
    Best Regards
    Ferdinand Ng

  • Java media framework plugin...

    Hi There...
    Am developing an Audio/Video site using java media framwork...
    Isn't there any i HTML code i can put so that wen a client logs on into my site and doesn't have JMF installed it will send him to the sun's website to download the JMF....or if u got any other solution it will also be great...
    thx....

    Java Web Start (From JavaSoft) should do what you want

  • Java Media Framework + jipCam + IP Cam

    Hi everyone,
    I maked an aplication using JMF, its connect to a USB cam and shouw the video, it's can snapshot the video too.. and record the video. Now i'm studding a JMF integration with a IP CAM, using the jipCam [http://jipcam.sourceforge.net]
    But, i having some difficulty to do it.
    Someone here has axperiency with jipCam?
    My main question is how to prepare the MediaLocator using jipCam.
    Thanks, and sorry the poor english language..
    ---- portuguese version
    Sauda��es,
    Fiz um aplicativo utilizando JMF que se conecta a uma camera USB e exibe sua imagem, podendo tirar 'fotografias' da imagem e/ou gravar o v�deo. Agora estou estudando a integra��o do JMF com uma Camera IP, para tanto estou estudando o jipCam http://jipcam.sourceforge.net/ que � um framework que auxilia exatamente neste tipo de comunica��o: conectar uma camera ip em um aplicativo jmf. Por�m, estou com dificuldades para encontrar documenta��o, ou c�digo de exemplo, nem se quer um Hello World encontrei.. Em fim, algo que facilite minha vida. Algu�m j� trabalhou, ou estudou algo a respeito?

    I build a simple code to play a IP Cam:
    But i have the fallow error:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Category
         at ipcam.PlayerManager.main(PlayerManager.java:115)
    import java.awt.Component;
    import javax.media.ConfigureCompleteEvent;
    import javax.media.ControllerEvent;
    import javax.media.ControllerListener;
    import javax.media.EndOfMediaEvent;
    import javax.media.Manager;
    import javax.media.MediaLocator;
    import javax.media.Player;
    import javax.media.PrefetchCompleteEvent;
    import javax.media.Processor;
    import javax.media.RealizeCompleteEvent;
    import javax.media.ResourceUnavailableEvent;
    import javax.media.SizeChangeEvent;
    import javax.media.protocol.DataSource;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    * @author cassio
    * @since December 2007
    public class PlayerManager extends JFrame implements ControllerListener {
         private static final long serialVersionUID = 1L;
         private Player p;
         private Object waitSync = new Object();
         boolean stateTransitionOK = true;
         public void play(DataSource ds) {
              try {
                   p = Manager.createPlayer(ds);
              } catch (Exception e) {
                   System.err.println("Failure to create the player: " + e);
               * turn on the listeners and realize the player
              p.addControllerListener(this);
              p.prefetch();
              if (!waitForState(Processor.Prefetched)) {
                   System.err.println("Failure to realize the player: ");
              JPanel painel = new JPanel();
              Component cc; // control component
              Component vc; // visual component
              if ((vc = p.getVisualComponent()) != null)
                   painel.add(vc);
              if ((cc = p.getControlPanelComponent()) != null)
                   add(cc);
              this.setContentPane(painel);
              p.start();
              this.setVisible(true);
         public void addNotify() {
              super.addNotify();
              pack();
         private boolean waitForState(int state) {
              synchronized (waitSync) {
                   try {
                        while (p.getState() < state && stateTransitionOK)
                             waitSync.wait();
                   } catch (Exception e) {
              return stateTransitionOK;
          * Controller Listener implementation
         public void controllerUpdate(ControllerEvent evt) {
              if (evt instanceof ConfigureCompleteEvent
                        || evt instanceof RealizeCompleteEvent
                        || evt instanceof PrefetchCompleteEvent) {
                   synchronized (waitSync) {
                        stateTransitionOK = true;
                        waitSync.notifyAll();
              } else if (evt instanceof ResourceUnavailableEvent) {
                   synchronized (waitSync) {
                        stateTransitionOK = false;
                        waitSync.notifyAll();
              } else if (evt instanceof EndOfMediaEvent) {
                   p.close();
              } else if (evt instanceof SizeChangeEvent) {
          * Main program
         public static void main(String[] args) {
              MediaLocator ml = new MediaLocator("http://192.168.0.100:80");
              net.sf.jipcam.axis.media.protocol.http.DataSource ds = null;
              try {
                   // DataSource configuration
                   ds = new net.sf.jipcam.axis.media.protocol.http.DataSource();
                   ds.setLocator(ml);
                   // i'm not using password
                   ds.setUsername(null);
                   ds.setPassword(null);
              } catch (Exception e) {
                   System.err.println("Impossp�vel criar dataSuource para: " + ml);
                   e.printStackTrace();
              PlayerManager p = new PlayerManager();
              p.play(ds);
    }someone has any idea?
    this code can work with an local cam or a local file. you only need to substitute the MediaLocator and the DataSource settings in the main method:
    using jipCam (the current main code):
         public static void main(String[] args) {
              MediaLocator ml = new MediaLocator("http://192.168.0.100:80");
              net.sf.jipcam.axis.media.protocol.http.DataSource ds = null;
              try {
                   // DataSource configuration
                   ds = new net.sf.jipcam.axis.media.protocol.http.DataSource();
                   ds.setLocator(ml);
                   // i'm not using password
                   ds.setUsername(null);
                   ds.setPassword(null);
              } catch (Exception e) {
                   System.err.println("Impossp�vel criar dataSuource para: " + ml);
                   e.printStackTrace();
              PlayerManager p = new PlayerManager();
              p.play(ds);
         }accessing a local device (new main code):
         public static void main(String[] args) {
              MediaLocator ml = new MediaLocator("vfw://3"); //use the jmf registry to see the correct location
              DataSource ds = null;
              try {
                   // DataSource configuration
                   ds = Manager.createDataSource(ml);
              } catch (Exception e) {
                   System.err.println("Impossp�vel criar dataSuource para: " + ml);
                   e.printStackTrace();
              PlayerManager p = new PlayerManager();
              p.play(ds);
         }Edited by: cassioso on Dec 10, 2007 11:25 AM
    add the cod to run as a local application

  • The problem about Java media framework

    Excuse me, How to use Real Time Protocol Vedio with web camera?
    My program can use MIC, but can't found camera?
    Please Help me

    Hi,
    You can try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
    JTwain supports all kinds of digital cameras and scanners. You can use Java to access, contorl digital cameras and scanners, and of course, to acquire images with flexible settings.
    The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
    In the simplest case, one line of Java code can solve your problem.
    Good luck!

  • Re: Java Media Framework cross platform installation / setup on Mac / UNIX

    JMF cross-platform doesn't support everything that the native performance pack versions support. I found this out the hard way too because pure Java JMF can't play AVI's from my digital camera but the Win32 enhanced JMF can. In particular, with my case pure Java JMF doesn't support all the frame rates that the others do.
    I know Apple has been releasing some of the other APIs lately, like JAI. We might want to check over at apple.com and see if they have a native JMF impl.

    Hi,
    JMF work well on OS(32bits) and Java(32bits)
    Octavian.
    Edited by: user7659448 on Feb 28, 2012 10:42 AM

  • 6680: Camera access with Java app

    I have no problem with Symbian apps accessing my 6680's camera. AgileMessenger and ShotCode are good examples of this.
    But Java apps, e.g. Shoot&Send and MXit just show a blank white screen when it's supposed to show what the camera is seeing. And when you press Shoot, the app will generate an error. Friends with a 6680 experience the same problem. Is this a known issue? Firmware: v4.04.07, 22-08-05, RM-36

    Hi
    I'm running Shoot&Send successfully on a 6680 with exactly the same firmware version as you have. Be sure that you installed the Series60 version of Shoot&Send.
    Best is you open http://wap.shootsend.com/ with the native phone browser (not Opera), and your device model will be detected correctly.
    Silvano

Maybe you are looking for

  • How to print the Totals in SAP Scripts..?

    Hi, I have an SAP Script layout. Currently I am displaying the Line items in the layout. The new requirement has come up to display the TOTAL of the amount value in the layout at the end of the line items. Can someone tell me how to display the Sum o

  • In the file menu why can't i open 'close', 'print', 'properties'?

    in the file menu why can't i open 'close', 'print' and properties'?

  • Connecting iphone to sap

    I am trying to connect my iPhone to business one but once the password is entered I get this error message Security error The certificate for this server was not issued by a trusted certificate authority. The connection to the server is disabled. Con

  • Apple no longer supports internet explorer 6

    When I tried to sign into Apple support this screen shot is what came up on my iPad 4. Is there a problem with my iPad since I have never had this happen before. Also the whole forum section looks completely different since the last time I signed in.

  • How to obtain checkbox checked/unchecked  while editing

    Hi All, My scenorio is, I have a form and on that form i have text field & checkbox. I am saving record by entering some value in text box & checking checkbox(if my checkbox checked then I am saving "Y" for that checkbox in DataBase).Its saving both