JMF and webcams

Hi I am new to JMF. I have only started using it for the last couple of weeks. Does anybody know what can I do in case my webcam is not listed in the LMF registry? If anybody has any ideas or recommendations please let me know. I have tried to do this in two different operating systems.
1. Windows XP
2. Windows 2000 pro
The camera model is Canon VB-C10.
Any kind of help is appreciated. Thank you

The basic question above is if the Canon VB - C10 camera is supported by JMF. I am thinking to purchase one but I do not exactly know if I can use it wih JMF. If anybody has any idea please let me know.
Thank you very much in advance.

Similar Messages

  • JMF and Webcam - change exposure time settings

    Hello together,
    i have a problem with the JMF. I want to set the exposure time of my Webcam. is this with the JMF possible?
    Or is it possible to set this with DirectShow and use it the in Java with this Settings?
    Platform independence is at the moment not significant!
    Thanks for Help,
    fridl

    If you can do it with the DirecShow API, then you can just write a JNI function that calls some C code that sets the exposure using the DirecShow API to set it for you from Java.
    But otherwise no. That's not something you can modify via JMF, per my knowledge.

  • How to stream audio and video captured from mic and webcam in sync.

    I am working on a video chat project. I need to capture audio and video from mic and webcam and create rtp stream for them. How can I proceed for this. Any source code help will be highly appreciated. Otherwise just guide me how to do this and point to any good resource which is directly related to my need.
    Thanx.

    t.b.m
    As mentioned by you, i am doing exactly like that . I have coded transmitter class. But at the receiver side it is unable to play the stream. I am posting my code . Can you please help with me with any mistake i m making in my code ?? Or with way I should receive stream at receiver side. Plz see my code. I am streaming to ip address 172.31.80.67.
    package heyram;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import javax.media.format.*;
    import java.io.IOException;
    import java.util.Vector;
    import java.net.InetAddress;
    import java.awt.*;
    import java.io.*;
    import java.net.InetAddress;
    import javax.media.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.media.format.*;
    import javax.media.control.TrackControl;
    import javax.media.control.QualityControl;
    import javax.media.rtp.*;
    import javax.media.rtp.rtcp.*;
    import com.sun.media.rtp.*;
    import java.lang.Thread.*;
    public class HEYRAM{
    Format[] format=new Format[2];
    Vector[] devices=new Vector[2];
    CaptureDeviceInfo[] di=new CaptureDeviceInfo[2];
       SessionManager rtpsm = new com.sun.media.rtp.RTPSessionMgr();
    Processor p=null;
    Processor p1=null;
    boolean result;
    public HEYRAM(String address,int port,int ttl){
        try{
                InetAddress destaddr = InetAddress.getByName(address);
                SessionAddress sessaddr = new SessionAddress(destaddr,
                                                             port,
                                                             destaddr,
                                                             port + 1);
                String cname = rtpsm.generateCNAME();
                    String username = null;
                try {
                username = System.getProperty("user.name");
            } catch (SecurityException e){
                username = "jmf-user";
            // create our local Session Address
            SessionAddress localaddr = new SessionAddress();
                SourceDescription[] userdesclist= new SourceDescription[]
                    new SourceDescription(SourceDescription
                                          .SOURCE_DESC_EMAIL,
                                          "[email protected]",
                                                                     1,
                                          false),
                    new SourceDescription(SourceDescription
                                          .SOURCE_DESC_CNAME,
                                          cname,
                                          1,
                                          false),
                    new SourceDescription(SourceDescription
                                          .SOURCE_DESC_TOOL,
                                          "JMF RTP Player v2.0",
                                          1,
                                          false)
                rtpsm.initSession(localaddr,
                                userdesclist,
                                0.05,
                                0.25);
                rtpsm.startSession(sessaddr,ttl,null);
            } catch (Exception e) {
                System.err.println(e.getMessage());
                //return null;
        // rtpsm.initSession(localAddress, defaultUserDesc, rtcp_bw_fraction, rtcp_sender_bw_fraction);
            // rtpsm.startSession(...);
    public void createVideoSession()
        format[1] = new VideoFormat(VideoFormat.YUV);
        devices[1]= CaptureDeviceManager.getDeviceList( format[1]);
         di[1]= null;
            if (devices[1].size() > 0) {
                 di[1] = (CaptureDeviceInfo)devices[1].elementAt(0);
                  System.out.println(di[1].toString());
            else {
                // exit if we could not find the relevant capture device.
             System.out.println("1234jjfjsajfjasf1");
                System.exit(-1);
            // Create a processor for this capture device & exit if we
            // cannot create it
            try {
                p1 = Manager.createProcessor(di[1].getLocator());
            } catch (IOException e) {
                System.out.println("1234jjfjsajfjasf2");
                System.exit(-1);
            } catch (NoProcessorException e) {
                System.out.println("1234jjfjsajfjasf3");
                System.exit(-1);
            // at this point, we have succesfully created the processor.
            // Realize it and block until it is configured.
           // p1.configure();
         result = waitForState(p1, Processor.Configured);
         if (result == false)
         System.out.println("Couldn't realize processor");
            p1.setContentDescriptor(new ContentDescriptor( ContentDescriptor.RAW_RTP));
            // block until it has been configured
            TrackControl track[] = p1.getTrackControls();
            boolean encodingOk = false;
            // Go through the tracks and try to program one of them to
            // output ULAW_RTP data.
            for (int i = 0; i < track.length; i++) {
                if (!encodingOk && track[i] instanceof FormatControl) {
                    if (((FormatControl)track).
    setFormat( new VideoFormat(VideoFormat.YUV)) == null) {
    track[i].setEnabled(false);
    else {
    encodingOk = true;
    else {
    // we could not set this track to gsm, so disable it
    track[i].setEnabled(false);
    // Realize it and block until it is realized.
    p1.realize();
    result = waitForState(p1, Processor.Realized);
         if (result == false)
         System.out.println("Couldn't realize processor");
    // block until realized.
    // get the output datasource of the processor and exit
    // if we fail
    DataSource ds = null;
    try {
    ds = p1.getDataOutput();
    } catch (NotRealizedError e){
    //System.exit(-1);
    System.out.println("1234jjfjsajfjasf4");
    // Create a SessionManager and hand over the
    // datasource for SendStream creation.
    // The session manager then needs to be initialized and started:
    // rtpsm.initSession(...);
    // rtpsm.startSession(...);
    try {
    (rtpsm.createSendStream(ds, 0)).start();
    } catch (IOException e){
    System.out.println("1234jjfjsajfjasf6");
    e.printStackTrace();
    } catch( UnsupportedFormatException e) {
    System.out.println("1234jjfjsajfjasf7");
    e.printStackTrace();
    public void createAudioSession(){
    format[0] = new AudioFormat("linear",8000,8,1);
    devices[0]= CaptureDeviceManager.getDeviceList( format[0]);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I have hp laptop dv9009us one day all the USB ports and webcam camera stopped working

    I have hp laptop dv9009us one day all the USB ports and webcam camera stopped working, I had windows XP and tried all solutions posted on online forums didn’t work, I upgraded to windows 7 and still not working, please note that the USB is detected in device manger and it says working properly but he webcam is not detected at all, also when I connect any device to USB it gives it power and I even can charge my cell phone but it doesn’t detect any device. Is there any genius out there that can help me?
    Also after I installed windows 7 I went o system information----software environment--- system drivers, and I found all USB drivers stopped by the way this was the case in windows XP as well
    usbccgp            Microsoft USB Generic Parent Driver   c:\windows\system32\drivers\usbccgp.sys         Kernel Driver   No            Manual Stopped           OK      Normal No       No
    usbcir   eHome Infrared Receiver (USBCIR)    c:\windows\system32\drivers\usbcir.sys Kernel Driver   No       Manual            Stopped           OK      Normal No       No
    usbehci Microsoft USB 2.0 Enhanced Host Controller Miniport Driver  c:\windows\system32\drivers\usbehci.sys            Kernel Driver   No       Manual Stopped           OK      Normal No       No
    usbfilter            AMD USB Filter Driver           c:\windows\system32\drivers\usbfilter.sys          Kernel Driver   No            Manual Stopped           OK      Normal No       No
    usbfltr   Razer Copperhead Driver         c:\windows\system32\drivers\copperhd.sys       Kernel Driver   No       Manual            Stopped           OK      Ignore  No       No
    usbhub Microsoft USB Standard Hub Driver    c:\windows\system32\drivers\usbhub.sys           Kernel Driver   No            Manual Stopped           OK      Normal No       No
    usbohci Microsoft USB Open Host Controller Miniport Driver  c:\windows\system32\drivers\usbohci.sys          Kernel Driver   No       Manual Stopped           OK      Normal No       No
    usbprint            Microsoft USB PRINTER Class           c:\windows\system32\drivers\usbprint.sys          Kernel Driver   No            Manual Stopped           OK      Normal No       No
    usbstor USB Mass Storage Driver        c:\windows\system32\drivers\usbstor.sys           Kernel Driver   No       Manual            Stopped           OK      Normal No       No
    usbuhci Microsoft USB Universal Host Controller Miniport Driver         c:\windows\system32\drivers\usbuhci.sys            Kernel Driver   No       Manual Stopped           OK      Normal No       No
    uwbusb            UWB Bus Control USB-Miniport Driver          c:\windows\system32\drivers\usbuwbmini.sys    Kernel Driver   No       Manual Stopped           OK      Normal No       No

    Did you ever get this resolved? I am having the same problem and have tried just about everything for my dv9000.

  • JMF and Windows 7

    I have a program using JMF which worked fine on XP and Vista but is behaving very oddly on Windows 7.
    The program displays two mpg files synchronised with each other and I also control the playback speed. This has worked fine for 18 months.
    On Windows 7 I still see two videos but the speed control doesn't work and one or other of the videos (appears random which one) splits vertically in the middle and I see it compressed both above and below the split. Is anyone else having problems with JMF and Windows 7?
    jdk 1.6.0_13
    jmf 2.1.1e
    Heaps of memory - 4Gb
    Edited by: Leo--- on Nov 1, 2009 9:32 PM
    Edited by: Leo--- on Nov 2, 2009 11:53 AM

    The last version of Windows that JMF lists as supported is Windows 2000.
    Most of the codec support in the Windows Performance Pack are native codecs, meaning they're precompiled DLL libraries. DLLs from one Windows version often times aren't compatible with any other Windows versions, so it's actually quite amazing JMF worked with XP or Vista, at all.
    It sounds like what you're experiencing is simply DLL incompatibility using Windows 5 libaries on a Windows 7 system...

  • Windows 8.1 on U300S: No bluetooth and webcam

    I've just updated my U300S to Windows 8.1. Unfortunately, both the bluetooth adapter and webcam fail to show up in the device manager.
    Trying to install the older Windows 8 drivers doesn't help either. 
    Is Lenovo going to provide dedicated 8.1 drivers in the near future? Or can I find compatible drivers someplace else?

    check this FAQ
    maybe this laptop didn't ready yet for Windows 8.1
    http://download.lenovo.com/lenovo/content/windows8-1/upgrade/ideapad/index_en.html

  • Javafx use jmf and capture audio device

    Hello, I noticed a problem with the use JavaFX and Java Media Framework (JMF), in a project javafx call Java classes using JMF, but are not recognized PC audio devices, in fact when I executed 's the code CaptureDeviceManager.getDeviceList (null), displays the error: "could not commit protocolPRefixList", without recognizing any audio device. Instead I call if my application using JMF, outside of a JavaFX project, the devices are found and everything works properly, perhaps this problem depends on the security settings of JavaFX, or inability to use JavaFX is that jmf interfaces with audio and video devices?
    thanks for the help

    I'd use jmf and javafx but it was not for capture devices.
    If you use jmf there are native libraries.
    The thing i found was about the java.library.path wich is overriden when you start javafx that jmf can't load approriate libs.
    Try to compare the System.getProperties for java and javafx then you should find where is the problem.

  • JMF and Darwin Streaming Server.

    I have darwin streaming the sample files.
    I use JMF to connect to darwin.
    The connection is made, The server knows Jmf is connected , the server streams, verified with packet monitor.
    The problem is that JMFStudio just does not start playing the video.
    Any one know why, or have it working??

    One strange thing I noticed, is that while monitoring jmfstudio transmit to jmfstudio across network,
    I use ETHEREAL to monitor the packets, and ports being used. ETHEREAL usually just picks JMF RTP packets as UDP, which is right, but.....
    DSS5 even though JMF is connected across lan to DSS5 the picture does not show.
    WHile monitoring the packets, ETHEREAL picks the DSS5 packet s as RTP and every 20th RTCP.
    So, what i am thinking is the DSS5 RTP packetizer is of better quality than JMF, and the result is that JMF is not fully aware of the 'true' specifications of RTP.
    maybe......

  • No image but screen backlight and webcam working perfect

    I own an 13' macbook pro mid 2010 and i got a problem with the display actually my Lvds connector was damaged on my logic board and got it changed but now my screen backlight and webcam only are working and i dont have any image on my display. i can toggle my backlight on and off but i dont have any image on my display. i am using an external monitor as display for the time being. help pls.

    Ask whoever changed your Lvds connector to finish the job correctly.  They will likely want to know about and correct your problem with their service.

  • Recommend Monitor and Webcam?

    Hi
    I have never bought a mac and have little computer literacy. I want to buy a mac mini and want a suggestion for ~ 20-22" monitor and webcam. Is the agent v4 webcam any good?
    thanks

    Hey, Craig. I was shopping for a new monitor too. My first question would be what would you mainly use the mini for? Are you gonna use it for graphics/photography or general use (eg. internet/movies)?
    Here's a good lcd guide I usually go to get the latest on what's out there.
    http://forums.anandtech.com/messageview.aspx?catid=31&threadid=2049206&enterthre ad=y
    Personally I was going to get a Dell 2209WA for the best price on an ips type lcd monitor.
    I'm afraid I haven't kept up with webcam tech. I'd look around to see what people are buying at some online retailers.
    Message was edited by: Kl l

  • IChat, MSN and webcam support

    Hi all and specially the iChat Apple people here.
    I've bought a Mac Mini last weekend and i'm already disappointed. iWeb makes images too big (replacement any old webdesigh tools), Safari works with only 50% of the sites (alternative Firefox), iChat doesn't work with MSN and webcam (alternative Mercury), etc (what's left of the integration between the built-in applications?).
    Anyway, i'm in the iChat forum now.
    When is Apple going to make iChat MSN Messenger compatible and when is iChat going to support USB webcams?
    Thanks,
    Ton.

    "When is iChat going to support USB webcams?"
    You can use a USB webcam with iChat using a 3rd party
    application that can be found here:
    http://www.ecamm.com/mac/ichatusbcam/
    But does that work with the Jabber protocol?
    I think that Jabber doesn't support webcam in MSN transport, but i may be wrong there.
    Ton.

  • Not able to recognize any video/audio devices using jmf and java soun

    Hi ,
    I need one help from your side.
    Here I am expecting some clarifications from you. Before that let you my environement.
    My working environment :
    Eclipse tool and added jmf jar to my project I did not do any thing more.
    If any thing I need to do just let me know. My target platform is MAC & UBUNTU.
    Please bare with my questions.
    1) I am not able to recognize any video/audio devices using jmf and java sound APIs on My system.
    ( I checked with the app mentioned in the http://www.java-forums.org/new-java/11201-jmf-cannot-connect-device.html )
    Do we need any administrives rights for our working PC.
    What is the procedure/ setup I need to follow from a java application to enable particular audio/video device since I dont about end-user system setup right.
    If possible send some sample code to recognize /r detect audio device ( voice input ). It should run on both MAC and UBUNTU.
    2) I run the one sample audio recording application of this link (http://www.jsresources.org/examples/SimpleAudioRecorder.java.html) which is provided by YOU.
    I got output audio file and able to hear voice on UBUNTU system but not able to hear voice on MAC system.
    I heared that default line in ( audio setup of the sys) is wont take any voice data on MAC.Why I made this stmt means we are getting false when using isSupported methods of JAVA SOUND API.
    ( like for TragetdataLine ...i,e, all ports are getting false)
    I have one sample audio recording app implemented by QUICKTIME API. In this case also he taking audio ftom device only using quicetime API.
    With that we are able to record and hear audio ( voice input --> not line in , external device we added some thing like SSB...)
    3) In case of Video capturing DataSource, Streams are implemented by PullBufferDataSource , PullBufferStream intefaces used.
    In case of Audio capturing DataSource, Streams are implemented by PushBufferDataSource, PushBufferStream intefaces used.
    Can you explain the reasons ? I gone through API but i am not clear.
    HOPE I WILL BE CLARIFIED EVERY THING FROM YOU.
    Thanks
    RamaRao.G

    Hi ,
    I need one help from your side.
    Here I am expecting some clarifications from you. Before that let you my environement.
    My working environment :
    Eclipse tool and added jmf jar to my project I did not do any thing more.
    If any thing I need to do just let me know. My target platform is MAC & UBUNTU.
    Please bare with my questions.
    1) I am not able to recognize any video/audio devices using jmf and java sound APIs on My system.
    ( I checked with the app mentioned in the http://www.java-forums.org/new-java/11201-jmf-cannot-connect-device.html )
    Do we need any administrives rights for our working PC.
    What is the procedure/ setup I need to follow from a java application to enable particular audio/video device since I dont about end-user system setup right.
    If possible send some sample code to recognize /r detect audio device ( voice input ). It should run on both MAC and UBUNTU.
    2) I run the one sample audio recording application of this link (http://www.jsresources.org/examples/SimpleAudioRecorder.java.html) which is provided by YOU.
    I got output audio file and able to hear voice on UBUNTU system but not able to hear voice on MAC system.
    I heared that default line in ( audio setup of the sys) is wont take any voice data on MAC.Why I made this stmt means we are getting false when using isSupported methods of JAVA SOUND API.
    ( like for TragetdataLine ...i,e, all ports are getting false)
    I have one sample audio recording app implemented by QUICKTIME API. In this case also he taking audio ftom device only using quicetime API.
    With that we are able to record and hear audio ( voice input --> not line in , external device we added some thing like SSB...)
    3) In case of Video capturing DataSource, Streams are implemented by PullBufferDataSource , PullBufferStream intefaces used.
    In case of Audio capturing DataSource, Streams are implemented by PushBufferDataSource, PushBufferStream intefaces used.
    Can you explain the reasons ? I gone through API but i am not clear.
    HOPE I WILL BE CLARIFIED EVERY THING FROM YOU.
    Thanks
    RamaRao.G

  • Problem with  M-JPEG by using JMF and JPEGCodec .

    Hi, there,
    I want to implement a M-JPEG using JMF and JPEGCodec, is that possible?(I already been trapped)
    My problem is I have a video clip which is a AVI file, the video format is following:
    Video format: RGB, 160x120, FrameRate=14.9, Length=57600, 24-bit, Masks=3:2:1, P
    ixelStride=3, LineStride=480, Flipped.
    I already convered a frame to an Image object(video format with JPEG and CVID doesn't work) ,
    I can also convert this Image back as a Buffer, It works fine with me .But to use JPEGCodec( provided by com.sun.image.codec.jpeg ) I need to convert an Image to a BufferedImage, I use the following defination:
    BufferedImage   bImage = new BufferedImage(frameImage.getWidth(null), frameImage.getHeigh(null),BufferedImage.TYPE_INT_RGB); It seems work, But when I use JPEGImageEncoder to encoder this bImage and save as a jpg file,
    everything is black .
    I also need to cast BufferedImage to an Image: frameImage = (Image) bImage; then I convert frameImage back to Buffer.My video clip still running , but every frame now became black .
    can someone help me? thanks in advance.

    I solved this problem . But I met a new problem.
    I converted the above video clip into a JPEG and I want to create a DataSink for it. the messege is:
    Video format: JPEG, 160x120, FrameRate=12.0, Length=3574
    - set content descriptor to: AVI
    - set track format to: JPEG
    Cannot transcode any track to: JPEG
    Cannot create the DataSink: javax.media.NoDataSinkException: Cannot find a DataS
    ink for: com.sun.media.multiplexer.RawBufferMux$RawBufferDataSource@2b7eea
    Transcoding failedHope some Java Experts can help me.
    Regards.

  • Access to microphone and webcam

    Hi,
    I need to access to microphone and webcam with Alchemy,
    writing c/c++ code.
    I know that is possible in ActionScript using classes Camera
    (flash.media.Camera) e Microphone (flash.media.Microphone), but is
    it possible also in Alchemy?
    Can you help me?
    Thanks in advance,
    Amsicora

    @pratfull
    It sounds like you're porting an existing C application.
    At a high level you need to modify the codebase so it plays
    nicely in the Flash sandbox. Remember, the end result of your
    Alchemy project is a Flash application, so you'll need to remove
    all platform-specific code.
    This means eliminating your application's dependence on the
    Windows API. Rewrite any dependencies to access system resources in
    a flash-friendly way.
    If StartCamera is the only function that depends on the
    Windows API, then remove windows.h and rewrite the body of that
    function. To provide the necessary camera functionality you could
    call out to a static AS3 method or write the logic in C. (See
    snippet below.)
    @amsicora
    The following code creates a ByteArray. You could use a
    similar approach to get a reference to Camera.
    // Create a ByteArray in C
    AS3_Val buffer_NS = AS3_String("flash.utils");
    AS3_Val buffer_class = AS3_NSGetS(buffer_NS, "ByteArray");
    AS3_Val buffer_array = AS3_New(buffer_class, AS3_Array(""));
    AS3_Release(buffer_NS);
    AS3_Release(buffer_class);

  • JMF and SWT

    This has probably been discussed a million times but I'm really struggling with it. I'm creating an SWT application built on the eclipse rcp, and I'm trying to add a video player to a view.
    I have been trying to add a MediaPlayer bean to the view, that will for the time being, just play a short clip from my hard-drive. I've created a new AWT frame for it to live in, and have successfully managed to add this to the view.
    However, when I try and add my MediaPlayer bean, I am faced with the following exception:
    java.lang.NoClassDefFoundError: javax/media/bean/playerbean/MediaPlayerThe jmf.jar has been added to my project, and I have added the following to my product VM arguments:
    -Djava.library.path=C:\\WINDOWS\\system32Can anyone help me out with fixing this problem?

    Did you eventually get this to work?
    I am looking at developing a simple bespoke player using SWT and JMF and was wondering if you could give me any pointers to start,
    Thanks
    Jonathan

Maybe you are looking for