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

Similar Messages

  • "recording device already in use," audigy2 platinum and windows 2

    I recently did a clean install of windows 2000 sp4, and now I get some sort of "recording device already in use" error with 3 different recording programs. I installed the drivers from the CD with the 'just drivers' option. I already tried an uninstall/reinstall and the problem occurs with no other non-windows programs running. I found a few other instances of the problem in the forum, but no solutions. Any ideas?

    I dont understand this reply, what has mute microphone to do with this problem ? The problem i have is using more than 1 input at a time.
    I changed to the integrated sound card and now everything is fine, i can mix limitless of inputs without the soundcard telling me its busy. Also the static noise on high volumes are also gone now ........
    Ive always bought the most expensive sound cards from creative but when i get better sound with the integrated i have no choice anymore. So tired of all the problems with the X-Fi series.

  • Dolby Digital Live : Device already in use, how to enable i

    Hello,
    I bought Dolby Digital Live yesterday, installed it and activated it on my X-Fi Platinum, but I have a problem. All my drivers are updated, but whenever I try to activate DDL in the Volume Panel or Audio Console, it says that the SPDIF device is already in use.
    I tried ending most processes, but the problem is the same, it seems that something is internally using my SPDIF output so that DDL can't be activated. (I'm using Vista Business 32 bits).
    It's also impossible to test tones on the SPDIF output as Windows also says it's already in use, that's weird.
    Anyone knows how to fix this
    Thanks.

    Ok it worked, thank you ^^
    This is what I did (complete reinstall of Creative suite was not needed) :
    - Uninstalled Creative X-Fi through Device Manager (right click on it, then Uninstall and Delete driver option), without rebooting
    - Refreshed modifications in Device manager and said "No" to search drivers for multimedia device
    - Installed latest X-Fi drivers without rebooting
    - Activated Dolby Digital Li've with a right click on the Volume Panel tray icon
    - Rebooted?as the sound was only stereo + echo, and now it works perfectly
    Concerning DDL, yes, it's only 5., and Creative plans to "give" DTS Connect the same way they did for DDL for old X-Fi.

  • What capture device can i use with ps3

    What type of capture recording device can be used with my iMac and PS3?

    Hello Bill,
    Sony Creative Softwares have their own separate community and so are best qualified to address any issues or questions you may have on creative softwares. It is a peer support area where you can share tips and advice with other Sony Creative Software product users:
    http://www.sonycreativesoftware.com/forums
    Thank you for your post.

  • What capture device can be used with Elements 3.0

    I want to capture video from my Hitachi video camera and would like to know what I can use to capture the video using my Premiere Elements 3.0.

    I'm assuming that your camcorder is an analog one. If it is digital you should be able to capture it directly via FireWire, DVD or memory card. This will help: What is the best device for capturing analog video?
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

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

  • Use a capture device twice at the same time?

    I have write a application using JMF. But I have a big question that how can I use a capture device several times at the same time????
    For example:
    I create a player to play video from my webcam on my PC ,and then I want to send the video stream from my webcam to another PC at the same time. But I failed--only one task can work.
    For example:
    1, I write a class Player and another class RTPTransmit. Then I send the same medialocator to two of them. Then there will be a exception said that capture device is in use. And only one task can work.
    2, I write a class Player and another class RTPTransmit. Then I use :
    dataSource1 = Manager.createDataSource( locator );
    dataSource2 = Manager.createCloneableDataSource( dataSource1 );
    then I send dataSource1 to Player object to play video on local PC and send dataSource2 to RTPTransmit to send video to another PC. But only one task will work too.
    My question is that how can I use a capture device several times at the same time???
    I have tried several ways and sill can not find a method. If anyone know how to do,could you tell me please? Thank you very much.

    Yes ,I use Manager.createCloneableDataSource() method to create the clone of the datasource ,but it can not work too. The java doc illustration is :
    Creates a cloneable DataSource. The returned DataSource implements the SourceCloneable interface and enables the creation of clones by the createClone method.
    If the input DataSource implements SourceCloneable, it will be returned right away as the result. Otherwise, a "proxy" DataSource is created. It implements the SourceCloneable interface and can be used to generate other clones.
    When createCloneableDataSource is called on a DataSource, the returned DataSource should be used in place of the original DataSource. Any attempt to use the original DataSource may generate unpredictable results.
    It means that if I clone a datasoure from original datasource, then the createCloneableDataSource() method will return a datasuouce implements interface SourceCloneable, right ? I see that the intereface SourceCloneable has a abstract method createClone() , but when I use createCloneableDataSource() to get a source clone, I find that I can not use method createClone(), why??? For example: data1 is the
    orginal datasource. Then:
    DataSource data1 = Manager.createDateSource( locator );
    DataSource data2 = Manager.createCloneableDataSource( data1 );
    now data2 is the "proxy" datasource which implemnets the interface, right? But I can not use data2.cloneClone() ,why? Then I write the fllowing code:
    DataSource data3 = Mangaer.createCloneableDataSource( data2 );
    DataSource data4 = Manager.createCloneableDataSource( data2 );
    playOnLocalPc = new PlayOnLocalPc( data3 );
    playOnLocalPc.start();
    rtpTransmit = new RTPTransmit( data4 );
    rtpTransmit.start();
    PlayOnLocalPc and RTPTransmit is my own class to play or transmit video stream. But they can not work at the same time. If I play video from webcam on local PC and then start to transmit stream to other PC , the play window will become black. Why?????It is too strange. Dose anyone know the reason ,please tell me, thank you very much. Giving some example code will be better:) Thank you again!

  • Playing video from a capture device - Out of memory for video buffers?

    Hello guys, I'm having problems playing video from a video capture device when not using JMStudio. When I use JMStudio, the video plays real time with no problems, but when I use code taken from a java book which is a simple Media Player, I get the following error:
    "Error is Error: Out of memory for video buffers."
    My capture device is working and I don't know why i get this error when trying to watch the video feed from a program other than JMStudio. I also tried different code that has worked in the past with the same exact capture device and I still get the same error. Please help, I have no clue at this point. The code for the simple media player is below, it's taken out of the book "Java: How to Program (4th edition)":
    Thanks in advance, I am very greatful
    Miguel
    device info: vfw:Microsoft WDM Image Capture (Win32):0
    When I type the locator, I am typing vfw://0, I also tried just vfw://
    and I get the same error.
    // Fig. 22.1: SimplePlayer.java
    // Opens and plays a media file from
    // local computer, public URL, or an RTP session
    // Java core packages
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    // Java extension packages
    import javax.swing.*;
    import javax.media.*;
    public class SimplePlayer extends JFrame {
         // Java media player
         private Player player;
    // visual content component
    private Component visualMedia;
    // controls component for media
    private Component mediaControl;
    // main container
    private Container container;
    // media file and media locations
    private File mediaFile;
    private URL fileURL;
    // constructor for SimplePlayer
    public SimplePlayer()
    super( "Simple Java Media Player" );
    container = getContentPane();
    // panel containing buttons
    JPanel buttonPanel = new JPanel();
    container.add( buttonPanel, BorderLayout.NORTH );
    // opening file from directory button
    JButton openFile = new JButton( "Open File" );
    buttonPanel.add( openFile );
    // register an ActionListener for openFile events
    openFile.addActionListener(
    // anonymous inner class to handle openFile events
    new ActionListener() {
    // open and create player for file
    public void actionPerformed( ActionEvent event )
    mediaFile = getFile();
    if ( mediaFile != null ) {
    // obtain URL from file
    try {
    fileURL = mediaFile.toURL();
    // file path unresolvable
    catch ( MalformedURLException badURL ) {
    badURL.printStackTrace();
    showErrorMessage( "Bad URL" );
    makePlayer( fileURL.toString() );
    } // end actionPerformed
    } // end ActionListener
    ); // end call to method addActionListener
    // URL opening button
    JButton openURL = new JButton( "Open Locator" );
    buttonPanel.add( openURL );
    // register an ActionListener for openURL events
    openURL.addActionListener(
    // anonymous inner class to handle openURL events
    new ActionListener() {
    // open and create player for media locator
    public void actionPerformed( ActionEvent event )
    String addressName = getMediaLocation();
    if ( addressName != null )
    makePlayer( addressName );
    } // end ActionListener
    ); // end call to method addActionListener
    // turn on lightweight rendering on players to enable
    // better compatibility with lightweight GUI components
    Manager.setHint( Manager.LIGHTWEIGHT_RENDERER,
    Boolean.TRUE );
    } // end SimplePlayer constructor
    // utility method for pop-up error messages
    public void showErrorMessage( String error )
    JOptionPane.showMessageDialog( this, error, "Error",
    JOptionPane.ERROR_MESSAGE );
    // get file from computer
    public File getFile()
    JFileChooser fileChooser = new JFileChooser();
    fileChooser.setFileSelectionMode(
    JFileChooser.FILES_ONLY );
    int result = fileChooser.showOpenDialog( this );
    if ( result == JFileChooser.CANCEL_OPTION )
    return null;
    else
    return fileChooser.getSelectedFile();
    // get media location from user input
    public String getMediaLocation()
    String input = JOptionPane.showInputDialog(
    this, "Enter URL" );
    // if user presses OK with no input
    if ( input != null && input.length() == 0 )
    return null;
    return input;
    // create player using media's location
    public void makePlayer( String mediaLocation )
    // reset player and window if previous player exists
    if ( player != null )
    removePlayerComponents();
    // location of media source
    MediaLocator mediaLocator =
    new MediaLocator( mediaLocation );
    if ( mediaLocator == null ) {
    showErrorMessage( "Error opening file" );
    return;
    // create a player from MediaLocator
    try {
    player = Manager.createPlayer( mediaLocator );
    // register ControllerListener to handle Player events
    player.addControllerListener(
    new PlayerEventHandler() );
    // call realize to enable rendering of player's media
    player.realize();
    // no player exists or format is unsupported
    catch ( NoPlayerException noPlayerException ) {
    noPlayerException.printStackTrace();
    // file input error
    catch ( IOException ioException ) {
    ioException.printStackTrace();
    } // end makePlayer method
    // return player to system resources and
    // reset media and controls
    public void removePlayerComponents()
    // remove previous video component if there is one
    if ( visualMedia != null )
    container.remove( visualMedia );
    // remove previous media control if there is one
    if ( mediaControl != null )
    container.remove( mediaControl );
    // stop player and return allocated resources
    player.close();
    // obtain visual media and player controls
    public void getMediaComponents()
    // get visual component from player
    visualMedia = player.getVisualComponent();
    // add visual component if present
    if ( visualMedia != null )
    container.add( visualMedia, BorderLayout.CENTER );
    // get player control GUI
    mediaControl = player.getControlPanelComponent();
    // add controls component if present
    if ( mediaControl != null )
    container.add( mediaControl, BorderLayout.SOUTH );
    } // end method getMediaComponents
    // handler for player's ControllerEvents
    private class PlayerEventHandler extends ControllerAdapter {
    // prefetch media feed once player is realized
    public void realizeComplete(
    RealizeCompleteEvent realizeDoneEvent )
    player.prefetch();
    // player can start showing media after prefetching
    public void prefetchComplete(
    PrefetchCompleteEvent prefetchDoneEvent )
    getMediaComponents();
    // ensure valid layout of frame
    validate();
    // start playing media
    player.start();
    } // end prefetchComplete method
    // if end of media, reset to beginning, stop play
    public void endOfMedia( EndOfMediaEvent mediaEndEvent )
    player.setMediaTime( new Time( 0 ) );
    player.stop();
    } // end PlayerEventHandler inner class
    // execute application
    public static void main( String args[] )
    SimplePlayer testPlayer = new SimplePlayer();
    testPlayer.setSize( 300, 300 );
    testPlayer.setLocation( 300, 300 );
    testPlayer.setDefaultCloseOperation( EXIT_ON_CLOSE );
    testPlayer.setVisible( true );
    } // end class SimplePlayer

    somebody? anybody? I know there are some JMF professionals in here, any ideas?
    I was reading the Sun documentation and it said something about increasing the JVM memory buffer or something? Well, i'm just clueless at this point.
    Help a brotha out!

  • 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

  • Unable to Initialize Capture Device - Works fine in iMovie

    Am using a Sony HDV HDR HC1E Pal Handycam
    Final Cut Pro 5.1
    QT Pro 7.1.3
    Works fine with cassettes in HDV - imports into FCP fine
    Am trying to import a cassette recorded on that camera in DV LP
    Works fine in iMovie
    Have deleted the QT packages and reinstalled QT
    Still am getting the 'Unable to Initialize Capture Device' message when using log and capture.
    Settings on camera
    VCR Auto (have also tried HDV or DV)
    iLink conversion off (i.e.don't convert hdv-dv)
    TV type 16:9 (have also tried 4:3)
    Component 1080i/576i also tried 576i
    Annoying thing is that works fine in iMovie but not FCP?!!
    Any help GREATLY appreciated!
    Thanks!
    Hannah
    iMac 20 Flat Screen G5 1.8Ghz 1.5GB SDRAM   Mac OS X (10.4.8)   200 GB and 120GB External Hard drives

    I would like to add the following in hopes that someone will come up with a solution. The problem lies somewhere in Quicktime and the FireWire capture. I have the exact same camera and problem, and can assure you it has nothing to do with cam settings or DV LP. Once your system is stuck in this HDV mode, it would seem that regular DV can not be used again. I also have 2 other DV cams that are not HD. One is PAL, one is NTSC. I would further add that my external FireWire iSight no longer works in any application. I do not receive error messages, I simply get the spinning beach-ball of death.
    I have a Dual G5 2.7 with 4 gigs RAM running FCP 5.0.4 on OS 10.4.8
    I have run Cocktail, rebuilt permissions and re-installed Quicktime 7.1.3 four times as per Apples tech article 301852
    I have used FCP Rescue 5 to clear preferences
    I have captured footage from both regular DV cams to iMovie and then added the footage to FCP. The footage plays on the screen of both DV cams flawlessly via FCP. (I can also capture HDV in iMovie as well)
    I have tried logging footage directly through the QuickTime application with both DV cams and my iSight and get the same beach-ball of death as FCP.
    Why can iMovie work with these devices flawlessly yet QuickTime can not.
    Why does it seem like the system is stuck in some kind of HD mode.
    Just to point out the obvious:
    I have no other FireWire devices other than the cameras and I only connect one at a time.
    I have shut down, disconnected and re-connected before attempting to use the devices.
    I have booted my G5 from a second system disk and everything (HDV cam PAL DV cam NTSC cam and iSight) function flawlessly on all the FireWire ports of my machine.
    I have worked with FCP for about 6 years and Macs for 20. I understand the easy set ups etc.
    Spent way too much time customizing my system to think about the clean install route, so I hope someone can shed some light on this.
    Thanks
    Lorne
    PowerMac Dual 2.7 GHz PowerPC G5 4 GB DDR SDRAM 400 GB and 250 GB Internal Drives   Mac OS X (10.4.8)  

  • 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

  • Java.io.IOException: Capture device in use

    I used jmf to create a video server that can send video to several client. when I test program with only client, it's ok. But,if I use more than 1 client, the program generate an exception:
    java.io.IOException: Capture device in use
    best regards

    java_developper wrote:
    I used jmf to create a video server that can send video to several client. when I test program with only client, it's ok. But,if I use more than 1 client, the program generate an exception:
    java.io.IOException: Capture device in useThen you've most likely designed your program wrong.
    If you're using more than one input DataSource in the case when you have more than 1 client, then you're doing it wrong.
    Assuming you're using the proper RTP infastructure, you'll just need to add each client as a target for the RTPManager. If what I just said doesn't make sense, then you're doing it wrong.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/apidocs/javax/media/rtp/RTPManager.html]
    Please see section 2, "Multi-Unicast Session"

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

  • 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

  • Capture device in use

    Hi,
    I am using jmf to capture device video, How I can test if the video device is in use or no?
    thinks

    I use the following function to create a clone data source.But I have an exception:IOException:capture device in use
    Can u help me?
    public DataSource initDevice()
    Vector formatsCatalog = new Vector();
    Vector audioDevices = new Vector();
    Vector videoDevices = new Vector();
    Vector devices = new Vector();
    // rcupration des priphriques disponibles
    devices = CaptureDeviceManager.getDeviceList (null);
    CaptureDeviceInfo cdi;
    if (devices != null && devices.size() > 0)
    int devicesNum = devices.size();
    Format[] formats;
    for ( int i = 0; i < devicesNum; i++)
    cdi = (CaptureDeviceInfo) devices.elementAt (i);
    formats = cdi.getFormats();
    formatsCatalog.addElement(formats);
    // on spare les periphriques audio et vido
    for (int j = 0; j < formats.length; j++)
    if (formats[j] instanceof AudioFormat)
    audioDevices.addElement(cdi);
    break;
    else if (formats[j] instanceof VideoFormat)
    videoDevices.addElement(cdi);
    break;
    CaptureDeviceInfo cdiVideo;
    // on recupre l'unique device video
    cdiVideo = (CaptureDeviceInfo) (videoDevices).elementAt(0);
    // on recupere les formats disponibles
    Format[] video = cdiVideo.getFormats();
    // on slctionne un format
    format = video[3];
    System.out.println("Type: " + video[3].getEncoding() + " Data: " + video[3].getDataType());
    try {
    // on cr le DataSource
    ds = Manager.createDataSource(cdiVideo.getLocator());
    this.dsclone =(DataSource) Manager.createCloneableDataSource(ds);
    // ds= (DataSource) ((SourceCloneable)ds).createClone();
    return dsclone;
    catch (IOException ioe) {
    System.out.println("Capture device "+ioe);
    System.out.println("Capture device "+ioe.getMessage());
    catch (NoDataSourceException ndse) {
    System.out.println(ndse);
    return null;
    }

Maybe you are looking for

  • Calling repaint from other Class file.

    Hi, First of all i am pretty new to Java so I hope you understand what I am trying to explain.. I am trying to create an applet which draws some polygons on the screen. For the drawing of these polygons I have created another class which is located i

  • Can't install any app, unknown error

    i installed some apps in a 5800xm, but since yesterday i cant install any app: i got this http://img713.imageshack.us/img713/2329/234bcjd.jpg it say Installation failed, unknown error: 2148532241 I tried to reinstall ovi suite beta, and I restored th

  • Can't see audio waves in arrange

    Hi guys, The waves of my audio files in arange don't show. Instead there is a flat this line in the middle of the files, as if it were an empty audio file. When i double click a sample it opens up in sample editor where the waveform shows up fine. It

  • Unsupported color mode in Illustrator

    When a tif fle (color mode - lab) is placed in Illustator, an error message is displayed 'Unsupported color mode or depth. Only RGB, CMYK, Grayscale and Bitmap are supported'. How to avoid such errors and is there any property to accept tif files wit

  • Presentation without time

    Hi, basically im having trouble setting up a presentation without it being timed. So like in powerpoint you click to go onto the next slide, whereas in Captivate it is timed to go onto the next slide, is there anyway to remove the timeline bit out of