JMF Registry Editor reports "Capture device query unsuccesful"

I am working with JMF. Sometimes (maybe 1/3rd of the time) when I go into JMF Registry Editor, Capture Devices and click "Detect Capture Devices". I get an error that says "Capture device query unsuccesful".
There is no further information. Nothing is logged in the log file. I can find nothing about this in the documentation, nor can I find this text in the downloadable source. Anyone know what this means?
Also, as far as I can tell, this has nothing to do with how my device is connected and so on, it will work one time, and not another.
Thanks,
Joe Larson

I am having the same problem, however it never works for me. I noticed that when the JMFInit runs that the program terminates while it is apparently still quering a device. I think that it's a timeout issue. I seems like the device query is not waiting long enough for the devices to respond. I have not found a way to change the timeout value. Any ideas on how to change the timeout value?
Also, have you had any success in using the JMF for video capture and transmission. I am working on a chat program. For now, it's just for fun, but maybe will will make is a sellable product later.
Take care,
John

Similar Messages

  • Detect audio device without jmf-registry

    Hi,
    I am working with Java Media Framework for some time now. But now I got a problem which I couldn't solve although I tried to find a solution on the jmf-web page.
    With the function autoDetect (com.sun.media.protocol.vfw.VFWSourceStream.autoDetect(i)) it is possible to accesses a video capture device without the JMF registry.
    Unfortunately I couldn't find out how I could access during runtime and without the JMF registry on an audio device (microphon).
    I would be very thnakful if someone could solve my problem.
    thx!
    the_greg

    thanks Owen,
    but I'm sure that it has to works without jmfinit and the registry :-)
    An example, how you can get the webcam without jmf.properties (to test it, you can rename the registry):
    private CaptureDeviceInfo getVideoDevice() {
    Vector deviceList = CaptureDeviceManager.getDeviceList(null);
    CaptureDeviceInfo devInfo = null;
    if (deviceList.size() == 0) {
    String name = VFWCapture.capGetDriverDescriptionName(0);
    System.out.println(name);
    if (name != null && name.length() > 0){
    devInfo = com.sun.media.protocol.vfw.VFWSourceStream.autoDetect(0);
    System.out.println(devInfo);
    return devInfo;
    In my opinion as this is possible for a video-device, it ought to be possible for an audio device also. (??)
    Greg

  • Capture device invisible by an applet

    Hello,
    I wrote an application wich use a webcam, it worked fine.
    I tried to make an applet using some part of code but there is a problem with the webcam and the audio.
    When i use this code inside an application, it is ok. But when i execute this code inside an applet, deviceList2.size() was always equal to 0
    public boolean initWebCam(){
              VideoFormat vformat =  new VideoFormat(VideoFormat.RGB);
              Vector deviceList = CaptureDeviceManager.getDeviceList( vformat );
              if(deviceList.size()==0){
                   vformat = new VideoFormat(VideoFormat.YUV);
                   deviceList = CaptureDeviceManager.getDeviceList( vformat );
              if(deviceList.size()==0){
                   System.out.println("Attention... Aucune Webcam decouverte.");
                   return false;
    ...JMF registry editor, inside the users settting : "Allow File Writing for applet", "Allow Capture for Applets" and "Allow Caching" is checked. Capture devices was display on the Capture Devices tab.
    Does anyone know what is the problem or where to look for to see what is the problem ?
    Thanks
    Nicolas

    Hi Nick
    I recently use JMF and have exactly the same problem with you. When I test my applet in the development environment, i.e run the applet in applet viewer of JDeveloper IDE, the applet works just fine. However, when I deployed my application to webserver (Weblogic), the applet find 0 devices.
    As I browse the webpage from the same machine with the Server, which means JMF is installed properly. And I checked JMFregistry, the Allow Capturing from Applet is also checked.
    Have you find the solution yet?
    Thank you very much
    Regards
    Khue.

  • Can't change Jmf registry

    Hi
    Every time I use the camera, I get asked to choose a video device, and I choose 'integrated camera'. It will ask next time again.
    So I've opened the Jmf registry editor, and asked it to detect devices - It finds My webcam: "Name = vfw:Microsoft WDM Image Capture (Win32):0"
    but when I commit, nothing happens. It does not remember the device.
    (windows 7 32, if it matters).
    This problem might be the reason my program can't find any devices, using "CaptureDeviceManager.getDeviceList(some format or null);"
    Thanks,
    Danger

    This problem might be the reason my program can't find any devices, using "CaptureDeviceManager.getDeviceList(some format or null);"If your program can't find any devices, but there are devices stored in the registry, the problem is that your program isn't finding the registry... which suggests you've not installed JMF correctly, you're not including JMF.jar in your project correctly, or you have some problem with your environmental variables...

  • I cant locate capture devices!!!! Please HELP!!!

    I am trying to send voice over to another computer but right now I cant get my program to detect my capture device. I looked through the forum for solutions and found 2 solutions- 1 is using the JMF registry editor and click on "connect capture devices"; 2 is using "Vector devices = CaptureDeviceManager.getDeviceList(null);" which gets me the entire list of devices.
    I tried both but nothing happend. I tried a USB microphone/headset, a regular microphone and a normal non-usb microphone/headset. None of them worked for my program. The weird thing is that when I run JMF application and try to use the application for voice capturing those capture devices do work. So basically my program doesnt seem to work... Below is the test class I made. Please help me out! thanks
    import java.io.*;
    import java.util.Vector;
    import javax.media.*;
    import javax.media.format.*;
    public class Devicew {
    public static void main(String [] args) {
         Vector devices = CaptureDeviceManager.getDeviceList(null);
         System.out.println("Number of capture devices: " + devices.size());
         for (int n = 0; n < devices.size(); n++) {
         CaptureDeviceInfo info = (CaptureDeviceInfo) devices.elementAt(n);
    System.out.println("we found something" + n);
         System.out.println(info.toString());
    }

    Hi
    Strictly speaking this doesn't sound like a jmf api problem.
    It sounds like the classpath is not set properly for your app. When you launch the app set the classpath variables to your classes eg
    java -jar -cp path/to/my/classes myapp.jar
    hope helps
    regards

  • I cant make that JMF registry  detect my usb logitech webcam

    Anyone can help me whit this?
    I install the driver for the cam, and y turn it on and yeah! the cam works
    but when i open de JMF Registry Editor and say to it that detect capture devices
    it dont show my cam, why? how can i do this?
    the thing is too that i have an incorporated webcam in my laptop, but i dont think that it can be
    the problem, the jmf recongize my incorporated cam but no my usb cam.
    please!!!!!!!!!!!!!!!!!! its so much urgent

    If JMF Registry Editor cannot detect it, it's likely your camera isn't supported by JMF.
    Does your camera support the VFW interface?

  • JMF Registry Capture Device register a mobile camera(Problem or Impossible)

    Hi all
    I have found some softwares that allows us using mobile phone camera as a web cam and use with skype, yahoo messenger etc... Those allows us use them as wireless web cameras and medium is bluetooth or wifi. So I am wondering whether they can register with JMF capture device registry and using for our java applications?
    Supporting for wireless capability is important if they can registered. Otherwise we have to go for an expensive IP cameraWhat I want to point out is they detect as registered web cameras in skype and yahoo messenger but not with JMF.
    This is the software which I have tried
    [http://www.wwigo.com/home.php]
    Can anyone please answer?
    Edited by: deshan on May 3, 2009 3:33 PM

    JMF will only work with web cameras that are accessible through the DirectShow or VFW interfaces. If the way you're accessing them isn't available through one of those two APIs, then JMF probably won't be able to use the web cam.
    But, of note, JMF doesn't need a web cam to be registered to use it, it simply needs to know the hardware URL of the web cam. Normally this is something like "vfw://0" for the default camera.
    If you could get a URL like that, and use it as a MediaLocator for your DataSource, then you could possibly use your web cam without having to register it.

  • How detect capture device without jmf&java client pc ??

    hi...
    a computer install jmf & java => detect catpure device
    but... no detect capture device without jmf & java clientpc...
    however solved this problem?
    plz...
    thanks..
    email : [email protected]

    You must hard code a dependent platform code to examine the registry or its similar in linux.

  • Detecting Video Capture Devices without Installing JMF

    Hi All,
    I want to detect the video capture devices, without installing the JMF.
    I had included the jmf (windows version) in lib path in netbeans ide. I am able to detect the audio capture device. But unable to detect the video capture devices. But if I install the JMF, I am able to detect the Video Capture devices in My system. Can anyone help me?
    Thanks,
    Vinoth Kumar.

    YES! Please take a look at SIP Communicator project. They have all what u want.
    The main idea is copy all .dll files to System or System32 (Please check files which JMF will copy to ur computer and where).
    U need to have jmf.jar and sound.jar too ( maybe more) in your computer.
    Your program should have DirectSoundAuto.java, JavaSoundAuto.java, JavaSoundDetector.java, JMFInit.java. Those files are in JMStudio source code. They are used to detect all capture devices and register it to JMF, but wait !!! where they will be saved? In order to save information about capture devices which are detected, you should create "jmf.properties" file in the same location with jmf.jar.Therefore, u should modify the JMFInit.java so it can check if the "jmf.properties" exists. If it's not, you have to create it.
    Check SIP Communicator at Folder "media" then "device". They have modified those files I mentioned above and created some new files to SC can detect more devices.
    Edited by: tamngminh on Sep 16, 2008 9:50 AM

  • JMF capture device already in use

    Hi,
    I'm trying to make something like VI or Netmeeting with JMF. The problem is that i can't send over RTP and have a Player with the same MediaLocator.
    error : ...Capture device already in use...
    Does anybody know how to send and play the same media at the same time

    If I send to unicast address ? I wanna find a possibility to use the same medialocator or the same datasource for example. It tell me that the capture device is already in use. How can I capture and send at same time. For example, how can you see wath you're sending with Videotransmit from java.sun.
    Tanks

  • Trouble with detectin IDS Eagle capture device with JMF

    Hi
    I'm having trouble detecting my capture card (IDS Eagle model). Is anyone else having the same problem? I tried using the JMStudio tool but the only capture devices detected are the audio ones.
    I have installed the WDM driver for this card but jmf doesn't detect it.
    Any help will be appreciated. Thank yoU!

    Hello Tania,
    I think if you look at the source code for AVTransmit2.java, which can be downloaded, this will help you. Make sure you use javasound://8000 as one of the parameters when creating the AVTransmit2 object.
    Regards,
    James

  • How do you get your webcam device name from the JMF registry?

    Ya, I don't know where the JMF registry is.....is there a list somewhere in the API? Is it somewhere in the Windows registry files after installing JMF? I keep hearing you need to do this when creating a webcam application but never seen it explained anywhere.

    The registry is a file located in the lib directory under the installation of Java Media Framework, called jmf.properties.
    You can edit it with the jmfregistry application provided with JMF, or using the proper classes such as the CaptureDeviceManager.

  • How to setup Registry editor both oracle report 2.5&6.0

    Hi all,
    I have two versions of developer2000 one in C: drive another in
    E:drive. I want to access either one without changing
    registry each time.
    What I have to do? How to set up registry editor?
    thanks
    suresh
    null

    Hi all,
    I have two versions of developer2000 one in C: drive another in
    E:drive. I want to access either one without changing
    registry each time.
    What I have to do? How to set up registry editor?
    thanks
    suresh
    null

  • Jmf detect capture device

    hi guys,
    why is my deviceList return null?
    // Get the CaptureDeviceInfo for the live audio capture device
    Vector deviceList = CaptureDeviceManager.getDeviceList(new
                            AudioFormat("linear", 44100, 16, 2));
    if (deviceList.size() > 0)
          di = (CaptureDeviceInfo)deviceList.firstElement();
    else
    // Exit if we can't find a device that does linear, 44100Hz, 16 bit,
    // stereo audio.
         System.exit(-1);

    Dear andreyvk ,
    I've read your post
    http://forum.java.sun.com/thread.jspa?threadID=785134&tstart=165
    about how to use a single RTP session for both media reception and trasmission (I'm referring to you RTPSocketAdapter modified version), but, at the moment, I'receive a BIND error.
    I think that your post is an EXCELLENT solution. I'modified AVReceive3 and AVTransmit3 in order to accept all parameters (Local IP & Port, Remote IP & Port).
    Can you please give me a simple scenario so I can understand what the mistake?
    I'use AVTransmit3 and AVReceive3 from different prompts and if I run these 2 classes contemporarely both in 2 different PC (172.17.32.27 and 172.17.32.30) I can transmit the media (vfw://0 for example) using AVTransmit3 but I'can't receive nothing if I run also AVReceive3 in the same PC?
    What's the problem? Furthermore, If I run first AVReceive3 from a MSDOS Prompt and subsequently I run AVTransmit3 from another prompt I see a BIND error (port already in use).
    How can I use your modified RTPSocketAdapter in order to send and receive a single media from the same port (e.g. 7500).
    I've used this scenario PC1: IP 172.17.32.30 Local Port 5000 and PC2:IP 172.17.32.27 LocalPort 10000
    So in the PC1 I run:
    AVTransmit3 vfw://0 <Local IP 172.17.32.30> <5000> <Remote IP 172.17.32.27> <10000>
    AVReceive3 <Local IP 172.17.32.30/5000> <Remote IP 172.17.32.27/10000>
    and in PC2:
    AVTransmit3 vfw://0 <Local IP 172.17.32.27> <10000> <Remote IP 172.17.32.30> <5000>
    AVReceive3 <Local IP 172.17.32.27/10000> <Remote IP 172.17.32.30/5000>
    I'd like to use the same port 5000 (in PC1) and 10000 (in PC2) in order to transmit and receive rtp packets. How can i do that without receive a Bind Error? How can I receive packets (and playing these media if audio &/or video) from the same port used to send stream over the network?
    How can I obtain a RTP Symmetric Transmission/Reception solution?
    Please give me an hint. If you can't post this is my email: [email protected]

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

Maybe you are looking for