Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Very persistent error JMF: Unable to handle format: mpeglayer3

Reply
Thread Tools

Very persistent error JMF: Unable to handle format: mpeglayer3

 
 
Ylva Ylva is offline
Junior Member
Join Date: Aug 2011
Posts: 1
 
      08-10-2011
Hi,

I would like to play mp3-files with a Java application. I know this topic has been discussed before, but I followed every piece of advice I could find and still I get:

Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Mono, LittleEndian, Signed, 8000.0 frame rate, FrameSize=16384 bits
Failed to prefetch: com.sun.media.PlaybackEngine@3882764b
Error: Unable to prefetch com.sun.media.PlaybackEngine@3882764b

What I did so far:

I installed JFM using the Windows Performance Pack. JFM was installed but did not set the CLASSPATH and PATH correctly, so I repaired that.

I ran the "java com.sun.media.codec.audio.mp3.JavaDecoder" command and it was successful.

In JM Studio I had to add it to the codec (since it was not there yet) and this was also successful, so the com.sun.media.codec.audio.mp3.JavaDecoder is there now. It was a bit of a hassle since the JFM was installed in the" Program Files (x86)" directory and the "commit" did not work since it had no writing access to the jmf.properties.But I sorted that out.

I am using Eclipse and added jmf.jar to the Java Build Path.

Then I installed the JMF MP3 Plugin. I have put it in the jre6/lib/ext and also in the JMF directory. I added jmf.jar also to jre6/lib/ext. I added the plugin to the CLASSPATH and in Eclipse to the Java Build Path.

These are all the tips, tricks and hints I could find, but still I keep getting the error mentioned above. When I use the JM Studio itself to open and play a mp3-file this works fine though.

Any new tips or comments as to what I did wrong would be very much appreciated!

Thanks, Ylva
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Persistent field and Persistent properties - difference gk Java 7 10-12-2010 09:43 PM
Java Media Framework - Play MPEG2 without mpeglayer3-stream =?iso-8859-1?Q?Stefan_D=F6rr?= Java 0 06-17-2007 08:07 PM
JMF: Unable to handle format: mpeglayer3 d4@thispla.net Java 3 01-05-2005 09:20 AM
Quick Book file access very very very slow Thomas Reed Computer Support 7 04-09-2004 08:09 PM
very Very VERY dumb Question About The new Set( ) 's Raymond Arthur St. Marie II of III Python 4 07-27-2003 12:09 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57