Using JMF with JBuilder

I was trying to use JMF with JBuilder 2005 but didnt know how to configure the libraries. I asked many people but no one could help me. I just found a web site about this problem so i would like to share it with those who are facing the same problem. hope it will help.
check http://www.computer-logic.net/javafaq/JFAQ_MediaFiles.htm

put the two jar files,jdom jar and xerces.jar files into the resourec in jbuilder.sorry if i am not clear in the answer.
cheers

Similar Messages

  • Using JMF with applet

    Hello,
    I've got an applet that consumes a lot of CPU. I'm studying to migrate this applet to a pda, but it's not enough cpu for it. I'm reading JMF docs and I decide to generate a movie with the output of an applet. �If it's possible? My idea is to create the movie on the server. I can modify my applet to avoid the use of the applet inheritance and then render the output to an standard movie format. After I will send the movie to the browser
    You can see the applet here. Click on View route 3D under the flash movie.
    http://www.tmb.net/vullanar/en_US/resultatcerca.jsp?tipusrepre=0&origenx=31514.420&origeny=82758.000&descripcioorigen=L1+-ARCDE+TRIOMF&destix=34704.550&destiy=87378.460&descripciodesti=L2+-ARTIGUES-SANTADRI%C0&tipustransport=0&numtransbords=2&tempscaminant=20&velocitatcaminant=1&tipushora=1&dia=27&mes=05&hora=12&minut=22&idioma=en_US&operador=TMB&poblacioorigen=1&poblaciodesti=1
    Thanks in advance,
    David B.

    passionforjava2 wrote:
    ...I have issues with applet unable to transmit voice using JMF. i know it is a security issue. As the error on the console says
    java.lang.RuntimeException: No permission to capture from applets
    Error : Couldn't create DataSourceWhen JMF is installed, it generally offers a checkbox to allow or deny 'capture in applet'. By default it is not checked, and if the user goes with that recommendation, I am not sure that anything will overrule that.
    In a folder iPhone/myphone/What is the URL where we can visit this applet?
    .. i have applet embedded html file along with .jar files with required classed and applet signed. Are you prompted to trust the digitally signed code? You can see the dialog I mean by visiting the applet linked from [http://pscode.org/test/docload/].
    ..Along with that .jar i do have jmf.jar and java.policy.applet file and jmf.properties file . Forget the policy files, they are a waste of time, and completely impractical for end users.

  • Using JMF with two audio cards

    Hello,
    Is it possible to use two audio cards and have JMF address them independently. I'd like to be able to reference one for recording audio and the other for audio playback (simultaneously).
    Thanks,
    Ben

    It's definately possible, but you may have to interface with JavaSound to do it.
    Theoretically, you should just be able to do javasound://0 for one, and javasound://1 for the other. No guarentees, though. You might have to wrap around JavaSound directly to get that level of control.

  • How can I use JMF with IPv6 ? (Help me please)

    I have to develop VoIPv6 application. Then I decide to use Java language and JMF to implement it.
    I tried to run AVTransmit2,AVReceive2 and AVTransmit3,AVReceive3,RTPSocketAdapter, they're work in IPv4 but not work in IPv6.
    So I tried to solve this problem by searching from websites.
    One suggestion is adding the -Djava.net.preferIPv6Addresses=true when using the java command. But it doesn't work.
    Another suggestion is modify the RTPSocketAdapter, I have read this source code but I have no idea to modify it.
    So if anyone has an idea to solve my problem, please advise me please. Your answer will be appreciated.
    ================================================
    I tested on WindowXP (already install IPv6), jdk1.5, JMF2.1.1e.

    Siri is not on the iPad 2.

  • Using JMF with SWT

    I am developing a eclipse RCP application which makes use of the SWT toolkit. The application would be playing some media files. So i would like to make use of the JMF media player within SWT . How can I do this?

    Ok it's all a matter of what run as SWT application do
    it sets -Djava.library.path to the path of the SWT dlls
    so we can make it point to the jmf Dlls path
    goto Run..>Arguments>VM Arguments
    then add
    -Djava.library.path=.\\jmfdllswhere jmfdlls is folder contains ALL DLLs inside your project
    or easily if you have installed jmf by installer
    -Djava.library.path=C:\\WINDOWS\\system32I tried it it works
    Note : this is applied when using any library that use native codewith swt e.g. jacob
    this solution is from this thread
    http://eclipsezone.com/forums/thread.jspa?threadID=80055
    And this
    http://eclipsezone.com/forums/thread.jspa?threadID=28020

  • Using JDom with JBuilder?

    hi there
    I am trying to create a Jdom project using JBuilder 4.0. how do I set up my enviroment variable so that JBuilder will find the correct path to import Jdom classes?
    thank you

    put the two jar files,jdom jar and xerces.jar files into the resourec in jbuilder.sorry if i am not clear in the answer.
    cheers

  • Using JMF with FOBS4JMF

    Hi there,
    I installed Fobs4JMF to extend JMF for more Codecs. In JMStudio everything works fine, but it doesn't work within my applications. A Player cannot be found for the media files. Do I have to implement the codecs within my application in some way?
    Thanks for your help!
    Tim

    JMF doesn't support MP4 or FLV videos, the support for those are coming from FOBS4JMF, which is a 3rd party add-on to JMF. It's the policy of these Sun forums that 3rd party add-ons and libraries are not supported here.
    As such, you'll need to get FOBS4JMF support from the FOBS people.

  • JMF with Fobs4jmf:  Problem getting supported formats

    I'm trying to use JMF with fobs4jmf to try stitching together video files into a single file. Fortunately, I found a sample program to do just that in the SDN website (http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Concat.html).
    I copied and pasted the Concat.java class in a new Eclipse Java class, set up the classpaths, and tested it. (I've gone through the pain of setting up and resetting classpaths so that the JMF diagnostics is able to detect the correct JMF installation in my machine).
    However, in the tryMatch method of Concat.java, I am getting an empty array of Format objects, represented by the "supported" variable, during a call to the following:
    {color:#0000ff}TrackControl tc = pInfo[0].tracksByType[type][trackID].tc;
    Format origFmt = tc.getFormat();
    Format newFmt, oldFmt;
    Format supported[] = tc.getSupportedFormats();
    for (int i = 0; i < supported.length; i++) {
    if (supported[i] instanceof AudioFormat) {
    // If it's not the original format, then for audio, we'll
    // only do linear since it's more accurate to compute the
    // audio times.
    if (!supported.matches(tc.getFormat()) &&
    !supported[i].getEncoding().equalsIgnoreCase(AudioFormat.LINEAR))
    continue;
    {color:#000000}Here's my problem: While on debug mode, I see that the "supported" variable shows an empty array, when I look deeper in the TrackControl tc variable and look the its supportedFormats instance variable, I can see that it has a value. For my testing, I used a .mov file and the supportedFormats variable contains an {color:#0000ff}AudioFormat{color} with the value {color:#0000ff}mp4a, 32000.0 Hz, 16-bit, Stereo, BigEndian, Signed, FrameSize=32 bits{color}.
    {color}
    {color:#000000}I can't get past through this hurdle for now. Why am I getting an empty array of Format objects when the TrackControl tc variable actually contains value in its supportedFormats property?
    I'd appreciate any help on this matter.
    Anthony
    {color}
    {color}

    I again don't have my code in front of me, but I did take a look at the sample code my code is based on...
    Format format = tracks.getFormat();
    if (tracks[i].isEnabled()) {
    supported = tracks[i].getSupportedFormats();
    Just a shot in the dark, but perhaps getSupportedFormats returns the empty set when the TrackControl object is disabled?
    Try enabling the TrackControl before you try to get its supported formats, and see if that changes the behavior in any sort of meaningful way?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • JMF with IPv6

    Hello!
    I am trying to solve the MediaLocator problem wirh JMF and IPv6. I read the solution for JMF with IPv6 allready brought up in this forum and the article 'http://www.ctie.monash.edu.au/DSS-IPv6/jmf-ipv6.htm', but it is not working.
    I checked all hints, and all my IPv6 settings like reverse lookup on my machine... but I still get the message 'Cannot create the DataSink: java.io.IOException: No Valid RTP MediaLocator
    Failed to create a DataSink for the given output MediaLocator' when i try to transmit a rtp stream.
    I am using Linux with working (allready tested), Java 1.5 and JMF2.1.1e
    Does anybody has a suggestion how to solve my problem and how to use JMF with IPv6.
    Thanks
    Adam

    Hello!
    I am trying to solve the MediaLocator problem wirh JMF and IPv6. I read the solution for JMF with IPv6 allready brought up in this forum and the article 'http://www.ctie.monash.edu.au/DSS-IPv6/jmf-ipv6.htm', but it is not working.
    I checked all hints, and all my IPv6 settings like reverse lookup on my machine... but I still get the message 'Cannot create the DataSink: java.io.IOException: No Valid RTP MediaLocator
    Failed to create a DataSink for the given output MediaLocator' when i try to transmit a rtp stream.
    I am using Linux with working (allready tested), Java 1.5 and JMF2.1.1e
    Does anybody has a suggestion how to solve my problem and how to use JMF with IPv6.
    Thanks
    Adam

  • How o use JMF?

    can someone tell me how to use JMF with particular programs?
    Thanx..:)

    i also have similar problem. how i use jmf in develop a program to capture image with webcam and capture it.wat should i do before this stage.thanks.....

  • How to use ffmpeg with jmf

    I am trying to use ffmpeg with jmf. Do any one have any idea how to do it.

    Get binary distro and follow Manual Installation section of http://fobs.sourceforge.net/f4jmf_first.html

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

  • Using debug mode with jbuilder 4 (or other tool) and wl 6.0

    Hello,
    I would like to know if there is a way to use jbuilder environnement to
    debug ejb deployed on WL. I would like to be able to set break points into
    my source code and be able to display variables values.
    If it is not possible with jbuilder, is it possible with an other tool ?
    If not, how can you debug ejb ? For exemple if I want to be sure a specific
    line has been callde, do I need to stop my server, insert a system.out,
    redeploy my ejb and restart my WL or is there a more simple way to do it ?
    Thank's.
    Nicolas.

    Hello,
    I would like to know if there is a way to use jbuilder environnement to
    debug ejb deployed on WL. I would like to be able to set break points into
    my source code and be able to display variables values.
    If it is not possible with jbuilder, is it possible with an other tool ?
    If not, how can you debug ejb ? For exemple if I want to be sure a specific
    line has been callde, do I need to stop my server, insert a system.out,
    redeploy my ejb and restart my WL or is there a more simple way to do it ?
    Thank's.
    Nicolas.

  • How to render audio with sample rate 48000hz using jmf

    hi,
    In my application i need to play the audio with jmf player with sampling rate 48000hz. but i found that jmf player plays the audio with sampling rate of 44100hz only.but my application needs to play the audio with sampling rate of 48000hz .please help me how to do this using jmf .
    thanks in advance,

    hi,
    In my application i need to play the audio with jmf player with sampling rate 48000hz. but i found that jmf player plays the audio with sampling rate of 44100hz only.but my application needs to play the audio with sampling rate of 48000hz .please help me how to do this using jmf .
    thanks in advance,

  • Problem with Transmitting media using JMF

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

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

Maybe you are looking for

  • Protocol Error, WL 5.10 Sp10 with Oracle 8.1.7 on Solaris 8

    When i start the weblogic server the server can't make a connection Pool to the oracle 8.1.7 dbms. When i try with the same configuration to connect to an oracle 8.1.5 dbms the server create an connection pool. The errornessage is following text java

  • Opened file content left be hidden or invisible, only on a specific workstation. Maybe a setting mistake!

    Hello community, a stupit mistake occures since a couple of days: The content of the FM12 file stay hidden after opening of the file! This mistake occur on each file my employeer like to open, all other employeers can open the files correctly. I am n

  • Can Quicktime on a Macbook Pro play DVCpro HD without dropping frames?

    I know this is a cardinal forum sin, but I think I posted this in the wrong place to start. Hey All, I'm trying to output a 40min DVC Pro Hd 60, 1280x720 video to a projector for a large group. I'm using Quicktime 7.2 at full screen playing back on t

  • Handling Special Character in SAP PI

    Hi, I have a file to proxy scenario where I have used a complex UDF to get proper data at receiver side. Now, from the sender side I am getting  some special characters in the files and due to this the whole file is getting failed with mapping error.

  • Put Mac to Sleep - Shutdown by itself

    When I put my Mac to sleep at night, my Mac somehow shut itself down during the night, so I have to power it up again during the day. This happen more often then not. I am using an UPS. Any idea why this is happening? Thanks, Sherman