JMF and TV Capture on Linux

I am trying to write my own Java TV player application on a FC2 system. I have used the CaptureDeviceManager to find all available devices, but none come up. I have looked at the JMFRegistry, but there are no devices listed.
The card I have installed uses the bttv driver from Video4Linux and I can get TV to display using xawtv.
Does anyone have experience with TV Capture cards on Linux and JMF? I would like to know how I can get my device (or perhaps another device that does work) to work with JMF. All I have found so pertains to Windows only.
Jonathan Scott

I haven't gotten the sound to work at all. My main concern right now is getting the tuner to work in JMF. JMF provides an interface called "PortControl", and it seems the tuner should be controllable through a PortControl implementing class. However, where that class is, I have absolutely no idea. Here is a list of the controls I do get when I run my program.
control = class com.sun.media.codec.video.colorspace.RGBConverter$1$FPC
control = class com.sun.media.renderer.video.XLibRenderer
control = class com.sun.media.PlaybackEngine$BitRateA
control = class com.sun.media.PlaybackEngine$1
control = class com.sun.media.BasicJMD
control = class com.sun.media.PlaybackEngine$PlayerTControl
Jonathan Scott

Similar Messages

  • JMF and video capture card?

    i wanna ask how can i usea video capture card with the jmf and record video
    i try to detect my capture card but the jmf didnt detecte it please pleas help me

    hi,
    i use a tv-card with my camera through linking them with a composite cable. Also, my tv card has capturing capability and i use JMF to do a capture program with these tools and the result is good for me. The monitor.zip file wihich contains a sample of capturing and monitoring simultaneously exists on sun.com. I use it and it was very helpfull for me.
    JMF detects cards through its 'CaptureDeviceManager' which is a controller type object. If you specify like Vector devices = CaptureDeviceManager.getDeviceList(null) -> You will be get the list of appropriate devices on your pc.
    Regards,
    Erohan

  • JMF and supported capture resolution

    Hello
    I have got 1.3 mpx webcam and try to use it with JMF to capture video. The problem is that JMfRegistry and JMFStudio, not mentioning my own code, can't detect capture resolution higher than 640x480. Does JMF supports higher resolutions? or do I need to use other technology to access camera?

    v_vader wrote:
    Does JMF supports higher resolutions?I don't believe so, no.
    or do I need to use other technology to access camera?If you need higher resolution then you'll need to use other technology to access the camera, yes.

  • JMF and Linux Performance Pack

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

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

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

  • Anyone intall JMF on Red Hat Enterprise Linux ...

    Hello,
    I am setting up JMF on Red Hat Enterprise Linux (kernel-2.6.9-5.EL) and getting following errors when jmfinit is run.
    Warning:
    Name: HorScrollBar
    Class: XmScrollBar
    The specified scrollbar value is greater than the maximum
    scrollbar value minus the scrollbar slider size.
    JavaSound Capture Supported = false
    java.lang.Error: Can't open video card 0
    java.lang.Error: Can't open video card 1
    java.lang.Error: Can't open video card 2
    java.lang.Error: Can't open video card 3
    java.lang.Error: Can't open video card 4
    java.lang.Error: Can't open video card 5
    java.lang.Error: Can't open video card 6
    java.lang.Error: Can't open video card 7
    java.lang.Error: Can't open video card 8
    java.lang.Error: Can't open video card 9
    When I try to play a file using jmstudio.
    Following error appears in the command window:
    Failed to initialize audio for mpx.
    The file does not play, but the first frame of video is displayed and the timeline moves as if it were playing.
    The following is what appears in jmf.log
    # JMF Version 2.1.1e
    ## Platform: Linux, i386, 2.6.9-5.ELsmp
    ## Java VM: Sun Microsystems Inc., 1.4.2_08
    ## Player created: com.sun.media.content.video.mpeg.Handler@1ff0dde
    ## using DataSource: com.sun.media.protocol.file.DataSource@1901437
    !! DataLine not supported: LINEAR, 22050.0 Hz, 16-bit, Mono, LittleEndian, Signed
    This is first time I have had any problems setting up JMF on Red Hat.
    The file I am testing with is MPEG1 and I am able to play in on a Red Hat 8 system installed with JMF with no problems.
    I'm using j2sdk1.4.2_08 on both systems.
    I tried another system loaded with Red Hat Enterprise to make sure it was not specific to the system and the same errors occured.
    Any suggestions on solutions or troubleshooting would be appreciated.
    Thanks

    My guess is, Yes.
    Both ES and AS "flavours" of RHEL 2.1 or 3 are certified/supported (for 9.2). On x86, I think the main differences are licensing/support options and constraints on cpu/ram, not with the OS itself. (WS does however not have all the server packages)
    But I think we should not worry about 10g for a year or two... :)

  • 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

  • Preview and image capture don't save imported scanned image

    Hi. Both preview and image capture aquire the scanner and displays the image overview. But when proceeding
    to scan, the application simply hangs and no image is saved.
    Maybe some prefs file is corrupted. Tried removing the com.apple.Preview from ~/Library/Containers, but didn't help....
    What to do???

    Not sure if this is relevant:
    1) TWAIN-BRIDGE is installed otherwise mavericks won't talk to the scanner.
    2) recently added an HP printer (no scanner). Shouldn't conflict with the scanner driver, but then again.....

  • Preview and Image Capture Not Recognising Scanner

    Preview and Image capture have stopped recognising my networked Canon MX350 scanner.  It seemed to occur after I used PhotoScore to scan some sheet music but that could be coincidence.  I deleted the scanner driver and reinstalled it from the Canon website together with the MP Navigator software, and I am now able to scan from MP Navigator but not Image Capture or Preview.  I have run Software Update but no updates are available.

    Apple's official documentation only provides an information about printing by using this device - scanner is not listed. I would suggest to look for specific drivers on Canon's official webpage.
    OS X: Printer and scanner software available for download - Apple Support

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

  • How to install oracle 11g and 10g on same linux server.

    how can i install oracle 10g and 11g on same linux server ????
    10g database is already installed , i want to installed 11g on the same machine. How can i do this???

    Hi;
    how can i install oracle 10g and 11g on same linux server ????
    10g database is already installed , i want to installed 11g on the same machine. How can i do this???You may go wiht different mount point like to create /oracle11g and /oracle10g and you can choose related path for your installation.
    Please read:
    Managing multiple oracle home
    http://docs.oracle.com/cd/B12037_01/em.101/b12140/3_oui_oracle_homes.htm#i1005615
    http://docs.oracle.com/cd/B12037_01/em.101/b12140/3_oui_oracle_homes.htm
    Regard
    Helios

  • HT201302 Old iphone 3g has photos on it. When I plug into my imac iphoto and image capture only bring up photos in the camera roll. There were more photos on albums and photo library on the iphone that arent showing up in iphoto and icapture.

    My old iphone 3g has photos on it. When I try to get the photos off and onto my imac iphoto and image capture only bring up the camera roll. I have more pictures that arent on the camera roll there are albums and a photo library full of pictures that I want off of this dang phone. I have tried everything and I cant email them to myself because the service has been cut off of the phone. They are stuck on the phone there is there any way to get them off? Am I missing something.

    The iphone is not a storage/backup device.  It simply mirrors the selected content of the computer to which it is synced.
    Again, the photo sync is one way.
    Did you fail to maintain a backup copy of your old computer?
    Not good.  You can e-mail the photos from your iphone.  You do not need to have phoe service for this.  The iphone uses wi-fi.  The photos will never be of the original quality, as they are reduced when synced to iphone.

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

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

  • Guide for Tuning and Optimizing Red Hat Linux AS for Oracle9i Database

    I put together a step-by-step guide for tuning and optimizing Red Hat Linux Advanced Server for Oracle9i. It's my first draft version and I would appreciate any comments and feedback.
    The article
    "Tuning and Optimizing Red Hat Linux Advanced Server for Oracle9i Database"
    can be found at:
    http://www.puschitz.com/TuningLinuxForOracle.shtml
    The article
    "Oracle 9i Installation on Red Hat Linux 7.1, 7.2, 7.3, 8.0, and on Red Hat Advanced Server 2.1"
    can now be found at http://www.puschitz.com/InstallingOracle9i.shtml
    And both links for
    "Oracle on Red Hat Linux"
    can be found at
    http://www.puschitz.com/OracleOnLinux.shtml
    Werner

    Is this good for Redhat Linux 9.0 and not just the advanced server.
    If it is not could you please provide me the links to articles like,
    "Guide for Tuning and Optimizing Red Hat Linux for Oracle9i Database"
    "Guide for Tuning and Optimizing Red Hat Linux for Oracle9i App Server"
    "Guide for Tuning and Optimizing Red Hat Linux for Oracle9i Infrastucture"
    Thanks.

Maybe you are looking for