Problem with JMF

j'ai install� la JMF2.1.1e sous LINUX.
Quand je lance l'initialisation de la JMF:
[pnv@dell-linux113 bin]$ jmfinit
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
JavaSound Capture Supported = true
Exception on commit = java.io.FileNotFoundException: /home/pnv/A_V_V/JMF-2.1.1e/lib/jmf.properties (Permission denied)
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
Lorsque je veux visualiser avec JMStudio une video encod� en H263:
J'ai une fenetre qui apparait: JMStudio Error
Controller Error:
Internal module com.sun.media.BasicFilterModule@262c31 failed!
[pnv@dell-linux113 bin]$ jmstudio
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
java.lang.ArrayIndexOutOfBoundsException
at com.ibm.media.codec.video.h263.ReadStream.fillBuffer(ReadStream.java:101)
at com.ibm.media.codec.video.h263.ReadStream.nextBits(ReadStream.java:56)
at com.ibm.media.codec.video.h263.H263Decoder.GetNextStartCode(H263Decoder.java:1579)
at com.ibm.media.codec.video.h263.H263Decoder.DecodeGobs(H263Decoder.java:542)
at com.ibm.media.codec.video.h263.H263Decoder.DecodePicture(H263Decoder.java:510)
at com.ibm.media.codec.video.h263.JavaDecoder.decodeData(JavaDecoder.java:286)
at com.ibm.media.codec.video.h263.JavaDecoder.process(JavaDecoder.java:242)
at com.sun.media.BasicFilterModule.process(BasicFilterModule.java:322)
at com.sun.media.BasicModule.connectorPushed(BasicModule.java:69)
at com.sun.media.BasicOutputConnector.writeReport(BasicOutputConnector.java:120)
at com.sun.media.SourceThread.process(BasicSourceModule.java:729)
at com.sun.media.util.LoopThread.run(LoopThread.java:135)
Internal module com.sun.media.BasicFilterModule@262c31 failed!
Avez vous une idee??
merci de m'aiguiller.......
En fait je fait un projet qui transmet du flux RTP video et audio; pour l'audio pas de probleme, pour la video:
Failed to realize: com.sun.media.ProcessEngine@186c730
Cannot build a flow graph with the customized options:
Unable to transcode format: H263, 176x144, FrameRate=25.0, Length=0 0 extra bytes
to: H263/RTP
outputting to: RAW/RTP
Error: Unable to realize com.sun.media.ProcessEngine@186c730
java.lang.UnsatisfiedLinkError: JMFSecurityManager: java.lang.UnsatisfiedLinkError: no jmutil in java.library.path
initOK_audio ===== null
initOK_video ===== null
=====================================
javax.media.NotRealizedError: Cannot set media time on a unrealized controller
     at com.sun.media.BasicPlayer.setMediaTime(BasicPlayer.java:427)
     at transmitrtpserveur.AVTransmit3.startTransmissionV(AVTransmit3.java:381)
     at transmitrtpserveur.ThreadStartTransmissionV.run(ThreadStartTransmissionV.java:56)
javax.media.NotRealizedError: Cannot set media time on a unrealized controller
     at com.sun.media.BasicPlayer.setMediaTime(BasicPlayer.java:427)
     at transmitrtpserveur.AVTransmit3.startTransmissionV(AVTransmit3.java:381)
     at transmitrtpserveur.ThreadStartTransmissionV.run(ThreadStartTransmissionV.java:56)
Merci de votre aide, c'est super urgent !!!!!

I think you installed JMF as root.
you need to su root, and change chown and chgrp on the install directory of JMF in pnv

