Unable to play mp3 in Linux Using JMF

I am not able to play Mp3 file in Linux -9i through JMF-2.1.1e version.

I am received the following error message

filename = soundmp3.mp3

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@530cf2

Error: Unable to realize com.sun.media.PlaybackEngine@530cf2

Pls help me about.

I am able to play Mp3 file in window through JMF but not in Linux ,why ?

Thanks

Ashish

[549 byte] By [Ashishjava123] at [2007-9-30 22:00:24]
# 1

Have installed the following software, when I faced the problem

1)Install Red hat Linux version 9.0

2)Install package for JVM – j2sdk-1_4_2_05-linux-i586-rpm

3)Install package for Java Media Framework – jmf-2_1_1e-linux-i586.rpm

4)Package for running .mp3 file - xmms-mpg123-1.2.7-21.i386.rpm

5) xmms-1.2.7-21.i386.rpm

6)xmms-devel-1.2.7-21.i386.rpm

7)xmms-skins-1.2.7-21.i386.rpm

1) Is there any thing wrong with the sequence of installation?

2) Do I need to set some path variables for having the XMMS libraries active?

Please let me know, if any one had faced and resolved this problem in the past.

Thanks

Santha Ram.

Ashishjava123 at 2007-7-7 3:27:51 > top of Java-index,Administration Tools,Sun Connection...
# 2

I know that this message is kind of old but the subject is still actual.

I use Slackware 10.2.

I installed in my computer:

JDK 5.0 Update 7

JMF 2.1.1e

JMF MP3 Plugin

JMStudio plays my mp3 file but only for a little moment and suddenly #$#$%#$$%$rdksldjflkdsjarklaj runs to the end of this.

Tested the same config in Windows and JMStudio gets to play the same music perfectly.

Had the same trouble even converting the mp3 to wav.

Tried to rip directly a song from cd to wav, the problem remains.

mid archives works perfectly in JMStudio in Linux.

In XMMS (player for linux) all the samples work perfectly.

Any idea why ?

extra info for linux users:

to be able to open JMStudio I had to input the following command:

java -Dawt.toolkit=sun.awt.motif.MToolkit JMStudio

CyberOwl at 2007-7-7 3:27:51 > top of Java-index,Administration Tools,Sun Connection...
# 3

hi i am also face same to run mp3 in linux it gives falloing exception

Exception in thread "JMF thread: com.sun.media.PlaybackEngine@55deea0 ( prefetchThread)" java.lang.UnsatisfiedLinkError: libjsound: file not found

at java.lang.Runtime._load(libgcj.so.7)

at java.lang.Runtime.loadLibrary(libgcj.so.7)

at java.lang.System.loadLibrary(libgcj.so.7)

at com.sun.media.sound.Platform.loadLibraries(Platform.java:196)

at com.sun.media.sound.Platform.<clinit>(Platform.java:112)

at java.lang.Class.initializeClass(libgcj.so.7)

at com.sun.media.sound.HeadspaceMixer.<clinit>(HeadspaceMixer.java:79)

at java.lang.Class.initializeClass(libgcj.so.7)

at com.sun.media.sound.HeadspaceMixerProvider.<clinit>(HeadspaceMixerProvider.java:28)

at java.lang.Class.initializeClass(libgcj.so.7)

at java.lang.Class.newInstance(libgcj.so.7)

at gnu.classpath.ServiceProviderLoadingAction.run(libgcj.so.7)

at java.security.AccessController.doPrivileged(libgcj.so.7)

at gnu.classpath.ServiceFactory$ServiceIterator.loadNextServiceProvider(libgcj.so.7)

at gnu.classpath.ServiceFactory$ServiceIterator.<init>(libgcj.so.7)

at gnu.classpath.ServiceFactory.lookupProviders(libgcj.so.7)

at gnu.classpath.ServiceFactory.lookupProviders(libgcj.so.7)

at javax.sound.sampled.AudioSystem.getMixerInfo(libgcj.so.7)

at javax.sound.sampled.AudioSystem.isLineSupported(libgcj.so.7)

at com.sun.media.renderer.audio.device.JavaSoundOutput.initialize(JavaSoundOutput.java:53)

at com.sun.media.renderer.audio.AudioRenderer.initDevice(AudioRenderer.java:287)

at com.sun.media.renderer.audio.JavaSoundRenderer.initDevice(JavaSoundRenderer.java:125)

at com.sun.media.renderer.audio.JavaSoundRenderer.open(JavaSoundRenderer.java:91)

at com.sun.media.BasicRendererModule.doPrefetch(BasicRendererModule.java:157)at com.sun.media.BasicTrackControl.prefetchTrack(BasicTrackControl.java:98)

at com.sun.media.PlaybackEngine.doPrefetch1(PlaybackEngine.java:592)

at com.sun.media.PlaybackEngine.doPrefetch(PlaybackEngine.java:547)

at com.sun.media.PrefetchWorkThread.process(BasicController.java:1430)

at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)

Some one plz help me

thanks

ajay_tiwari at 2007-7-7 3:27:51 > top of Java-index,Administration Tools,Sun Connection...
# 4

from:

http://java.sun.com/products/java-media/jmf/2.1.1/faq-jmf.html

Q: What media types does JMF 2.1.1 support?

JMF 2.1.1 supports a wide array of media types, including

* protocols: FILE, HTTP, FTP, RTP

* audio: AIFF, AU, AVI, GSM, MIDI, MP2, MP3*, QT, RMF, WAV

* video: AVI, MPEG-1, QT, H.261, H.263

* other: HotMedia

*MP3 is supported only on the Windows platform.

For a complete set of formats, check out: http://java.sun.com/products/java-media/jmf/2.1.1/formats.html

Basicly this means we are screwed and need a third party library.

Why am I finding it so hard to find one? I wanted to write a simple alarm app. thought it would take me an hour. instead i find myself desperately searching for a mp3 library...

looks like this one gunna have to be in c++

(The great thing about java is the library support - my ass)

apoiu at 2007-7-7 3:27:51 > top of Java-index,Administration Tools,Sun Connection...