Error Unable To Realize Com.sun.media.playbackengine
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Java JMF won't play any video files up vote 1 down vote favorite I try to play a video file (such as .avi) using the fabulous JMF 2.1.1, but I get the same error message: Unable to handle format: XVID, 624x352, FrameRate=23.9, Length=1317888 0 extra bytes Unable to handle format: mpeglayer3, 48000.0 Hz, 0-bit, Stereo, Unsigned, 18627.0 frame rate, FrameSize=9216 bits Failed to realize: com.sun.media.PlaybackEngine@e53108 Error: Unable to realize com.sun.media.PlaybackEngine@e53108 . The program does play audio files. I am using a program I downloaded: http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/MDIApp.java and also tried the demo app from the Oracle interweb site. Codec problem seems likely, but I can't find any internet resources with specific instructions to remedy this. I am in dire need of help here. Any suggestions? Thank you. java video jmf share|improve this question asked Aug 24 '11 at 21:42 farm ostrich 1,71393272 1 JMF is stinky dead fish, without any progress long time... –mKorbel Aug 24 '11 at 22:00 1 If you're not scared of JNI, there's always libVLC. –Steve Taylor Aug 24 '11 at 22:20 I got it to run with .mpg. I'm amazing that java doesn't have better built-in multimedia support. –farm ostrich Aug 24 '11 at 23:13 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted Linking from a previous question How to create a media player in Java without JMF?. To be specific, there is a platform specific performance pack from Sun with some added codecs that might be useful. A list of supported formats is on the oracle site. But I don't think XVID will be supported share|improve this answer answered Aug 25 '11 at 5:22 jogabonito 1,56031533 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Pos
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Java Media Framework - MP3 http://stackoverflow.com/questions/7182662/java-jmf-wont-play-any-video-files Issues up vote 1 down vote favorite Im using Windows 7 and can "Java Platform SE Binary" in my sound mixer but yet still no sound seems to play. My code is: import javax.media.*; import java.io.File; import java.io.IOException; import java.net.URL; import java.net.MalformedURLExc; public class SimpleAudioPlayer { private Player audioPlayer = null; public SimpleAudioPlayer(URL url) throws IOException, NoPlayerException, CannotRealizeException { audioPlayer = Manager.createRealizedPlayer(url); } public SimpleAudioPlayer(File http://stackoverflow.com/questions/16080606/java-media-framework-mp3-issues file) throws IOException, NoPlayerException, CannotRealizeException { this(file.toURL()); } public void play() { audioPlayer.start(); } public void stop() { audioPlayer.stop(); audioPlayer.close(); } public static void main(String[] args) { try{ File audioFile = new File("/t.mp3"); SimpleAudioPlayer player = new SimpleAudioPlayer(audioFile); System.out.println(); System.out.println("-> Playing file '" + audioFile.getAbsolutePath() + "'"); System.out.println(" Press the Enter key to exit"); player.play(); // wait for the user to press Enter to proceed. System.in.read(); System.out.println("-> Exiting"); player.stop(); }catch(Exception ex){ ex.printStackTrace(); } System.exit(0); } } I use the Windows Preformance JMF edition. The MP3 im trying to play works fine in VLC/WMP so it cant be the file. The code also throws no exceptions or error when running, it just doesnt seem to play the sound. Is there something im missing? Like pulling the sound card? E.g. taking over it so i can play sound out of it? Im overall aim is to to a MP3 streaming service using RTP/RTSP so any links,advice or tuturiols would be help as im currelnt using IBM JMF Tuturiol and Java Demo Please ask if any more information is needed! UPDATE- Downloaded WAV FILE and it seemed to play, how can i make MP3s play? Added formats
App EngineApache AntApache MavenjQueryJava MongoDBQuartz SchedulerLog4jContact Us JMF - Unable to handle format: mpeglayer3By mkyong | January 8, 2010 | Viewed : 10,993 times +18 pv/wProblemYou may https://www.mkyong.com/applet/jmf-unable-to-handle-format-mpeglayer3/ 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, http://blog.msbbc.co.uk/2007/06/mp3-playback-in-java.html 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 SolutionThis is because Java took error unable 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 Tags : jmf mp3Share this article onTwitterFacebookGoogle+Related Posts About the Author mkyong Founder of Mkyong.com and HostingCompass.com, love Java and error unable to open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.Popular PostsLoading...Comments Abhishek 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…….. David Peers 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. Rising Posts (100k-500k pv)Loading...Risin
took a while and I can't really be sure exactly what I did to get all the things working; if I ever do a clean install, I'll try and document the process. Here's a very quick outline before I post the code -I grabbed all the jars from here:http://java.sun.com/products/java-media/jmf/2.1.1/download.htmlAnd grabbed the mp3 handler here:http://java.sun.com/products/java-media/jmf/mp3/download.htmlThe jars you'll need to drop into eclipse are (I think):mp3plugin.jarmediaplayer.jarjmf.jarmultiplayer.jarHere were some other links I found handy:http://java.sun.com/products/java-media/jmf/2.1.1/setup-linux.htmlhttp://java.sun.com/products/java-media/jmf/2.1.1/jmfdiagnostics.htmlhttp://ubuntuforums.org/showthread.php?t=436053http://weblogs.java.net/blog/jonathansimon/archive/2004/11/suns_mp3_plugin.htmlhttp://forum.java.sun.com/thread.jspa?threadID=686681&messageID=3996185Just a prewarning:I kept getting errors that looked like this -Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo,LittleEndian, Signed, 16000.0 frame rate, FrameSize=32768 bitsFailed to realize: com.sun.media.PlaybackEngine@12dd76Error: Unable to realize com.sun.media.PlaybackEngine@12dd76Failed to realize: input media not supported: mpeglayer3 audioIf you keep seeing these, try a number of different mp3 files; I had to try 3 before I had something working. I found testing the mp3 files using jmstudio was a reliable way to test - if jmstudio can open and play the file automatically, then it should work fine with the code listed below. You can see a forum discussion regarding some of the common problems here:http://www.velocityreviews.com/forums/t149533-mp3-playback-using-java-sound-and-sun-mp3-plugin.htmlA common alternative to the sun offering seems to be:http://www.tritonus.org/plugins.html-----------------------------------------------------Ok - if everything is set up an