Similar Messages

  • Classpath problems with JMF

    Hi all,
    I'm trying to develop a simple application using JMF; I've problems importing classes from javax.media package. Problem with my application is that when I explicitly specify classpath as a command line argument to javac my application compiles; but if I use CLASSPATH environment variable it doesn't. Here's the output:
    situ@situ-desktop:~/myjava/media$ cat First.java
    import javax.media.*;
    public class First{
    situ@situ-desktop:~/myjava/media$ echo $CLASSPATH
    /home/situ/jmf/JMF-2.1.1e/lib/jmf.jar:/home/situ/jmf/JMF-2.1.1e/lib/sound.jar:.:
    situ@situ-desktop:~/myjava/media$ javac First.java
    First.java:1: package javax.media does not exist
    import javax.media.*;
    ^
    1 error
    situ@situ-desktop:~/myjava/media$ javac -classpath /home/situ/jmf/JMF-2.1.1e/lib/jmf.jar First.java
    situ@situ-desktop:~/myjava/media$
    Thanks.

    According to the documentation, it wants you to set two environmental variables, JMFHOME and CLASSPATH. And it wants the CLASSPATH to be relative to that JMFHOME variable.
    Try this.
    setenv JMFHOME /home/someuser/JMF2.1.1
    setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}

  • Problems with JMF and audio files.

    Sofware:
    Java Version 1.5.0_03
    JMF Version 2.1.1e
    Windows XP SP2
    I have a application that consists of 2 parts. The first is an editor for creating exercises, like multiple-choice, matching and so on. The second part is a “client”, used to solve the exercises. The client uses Java Webstart.
    When I include audio clips in the exercises they play just fine using the client, but in the editor program I just get a clicking sound, and then the application stops responding.
    The strange part is that the editor and client use the exact same code to playback audio clips.
    The old version of the editor (developed for Java 1.3.x) works just fine under Java 1.3.x, but when the same byte-code is launched under Java 1.5 I get the same problem (clicking sound and then the application stops responding).
    Any suggestions?

    When installing JMF, two new packages are stored in the jre\lib\ext folder : jmf.jar and sound.jar.
    Sound.jar contains the same api that are in the packages sound.midi and sound sampled contained in jre.
    Maybe these new api are an improved version but i noticed some trouble playing sound and i delete sound.jar file, now it works fine.
    Try this, maybe you had the same problem.

  • [b]Capture device problem with JMF[/b]

    Hi,
    I am doing audio and video transmission using the AVTransmit2 program. This program is at the server side. When 1client requests a transmission, it works fine. I am able to receive the audio and video. But when i have more than 1client i get the error: "Capture device in use", "Cannot create data source". I have created 2 players to render the audio and video on the screen.
    Note: I am using an Object Request Broker(Visibroker) to route the client requests to the server and sending the replies back to the clients.
    Please help, it's urgent.
    For any reply e-mail me at: [email protected]
    Thanking you in advance.

    No, sorry. Haven't got an solutions yet........
    However messing around with the permissions and settings in etc/security/console.perms and /etc/udev/50-udev.rules is causing it to not work in root either.....so i think it has something to do with it. However not figured it out yet.
    But these files and setting do not apply to windows.....
    Does anybody hav a solutions for the problem?
    Greeting,
    Olly

  • JMF Problem with Logitech camera

    Hi
    I have a problem with JMF Registry Editor. I've tryed Detect Capture Devices and during detecting my computer crashes (blue screan) and restart the system. How can I solve this problem? I've set JMFHome.
    Thank you in advance.
    Falken

    Blue screen means something in the Windows code is crashing your computer. There's probably not anything you can do to fix it except unplug any devices you have plugged in...

  • Problem with file descriptors not released by JMF

    Hi,
    I have a problem with file descriptors not released by JMF. My application opens a video file, creates a DataSource and a DataProcessor and the video frames generated are transmitted using the RTP protocol. Once video transmission ends up, if we stop and close the DataProcessor associated to the DataSource, the file descriptor identifying the video file is not released (checkable through /proc/pid/fd). If we repeat this processing once and again, the process reaches the maximum number of file descriptors allowed by the operating system.
    The same problem has been reproduced with JMF-2.1.1e-Linux in several environments:
    - Red Hat 7.3, Fedora Core 4
    - jdk1.5.0_04, j2re1.4.2, j2sdk1.4.2, Blackdown Java
    This is part of the source code:
    // video.avi with tracks audio(PCMU) and video(H263)
    String url="video.avi";
    if ((ml = new MediaLocator(url)) == null) {
    Logger.log(ambito,refTrazas+"Cannot build media locator from: " + url);
    try {
    // Create a DataSource given the media locator.
    Logger.log(ambito,refTrazas+"Creating JMF data source");
    try
    ds = Manager.createDataSource(ml);
    catch (Exception e) {
    Logger.log(ambito,refTrazas+"Cannot create DataSource from: " + ml);
    return 1;
    p = Manager.createProcessor(ds);
    } catch (Exception e) {
    Logger.log(ambito,refTrazas+"Failed to create a processor from the given url: " + e);
    return 1;
    } // end try-catch
    p.addControllerListener(this);
    Logger.log(ambito,refTrazas+"Configure Processor.");
    // Put the Processor into configured state.
    p.configure();
    if (!waitForState(p.Configured))
    Logger.log(ambito,refTrazas+"Failed to configure the processor.");
    p.close();
    p=null;
    return 1;
    Logger.log(ambito,refTrazas+"Configured Processor OK.");
    // So I can use it as a player.
    p.setContentDescriptor(new FileTypeDescriptor(FileTypeDescriptor.RAW_RTP));
    // videoTrack: track control for the video track
    DrawFrame draw= new DrawFrame(this);
    // Instantiate and set the frame access codec to the data flow path.
    try {
    Codec codec[] = {
    draw,
    new com.sun.media.codec.video.colorspace.JavaRGBToYUV(),
    new com.ibm.media.codec.video.h263.NativeEncoder()};
    videoTrack.setCodecChain(codec);
    } catch (UnsupportedPlugInException e) {
    Logger.log(ambito,refTrazas+"The processor does not support effects.");
    } // end try-catch CodecChain creation
    p.realize();
    if (!waitForState(p.Realized))
    Logger.log(ambito,refTrazas+"Failed to realize the processor.");
    return 1;
    Logger.log(ambito,refTrazas+"realized processor OK.");
    /* After realize processor: THESE LINES OF SOURCE CODE DOES NOT RELEASE ITS FILE DESCRIPTOR !!!!!
    p.stop();
    p.deallocate();
    p.close();
    return 0;
    // It continues up to the end of the transmission, properly drawing each video frame and transmit them
    Logger.log(ambito,refTrazas+" Create Transmit.");
    try {
    int result = createTransmitter();
    } catch (Exception e) {
    Logger.log(ambito,refTrazas+"Error Create Transmitter.");
    return 1;
    } // end try-catch transmitter
    Logger.log(ambito,refTrazas+"Start Procesor.");
    // Start the processor.
    p.start();
    return 0;
    } // end of main code
    * stop when event "EndOfMediaEvent"
    public int stop () {
    try {   
    /* THIS PIECE OF CODE AND VARIATIONS HAVE BEEN TESTED
    AND THE FILE DESCRIPTOR IS NEVER RELEASED */
    p.stop();
    p.deallocate();
    p.close();
    p= null;
    for (int i = 0; i < rtpMgrs.length; i++)
    if (rtpMgrs==null) continue;
    Logger.log(ambito, refTrazas + "removeTargets;");
    rtpMgrs[i].removeTargets( "Session ended.");
    rtpMgrs[i].dispose();
    rtpMgrs[i]=null;
    } catch (Exception e) {
    Logger.log(ambito,refTrazas+"Error Stoping:"+e);
    return 1;
    return 0;
    } // end of stop()
    * Controller Listener.
    public void controllerUpdate(ControllerEvent evt) {
    Logger.log(ambito,refTrazas+"\nControllerEvent."+evt.toString());
    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) {
    Logger.log(ambito,refTrazas+"\nEvento EndOfMediaEvent.");
    this.stop();
    else if (evt instanceof ControllerClosedEvent)
    Logger.log(ambito,refTrazas+"\nEvent ControllerClosedEvent");
    close = true;
    waitSync.notifyAll();
    else if (evt instanceof StopByRequestEvent)
    Logger.log(ambito,refTrazas+"\nEvent StopByRequestEvent");
    stop =true;
    waitSync.notifyAll();
    Many thanks.

    Its a bug on H263, if you test it without h263 track or with other video codec, the release will be ok.
    You can try to use a not-Sun h263 codec like the one from fobs or jffmpeg projects.

  • FSM with JMF 2.1.1(a) and one more problem. !! URGENT

    Good AfterNoon All...
    I am working on JMF 2.1.1 and I want to show a .avi file in fullScreenMode.
    How can i do so with jdk 1.4.
    I have gotten viewComponent and control comp.
    My application is running sucessfully. NO PROBLEM.
    But i want to show the movie in FSM . In order to do so, what i am doing is , I remove view
    Comp from my JFrame (in which whole of the process is going on.) .
    Add that viewComp in fullScreenWindow (which is initilized Window with parent frame.).
    But here some problem is there. According to me, it is painting problem.
    viewComp is removed successfully from frame but not added in window.
    Layout of window is border and i am adding viewComp in center of window.
    Running movie is not visible in Window. WHY ? what could be the possible reason.
    Is it possible or It can't happen. ?
    One thing more.... HUH...
    I have a menubar in frame with file and tool menus.
    when player initilized and movie starts running . You know what happens.
    Clicking on menu(s) doesnot cause menuitem(s) to visible or pull down. ?? Oh ! GOD.
    viewComp is at center and controlComp is at South.
    When i click on say fileMenu. file Menu pressed as always happens with swing's color but menuitems donot visible.
    WHY ?
    It seems that menuitems are visible ....hamam.ma...mmm I mean they are hided by viewComp.
    how to get ride of this problem. ?
    Any idea is highly appreciated.
    And it is nice working with JMF.

    Nobody .... ??
    I have found the answer of my 2nd question but still first is creating problem.
    Does anyone know it.. how to do it..
    Full Screen Mode in JFM.
    Thanks
    Sanjeev Dhiman

  • Problems with SuSE Linux 10 and JMF

    Hi, I know that this is a problem of many other people who are working with JMF and I hope we can now find a solution for this problem.
    The problem is, that after installing the Java Media Framework and running the jmfinit Programm, the jmfinit programm shows these errors:
    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
    The video framerate is also very slow and I think, that this has to do with these errors.
    I've installed the latest ATI FGLRX driver for my ATI Radeon X800 and these errors also occured.
    I also have only JavaSound Capture in the capture device list, but I'm using ALSA for playing music in Linux.
    If anyone gets JMF running under SuSE Linux 10 without these errors and a good video frame rate, please tell me.
    If you also have a good instruction f�r installing JMF under SuSE please tell me too.
    Thanks, thomas

    every linux distro i've installed, gets those errors.rh,suse,debian.
    If you do not have a video capture device, you will get those errors.
    Are you having framerate issues with webcam or video file??
    If it is the webcam, it has nothing to do with your ati video drivers.
    The slow frame rate from web cam would be your webcam drivers.
    If it is video file frame rate, make sure you have codecs supported in jmf for that type of video.

  • Problem with Transmitting media using JMF

    Hello Everyone !!
    I am working on an application called SIPSpeaker which listens for incoming calls, answer the call and plays a message. I am done with the first two parts of the application, i.e. it can successfully answers the call. I am now facing problem with transmitting audio to the SIP Phone (the caller). I am using JMF and I am trying to send the audio over RTP.
    My code looks something like this....
    locator = new MediaLocator("rtp://130.237.214.124:" + port + "/audio");
            f = new File("C:/1.wav");
            try {
                ds = Manager.createDataSource(f.toURL());         
            } catch (NoDataSourceException ex) {
                ex.printStackTrace();
            } catch (MalformedURLException ex) {
                ex.printStackTrace();
            } catch (IOException ex) {
                ex.printStackTrace();
            format = new Format[]{new AudioFormat(AudioFormat.GSM_RTP,8000,8,1)};
            contentDesc = new ContentDescriptor(ContentDescriptor.RAW_RTP);
                    processor = Manager.createProcessor(ds);
                    waitForState(processor,Processor.Configured);
                    processor.setContentDescriptor(contentDesc);
                    processor.getTrackControls()[0].setFormat(format[0]);
                    waitForState(processor,Processor.Realized);
    try {
                sink = Manager.createDataSink(processor.getDataOutput(),locator);
                System.out.println("6");
            } catch (NotRealizedError ex) {
                ex.printStackTrace();
            } catch (NoDataSinkException ex) {
                ex.printStackTrace();
    processor.start();
            try {
                sink.open();
                sink.start();
            } catch (SecurityException ex) {
                ex.printStackTrace();
            } catch (IOException ex) {
                ex.printStackTrace();
               we are required to work with a .wav file as input ....
    i am new to java and to JMF and i have absolutely no idea whats going wrong...
    please help me
    Regards,
    Sanjay !!

    Hello
    following is the error i get
    Failed to realize: com.sun.media.ProcessEngine@618d26
    Cannot build a flow graph with the customized options:
    Unable to transcode format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 16000.0 frame rate, FrameSize=32768 bits
    to: mpegaudio/rtp, 8000.0 Hz, 8-bit, Mono
    outputting to: RAW/RTP
    Error: Unable to realize com.sun.media.ProcessEngine@618d26
    what could be the problem ???

  • Problem with installing JMF

    Hi all,
    Im kinda new to Java and im trying to play an avi file with java. I understood one need to add the jmf to its project to make this possible. I downloaded the jmf for windows from this site.
    The problem is it wont install. It says (translated): "C:\windows\system32\autoexec.nt. This systemfile is not applyable for ms DOS or Windows applications."
    I have really no idea what its talking about. I have no other problems with this comp or anything. Running windows xp prof. The file i try to install is called: "jmf-2_1_1e-windows-i586.exe"
    Can someone please help me or explain the problem? I need this for school and Im stuck as long as this problems keep appearing...
    Thanks in advance,
    Jordin

    I think I dont have a problem installing JMF without connect the webcam.
    The JMF registry can detect new media locator. isnt't it?
    Hey Khrisna, can u suggest me my question in topic
    "Video Conferrence over internet???"
    I get confuse about cloning the datasource. thanks

  • Detection problem on HP webcam with JMF

    Hi,
    I'm trying NyARtoolkit and I need to use the video stream of my HP's webcam encrusted above the screen of my laptop (a HP Pavillon tx 2670ef)
    After the installation of JMF, I lunch JMStudio and I manage tu detect my webcam in : File->Preferences->Capture Devices->detect capture devices.
    Then i close the windows and i do File->Capture...->I enable "use video device" and unable "use audio device" then i click on "OK" but aftewards i have an error message saying that JMF couldn't initialize the capture device...
    2 students with me have the same pb...
    I made some researches about this issue and i found this post
    http://72.5.124.102/thread.jspa?messageID=10177842
    Afterwards I've installed ManyCam and i managed to get a video capture from the virtual webcam simulated with ManyCam.
    In fact, when i click on detect capture devices in JMStudio, a windows appears and i can choose "ManyCam Virtual Webcam" instead of "HP webcam".
    Moreover, in the options before capturing video, the encoding is in RVB instead of YUV before with the "HP webcam".
    But when i run my program i have this error :
    java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Unknown Source)
         at jp.nyatla.nyartoolkit.jmf.utils.JmfCaptureDeviceList.getDevice(JmfCaptureDeviceList.java:80)
         at jp.nyatla.nyartoolkit.java3d.utils.NyARSingleMarkerBehaviorHolder.<init>(NyARSingleMarkerBehaviorHolder.java:68)
         at J3DJME.NyARJava3D.<init>(NyARJava3D.java:174)
         at J3DJME.NyARJava3D.main(NyARJava3D.java:76)
    I tried many other things (Quicktime with QTcap... but i didn't managed to solve this pb yet)
    Coud you help to use my webcam with jmf ?
    josy

    You probably want to remove the crust from your web cam if you expect it to work. Most things that are encrusted aren't in the best of shape...
    JMF connects to web cameras by wrapping around native interfaces. If the JMStudio isn't able to use your web cam, it could mean a number of things...your web cam isn't compliant with the version of the interfaces (VFW and DirectShow, I believe) that JMF is wrapping around, the web cam doesn't output any formats JMF can use, etc.
    But if JMStudio can't use your web cam sucessfully, 99% of the time that means your web cam isn't going to work with JMF... unless you want to code support for it yourself.

  • Problems initializing webcam device with JMF

    Hello,
    JMStudio works fine on first try. Webcam stream is captured and displayed.
    If I start JMStudio a second time, an error occurs "Couldn't initialize Webcam Device".
    After rebooting my laptop it works again once.
    Same errors occur with all example scripts using webcam device.
    I'm using Windows Vista Home Premium 32Bit and a Vega USB 2.0 Camera (integrated in my laptop)
    Thank you in advance.
    YoFrankie!

    YoFrankie wrote:
    It also wouldn't work the first time, would it?"Sounds like JMF isn't releasing your web cam correctly."
    Why wouldn't it work correctly the first time if JMF isn't releasing it correctly?
    It seems the webcam connection isn't executed correctly on exit, so it can't connect again the second time.Connection isn't executed correctly on exit? You mean JMF isn't releasing your web cam, correctly, when it's done with it... I feel like someone just said that...
    I just installed JMF today and JMRegistry recognizes my webcam and And the fact you only installed it today rules out the possibility than something went wrong during installation...why?
    unfortunately I couldn't find drivers for the webcamWhen I suggested that you make sure you're using the correct drivers for the web cam, just to be clear, I was referencing the drivers for your operating system, not anything to do with JMF.
    If you're using the incorrect drivers in the OS, whenever JMF sends out a "release the web cam" command, incorrect OS drivers may not be able to release it correctly.
    All sarcasm aside...you should try reinstalling JMF, to make sure nothing funky happened during the installation...and you should make sure that Windows is using the latest, best, most accurate drivers for your web cam, to make sure that you're not using a flat-head screwdriver to try to screw in a Phillips head screw...

  • Problem with streaming video

    Hi!
    I have a problem with my project. Please help me!
    I tried to send a video streaming between 2 computers. I used socket connection and AVReceive2, AVTransmit. When received computer display 59 seconds, it stop the connection, socket is closed and program send a error report.
    I list here:
    =========================================================================
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x070b17ff, pid=1180, tid=2176
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_13-b05 mixed mode, sharing)
    # Problematic frame:
    # C [jmmpegv.dll+0x17ff]
    --------------- T H R E A D ---------------
    Current thread (0x02cdf930): JavaThread "Loop thread: com.sun.media.parser.RawBufferParser$FrameTrack@27391d" daemon [_thread_in_native, id=2176]
    siginfo: ExceptionCode=0xc0000005, reading address 0x0d2451f8
    Registers:
    EAX=0x0000008e, EBX=0xfffffffd, ECX=0x070c2a68, EDX=0x0000ffff
    ESP=0x078ff8a4, EBP=0x0000000d, ESI=0x016c0000, EDI=0x077451f8
    EIP=0x070b17ff, EFLAGS=0x00010202
    Top of Stack: (sp=0x078ff8a4)
    0x078ff8a4: 00000001 00000164 07110650 00000000
    0x078ff8b4: 00000005 0000010f 070c2a34 00000003
    0x078ff8c4: 00000003 070b65c8 070c250f 070c2b3c
    0x078ff8d4: 07740048 00000002 00000000 00000000
    0x078ff8e4: 00000000 00000000 070b66c0 07740048
    0x078ff8f4: 07740048 070b6c3b 00000001 07740048
    0x078ff904: 071101a0 07740048 078ff990 00000000
    0x078ff914: 00000000 070b74b5 07740048 078ff97c
    Instructions: (pc=0x070b17ff)
    0x070b17ef: fc 01 0c 07 0b d7 8b 3d c0 2d 0c 07 c1 fe 03 45
    0x070b17ff: d9 04 b7 8b 35 44 36 0c 07 8b f9 d8 0c 86 d9 1c
    Stack: [0x078c0000,0x07900000), sp=0x078ff8a4, free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [jmmpegv.dll+0x17ff]
    [error occurred during error reporting, step 120, id 0xc0000005]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j com.ibm.media.codec.video.mpeg.MpegVideo.videoDecode(J[BIIILjava/lang/Object;JII[I[I[I[I[I[I)I+0
    j com.ibm.media.codec.video.mpeg.MpegVideo.process(Ljavax/media/Buffer;Ljavax/media/Buffer;)I+574
    J com.sun.media.BasicFilterModule.process()V
    J com.sun.media.BasicOutputConnector.writeReport()V
    J com.sun.media.BasicFilterModule.process()V
    J com.sun.media.BasicOutputConnector.writeReport()V
    J com.sun.media.SourceThread.process()Z
    j com.sun.media.util.LoopThread.run()V+14
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x02cdd008 JavaThread "Loop thread: com.sun.media.parser.RawBufferParser$FrameTrack@cec0c5" daemon [_thread_blocked, id=3104]
    0x02d1df88 JavaThread "Loop thread: com.sun.media.renderer.audio.DirectAudioRenderer@2ce908" daemon [_thread_blocked, id=1176]
    =>0x02cdf930 JavaThread "Loop thread: com.sun.media.parser.RawBufferParser$FrameTrack@27391d" daemon [_thread_in_native, id=2176]
    0x02ce0890 JavaThread "Loop thread: com.sun.media.renderer.video.DDRenderer@14a8cd1" daemon [_thread_blocked, id=2296]
    0x02c5e920 JavaThread "Progress Slider thread" daemon [_thread_blocked, id=3172]
    0x02d18c58 JavaThread "Loop thread" daemon [_thread_blocked, id=2920]
    0x00ab5a50 JavaThread "DirectSound Request Thread" daemon [_thread_blocked, id=3984]
    0x00a80480 JavaThread "Progress Slider thread" daemon [_thread_blocked, id=3180]
    0x02c89d18 JavaThread "Loop thread" daemon [_thread_blocked, id=788]
    0x02d37098 JavaThread "JMF thread: SendEventQueue: com.sun.media.PlaybackEngine" daemon [_thread_blocked, id=3328]
    0x02c8bc28 JavaThread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" daemon [_thread_blocked, id=2916]
    0x02c78720 JavaThread "RTPStream" daemon [_thread_blocked, id=3400]
    0x02db1d90 JavaThread "JMF thread: SendEventQueue: com.sun.media.PlaybackEngine" daemon [_thread_blocked, id=3032]
    0x02c73c10 JavaThread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" daemon [_thread_blocked, id=1440]
    0x02c7d930 JavaThread "RTPStream" daemon [_thread_blocked, id=2664]
    0x02d195e0 JavaThread "RTCP Reporter" daemon [_thread_blocked, id=2416]
    0x02d19008 JavaThread "SSRC Cache Cleaner" daemon [_thread_blocked, id=592]
    0x02d24a30 JavaThread "RTP Forwarder for address 192.168.1.34 port 1627" daemon [_thread_in_native, id=376]
    0x02c5fa30 JavaThread "RTCP Forwarder for address192.168.1.34 port 1628" daemon [_thread_in_native, id=3840]
    0x02c5f008 JavaThread "RTPEventHandler" daemon [_thread_blocked, id=2516]
    0x02c60440 JavaThread "RTCP Reporter" daemon [_thread_blocked, id=2820]
    0x02c602b8 JavaThread "SSRC Cache Cleaner" daemon [_thread_blocked, id=3816]
    0x02d403d0 JavaThread "RTP Forwarder for address 192.168.1.34 port 1625" daemon [_thread_in_native, id=2272]
    0x02d0de20 JavaThread "RTCP Forwarder for address192.168.1.34 port 1626" daemon [_thread_in_native, id=1500]
    0x00a64e30 JavaThread "RTPEventHandler" daemon [_thread_blocked, id=3852]
    0x02c9d6e8 JavaThread "TimerQueue" daemon [_thread_blocked, id=2472]
    0x00035c78 JavaThread "DestroyJavaVM" [_thread_blocked, id=2776]
    0x02cbbb10 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=364]
    0x02c58478 JavaThread "AWT-Shutdown" [_thread_blocked, id=1008]
    0x02c58898 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3548]
    0x00aabf08 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2440]
    0x00a716d0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3644]
    0x00a702b0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3348]
    0x00a6f598 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1184]
    0x00a6a300 JavaThread "Finalizer" daemon [_thread_blocked, id=2556]
    0x00a68e78 JavaThread "Reference Handler" daemon [_thread_blocked, id=1296]
    Other Threads:
    0x00a67c38 VMThread [id=1956]
    0x00a6f440 WatcherThread [id=3560]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 640K, used 501K [0x22a70000, 0x22b20000, 0x22f50000)
    eden space 576K, 76% used [0x22a70000, 0x22adde88, 0x22b00000)
    from space 64K, 96% used [0x22b10000, 0x22b1f758, 0x22b20000)
    to space 64K, 0% used [0x22b00000, 0x22b00000, 0x22b10000)
    tenured generation total 8172K, used 6973K [0x22f50000, 0x2374b000, 0x26a70000)
    the space 8172K, 85% used [0x22f50000, 0x2361f4e0, 0x2361f600, 0x2374b000)
    compacting perm gen total 8192K, used 2098K [0x26a70000, 0x27270000, 0x2aa70000)
    the space 8192K, 25% used [0x26a70000, 0x26c7ca90, 0x26c7cc00, 0x27270000)
    ro space 8192K, 67% used [0x2aa70000, 0x2afd23e0, 0x2afd2400, 0x2b270000)
    rw space 12288K, 47% used [0x2b270000, 0x2b81f450, 0x2b81f600, 0x2be70000)
    Dynamic libraries:
    0x00400000 - 0x0040d000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\java.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\MSVCRT.dll
    0x6d740000 - 0x6d8dd000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\client\jvm.dll
    0x77d40000 - 0x77dd0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f56000      C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6d300000 - 0x6d308000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d710000 - 0x6d71c000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\verify.dll
    0x6d380000 - 0x6d39d000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\java.dll
    0x6d730000 - 0x6d73f000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\zip.dll
    0x6d070000 - 0x6d1da000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\awt.dll
    0x73000000 - 0x73026000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.dll
    0x774e0000 - 0x7761c000      C:\WINDOWS\system32\ole32.dll
    0x305e0000 - 0x305f6000      C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 7.0\miscr3.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x30480000 - 0x3048e000      C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 7.0\fssync.dll
    0x78130000 - 0x781cb000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd\MSVCR80.dll
    0x5ad70000 - 0x5ada8000      C:\WINDOWS\system32\uxtheme.dll
    0x73760000 - 0x737a9000      C:\WINDOWS\system32\ddraw.dll
    0x73bc0000 - 0x73bc6000      C:\WINDOWS\system32\DCIMAN32.dll
    0x6d2b0000 - 0x6d300000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\fontmanager.dll
    0x7c9c0000 - 0x7d1d4000      C:\WINDOWS\system32\shell32.dll
    0x773d0000 - 0x774d2000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
    0x5d090000 - 0x5d127000      C:\WINDOWS\system32\comctl32.dll
    0x6d540000 - 0x6d553000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\net.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x6d560000 - 0x6d569000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\nio.dll
    0x60300000 - 0x60307000      C:\PROGRA~1\Yahoo!\MESSEN~1\idle.dll
    0x7c340000 - 0x7c396000      C:\PROGRA~1\Yahoo!\MESSEN~1\MSVCR71.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\system32\mswsock.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    0x10000000 - 0x10015000      C:\WINDOWS\system32\jmutil.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x30460000 - 0x3047b000      C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 7.0\dnsq.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x05540000 - 0x0554d000      C:\WINDOWS\system32\jmacm.dll
    0x77be0000 - 0x77bf5000      C:\WINDOWS\system32\MSACM32.dll
    0x58420000 - 0x58427000      C:\WINDOWS\system32\imaadp32.acm
    0x72cf0000 - 0x72cf7000      C:\WINDOWS\system32\msadp32.acm
    0x58330000 - 0x58335000      C:\WINDOWS\system32\msg711.acm
    0x58300000 - 0x58308000      C:\WINDOWS\system32\msgsm32.acm
    0x582d0000 - 0x582d4000      C:\WINDOWS\system32\tssoft32.acm
    0x73b70000 - 0x73b77000      C:\WINDOWS\system32\tsd32.dll
    0x58310000 - 0x5832d000      C:\WINDOWS\system32\msg723.acm
    0x58340000 - 0x5838d000      C:\WINDOWS\system32\msaud32.acm
    0x582e0000 - 0x582fe000      C:\WINDOWS\system32\sl_anet.acm
    0x581a0000 - 0x581d9000      C:\WINDOWS\system32\iac25_32.ax
    0x58390000 - 0x5841a000      C:\WINDOWS\system32\l3codeca.acm
    0x056d0000 - 0x056dc000      C:\WINDOWS\system32\jmdaud.dll
    0x73f10000 - 0x73f6c000      C:\WINDOWS\system32\DSOUND.dll
    0x77c00000 - 0x77c08000      C:\WINDOWS\system32\VERSION.dll
    0x06d50000 - 0x06dae000      C:\WINDOWS\system32\jmmpa.dll
    0x06c20000 - 0x06c2b000      C:\WINDOWS\system32\jmvcm.dll
    0x75a70000 - 0x75a91000      C:\WINDOWS\system32\MSVFW32.dll
    0x070b0000 - 0x070c6000      C:\WINDOWS\system32\jmmpegv.dll
    0x07210000 - 0x07218000      C:\WINDOWS\system32\jmddraw.dll
    0x073e0000 - 0x0748c000      C:\WINDOWS\system32\jmvh263.dll
    0x6d3e0000 - 0x6d3e6000      C:\Program Files\Java\jdk1.5.0_13\jre\bin\jawt.dll
    0x07340000 - 0x07349000      C:\WINDOWS\system32\jmfjawt.dll
    0x76c30000 - 0x76c5e000      C:\WINDOWS\system32\WINTRUST.dll
    0x77a80000 - 0x77b14000      C:\WINDOWS\system32\CRYPT32.dll
    0x77b20000 - 0x77b32000      C:\WINDOWS\system32\MSASN1.dll
    0x76c90000 - 0x76cb8000      C:\WINDOWS\system32\IMAGEHLP.dll
    0x72d20000 - 0x72d29000      C:\WINDOWS\system32\wdmaud.drv
    0x72d10000 - 0x72d18000      C:\WINDOWS\system32\msacm32.drv
    0x77bd0000 - 0x77bd7000      C:\WINDOWS\system32\midimap.dll
    0x73ee0000 - 0x73ee4000      C:\WINDOWS\system32\KsUser.dll
    VM Arguments:
    java_command: FrameLogin
    Launcher Type: SUN_STANDARD
    Environment Variables:
    CLASSPATH=.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;C:\PROGRA~1\JMF21~1.1E\lib;
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
    USERNAME=Tung
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 2, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 1 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 245280k(6040k free), swap 2279684k(1755548k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_13-b05) for windows-x86, built on Sep 25 2007 19:11:52 by "java_re" with MS VC++ 6.0
    ==============================================================================
    Is it a problem with jre or a problem with socket connection?
    Please help me! Thanks!

    rohitmadiwal, don't post on old threads. If you have a problem, post a new thread.
    The above error was caused by a bug in the JNI code inside of JMF. The best solution to such problems is to reboot your system, and if that doesn't work, reinstall JMF.
    If neither of those 2 things fix it, it cannot be fixed.

  • Very urgent!! Problems with the H.263 codec on JMStudio

    I downloaded the JMF Version 2.1.1e ' version.
    The H.263 codec doesn't work.
    I noticed that the file sound.jar wasn't in the lib directory of JMF-2.1.1e.
    Is for this reason I have problems with the H.263 codec??
    Thanks for your help.

    What do you try to broadcast? H263 is a video codec, not audio..

  • Problem with RTPExport output video files

    Hi, I have a problem with RTPExport output video files. One side streams H263/RTP(AVTransmit2.java) and other write this steam to a file by RTPExport.java. When network conditions are ideal, output video file has same fps and same number of frames like original file. Problem occures, when theres packet lost in network, then output file has different fps,and also has less frames like original video(because it didnt write missing frames to file, and thats why it get shorter). Pls how can I achieve output file that will have the same fps like original one? How to write to file an identical copy of what I can see while receiveing video with AVReceive2.java? Its there a way to modifi rtpexport or avreceiver to do this? Thanks a lot!

    Trubka wrote:
    When network conditions are ideal, output video file has same fps and same number of frames like original file. Problem occures, when theres packet lost in network, then output file has different fps,and also has less frames like original video(because it didnt write missing frames to file, and thats why it get shorter). Okay, first off, the second file is smaller on purpose. RTP intentionally drops packets that are old/out of order in order to make sure real-time video stays as close to real time as it can. This is by design, so there's really nothing that can be done about it.
    How to write to file an identical copy of what I can see while receiveing video with AVReceive2.java? Technically speaking, what you're getting in the RTPExport is exactly what you got on the receiving end. Any frames that are dropped during transmission will not be seen by the receiver, nor saved by the receiver.
    Pls how can I achieve output file that will have the same fps like original one? I'm not 100% sure that you can, but, you can give the following idea a try. I make no guarentees that it'll work, but it should work for you...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/RTPConnector.html]
    That example is an example of a "custom transport layer" for RTP connections. Essentially, it's some code that's handed the RTP packets on the transmission end, and it's expected to deliver those RTP packets on the other end. And it doesn't care about how they get from A to B, only that they do.
    If you were to replace the UDP socket in that example with a TCP socket, you would be guarenteed not to drop packets due to network reasons. Every RTP packet you were handed by the transmitter, you would then hand to the receiver. There is no guarentee that none of the packets would be cast away as "old" by the RTP protocol itself, but there's also no guarentee any of them would be. It's a crap-shoot at best, but it's certainly worth a try.

Maybe you are looking for