File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes Linux/JMF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Linux/JMF" Watch "Linux/JMF" New topic
Author

Linux/JMF

cinderalla
Greenhorn

Joined: Nov 19, 2001
Posts: 4
Hello Friends,

I have set sound files placed in Linux machine(server).
I use Jmf for audio files to play.
When i try to get soundfiles from linux m/c i get an error
Failed to configure: com.sun.media.PlaybackEngine
Bad header in the media: WAVE Parser: expected magic string RIFF, got < !DO

Error: Unable to realize com.sun.media.PlaybackEngine
Failed to realize: failed to parse the input media.

So pl.. help me with a solution.
with regards,
Cinderalla.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15632
    
  15

There are quite a few different audio file formats. The two most popular are probably "WAV" (Windows) and "AU" (Unix), not counting streamable forms like RealAudio's "RAM" form.
RIFF is, I believe an IBM version of the IFF (Interchange File Format) format created by Electronic Arts for the Commodore Amiga, and apparently that's what the player is looking for. The first 4 bytes of the file should be "RIFF". However, your sound file isn't in RIFF form. What you're going to need to do is determine what format is actually is and set the JMF player to match it.

Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Linux/JMF
 
Similar Threads
Using JMF in Eclipse 3.0 -- A "failed to realize" error
JMF or FMJ on ubuntu
JMF and mp3 plugin
Playing 16-bit stereo files
problem with JMF on Linux