MP3Plugin

Hi
I am writing a Mdeia Player application and want it to support MP3 files. I have installed the latest JMF and then installed the MP3Plugin that is also provided. I ahve followed all of the intructions provided but now when I try to open a Clip object on any MP3 files I don't get an UnsupportedAudioFileException but instead I get a null Clip. Then when I try to do anything using this Clip I get a NullPointerException.
Does anybody know why this might be?
Many thanks
David Saunders

You know that mp3 is a proprietary format and using it for a game may make you liable for a payment? Maybe it is a small enough project it will be overlooked. OGG/VORBIS is a reputedly better encoding system, and open source. You might give it a look.

Similar Messages

  • JMF with mp3plugin - Mp3 jumps

    Hello, i'm new to this forum
    I have the following problem playing mp3s with the mp3plugin for JMF:
    Most mp3s seems to work, some seems to jump from location to location.
    I have tried most of this in JMStudio (as it's easy and fast to load new mp3s and test them)
    Most Mp3s are played correctly, but some dont really work. They jump from timestamp to timestamp. Sometimes there's a little sound before they start jumping, sometimes they jump instantly below the 1 sec. mark.
    So far, i couldnt guess whats the trigger for this behaviour. It doesnt seem to be the kbps or khz in which they are encoded or the lenght of the tracks.
    One example for this is the wired creative commons cd, which doesn't work.
    Thx for Help
    Edited by: kaoztik on Sep 2, 2008 4:13 PM

    i am working on a project about playing mp3 using jmf,
    could you email me your code to me? or send me some hint
    how you develop your application? thanx
    my email: [email protected]

  • Sound playback: no sound, abnormally high bitrate.

    I've been reading up on using JMF for simple sound playback all day, and I've seen countless examples that do the same thing I'm doing, but in every instance, I get absolute silence. Additionally, it seems that the read bitrate is higher than it should be, according to the control panel's properties dialog (e.g., 480Kbps for a 192Kbps mp3).
    The code always goes something simple like this:
        Player player = null;
        try {
          MediaLocator ml = new MediaLocator(new File("BGM.mp3").toURL());
          player = Manager.createPlayer(ml);
        catch (Exception e) { System.err.println("BGM messed up"); }
        if (player != null) {
          player.addControllerListener(p);
          player.start(); //this does realize and prefetch
        }I put some debug output statements in my controllerUpdate function, and it is indeed realizing, prefetching, and starting playback of the file. I have tried this with both wav's and mp3s (I have the mp3 plugin installed in addition to the JMF 2.1.1e itself), and have always gotten the same result - MediaTime progresses too fast, roughly 2.5 times faster than it should (5 seconds for every 2 real seconds), and I get no sound.
    At this point, after having tried at least 2 examples found online in addition to my own code, I'm convinced there's something up with my Java runtime in itself, not just my code... anyone have any experience with this kind of problem?
    System Info:
    OS: Windows XP Pro SP1
    Java Version: 1.5.0_02
    JMF Version: 2.1.1e (zip version [no performance pack], with mp3plugin added)
    Thanks in advance for any help.

    Do you use it in an Applet ?
    I'm also unable to play any sound with Java(TM) Plug-in 1.5.xx the
    plugin to all browsers nowadays.
    You mentioned you used it on Windows 98 SE.
    The old IE browser used the build in javaVM. It worked - just look at
    the java consol and you see a lot of warnings and errors -, but in the
    end it played video and sound.
    The only solution I found is to use Java(TM) Plug-in 1.4.xx. The
    'automatic search for update' box must not be checked, otherwise it
    will update to the newest Plugin and you face the same problem. If you
    want to place an applet on your homepage, just use video only - until
    now it works correctly on ALL PLATFORMS.
    There was a Bug Report 6245070 where I was asked as well to give an
    example a year ago, but this was all - no response at all. In this
    applets I used
    Content Type : video.quicktime
    Video Encoding : h263
    Audio Encoding : ULAW
    not even mpg3!!
    I tried to compile the whole JMF Version: 2.1.1e with J2SE 5.0 and
    Standard Edition 6 Beta. At one version I changed all the
    inconviences like the reserved words "enum" ..., and an other version
    with old style, which is possible with Standard Edition 6 Beta.
    It seem's the problem is not in the part you are able to compile. It
    seems to me it is in the sound.jar api, but I really don't know - just
    trail and error.
    Conclusion only JRE lower and until version 1.4.xx will work.
    It would be a pleasure to me if I'm wrong and there is a solution.

  • Streaming MP3 with RTP

    Hello,
    I am trying to implement a RTP server and a RTP client, for that purpose I am using JMF, it seems to work good until I tried to transmit MP3 files. When I trasmit MP3, I get the next error message:
    Unable to handle format: mpeglayer3, Unknown Sample Rate
    Failed to realize: com.sun.media.PlaybackEngine@1700391
    Error: Unable to realize com.sun.media.PlaybackEngine@1700391
    Error in ControllerErrorEvent: javax.media.ResourceUnavailableEvent[source=com.sun.media.content.unknown.Handler@fa39d7,message=Failed to realize: input media not supported: mpeglayer3 audio]
    I have installed the mp3 pluging and I have used the AVTrasmint2 and AVReceive2 class with some modifications to try to solve the problem, but I can not solve it.
    I tried to use JMFStudio in both sides (server and client side) and I got the same error.
    -->failed to handle a data format change!
    I would like to add that I have used two differents computers (one for the server and one for the client) to make all the test.
    Could you give me some advise, help or solution for that problem? If someone has a solution(code) to transmit streaming MP3 using RTP and kown that it is running ok, could you show me?
    I am doubting if MP3/RTP is supported in JMF, If someone knows another alternative to implement a streaming MP3 audio server and client, could you say me what solution is it?
    Thank you very much, I expect that someone could help me.
    PD: Sorry for my english, I think that it is not so good.

    Hi I had the same problem but i manage to solve it.
    First of all you have to install the mp3 plug-in and as u mentioned that u already did that.Make sure the mp3plugin.jar file is inside the lib/ext of the jre you are using for your project and one imp thing is first register the plug-in by issuing the command
    java com.sun.media.codec.audio.mp3.JavaDecoder
    It will modify the jmf.properties binary file.Once your done with this put this updated jmf.properties file in your project folder.After this your code should run perfectally.In case of any problem.Post it.
    cheers

  • JMF... Classes Not Found

    Hello,
    Although I have put the CLASSPATH as it should be in my environment variables ( I am using windows XP for the moment, but I had the same problem on Linux Kubuntu ), I still can't have the Diagnostics applet working.
    Any ideas to solve this ...
    Thanks

    JMF Version... 2.1.2
    All Java Build
    Native Libraries Found
    I have posted this many times.
    Basically, the best way to get it to work, is stick with Suns java, do not use blackdown or gij. Uninstall, actually never install, cause some links are always left behind. Major manual process that is not worth the effort, just only ever install SUN.
    OK, I'll show my java directories, there used to be a problem with jmf and 1.5 but it got fixed, I have not used 1.6 but this should still work.
    laptop:/> l /usr/java
    total 0
    drwxr-xr-x 5 root root 168 2006-07-27 12:02 ./
    drwxr-xr-x 16 root root 448 2006-07-29 12:36 ../
    lrwxrwxrwx 1 root root 15 2006-07-27 12:02 j2redefault -> jdk1.5.0_01/jre/
    drwxr-xr-x 8 root root 376 2005-04-06 18:49 j2sdk1.4.2_06/
    drwxr-xr-x 9 root root 376 2005-04-06 18:49 jdk1.5.0_01/
    laptop:/> l /usr/java/jdk1.5.0_01/jre/lib/ext/
    -rwxr-xr-x 1 root root 213579 2004-09-03 16:52 jai_codec.jar*
    -rwxr-xr-x 1 root root 1576539 2004-09-03 16:52 jai_core.jar*
    -rwxr-xr-x 1 root root 1063957 2004-12-02 19:20 jai_imageio.jar*
    -rw-r--r-- 1 root root 28030 2005-04-11 07:41 jds-registration.jar
    -rw-r--r-- 1 root root 1820929 2005-04-06 18:48 jmf.jar
    -rw-r--r-- 1 root root 4551 2005-04-06 18:49 jmfmp3.jar
    -rw-r--r-- 1 root root 130091 2005-04-06 18:48 jmplay.jar
    -rw-r--r-- 1 root root 802502 2006-07-27 11:54 localedata.jar
    -rw-r--r-- 1 root root 35884 2005-04-06 18:48 mediaplayer.jar
    -rwxr-xr-x 1 root root 41239 2004-09-03 16:52 mlibwrapper_jai.jar*
    -rw-r--r-- 1 root root 80027 2005-04-06 18:49 mp3plugin.jar
    -rw-r--r-- 1 root root 57031 2005-04-06 18:48 multiplayer.jar
    laptop:/> l /usr/java/jdk1.5.0_01/jre/lib/i386/
    -rwxr-xr-x 1 root root 38054 2005-04-06 18:48 libjmcvid.so*
    -rwxr-xr-x 1 root root 10149 2005-04-06 18:48 libjmdaud.so*
    -rwxr-xr-x 1 root root 7456 2005-04-06 18:48 libjmfjawt.so*
    -rwxr-xr-x 1 root root 80151 2005-04-06 18:48 libjmg723.so*
    -rwxr-xr-x 1 root root 35406 2005-04-06 18:48 libjmgsm.so*
    -rwxr-xr-x 1 root root 263691 2005-04-06 18:48 libjmh261.so*
    -rwxr-xr-x 1 root root 75155 2005-04-06 18:48 libjmh263enc.so*
    -rwxr-xr-x 1 root root 141817 2005-04-06 18:48 libjmjpeg.so*
    -rwxr-xr-x 1 root root 143850 2005-04-06 18:49 libjmmp3.so*
    -rwxr-xr-x 1 root root 372512 2005-04-06 18:48 libjmmpa.so*
    -rwxr-xr-x 1 root root 75932 2005-04-06 18:48 libjmmpegv.so*
    -rwxr-xr-x 1 root root 165409 2005-04-06 18:48 libjmmpx.so*
    -rwxr-xr-x 1 root root 38553 2005-04-06 18:48 libjmogg.so*
    -rwxr-xr-x 1 root root 47462 2005-04-06 18:48 libjmutil.so*
    -rwxr-xr-x 1 root root 14714 2005-04-06 18:48 libjmv4l.so*
    -rwxr-xr-x 1 root root 15752 2005-04-06 18:48 libjmxlib.so*
    -rwxr-xr-x 1 root root 193020 2004-12-06 22:52 libjpeg.so*
    -rwxr-xr-x 1 root root 8343 2004-12-06 21:15 libjsig.so*
    -rwxr-xr-x 1 root root 65680 2004-12-06 22:52 libjsoundalsa.so*
    -rwxr-xr-x 1 root root 266704 2004-12-06 22:52 libjsound.so*
    OK, so basically all jmf *.jar files go in your JRE/lib/ext, and all your jmf lib*.so go in JRE/lib/i386/ directory.
    After you install JMF into JMF2.1.1/ directory manually copy all those file, into your JRE.
    This works.
    Some files that I have listed may be missing, or I may not have ones you have, but basically that is it.
    Just setting JMF_HOME and CLASSPATH is not enough, you must copy the files into the correct location.

  • Question - applet using JMF for playing .mov

    I develop an applet using JMF for playing .mov. It works fine, and the applet starts normally. Even my applet works fine from other computers in our LAN (The applet runs ok without JMF). But only on one PC it doesn't work and I get the following message
    Failed to configure: com.sun.media.PlaybackEngine@a7c45e
    Bad header in the media: moov atom not present
    Error: Unable to realize com.sun.media.PlaybackEngine@a7c45e
    FATAL ERROR: Failed to realize: failed to parse the input media.
    Exception in thread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" java.lang.Error: Failed to realize: failed to parse the input media.
    at PlayerApplet.Fatal(PlayerApplet.java:201)
    at PlayerApplet.controllerUpdate(PlayerApplet.java:191)
    at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
    at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
    at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
    at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    My html:
    <html>
    <head><title>PlayerApplet</title></head>
    <body>
    <applet code="PlayerApplet.class" archive="fobs4jmf.jar, customizer.jar, jmf.jar, mp3plugin.jar, sound.jar, multiplayer.jar, mediaplayer.jar" width=640 height=510>
    <param name=file value="safexmas.mov">
    </applet>
    </body>
    </html>
    Anyone can help me?
    Thanks for your time

    It started to work but I had to install fobs4jmf on the client computer.
    And put .dll to windows/system33 directory. But how can I play video using applet in browser without installing any software on the client machine?

  • What exactly does the installers of JMF, Java MP3 Plugin do?

    Hi, All
    I am trying to make an intaller for our own application, which requires the JMF, and Java MP3 Plugin. Sometimes, there could be some problems
    with the Java MP3 Plugin registration. So I am wondering if the installer of MP3 plugin installer simply copy the mp3plugin.jar to jre/lib/ext.
    Then we can do so by our own installer in either of the two following ways:
    1 copy mp3plugin.jar to the jre/lib/ext by ourselves
    2 simply treat mp3plugin.jar as an ordinary jar file, and indicate it in the classpath when execuing the application.
    Before doing so, I shall know what exactly the installer of mp3 plugin does so that either of the above two ways does not miss anything. So can anybody give me some suggestions?
    Thanks!

    Yes, I am wondering the same thing.  I have some songs that meet all the other cryteria but still will not upload.  I am getting the mysterious catch all of "Songs encoded as AAC or MP3 that do not meet certain quality criteria will not be matched or uploaded to iCloud." is kicking in but how is it fixed? 
    Anybody have any idea?

  • Where can I download the JMF MP3 Plugin?

    Hello everybody.
    I followed the link provided in the JMF MP3 Plugin, but unfortunately I realized that the download button is broken: it points to a wrong download page (the shown anchor #javamp3-1_0-oth-JPR does not exist in that page).
    I tried asking the Italian support (because I wasn't able to find any email address for the International support) but I did not receive any answer.
    Do you know where can I download the JMF MP3 Plugin?
    Thanks in advance,
    EC

    http://pscode.org/lib/mp3plugin.jar

  • JMF and RTSP

    Hi guys,
    I was reading http://java.sun.com/products/java-media/jmf/2.1.1/support-rtsp.html and i tried to wrote a program to load an mp3 from a streaming server like this:
    import java.net.*;
    import javax.media.*;
    import javax.media.bean.playerbean.MediaPlayer;
    public class MeuPlayer {
    public static void main(String[] args) {
         try{
              //URL mediaURL = new URL("rtsp://81.92.203.130:554/a.mp3");
              MediaLocator med = new MediaLocator("rtsp://81.92.203.130:554/a.mp3");
              Player myplayer = Manager.createPlayer(med);
              myplayer.prefetch();
              myplayer.start();
              }catch(Exception e){System.out.println(e);
    What happens id the following:
    the programs presents in the display the bandwidth info and blocks....
    I've the mp3plugin installed
    Tks in advance,
    Ze Maria

    I am closer to getting it working.
    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/CustomPayload.html
    I noticed that DSS4 and DSS5 both transmit custom RTP payloads type 96, and 97
    According to the link above, they are dynamic payload types.
    I have been able to get JMStudio to connect to DSS but then DSS transmits to a different port on wich JMStudio is receiveing!!!!
    I first connect with JMStudio using open -> rtsp://192.168.4.4/sample_100kbit.mov
    then I use network monitor to see what port DSS is transmitting to(this is dynamic)
    then i use AVCustomRecv to receive on the port DSS is transmitting to.
    It will be alot of work, but deffinately possible.
    The trick is to register the custom payload types of what DSS is sending.(type 96, 97)
    I think type 96 is the audio track
    and 97 is the video track.
    Have fun.

  • Sun Studio 12 IDE doesn't allow me to edit the C++ source files...

    I installed Sun Studio 12 on my PC:
    SunOS version 5.10 running on x86
    Java 1.5.0_16
    I created a shared library project but I can't properly edit the source files. I can't scroll up/down or right/left over the source files. I would appreciate very much if somebody could support me with that.
    Thanks and regards,
    Ioan

    Hi Gordon,
    First of all thanks for your prompt answer. Now let's go back to my problem :-) - I tried removing the folder you indicated me but there was no change...:-(. Please find below the log file you asked for:
    Log Session: Saturday, August 30, 2008 3:16:22 PM EEST
    System Info: Product Version = Sun Studio (Build 200704122300)
    Operating System = SunOS version 5.10 running on x86
    Java; VM; Vendor; Home = 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-b02; Sun Microsystems Inc.; /usr/jdk/instances/jdk1.5.0/jre
    System Locale; Encoding = en (sunstudio); ISO646-US
    Home Dir.; Current Dir. = /export/home/ioanp; /export/home/ioanp
    Installation; User Dir. = /opt/netbeans-5.5.1/nb5.5:/opt/netbeans-5.5.1/ide7:/opt/netbeans-5.5.1/harness:/opt/netbeans-5.5.1/cnd1:/opt/SUNWspro/atd1:/opt/SUNWspro/prod:/opt/netbeans-5.5.1/platform6; /export/home/ioanp/.sunstudio/12.0-SunOS-i386
    Boot & Ext. Classpath = /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/i18n.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/sunrsasign.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/jsse.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/jce.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/charsets.jar:/usr/jdk/instances/jdk1.5.0/jre/classes:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/dnsns.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/localedata.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/sunjce_provider.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/sunpkcs11.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jhall.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jmf.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jmplay.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/mediaplayer.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/multiplayer.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jai_codec.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jai_core.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/mlibwrapper_jai.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/clibwrapper_jiio.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jai_imageio.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/jmfmp3.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/mp3plugin.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/gnome-java-bridge.jar
    Application Classpath = /opt/netbeans-5.5.1/platform6/lib/boot.jar:/opt/netbeans-5.5.1/platform6/lib/org-openide-modules.jar:/opt/netbeans-5.5.1/platform6/lib/org-openide-util.jar:/opt/netbeans-5.5.1/platform6/lib/locale/boot_ja.jar:/opt/netbeans-5.5.1/platform6/lib/locale/boot_pt_BR.jar:/opt/netbeans-5.5.1/platform6/lib/locale/boot_zh_CN.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-modules_ja.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-modules_pt_BR.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-modules_zh_CN.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-util_ja.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-util_pt_BR.jar:/opt/netbeans-5.5.1/platform6/lib/locale/org-openide-util_zh_CN.jar:/opt/netbeans-5.5.1/platform6/lib/locale/swing-l10n_pt_BR.jar
    Startup Classpath = /opt/netbeans-5.5.1/platform6/core/core.jar:/opt/netbeans-5.5.1/platform6/core/org-openide-filesystems.jar:/opt/netbeans-5.5.1/platform6/core/locale/core_pt_BR.jar:/opt/netbeans-5.5.1/platform6/core/locale/core_zh_CN.jar:/opt/netbeans-5.5.1/platform6/core/locale/org-openide-filesystems_ja.jar:/opt/netbeans-5.5.1/platform6/core/locale/org-openide-filesystems_pt_BR.jar:/opt/netbeans-5.5.1/platform6/core/locale/org-openide-filesystems_zh_CN.jar:/opt/netbeans-5.5.1/platform6/core/locale/core_ja.jar:/opt/netbeans-5.5.1/nb5.5/core/org-netbeans-upgrader.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/core_nb_ja.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/core_nb_pt_BR.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/core_nb_zh_CN.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/org-netbeans-upgrader_ja.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/org-netbeans-upgrader_pt_BR.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/org-netbeans-upgrader_zh_CN.jar:/opt/netbeans-5.5.1/nb5.5/core/locale/core_nb.jar:/opt/netbeans-5.5.1/ide7/core/org-netbeans-modules-utilities-cli.jar:/opt/SUNWspro/prod/atd1/core/locale/core_sunstudio.jar
    Turning on modules:
         org.openide.util [6.8.31 200704122300]
         org.openide.modules [6.5.31 200704122300]
         org.openide.awt [6.7.31 200704122300]
         org.openide.filesystems [6.4.31 200704122300]
         org.openide.dialogs [6.5.31 200704122300]
         org.openide.nodes [6.7.31 200704122300]
         org.openide.windows [6.5.31 200704122300]
         org.openide.options [6.4.31 200704122300]
         org.openide.text [6.9.32 200704122300]
         org.openide.explorer [6.5.31 1 200704122300]
         org.openide.actions [6.5.31 200704122300]
         org.openide.loaders [5.9.31 200704122300]
         org.netbeans.api.xml/1 [1.13.30 200704122300]
         org.netbeans.spi.navigator/1 [1.2.31 200704122300]
         org.openide.io [1.9.31 200704122300]
         org.netbeans.core.output2/1 [1.7.31.1 1 200704122300]
         org.netbeans.modules.xml.core/2 [1.12.30.4 4 200704122300]
         org.netbeans.bootstrap/1 [2.3.31 200704122300]
         org.netbeans.core.startup/1 [1.5.31 200704122300]
         org.netbeans.swing.plaf [1.5.31 200704122300]
         org.netbeans.core/2 [3.2.31.1 200704122300]
         org.netbeans.libs.xerces/1 [1.8.32 2.8.0 200704122300]
         org.netbeans.modules.xml.tax/2 [1.12.30.4.4 4 200704122300]
         org.openide.execution [1.8.31 200704122300]
         org.netbeans.api.java/1 [1.10.31 200704122300]
         org.netbeans.modules.editor.util/1 [1.8.31 200704122300]
         org.netbeans.modules.editor.mimelookup/1 [1.3.31 200704122300]
         org.netbeans.modules.editor.fold/1 [1.5.31 200704122300]
         org.netbeans.modules.editor.lib/1 [1.9.31.1 1 200704122300]
         org.netbeans.modules.editor.plain.lib/1 [1.3.31 200704122300]
         org.netbeans.modules.queries/1 [1.7.31 200704122300]
         org.openidex.util/3 [3.9.32 200704122300]
         org.netbeans.modules.editor.settings/1 [1.4.31 200704122300]
         org.netbeans.modules.editor/3 [1.26.31.1 200704122300]
         org.netbeans.modules.editor.plain/1 [1.3.31 200704122300]
         org.netbeans.core.ui/1 [1.9.31 200704122300]
         org.netbeans.modules.settings/1 [1.10.51 200704122300]
         org.netbeans.modules.projectapi/1 [1.9.31 200704122300]
         org.netbeans.modules.cnd.api.model/1 [1.1.1 1 070814]
         org.jdesktop.layout/1 [1.3.41 1.0 200704122300]
         org.netbeans.api.progress/1 [1.5.31 200704122300]
         org.netbeans.libs.formlayout/1 [1.2.31 1 200704122300]
         org.netbeans.modules.options.api/0 [1.3.31 200704122300]
         org.netbeans.modules.cnd/1 [1.1.1 1 070814]
         org.netbeans.modules.projectuiapi/1 [1.13.32.5 5 200704122300]
         org.netbeans.modules.project.ant/1 [1.12.31 200704122300]
         org.netbeans.modules.cnd.makeproject/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.discovery [1.1.1 070814]
         org.netbeans.modules.cnd.modeldiscovery [1.1.1 070814]
         org.netbeans.modules.javahelp/1 [2.8.31 200704122300]
         org.netbeans.modules.diff/1 [1.15.31.42 42 200704122300]
         org.netbeans.modules.editor.errorstripe.api/1 [2.2.31.1 1 200704122300]
         org.netbeans.modules.editor.errorstripe/2 [2.2.31.1.1 1 200704122300]
         org.netbeans.modules.versioning/1 [1.3.31.1 1 200704122300]
         org.netbeans.lib.cvsclient/1 [1.14.31 200704122300]
         org.netbeans.modules.masterfs/1 [1.8.33 200704122300]
         org.netbeans.core.execution/1 [1.9.31 200704122300]
         org.apache.tools.ant.module/3 [3.24.31.1 1 200704122300]
         org.netbeans.libs.jsch/1 [1.4.31 0.1.24 200704122300]
         org.netbeans.modules.versioning.system.cvss/1 [1.7.31.1.42.1 1 200704122300]
         org.netbeans.modules.cnd.modelutil/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.qnavigator/1 [1.1.1 070814]
         org.netbeans.modules.cnd.antlr [2.7.5 070814]
         org.netbeans.modules.cnd.repository.api/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.apt [1.1.1 1 070814]
         org.netbeans.modules.cnd.dwarfdump [1.1.1 070814]
         org.netbeans.modules.xml.xam/1 [1.1.30 1 200704122300]
         org.netbeans.modules.favorites/1 [1.11.41 200704122300]
         org.apache.xml.resolver [1.1.30 1.1 200704122300]
         org.netbeans.modules.xml.catalog/2 [1.11.30.4.4 4 200704122300]
         org.netbeans.modules.projectui [1.9.10.5 200704122300]
         org.netbeans.modules.editor.bookmarks/1 [1.3.31 200704122300]
         com.sun.tools.swdev.advtools.actions.api [1.1.1 070730]
         org.netbeans.modules.cnd.folding [1.1.1 1 070814]
         org.netbeans.tasklistapi/1 [1.20.31.7 7 200704122300]
         org.netbeans.modules.tasklist.core/2 [1.37.31.16.7 16 200704122300]
         org.netbeans.modules.suggestions_framework/2 [1.15.31.9.16.7 9 200704122300]
         org.netbeans.modules.tasklist.docscan/2 [1.23.31.9.16.7 200704122300]
         org.netbeans.modules.ant.grammar/1 [1.14.31 200704122300]
         org.netbeans.modules.cnd.dwarfdiscovery [1.1.1 070814]
         org.netbeans.modules.cnd.highlight [1.1.1 070814]
         org.netbeans.lib.terminalemulator [1.3.1 070814]
         com.sun.tools.swdev.sunstudio.update/1 [1.1.1 070730]
         org.netbeans.modules.servletapi/1 [1.10.30 200704122300]
         org.netbeans.modules.editor.completion/1 [1.6.31 200704122300]
         org.netbeans.spi.palette/1 [1.6.10 200704122300]
         org.netbeans.modules.cnd.model.services/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.completion/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.gotodeclaration [1.1.1 070814]
         org.netbeans.modules.xml.schema.model/1 [1.1.30 1 200704122300]
         org.netbeans.modules.xml.wsdl.model/1 [1.1.30 1 200704122300]
         org.netbeans.modules.editor.codetemplates/1 [1.2.31 200704122300]
         org.netbeans.modules.cnd.modelimpl/1 [1.1.1 1 070814]
         org.netbeans.modules.css/2 [1.12.30 200704122300]
         org.netbeans.modules.image/1 [1.17.31 200704122300]
         org.netbeans.modules.editor.structure/1 [1.12.30.1 1 200704122300]
         org.netbeans.modules.xml.text/2 [1.12.30.4.4 4 200704122300]
         org.netbeans.modules.xml.retriever/1 [1.0.20 200704122300]
         org.netbeans.modules.cnd.classview/1 [1.1.1 1 070814]
         org.netbeans.modules.cnd.modelui [1.1.1 070814]
         org.netbeans.modules.utilities/1 [1.21.32 200704122300]
         org.netbeans.modules.utilities.project/1 [1.5.33 200704122300]
         org.netbeans.swing.tabcontrol [1.6.31 200704122300]
         org.netbeans.core.windows/2 [2.7.31.1 200704122300]
         org.netbeans.modules.httpserver/2 [2.6.30.42 42 200704122300]
         org.netbeans.modules.xsl/1 [1.12.30.4 200704122300]
         org.openide.src [1.8.31 200704122300]
         org.netbeans.modules.xml.tools/2 [1.12.30.4.4.4 4 200704122300]
         com.sun.tools.swdev.toolscommon [1.16.0.2 ${bm.build.name} ${bm.build.date}]
         com.sun.tools.swdev.sunstudio/1 [1.1.1 070730]
         org.netbeans.spi.viewmodel/2 [1.9.31 200704122300]
         org.netbeans.api.debugger/1 [1.7.33 200704122300]
         org.netbeans.spi.debugger.ui/1 [2.8.33 200704122300]
         com.sun.tools.swdev.advtools.actions.spi [1.1.1 070730]
         com.sun.tools.debugger.dbxgui/3 [3.0.0.2 FCS 2007/08/06]
         org.netbeans.modules.html.editor.lib/1 [1.5.30 200704122300]
         org.netbeans.modules.html.editor/1 [1.5.30 200704122300]
         org.netbeans.modules.properties/1 [1.17.31 200704122300]
         org.netbeans.modules.xml.xdm/1 [1.1.30 1 200704122300]
         org.netbeans.modules.cnd.repository [1.1.1 070814]
         org.netbeans.upgrader [4.5.31 200704122300]
         com.sun.tools.swdev.projectimport/1 [1.1.1 070730]
         org.netbeans.modules.defaults/1 [1.2.31 200704122300]
         org.netbeans.modules.html/1 [1.20.30 200704122300]
         org.netbeans.modules.xml.schema/1 [1.12.30.4 200704122300]
         org.netbeans.modules.editor.settings.storage/1 [1.4.31 200704122300]
         org.netbeans.modules.autoupdate/1 [2.16.31 200704122300]
         org.netbeans.modules.options.editor/1 [1.2.31 200704122300]
         org.netbeans.modules.properties.syntax/1 [1.17.31 200704122300]
         org.netbeans.configuration.api [1.1.1 070814]
         com.sun.tools.swdev.advtools.actions.control [1.1.1 070730]
         org.netbeans.core.ide/1 [1.9.31 200704122300]
         com.sun.forte.st.mpmt/1 [8.2]
         com.sun.tools.swdev.advtools.actions.performanceanalyzeractions/1 [1.1.1 070730]
         org.netbeans.modules.extbrowser/1 [1.10.30 200704122300]
    ConfigurationDescriptorProvider: I/O in EQ is not good idea
    THANKS AGAIN AND REGARDS,
    John

  • Is it Possible??? AudioInputStream to DataSource

    Can anyone help me to convert one of these
    javax.sound.sampled.AudioInputStream
    java.io.InputStream
    javax.sound.sampled.DataLine
    javax.sound.sampled.SourceDataLine
    to one of these
    javax.media.protocol.DataSource
    javax.media.bean.playerbean.MediaPlayer
    javax.media.Manager
    javax.media.Player
    or any other Player in any other package that has a good set of controls like stop, play, seek and volume for MPEG3 audio
    The obvious answer is write the stream to a file first and then use a MediaLocator. I don't want to write the stream to a file.
    I can't work it out and after weeks of searching on the Internet I can't find a way of doing it. Why aren't there any packages, players or beans that play a stream?
    Please help!

    Thank you both for your advice.
    MediaLocator is not an API. It is a class of Java Media Framework package javax.media
    which allows you to play a wide variety of media with a good set of controls. It's very good but doesn't take an InputStream as an input. It takes URLs, Files, and DataSources.
    I can't play from a File or URL because the source File is encrypted. I decrypt it to a java.io.InputStream and play it on the fly. The decrypted data goes to a 30Mbyte java.nio.ByteBuffer first. Then I create an InputStream from the ByteBuffer and then an AudioInutStream which I can play
    At the moment I am using these classes to play the audio
    javax.sound.sampled.AudioFormat;
    javax.sound.sampled.AudioInputStream;
    javax.sound.sampled.AudioSystem;
    javax.sound.sampled.DataLine;
    javax.sound.sampled.SourceDataLine;
    as well as the Tritonus API to handle MP3 decoding
    However JMF will decode MP3 if Suns mp3plugin is installed
    I have problems with seeking. I get Buffer Overflow errors with large files and slow computers if I skip too far ahead. It doesn't work very well and JMF is easier. I made an application with it before. Just the conversion of java.io.InputStream to a valid JMF input is the problem. It's unfortunate that it doesn't have this facility built in.
    So far I only found these that are claimed to work
    http://www.tek-tips.com/viewthread.cfm?qid=288487
    and
    http://www.extollit.com/isdsjmf.php
    I tried the first one and got this error
    Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 16000.0 frame rate, FrameSize=32768 bits
    Failed to realize: com.sun.media.PlaybackEngine@ba6c83
    Error: Unable to realize com.sun.media.PlaybackEngine@ba6c83
    javax.media.CannotRealizeException
    at javax.media.Manager.blockingCall(Manager.java:2005)
    at javax.media.Manager.createRealizedPlayer(Manager.java:580
    I couldn't work it out beyond that so I came here.

  • Sound File Duration

    Hello,
    I'm using JMF to play audio files, and, of course, i have to display the duration of the file. The problem is player.getDuration().getSeconds() very often doesn't return the correct duration. And i don't think it's my fault because not even the JMStudio (which installs with the JMF package) doesn't show the correct duration. Could it be because i'm using Windows 7? I stopped working on this project about half a year ago, and back then i was using Windows XP and, from what i remember (but i could be wrong) it was working then. I tried reinstalling and it's no difference. Thanks.

    Anakin1989 wrote:
    ..I'm using JMF to play audio files, ..I use Java Sound with the JMF mp3plugin.jar to play MP3s. A workaround it to load the entire data into RAM and convert it to a more common format such as PCM, then use the size of the data to determine the length.

  • JMF + JWS + Applet

    I'm working in a project with JMF and JWS (maybe Applets).
    My application needs to capture a image from a webcam.
    I know I have to sign my jar files, but my application isn't working at all, cause I can't start my webcam from my application. Always getting a nullPointerException.
    In the Eclipse IDE, the same application works very fine.
    My questions are:
    1. May I have to sign the jmf.jar?
    2. Where may I have to copy them?
    Apreciate any help.

    >
    1. It was already in my plans use JFrame and JWS. Applets is my B plan.>I would demote the plan 'B' to a plan 'C'. Applets are a PITA, and rarely a solution to ..anything.
    >
    2. My jnlp file have all-permissions in security tag.>It was in the wrong place, see below.
    >
    3. I don't get the NoClassDefFoundError. Instead, I got NullPointerException, 'cause my application don't find any webcam. Only in Eclipse IDE Enviroment.>Uh-huh. Not entirely sure of the exact meaning/cause of the NPE yet, but it might be a caching problem.
    <http://forum.java.sun.com/thread.jspa?threadID=5209499>
    Here is a thread where I describe how to change the cahce location, and the advantages of doing so (for testing).
    >
    4. My question is: What do I have to do with jmf.jar and his friends? Signed them too ( I've signed them but it didn't work )? >I am not entirely convinced that the code signing failed. There are still too many variables to determine if the code was ever considered 'trusted'.
    >
    ..Copy them where?>Add the JNLP codebase to the href for a jar, and the jar should be placed/available 'there'. If you can fetch it using the browser using that final URL, it should be fine.
    E.G. the codebase of this JNLP is http://localhost:8080/Capture/, and the href for the first jar is aCapture.jar. So the final URL would be
    http://localhost:8080/Capture/ + aCapture.jar
    ->
    http://localhost:8080/Capture/aCapture.jar
    If the href had been 'lib/aCapture.jar', the final URL would be..
    http://localhost:8080/Capture/lib/aCapture.jar
    Simple, huh?
    >
    5. Something about "vfw:Microsoft WDM Image Capture (Win32):0"?>I do not understand that question.
    >
    6. What is Dukes?>You seem to have figured that out. ;-)
    >
    Next my jnlp file:>- The <security> element was 'out of order', it has been 'put in its place' in the JNLP file below. BTW - are you prompted to 'accept the code from..' (or words to that effect)?
    That would indicate that the plug-in understands this is code that needs all-permissions.
    - The JNLP element's 'spec' attribute refers not to a J2SE version, but to the JNLP specification version. Most apps. will have '1.0', but apps. that use features built into JWS in J2SE 5, might specify '1.5'. (There were no changes to JWS in versions 1.2/1.3/1.4).
    - Are you certain that the jars aCapture.jar, mediaplayer.jar & jmf.jar are the only things on the classpath of the app. when it runs in the IDE? I was almost expecting to see some references to 'nativelib's. Here is an example(2) of another JNLP that includes nativelibs (note that I did not check into it deeply, but some of the things in it appear either wrong, or at the least redundant - only the references to nativelibs are of interest).
    1) The valid JNLP file
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for Capture Demo Application -->
    <jnlp
    spec="1.0"
    codebase="http://localhost:8080/Capture/" href="exemplo.jnlp">
    <information>
      <title>Capture Demo Application</title>
      <vendor>DESofts</vendor>
      <homepage href="docs/help.html"/>
      <description>Capture Demo Application</description>
      <description kind="short">
        A demo of the capabilities of the Swing Graphical User Interface.
      </description>
      <icon href="images/icone.jpg"/>
      <icon kind="splash" href="images/icone.jpg"/>
      <offline-allowed/>
      <shortcut online="false">
        <desktop/>
        <menu submenu="My Corporation Apps"/>
      </shortcut>
    </information>
    <security>
      <all-permissions/>
    </security>
    <resources>
      <j2se version="1.4+"/>
      <jar href="aCapture.jar"/>
      <jar href="mediaplayer.jar"/>
      <jar href="jmf.jar"/>
    </resources>
    <application-desc main-class="Capture"/>
    </jnlp> 2) The example JNLP that mentions natives, from
    <http://www.dutchie.net/jmf/example/webstart/launchNative_MP3.jnlp>
    (with minor formatting variations that hopefully do not change its meaning.)
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="http://www.dutchie.net/jmf/example/webstart" href="launchNative_MP3.jnlp">
    <information>
      <title>JMF Demo</title>
      <vendor>Dutchie Pty Ltd</vendor>
      <homepage href="http://www.dutchie.net"/>
      <description>The JMF Demo.</description>
      <description kind="short">Demo showing features of JMF</description>
        <description kind="one-line">JMF Demo</description>
        <description kind="tooltip">Click here to launch the JMF Demo</description> 
        <icon href="dutchieIcon.gif"/>
        <icon kind="splash" href="splash.gif"/>
        <offline-allowed/>
    </information>
    <security>
      <all-permissions/>
    </security>
    <resources>
        <j2se version="1.4+"/> 
        <jar href="JMediaDemo.jar" main="true" download="eager"/>  
        <jar href="mp3plugin.jar" download="eager"/>     
    </resources>
    <resources os="Windows" arch="x86">
      <nativelib href="jmf_native_windows.jar"/>
      <jar href="sun_jmf_generic.jar" download="eager"/>
    </resources>
    <resources os="SunOS" arch="sparc">
      <nativelib href="jmf_native_solaris.jar"/>
      <jar href="sun_jmf_generic.jar" download="eager"/>   
    </resources>
    <resources os="Linux">
      <nativelib href="jmf_native_linux.jar"/>
      <jar href="sun_jmf_generic.jar" download="eager"/>   
    </resources>
    <application-desc main-class="org.jmfapi.JMediaDemo"> 
      <argument>jmf</argument>
      <argument>native</argument>
      <argument>sun_mp3_plugin</argument>
      <argument>oggvorbis</argument> 
      <argument>webstart</argument> 
    </application-desc>
    </jnlp>

  • Jmf deployment help

    hi;
    i have an applet that plays MP3 files.
    i bundled that applet in a signed jar specifying jmf.jar and mp3plugin.jar in the extension list of the applet jar.
    when loading the applet everything is ok but i get a format not supported exception (see below).
    note that the JMF jars are downloaded ok and placed by the plugin in the jre/lib/ext folder.
    should i do something more? why is the mp3 format not found (other formats are ok)?
    thanks.
    Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 24000.0 frame rate, FrameSize=32768 bits
    Failed to realize: com.sun.media.PlaybackEngine@18e80a6
    Error: Unable to realize com.sun.media.PlaybackEngine@18e80a6
    FATAL ERROR: Failed to realize: input media not supported: mpeglayer3 audio
    java.lang.Error: Failed to realize: input media not supported: mpeglayer3 audio
         at New28.Fatal(New28.java:231)
         at New28.controllerUpdate(New28.java:221)
         at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
         at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
         at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
         at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)

    OK. It looks like someone somewhere at Sun is having a laugh. I couldn't get the jmf.properties file working either. The thing is binary, so it probably wouldn't work cross-platform anyway.
    The PlugInManager persistent store doesn't seem to work when run from an applet, but the addPlugIn function does the trick (no need to call commit).
    The following code works from a completely unsigned applet. I'll probably post something a little more generic on the jffmpeg support forums to auto-install everything from a REAL .properties file.
    Web page
    <html>
      <head>
        <title>MP3 Player</title>
      </head>
      <body>
        <applet archive="jffmpeg.jar,jmf.jar" code="Mp3"
                width=50 height=50>
          <param name="MediaFile" value="test.mp3" />
        </applet>
      </body>
    </html>Mp3.java
    import java.applet.Applet;
    import java.net.URL;
    import java.io.IOException;
    import javax.media.PlugInManager;
    import javax.media.Manager;
    import javax.media.Player;
    import javax.media.Format;
    import javax.media.Codec;
    import javax.media.format.AudioFormat;
    public class Mp3 extends Applet {
        public static final String JFFMPEG_AUDIO = "net.sourceforge.jffmpeg.AudioDecoder";
        public static final String MP3_FILE = "MediaFile";
        public void init() {
            try {
                Codec audio = (Codec)Class.forName( JFFMPEG_AUDIO ).newInstance();
                PlugInManager.addPlugIn( JFFMPEG_AUDIO,
                                   audio.getSupportedInputFormats(),
                                   new Format[] { new AudioFormat( "LINEAR" ) },
                                   PlugInManager.CODEC );
                Player p = Manager.createPlayer(
                    new URL( getCodeBase(), getParameter( MP3_FILE ) ) );
                p.start();
            } catch ( Exception e ) {
                e.printStackTrace();
        public void start() {
        public void stop() {
    }

  • Streaming mp3 using RTMP server

    Is there a component to be found or bought that allows one to
    build an mp3 player that uses RTMP streaming? Importantly, my
    client demands that the ability to be able to scrube the playhead
    timeline. I wish I could do this myself with actionscript, but my
    flash skills are not quite that advanced. Any help would be
    appreciated. Thanks.

    Hi I had the same problem but i manage to solve it.
    First of all you have to install the mp3 plug-in and as u mentioned that u already did that.Make sure the mp3plugin.jar file is inside the lib/ext of the jre you are using for your project and one imp thing is first register the plug-in by issuing the command
    java com.sun.media.codec.audio.mp3.JavaDecoder
    It will modify the jmf.properties binary file.Once your done with this put this updated jmf.properties file in your project folder.After this your code should run perfectally.In case of any problem.Post it.
    cheers

Maybe you are looking for

  • Windows 7 Desktop goes Black after a period of inactivity and the user accesses their machine again

    Hi There, Wonder if someone can offer some help to an unusual problem? Users have Windows 7 machines which all have a desktop background theme...Blue with a company Logo. User will go for lunch and leave their position, after a period of time screen

  • Display Issues

    Hi, just bought the full version of Aperture 3 after using the trial and I'm beginning to notice little issues that are really irritating on such expensive software. I'm viewing my images on a 19" Dell monitor, Browser view displays correctly with no

  • Nokia gallery problem

    Is just me or you can't make subfolders in  photo gallery via computer ( mass memory ). And a second question: when I make folder under gallery ( example: "test folder" ) I cannot find it anywhere in phone memory ( c drive and mass memory). So I must

  • CORBA and oracle 8i

    I'm trying to execute the examples in the following document: Oracle8i Enterprise JavaBeans and CORBA Developer's Guide Release 8.1.5 A64683-01 But when I try to publish the objects it appears many errors, related to the java clases and visigenic cla

  • PO item issue

    Hi All, Is there any way where we can check the date when a line item is added to a PO (I am not saying some thing about the changes or changed date). A perfect date of line item added to PO.. I replicated but could not find the item added.