JMF in Linux

Hi everyone
I'm an University Student from Chile and i have to do a security system using Webams, and i'm thinking to use JMF for that.
Well, lately i realized that JMF can't control more than one webcam video stream, so my questions are:
1.- this also happens using Linux??
2.- Are there any problems (like the one before) with JMF in Linux that i should know about before start programing???
Thanks.

Thanks wew64 for your answer!!!!
I think that i missed "in Windows" there...jejeje.....what i meant was that i've read that JMF in Windows can't handle multiple webcams because you can only work with one vfw device for virtual machine.
I've tried that, and when i access another webcam a window appears and ask me to choose the video device....i need to see the video streams from internet, so i have to find another way.
i Hope Linux doesn't have that problem!!!!.....ahyway, if anyone have a better idea, i'm opened for suggestions.
Thanx!!!.

Similar Messages

  • Error installing jmf-2_1_1e-linux-i586.bin

    h3. Hello,
    h3.
    I'm trying to install jmf-2_1_1e-linux-i586.bin on a Linux(centos 5.1) system. I get the results at the end of this post after accepting the license agreement. I haven't found anything on the web or the bug database that has been helpful. I'm really at my wits end and could use a helping hand.
    h3.
    Thanks in advance.
    Do you agree to the above license terms? [yes or no]
    y
    Permit recording from an applet? (see readme.html) [yes or no]
    y
    Permit writing local files from an applet? (recommend no, see readme.html) [yes or no]
    n
    Unpacking...
    tail: cannot open `+309' for reading: No such file or directory
    Extracting...
    ./install.sfx.3639: line 1: ==: No such file or directory
    ./install.sfx.3639: line 3: syntax error neUQU599&ugrave;;&middot;&middot;&middot;&yuml;r&thorn;&Ntilde;&Ntilde;&Ntilde;&cent;_&Acirc;&ograve;&laquo;KK)C{<>&uacute;&uacute;<<&iquest;&egrave;
    QQRL&Ugrave;&Uuml;&Igrave;L&Aring;^sfx.36 88&oslash;$&egrave;&aring;&otilde;&Otilde;&reg;&cent;&not;,&agrave;&ouml;&egrave;&acute;i&Ntilde;&shy;&Ograve;&Ograve;&Ograve;V~&aacute;mn.&agrave;7w^&Yacute;&Acirc;&AElig;,;M&cent;`&THORN;&ograve;A$D&uml;&reg;&uml;&uml; @    &Eacute;&ordm;&Icirc;wA'
    --root@localhost lib--# PuTTYEdited by: eran_cantor on Jul 17, 2008 2:01 PM
    Edited by: eran_cantor on Jul 17, 2008 2:02 PM
    Edited by: eran_cantor on Jul 17, 2008 2:03 PM

    Hey Eran,
    I guess, you can find the solution to your problem here:
    [http://forum.ubuntuusers.de/topic/jmf-java-media-framework/#post-1806940]
    It works well on Ubuntu, but since the error on Ubuntu looks exactly the same as on Centos, I think it should work for you as well.
    Cheers,
    Georg

  • Cannot install JMF under Linux Mandrake 10

    I simply cannot install JMF under the Mandrake 10 Official Linux distribution. I downloaded the jmf-2_1_1e-linux-i586.bin file and tried to execute it as root. It unzipped some files then showed me an error message about AWT and GTK+. I found a hack consisting of modifying the .bin file to have the PATH variable point to SUN JDK, the error does not show up, but the installation still does not work. In fact, the installation works, but the Diagnostics applet keeps telling me than class files are not present. My Mozilla 1.6 Java plugin is working and displaying the applet. My JMF lib directory does not contain sound.jar, such jmf.jar. I set the CLASSPATH and LD_LIBRARY_PATH according to the readme.html file. I would like to know if it is a compatibility problem with Mandrake 10, the 2.6 kernel or if JMF just DO NO work under Linux. In the latter case, JMF is a violation to the Java portability philosophy and I would never use it on my own initiative, just if I were asked to.
    After the files are unzipped, I have the following warning and error messages.
    Warning:
    Name: HorScrollBar
    Class: XmScrollBar
    The specified scrollbar value is greater than the maximum
    scrollbar value minus the scrollbar slider size.
    JavaSound Capture Supported = true
    JavaSoundAuto: Committed ok
    java.lang.Error: Can't open video card 0
    java.lang.Error: Can't open video card 1
    java.lang.Error: Can't open video card 2
    java.lang.Error: Can't open video card 3
    java.lang.Error: Can't open video card 4
    java.lang.Error: Can't open video card 5
    java.lang.Error: Can't open video card 6
    java.lang.Error: Can't open video card 7
    java.lang.Error: Can't open video card 8
    java.lang.Error: Can't open video card 9
    Done.
    Even if I do not have a working video capture card (I have an ATI All-in-Wonder 128 but it is not working under 2.6 kernel), JMF should work because some people do not have a video capture card. I also tried with the cross-platform ZIP file, but this one does not contain sound.jar either and the Diagnostics applet keeps complaining about missing class files. I tried to search on the Web for solutions to this problem or for a way to change the CLASSPATH used by the Mozilla Java plug-in (if it uses a different CLASSPATH than the one from the environment variable), but nothing, nothing. Is there a distribution from which JMF would work better than Mandrake 10? Or can JMF work only under Microsoft Windows or Sun Solaris? I also tried Blackdown, but a README file directed me to the Sun's page, nothing to download here about JMF.

    well, your not the only one.
    I have it working in Debian, and JDS.(JMF is setup automatically in JDS).(2.6.6 kernel)
    I looked at the installation structure of JDS, and was able to duplicate what they did for Debian.
    Maybe it will work for Mandrake two??
    ok, all you have to do is copy or create soft links from your Mozilla directory, just like you did with the java plugin, and link to all the *.so files in JMF-2.1.1e/lib directory.
    Should work.
    I also read that not haveing the native files only matters if you are doing Capture. not play.
    to get your ATI All-in-Wonder 128 to work, make sure you install the correct driver, and have it working under linux, then try it in JMSTUDIO

  • Re: Can I run JMF in linux without X

    I've just installed JMF for Linux last night.
    I have it working on a Win 98 system.
    I "think" X-Windows loads the display drivers ? Not sure though.
    I've an old ATI All-in-Wonder video capture card, and think I have to
    upgrade from X Windows 11 Release 6, to a newer version to use the
    new Linux Graphics drivers for my card under the Gatos project in www.Sourceforge.net.... ( For video-in capture, not necessarily video display )
    Hope some of that vague information helps...
    regards,
    Owen

    Yes, you can. However, you must have the Mac OS 9 System Folder installed on your hard drive.

  • JMF on Linux 64 bit os

    Hi,
    I am trying to install JMF on my dedicated Linux 64 bit server. When i tried to install *"jmf-2_1_1e-linux-i586.bin"* I got the following error. Any one help me for this problem.
    Can any one tell me how to install JMF on Linux 64 bit system.....
    Permit writing local files from an applet? (recommend no, see readme.html) [yes or no]
    yes
    Unpacking...
    tail: cannot open `+309' for reading: No such file or directory
    Extracting...
    ./install.sfx.9505: line 1: ==: No such file or directory
    ./install.sfx.9505: line 3: syntax error ne[UQU599�;����r�����_���KK)C{<>��<<��
    QQR�rqp����"���hj��WjYn�d!�������� ���L�^^�      88�$�������,����i�����V~�mn.�7w^���,;M�`��A$D���� @    ���wA'
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I know this post is over two years old. Though, I am now encountering the same issue. Does anyone know the solution to this problem? Any help is much appreciated.
    Thanks,
    T

  • How to install JMF in Linux

    How to install JMF in Linux?

    Thank you AndrewThompson64
    You have done a great job.You are welcome.. but really, the only
    'great' thing I did was a quick search on
    'Java install linux'
    to show that link (that I knew was around
    here somewhere) at the top of the
    search reasults!
    Thanks for your interest to help me.You are welcome. :-)
    Next time you get stuck, 'drop back by'* and
    I'll show you some more clever search tips. ;-)
    * ..but really, you will gain a lot if you simply
    'lurk' around the forum and read other posts,
    even as you are writing code..

  • Webcam detected but not enumerated. Logitec cam, JMF, GNU/Linux, v4l2

    Hi,
    I've been trying the whole day to get my "Logitech, Inc. QuickCam for DELL Notebooks" with Java Media Framework.
    From searching the web and mainly the sun forums I kind of understand that JMF is not getting much attention from the developers.
    Maybe I'm wrong. (I hope so)
    I need to use something to capture video from a webcam on linux using java.
    JMF uses v4l but, as the v4l people say on their site, v4l2 support of v4l is broken...
    I downloaded the jmf-2_1_1e-linux-i586.bin, tried to run the programs, they run but the webcam is not listed for capture.
    When I search for devices the program outputs: (jmfinit or the others from jmf package)
    JavaSound Capture Supported = true
    JavaSoundAuto: Committed ok
    Name = v4l:UVC Camera (046d:08c6):0
    Trying 4 320 240
    Trying 15 768 576
    java.lang.Error: Can't open video card 1
    java.lang.Error: Can't open video card 9
    Apparently the camera is detected but something else prevents it from being used.
    I would say the v4l interface...
    I can view correctly the output from my webcam using:
    mplayer -fps 30 -tv driver=v4l2:width=640:height=480:device=/dev/video0 tv://
    but if I change driver=v4l2 to driver=v4l it wont work anymore...
    Is there a workaround? Am I missing something? because a few people were able to use it so why not me =)

    nanom wrote:
    I know I am resurrecting an old thread but I would like to have a solution on this topic and notice that colector may have one base on another thread, where I wrote but the thread was locked.
    Please before locking this tread can you please facilitate me colector's mail or some way to contact him?If his email address is not public in his profile you cannot contact him directly.
    As you have been told once already, please start your own thread. Locking this thread.

  • JMF on Linux

    Hi, I found many topics here about JMF installation on Linux but my problem persists... When I run jmfregistry and click on "Detect Capture Devices" button I get:
    JavaSound Capture Supported = false
    java.lang.Error: Can't open video card 0
    java.lang.Error: Can't open video card 1
    java.lang.Error: Can't open video card 2
    java.lang.Error: Can't open video card 3
    java.lang.Error: Can't open video card 4
    java.lang.Error: Can't open video card 5
    java.lang.Error: Can't open video card 6
    java.lang.Error: Can't open video card 7
    java.lang.Error: Can't open video card 8
    java.lang.Error: Can't open video card 9
    JMF works on Linux? It is possible?
    Thanks very much!!!

    # Place the downloaded file jmf-2_1_1e-linux-i586.bin in the directory where you want to install JMF, for example /usr/lib
    # Make sure that the java executable is in your PATH. Just try the command java -version to verify that.
    # Start the installation with sh ./jmf-2_1_1e-linux-i586.bin. You will be asked if you want to permit recording from an applet, it is quite safe to say "yes" here, but you probably won't need it. Then you will be asked if you want to allow writing local files from an applet, here it is recommended to say "no". As JTVD is not an applet, it doesn't require any of these two permissions.
    # After these questions have been answered, the installer creates a directory called JMF-2.1.1e, extracts the files from the archive and starts querying the video and audio devices it has found in order to create the JMF registry. This may take a moment. Errors like "java.lang.Error: Can't open video card 1" usually don't mean that there is anything wrong.
    If you see the error "JMF-2.1.1e/bin/jmfinit: line 88: exec: java: not found", you just have to make sure that the java executable is in your PATH and then run JMF-2.1.1e/bin/jmfinit manually in order to build the registry. Without the registry, applications like JTVD will not be able to find any video or audio devices.
    # To complete the installation, you should set the environment variables JMFHOME, CLASSPATH and LD_LIBRARY_PATH according to the JMF installation path you have chosen. If you for example have installed JMF to /usr/lib/JMF-2.1.1e, then you could add the following lines to your .profile:
    export JMFHOME=/usr/lib/JMF-2.1.1e
    export CLASSPATH=.:$CLASSPATH:$JMFHOME/lib/jmf.jar
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JMFHOME/lib
    Please note, that JTVD does not require this, as you can set JMFHOME in the startup script jtvd, the script then takes care of the rest.

  • JMF for Linux - FOR DOWNLOAD

    Hi,
    can anybody give me the JMF for Linux from blackdown?
    It is not available now because of some license agreements stuff?
    Can somebody give me an older version, which works on Linux?
    thnax!

    Hi,
    It's still possible to download the Blackdown of the JMF (2.1.1c).
    Here's the link:
    ftp://ftp.easynet.be/blackdown/JMF/2.1.1/i386/jmf-2_1_1c-linux-i386.zip
    Have fun,
    vlerKsKe

  • Old jmf for linux with mp3

    sun still hasn't reenabled the web page for the download of jmf for linux because of an MP3 issue.
    I can't test my application because of this!
    Can some non-Sun employee PLEEEASE email me a copy of the OLD jmf for Linux that plays MP3? Or tell me where I can get it???? I will only going use it internally for testing until the licensing issue gets straightened out, and, anyway, this is for a medical transcription app, NOT a mass-market broadcast pirated music over the web app
    PLEASE, I need some help.

    Hi If u have received the old copy pls sedn it to me also.
    My Id id [email protected]

  • Play audio file with jmf on linux?

    a simple audio player as flow:
    import javax.media.*;
    import java.io.File;
    import java.net.URL;
    public class SimpleAudioPlayer {
        private Player audioPlayer = null;
        public SimpleAudioPlayer(URL url) throws Exception {
            audioPlayer = Manager.createRealizedPlayer(url);
        public SimpleAudioPlayer(File file) throws Exception {
            this(file.toURL());
        public void play() {
            audioPlayer.start();
        public void stop() {
            audioPlayer.close();
        public static void main(String[] args) throws Exception {
            File file = new File("/usr/local/download/1.wav");
            SimpleAudioPlayer sap = new SimpleAudioPlayer(file);
            sap.play();
    }when run the program
    javac -cp jmf.jar SimpleAudioPlayer.java
    java -cp .:jmf.jar SimpleAudioPlayer
    the output as flow:
    Unable to handle format: ima4/ms, 8000.0 Hz, 4-bit, Mono, Unsigned, 4027.0 frame rate, FrameSize=4096 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@defa1a
    Error: Unable to prefetch com.sun.media.PlaybackEngine@defa1a
    How can I play wav file with jmf on linux?(OS is debian5 and jmf cross-platform pack)

    thanks for your reply.
    I tried to replace the wav file "1.wav" with the linear encoded WAV download from pscode.org,and run the code again,but
    BasicTrackControl:prefetchTrack():96 1 bm = com.sun.media.BasicRendererModule@1186fab
    BasicRendererModule.doPrefetch:155 Render : true
    Render buffer size: 32768
    BasicRenderModule.doPrefetch:159
    javax.media.ResourceUnavailableException: Cannot intialize audio device for playback
    at com.sun.media.renderer.audio.JavaSoundRenderer.open(JavaSoundRenderer.java:93)
    at com.sun.media.BasicRendererModule.doPrefetch(BasicRendererModule.java:158)
    at com.sun.media.BasicTrackControl.prefetchTrack(BasicTrackControl.java:99)
    at com.sun.media.PlaybackEngine.doPrefetch1(PlaybackEngine.java:682)
    at com.sun.media.PlaybackEngine.doPrefetch(PlaybackEngine.java:658)
    at com.sun.media.PrefetchWorkThread.process(BasicController.java:1430)
    !!!!!!!§§§§§§§§§§§ BasicTrackControl:prefetchTrack():96
    at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
    Unable to handle format: LINEAR, 16000.0 Hz, 16-bit, Mono, LittleEndian, Signed, 32000.0 frame rate, FrameSize=16 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@26e431
    Error: Unable to prefetch com.sun.media.PlaybackEngine@26e431

  • Using cinepak codec and JMF under linux mandrake

    Hello,
    I have a big problem using JMF under linux to read video files encoded with the Cinepak codec.
    I don't know if i'm the only one in this situation, so if you are too please let me know :)
    I tested my project under both windows and linux. Under Windows, no problem : the cinepak encoded file is read perfectly. Under linux, it doesn't work. Even if i try to read it with JMStudio. So i think it may be a problem of codec under linux, but it isn't because i can read the video file with a linux video player.
    I don't know what to do and it's very important for my project that i can read cinepak under linux.
    Thanks in advance for any help
    Alex

    well, your not the only one.
    I have it working in Debian, and JDS.(JMF is setup automatically in JDS).(2.6.6 kernel)
    I looked at the installation structure of JDS, and was able to duplicate what they did for Debian.
    Maybe it will work for Mandrake two??
    ok, all you have to do is copy or create soft links from your Mozilla directory, just like you did with the java plugin, and link to all the *.so files in JMF-2.1.1e/lib directory.
    Should work.
    I also read that not haveing the native files only matters if you are doing Capture. not play.
    to get your ATI All-in-Wonder 128 to work, make sure you install the correct driver, and have it working under linux, then try it in JMSTUDIO

  • Webcam works in JMStudio but not in JMF apps (Linux)

    Hi everybody,
    I have successfully installed the Linux drivers (it's a Logitech Quickcam Express), and registered the webcam with jmfregistry. It works perfectly in jmstudio, both if selecting the "capture" menu or just opening an url as "v4l://0".
    However, I cannot succeed in creating a datasource for this camera in my application. I can get the MediaLocator of the device, its list of formats, but when calling to Manager.createDataSource(), a "NoDataSourceException" is thrown.
    Any hint, please?
    Thanks a lot in advance.

    Hi again,
    I have also tested the JMF code samples, e.g. VideoTransmit, and I get the same problem.
    It seems that only jmstudio is capable of using the camera!!!
    Help, please!

  • JMF and Linux Performance Pack

    Following the Install Docs on
    http://java.sun.com/products/java-media/jmf/2.1.1/setup-linux.html
    i am trying to install the linux performance pack of the JMF.
    However it exits without any response :(
    Why could that be?
    Installed: Sun JDK 1.6.0
    System: Linux 2.6.20-gentoo-r3 SMP i686
    EDIT: The Installer now starts. Maybe the file was corrupt, I used a newly downloaded one. BUT:
    Now i have another problem:
    Extracting...
    ./install.sfx.21428: /lib/libc.so.6: version `GLIBC_2.1' not found (required by ./install.sfx.21428)
    ./install.sfx.21428: /lib/libc.so.6: version `GLIBC_2.0' not found (required by ./install.sfx.21428)
    Installed:
    sys-libs/glibc-2.5-r1
    Message was edited by:
    pholthau

    I ran the binary on another computer (with older libraries) and it just worked there.
    Now jmfinit can find various video4linux webcams. But trying to create a processor will result in an IOException:
    The code:
    public static void main(String[] args) {
              try{
                   Vector devices = CaptureDeviceManager.getDeviceList(new VideoFormat(null));
                   //MediaLocator ml = new MediaLocator("v4l://0");
                   CaptureDeviceInfo dev = (CaptureDeviceInfo) devices.iterator().next();
                   Processor p = Manager.createProcessor(dev.getLocator());
              } catch(ArrayIndexOutOfBoundsException e){
                   System.err.println("Please add a valid media file as a parameter!"); //$NON-NLS-1$
                   e.printStackTrace();
              } catch (MalformedURLException e) {
                           System.err.println("URL not valid!"); //$NON-NLS-1$
                   e.printStackTrace();
              } catch (NoPlayerException e) {
                   System.err.println("No Player found!"); //$NON-NLS-1$
                  e.printStackTrace();
              } catch (IOException e) {
                   System.err.println("Could not read file!"); //$NON-NLS-1$
                   e.printStackTrace();
    }The Exception:
    java.io.IOException: java.lang.Error: Couldn't initialize capture device
    java.io.IOException: java.lang.Error: Couldn't initialize capture device
    No Player found!
    javax.media.NoProcessorException: Error instantiating class: com.sun.media.protocol.v4l.DataSource : java.io.IOException: java.lang.Error: Couldn't initialize capture device
         at javax.media.Manager.createProcessorForContent(Manager.java:1614)
         at javax.media.Manager.createProcessor(Manager.java:627)
         at hi2r.test.MotionPackageTest.main(MotionPackageTest.java:38)If someone knows why this could happen, please tell me.

  • JAVA + JMF(Webcam) + LINUX (UBUNTU) --HELP

    hello ..
    i have a problem.. i already search on forum a lot..but i couldnt find the solution or something exactly like that..so..i'd like to ask some help over here..
    i already installed jdk..jmf.. jmfregistry detects my webcam without problems.. i can use jmstudio to record some video and at kopete i could use my webcam..
    the great problem is... i have a JAVA program that needs to connect to my webcam and take a picture.. but everytime i run my application i never can detect any device..
    i tryed the device path like.. v4l://0... v4l2://0.. and a lot of others..
    if someone is not familiar with code..
    thats it:
    this.mediaLocator = new MediaLocator("v4l://0");
    somebody can help me?
    sorry my bad english..
    Edited by: fcsa on Mar 6, 2008 4:28 PM

    hello again guys..
    im back here to see if someone has some other advices.. :)
    i solved this problem on ubuntu.. but my client said he needs my java application running on Mandriva..
    i already did everything i did on ubuntu..but im still cant connect the webcam on my java application..
    at jmstudio and jmfregistry the device is found..so..help me.. :)

Maybe you are looking for