Error in playing AVI(*.avi) file - please rectify ASAP

The Code I have written is as follws
import java.io.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import javax.media.*;
public class IconTest extends JFrame
     ImageIcon ic=new ImageIcon("Images\\English.ico");
     IconTest()
     public static void main(String arg[])
          IconTest n=new IconTest();
          JFrame frame=new JFrame();
          try {
          File soundFile = new File("Images\\lmt.avi");
               Player player = Manager.createRealizedPlayer(soundFile.toURL());
               player.start();
               frame.getContentPane().add(player.getVisualComponent());
               player.close();
          } catch (Exception e) {
               e.printStackTrace();
          frame.setSize(400,400);
          frame.setVisible(true);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
The Error is :
Unable tp prefecth com.sun.media.PlayBackEngine@1ac04e8
Please give me solution

Crosspost!
http://forum.java.sun.com/thread.jspa?threadID=607276&messageID=3306329

Similar Messages

  • Can not play avi files; please help!!

    i have a imac with Mac OS X 10.4.11; i can't get sound on any avi files, if take a mov file and convert it to avi, no sound; a friend give a disc with several avi movies, but i dont hear anything.
    can anybody help me please

    Download and install Perian from http://perian.org/
    You should read this support page http://perian.org/#support in case you need to delete older codecs.
    In Macintosh HD/Library/Quicktime/ delete any files relating to DivX (Perian already has them). However it should be noted that Perian is not an internet plugin and will not play DivX files imbedded on a website. For that you will need the DivX Player browser plugin available from http://www.divx.com/divx/mac/

  • Please help! Playing .avi files in QT Pro

    I have installed Perian, been to the Apple Store, and searched high and low for the answer, but cannot figure out how to play .avi files in QuickTime Pro. It's only some .avi files (not all), I can hear the background noise, but the screen is black. Please tell me how to remedy this.
    Thank you,
    Thom

    'avi is simply a container that can contain any number of different video codecs. Most, but not all, can be played on a Mac.
    These are the downloads and the settings you need in order to view/hear/play pretty much everything that the net can throw at you: The setup described below has proved repeatedly successful on both PPC and Intel macs, but nothing in life carries a guarantee!
    It is known to work in the great majority of cases with Safari 3.2.1 and 4, QT 7.4.x, 7.5.x and 7.6 and OS 10.4.11 and 10.5.6.
    Download and install (or re-install even if you already had them) the latest versions, suitable for your flavor of Mac, of:
    RealPlayer 11.1 for Mac from:
    http://www.versiontracker.com/dyn/moreinfo/macosx/15540
    Flip4Mac WMV Player from http://www.telestream.net/flip4mac-wmv/overview.htm (Windows Media Player for the Mac is no longer supported, even by Microsoft)
    Perian from http://perian.org/
    You should read this support page http://perian.org/#support in case you need to delete older codecs.
    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash
    (You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS.
    Note that Adobe requires you to uninstall any previous version of Flash Player, as mentioned here:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157&sliceId=1
    using the uninstaller from here (make sure you use the correct one!):
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.
    You should also ensure that you have downloaded and installed the correct version for your Mac of Security Update 2009-001. (N.B. Security Updates require both a restart and a permission repair.)
    In Macintosh HD/Library/Quicktime/ delete any files relating to DivX (Perian already has them). However it should be noted that Perian is not an internet plugin and will not play DivX files imbedded on a website. For that you will need the DivX Player browser plugin available from http://www.divx.com/divx/mac/
    Now go to Safari Preferences/Security, and tick the boxes under Web Content (all 4 of them) to enable Java.
    Lastly open Audio Midi Setup (which you will find in the Utilities Folder of your Applications Folder) and click on Audio Devices. Make sure that both Audio Input and Audio Output, under Format, are set to 44100 Hz, and that you have selected 'Built in Audio'.
    Important: Now repair permissions and restart.
    You should also consider having the free VLC Player from http://www.videolan.org/ in your armory, as this plays almost anything that DVD Player might not.
    There is an additional 'fix' you could try if you are having problems with Flash and Quicktime, depending on which type of Mac you have:
    On Intel Macs, make sure that you are not running Safari in Rosetta. You can check this, and change it, in the Get Info window.
    On PPC Macs, go to the Hard Disk/Library/Internet Plug-Ins folder, and drag the file 'QuickTime Plugin.webplugin' to the desktop. Quit and restart Safari. If things have improved you can trash that file. If they haven't put it back, as the lack of this plug-in can cause QT content in some widgets to cease functioning.
    And there is an additional kid on the block: SilverLight. Microsoft has created their own version of what a replacement for Flash could be. You can read more about it here:
    http://silverlight.net/
    So, if you go to any sites that have been designed for this new Silverlight stuff, you can download the plug-in from here (but make certain that you are downloading SilverLight v.1.0 for OS X (10.4.8 upwards) if you are using a PPC Mac. Version 2 only works with Intel Macs:
    http://silverlight.net/GetStarted/
    Recommendation: Close all applications before installing any of the above, repair permissions, reboot, and repair permissions again.

  • I am using OS 10.7 Lion. Quicktime will not play avi files. One support forum gave 2 links to get them but I got a 404 error. Can anyone help?

    I am using OS 10.7 Lion. Quicktime will not play avi files. One support forum gave 2 links to get the proper codecs but I got a 404 error. Can anyone help?

    You can also use VLC
    http://www.videolan.org/vlc/download-macosx.htm
    It woks very well, can read almost anything, and also lets you do conversions to other formats.

  • Cant play .avi files in Lumia

    Hi, iam using Lumia 520 and i can't play .avi files on my Lumia.... I read that .avi format is supported in 520,but iam unable ... So kindly please help me....

    Hi aadhi07,
    Welcome to the Nokia Support Discussions!
    Where did you get the .avi files and what's the error message when trying to play it? Does this happen to all .avi files or in some .avi files only?
    Upon checking, the Lumia 520 supports .avi, however it can only play a maximum of 720p.
    Cheers!

  • JMStudio won't play .avi files - mpeg-2 works fine

    Why doesn't JMStudio play .avi files?
    A small application that I created with JMF 2.1.1 has the same trouble.
    My .avi files can be played successfully with mediaplayer and also zoom player but JMStudio chokes on them. Why?
    I want to create a two-pane player for side-by-side video comparison with JMF but I don't want to start the effort if simple .avi playback is not possible.
    Sun's JMF 'supported format' page shows that all forms of .avi are at least 'playable' - yet my files are not.
    I have several mpeg-2 files that are playable in JMStudio and also in my simple app - so I know that the code is working.
    There are several old threads on this forum that ask this question but none of the threads give a decent answer.
    Please help.
    Thanx,
    skigrinder

    Got it working.
    Apparently, JMF can't handle type-1 .avi files but it can handle type-2 .avi files.
    Nero and Sony-DvGate both create type-1 .avi files in the capture process from a DV camcorder.
    I found a (Windows) utility - DvConverter - that will convert a type-1 .avi file to type-2.
    I'm now able to play these type-2 .avi files in JMFStudio and also in my own prototype player.
    Surprisingly, the FramePositioningControl functions also work - skip() and seek() !!!
    I'm currently working on eliminating the 'comb-teeth' effect that exists in both JMFStudio and my own player.
    I've read that this effect is the result of interlacing artifacts but my experience has shown that it also has a lot to do with the codec that's running. In windows, installing, un-installing, and re-installing codecs has a tendancy to mess with the registry in unpleasant ways resulting in a lot of time wasted trying to get rid of this 'comb-tooth' effect.
    Andrew, do you know of a foolproof way to solve this problem on windows?
    Thanx,
    skigrinder

  • How to play .AVI files in Safari browser?

    Hi,
    i'm watching Videos from web on Safari browser but .AVI files will not play in Safari because Quicktime player will not support, .AVI files. please how can i play .AVI files in Safari? is there any Plugin or Addon to play .AVI files in Safari? please suggest me.
    Thanks in Advance,
    Suresh Balakrishnan

    Go to this website and download the VLC Player for Free:
        http://vlc-media-player.en.softonic.com/mac
    Hope this helps

  • How to play *.avi files in solaris10 sparc

    hi frnds
    can some body tell me how to play avi files in solaris
    or is thr any binary packages ( but plese dont tell me abt source files i am fed up of compiling :) & ) if any binary packages r avilable
    please tell me or how to play in solaris 10 sparc version
    thanx & REGARDS
    chakri

    http://perian.org for your AVI files and http://flip4mac.com to play most WMP files via QuickTime Player.

  • HT3775 why my quick time can't play avi file

    I follow the instruction download "Flip Player", it still doesn't work. So please help me how I can play AVI file on my mac book pro
    Thank.
    Infoxing

    Download VLC (free): http://www.videolan.org/vlc/download-macosx.html

  • Quicktime playing AVI files

    I have AVI files and quicktime cannot play these, can you please help me
    thanks

    The installers from these two sites work in QT 6 but many using QT 7 and Tiger report problems with them.
    DivX
    3ivx
    Some QT 7 users report success with this decompressor although it will not play all avi files.
    http://labs.divx.com/archives/000061.html
    If all you want is to play avi files (not transcode) you may do better with this freeware: VLC

  • Playing AVI File In Quicktime

    Ok, here is my problem. I used to have Windows XP on my computer with Quicktime installed. I also had the DivX Suite (including the DivX codec) installed. I had no trouble playing *.avi files in Quicktime. However, now I have upgraded to Vista, I have done the same thing, installed Quicktime as well as the DivX Suite, but every time that I attempt to play *.avi files in Quicktime (I have tried several different files) I continue to get the error message that "Additional software is required for Quicktime to play back this media. It may be available from the Quicktime Components page." and it shows me that I need to download DivX. I have tried uninstalling DivX and downloading a fresh copy and installing. Same thing with Quicktime, but no luck. I have also tried installing the Xvid applications and still nothing. Does anyone have a guess at what it could be and is there something else that I need to do?

    I have a question for you instead of any help. I have XP with Quicktime installed. Both DivX and Xvid are installed and I can't get it to play .avi files with Quicktime. All it does is plays about a half second of audio then nothing. It used to pop up the additional software message, not sure if that is still the case. Media Player plays them no problem, but I personally can't stand WMP or any other Microsoft product for that matter. Is there some hidden setting that I need to adjust to make it work? Any advise would be appreciated. Thanks.

  • Quicktime 7 won't play avi files

    can someone please tell me why this is?
    It's only stopped playing them since its been upgraded
    i just get a white screen and the message that there might be a missing component?
    Sorry if this question has already been posted!
    Please HELP
    iBook G4   Mac OS X (10.4.8)  

    If QuickTime is set to play avi files in System Preferences, then the avi might not be one that QuickTime can play. There are several proprietary avi codecs. You might try VLC player or some other player that can play all the different kinds of avi codecs.

  • How do i play avi files on macbook pro

    Hi, I'm having problems playing .avi files on my macbook pro. Have donloaded DivX and Flip for mac but neither seems to help. .wmv files are fine.
    Thanks

    Go here and read this article. It's pretty good.
    Clinton

  • HT3775 hi, what do i need to do to play AVI file on my new macbook pro

    hi, what do i need to do to play AVI file on my new macbook pro

    Try installing Perian.
    (66938)

  • WMV3Server plays avi files containing WMV3/9 video and MP3 audio

    WMV3Server
    To play avi files with WMV3/9 video and MP3 audio encoding on Mac OS X as of 2005-01-24 you will need:
    Mac OS X 10.2 or later
    WMV3Server
    Windows Media Player 9 for Mac OS X
    An .avi file containing WMV3 video and MP3 audio.
    Instructions:
    Launch the WMV3Server java application and click the "Open" button.
    A standard open-dialog window appears. Either navigate to the avi video file or drag the file into the open window to have the window switch to the folder that contains the avi video file. Select the file and click the "Open" button or press return on the keyboard. The open-dialog window should close.
    Next, click the "Start" button. The movie will be cached and WMV3Server will display "Server Started"
    Open Windows Media Player 9 for Mac OS X. Pull down the "File" menu on the menu bar at the top of the screen and select "Open URL..." Enter the following address:
    mmst://localhost:1755/
    Windows Media Player should connect, buffer and play.
    The download page (in Japanese) for WMV3Server is here:
    http://www.geocities.com/Tokyo/Bay/8128/
    The download link is:
    http://www.geocities.com/Tokyo/Bay/8128/WMV3Server-0.4.zip

    Update: By playing around with the settings in the Default Applications preference pane (a free download) I somehow got the files to open automatically in QuickTime Player (with Flip4Mac WMV 2.0.1 installed) and they now play (instead of showing white video as they had previously. Unfortunately, I don't recall what I changed.
    Here's a sample file (apparently a beer commercial.):
    http://x500.putfile.com/videos/b7-19302161753.avi

Maybe you are looking for

  • Video out from MacBook Pro to HDTV - no solution?

    I've had this problem for over a year now and nobody has been able to help me solve it, not even the Apple guys. I need to get the video out from my MacBook Pro (Mini DisplayPort) to my HDTV which is an older model which only has Y/Pb/Pr analogue vid

  • Attaching a PDF document to an order from Web

    Hi, We have a requirement to attached a PDF document to an order in SAP from a web front end (its a custom web application written in cold fusion). We currently create orders from this web application which talks to SAP via XI. I know that using the

  • Email server didn't recognize your user name

    Just lately - when trying to email a photo in iPhoto ~ I get this message: email server didn't recognize your user name/password combo. I have googled and checked Preferences. I have tried to reset each of the passwords in each email account I have s

  • Af:panelPage not found in Component Palette

    Hi All, I am using JDeveloper 11.1.1.5.0. I am following a hands-on tutorial in book "Oracle JDeveloper for Forms and PLSQL developers" which is using Oracle JDeveloper 10g. It is using af:panelPage facet which is not available in JDeveloper 11g. Can

  • JSP,Struts and MySQL

    I have 2 date fields(say: from , to) in JSP. based on these date, i want to retrieve data from MySQL database. In Database, the date format is "yyyy-mm-dd" but i am using date picker in JSP for entering From date and TO date. Could you please help me