Error Unable To Realize Com.sun.media.codec
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 Post as a guest Name Email discard By posting your answer, you agree to the privacy
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 http://stackoverflow.com/questions/7182662/java-jmf-wont-play-any-video-files up Java Media Framework - MP3 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, http://stackoverflow.com/questions/16080606/java-media-framework-mp3-issues NoPlayerException, CannotRealizeException { audioPlayer = Manager.createRealizedPlayer(url); } public SimpleAudioPlayer(File 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 n
Speaker BureauLog inRegisterSearchSearchCancelError: You don't have JavaScript enabled. This tool uses JavaScript https://community.oracle.com/thread/1281267 and much of it will not work http://www.java-forums.org/advanced-java/63056-problem-jmf.html correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message error unable and try again. More discussions in Java Media Framework All PlacesJavaJava SEJava Media Framework This discussion is archived 0 Replies Latest reply on Nov 12, 2007 3:21 PM by 843802 Unable to realize com.sun.media.codec.video.jmpx.Jmpx 843802 error unable to Nov 12, 2007 3:21 PM I am running on Windows and I have the jmf.jar in the jre/lib/ext directory along with it being in the classpath. However, I get the following when attempting to play an mpg file: Error: Unable to realize com.sun.media.codec.video.jmpx.Jmpx@290fbc javax.media.CannotRealizeException at javax.media.Manager.blockingCall(Manager.java:2005) at javax.media.Manager.createRealizedPlayer(Manager.java:554) Any insight would be appreciated. 21Views Tags: none (add) This content has been marked as final. Show 0 replies Actions Powered byAbout Oracle Technology Network (OTN)Oracle Communities DirectoryFAQAbout OracleOracle and SunRSS FeedsSubscribeCareersContact UsSite MapsLegal NoticesTerms of UseYour Privacy Rights© 2007-2016 Jive Software | Powered by Home | Top of pageJive Software Version: 8.0.3.1 , revision: 20160414082626.1619a91.release_8.0.3.x
with JMF LinkBack LinkBack URL About LinkBacks Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 09-16-2012,02:12 PM #1 oror84 Member Join Date Mar 2012 Posts 4 Rep Power 0 Problem with JMF Hi, I'm trying to play a song with JMF, the song location is in my computer. I'm getting an exception of CannotRealizeException. I'm king of new programmer with JMF, here is my code : Java Code: import javax.media.CannotRealizeException; import javax.media.Manager; import javax.media.NoPlayerException; import javax.media.Player; import java.io.File; import java.io.IOException; import java.net.URL; public class SimpleAudioPlayer { private Player audioPLayer; public SimpleAudioPlayer(URL url) throws IOException, NoPlayerException, CannotRealizeException { audioPLayer = Manager.createRealizedPlayer(url); } public SimpleAudioPlayer(File file) throws IOException, NoPlayerException, CannotRealizeException { this(file.toURI().toURL()); } public void play() { audioPLayer.start(); } public void stop() { audioPLayer.stop(); audioPLayer.close(); } public static void main(String[] args) { try { File file = new File("C://Users//Or//Downloads//Songs//a.mp3") ; SimpleAudioPlayer simpleAudioPlayer = null; simpleAudioPlayer = new SimpleAudioPlayer(file); simpleAudioPlayer.play(); } catch (IOException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } catch (NoPlayerException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } catch (CannotRealizeException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } } } I have a song with a.mp3 name at this location, and i dont know what is the reason i'm gettting this exception. Hope that someone can help me.. Thanks, Or. Reply With Quote 09-16-2012,04:18 PM #2 DarrylBurke Forum Police Join Date Sep 2008 Location Madgaon, Goa, India Posts 12,001 Rep Power 23 Re: Problem with JMF Have you installed the MP3 Plugin? db If you're forever cleaning cobwebs, it's time to get rid of the spiders. Reply With Quote 09-16-2012,04:58 PM #3 oror84 Member Join Date Mar 2012 Posts 4 Rep Power 0 Re: Problem with JMF Hi and thank you for your answer. I just installed the plugin, and still get the same exception. Thanks, Or. Reply With Quote 09-16-2012,05:15 PM #4 oror84 Member Join Date Mar 2012 Posts 4 Rep Power 0 Re: Problem with JMF This is the error