About JMF. Java Media Framework

Hello people. I don't know if this subforum is the best to write this post but I didn't find any about JMF.
I know the JMF is good to work with webcams but I don't know if I can work with scanners in general. If it was imposible, does anybody know api to work with scanners in Java??
Now, I'm working with Morena (http://www.gnome.sk/Twain/jtp.html) but I have a lot of problems. My virtual machine exit quickly due to native error.
Please, I need help to do my final degree project

Hi,
I am also working on a project of voice chat , and want to have multiple players in the room..but facing problem in transmitting the audio captured from the different clients...can u or anyone can help me in this regard...
The solution to yur problem i guess cud be to try by using
String url = "javasound://8000";
MediaLocator ml = new MediaLocator(url);
and then create the processor for it and fetch the DataSource and transmit.
Hope this will give u some hint. All the BEST :-)
RC

Similar Messages

  • 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..)

  • 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.

  • 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

  • Using Java Media Framework (JMF) in Eclipse

    Hey all, I want to use JMF to have a video shown in my GUI application in Eclipse and have no idea where to start, I know the basics of GUI and how to show pictures etc but otherwise i don't know anything about videos... Any help would be hugely appreciated

    you can simply use the setup file available with JMF to install it ; then, the classpath will be automatically updated, and you should be able to use the JMF classes inside your application (even with eclipse)

  • 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!

  • 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

  • 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.

Maybe you are looking for

  • How to get iTunes songs off of a iPhone 3G?

    My daughter had lost her iPod touch and I gave her my old iPhone 3G to use. The iPhone was set uped to my laptop since her's was broken at the timeShe has bought a lot of music on the phone and has now gotten her laptop fixed. So now she can't sync h

  • BI Admin Cockpit - Problem in activating Process Chains

    Hello, We're trying to activate the content for BI Admin Cockpit. While activating the process chains, we get a "red" message as mentioned below. "Object '0PAK_5JTN7F5HTP45CGZ04PQTMCNTI' (ISIP) of type 'InfoPackage' is not available in version 'D' Me

  • Format a 3TB HD using Disk Utility with Yosemite?

    Can a 2014 Macbook Pro running Yosemite format a 3TB HD intended for an external case using disk utility? I've had issues in the past with a 2010 Macbook Pro and am hoping its now not an issue.

  • Problem in X3, video from you tube are not getting...

    Guys, I have activated gprs. videos are not getting played in you tube. Do i need to do any settings? Any pointers wil help. Thank you. Solved! Go to Solution.

  • GROUP BY Hour Portion of Date

    Hi, I'm trying to execute a query in which I need to group by the hour portion of the date. Example: Date in DB: 09/18/2008 17:30:00, 09/18/2008 17:00:00 I need to group all values for 09/18/2008 17:00:00 to 09/18/2008 17:59:59 Can this be done withi