JMF – Unable to handle format: mpeglayer3

Problem

You may encounter the following error while using Java media framework (JMF) to play a mp3 file.


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@19ec4ed
Error: Unable to realize com.sun.media.PlaybackEngine@19ec4ed
server running at port: 4264

Solution

This is because Java took out the MP3 support by default (pirate copyright issue), you are required to install a “JMF MP3 plugin” in order to play MP3 file.

Go Java’s JMF website to download it
http://java.sun.com/javase/technologies/desktop/media/jmf/mp3/download.html

2 comments on “JMF – Unable to handle format: mpeglayer3

  1. Hello
    I am trying to make a media player through netbeans in ubuntu.
    I Have following libraries installed
    jmf.jar
    mediaplayer.jar
    multiplayer.jar
    mp3plugin.jar
    customizer.jar.
    Still i am getting this error when i press the play button
    Unable to handle format: mpeglayer3, 48000.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 16000.0 frame rate, FrameSize=32768 bits
    Failed to realize: com.sun.media.PlaybackEngine@76db09
    Error: Unable to realize com.sun.media.PlaybackEngine@76db09
    Could not realize media player
    Please suggest me something……..

  2. Thanks, this blog helped me somewhat in solving some problems with the latest release, Why do they always seem to leave out vital documentation when they release a new version? It may be minor to them but not for us! I’m sure i’m not alone either.

Leave a Comment

Your email address will not be published. Required fields are marked *