Re: Use JMF to play mpg file

Hi
You have to write your platform for targeted answere. But if I got the same problem when I tried to run my jpg on not system where jmf was not (properly) installed. It is quite possible your jmf to lack its native libs (on Win, DirectShow is used for mpg playing).
Possible solution: reinstall and make shure that dlls are in your win dir.
If on win, try playing your files with MediaPlayer (MS).
HtH

Go look at this example.
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/SwingJMF.html]

Similar Messages

  • Quicktime Wont Play MPG Files

    Hi,
    Just bought my first Mac - loving it. Only issue I have so far is that I have a load of video camera clips with an .mpg extension, which I copied onto an external drive when I had my PC. Now when I come to play these files, it comes up with "The movie xxxxxx.mpg can't be opened. You may need to install additional software to open this type of file.
    Wherever I look, it says Quicktime will play .mpg files, so I can't understand why they wont work. All the photo's on the same drive have gone into iPhoto no problem. When I go onto "tell me more" it starts going on about downloading additional media support. Not sure if I'm missing something simple!
    Please help!
    Thanks,
    Darran.

    Yea...I did this when I got my Mac for Christmas 2009. I can watch the videos no problem...WITHOUT SOUND! If I use VLC everything works right, but I want to be able to burn the videos to DVD to watch somewhere else too. I bought a Mac because this was supposed to be easier...NOT!
    Thinking of going back to a PC. At least everyone knows they have issues.

  • Question - applet using JMF for playing .mov

    I develop an applet using JMF for playing .mov. It works fine, and the applet starts normally. Even my applet works fine from other computers in our LAN (The applet runs ok without JMF). But only on one PC it doesn't work and I get the following message
    Failed to configure: com.sun.media.PlaybackEngine@a7c45e
    Bad header in the media: moov atom not present
    Error: Unable to realize com.sun.media.PlaybackEngine@a7c45e
    FATAL ERROR: Failed to realize: failed to parse the input media.
    Exception in thread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" java.lang.Error: Failed to realize: failed to parse the input media.
    at PlayerApplet.Fatal(PlayerApplet.java:201)
    at PlayerApplet.controllerUpdate(PlayerApplet.java:191)
    at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
    at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
    at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
    at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    My html:
    <html>
    <head><title>PlayerApplet</title></head>
    <body>
    <applet code="PlayerApplet.class" archive="fobs4jmf.jar, customizer.jar, jmf.jar, mp3plugin.jar, sound.jar, multiplayer.jar, mediaplayer.jar" width=640 height=510>
    <param name=file value="safexmas.mov">
    </applet>
    </body>
    </html>
    Anyone can help me?
    Thanks for your time

    It started to work but I had to install fobs4jmf on the client computer.
    And put .dll to windows/system33 directory. But how can I play video using applet in browser without installing any software on the client machine?

  • Jmf to play audio file in jsp

    hi,
    i am using jmf to play an audio file in jsp page.
    when i am trying in my computer it works.but when i am trying to access the application from other networked computer using the ip address,the audio can be hear only in the server system itself,not from where we have accessed the application and play the audio file.
    How can i resolve the issue?
    Thanks and Regards
    jai

    Jaisha wrote:
    ..i am using jmf to play an audio file in jsp page.Why JMF? Core Java has had the ability to play sound since J2SE 1.3, using [Java Sound|http://forums.sun.com/forum.jspa?forumID=541].
    when i am trying in my computer it works.but when i am trying to access the application from other networked computer using the ip address,the audio can be hear only in the server system itself,not from where we have accessed the application and play the audio file.I'm guessing you are a newbie to web development. To get the sound to play on the client, will require an applet or JWS launched application.
    How can i resolve the issue?Write an applet or JWS launched app.

  • S. can't play mpg files

    Hi,
    Safari can't play mpg files any more. (I have to download them and play them with QT Player.) Instead, there is a vertical black stripe with little white dots in it.
    Any idea would be much appreciated!
    Thanks a lot
    Peter

    Don't trash the original Quicktime (10) app, you'll be sorry if you do. Quicktime 7 Pro does not add playback capability to videos. Right click on a video and pick Quicktime Pro 7 from the open with menu.
    If you wish to use Quicktime Pro 7 to playback all videos when clicking on a video, get info in the finder for the video... scroll to open with... pick the open with drop down menu... pick Quicktime 7.... and hit the change all button.
    If your still having problems playing  back your videos please post back. We need to find out what kind of mpg video files you have...

  • Need help playing .mpg files

    Just recently my computer has stopped playing .mpg files with sound, all I get is the video. iTunes, Quicktime and the Internet all will not play them with sound. Youtube.com does play movie files with sound so I'm assuming they aren't .mpg files.
    This problem just started happening recently and I have no idea what I did. .Mov files do play with sound.
    Thanks for any help.

    The following steps solved my problem similar to yours.
    1. Open Audio MIDI Setup (/Applications/Utilities/), then check the Audio Output setting.
    2. Change the Audio Output setting to 44100.0 Hz.
    3. Quit Audio MIDI Setup.
    For more detail, read this article.
    http://docs.info.apple.com/article.html?artnum=300832
    My output setting looked like 44100.0 Hz when I first opened Audio MIDI Setup. I changed it to 96000.0 Hz first and changed it back to 44100.0 Hz just to make sure the setting will be in effect. It worked.
    MacBook Pro (2.0GHz), iMac G5 (1.8GHz), Macmini   Mac OS X (10.4.8)  

  • Play MPG file

    Hi all,
    i've 2 problems: the first one is that i cannot play mpg files with totem, usually the codec i needed to install to play them was gstreamer0.10-ugly (that ofc is installed together with many others codecs ), but i can only hear audio from those files on the properties it shows "MPEG-1 video" codec, what package i need to install?
    Thank you.

    yes, but it didn't help, with some files i get this error too:
    GstCDXAParse: The stream is of a different type from than handled by this element
    Caranthir
    EDIT: i installed mplayer and i can play mpg with it, still not working with totem...
    Last edited by Caranthir (2007-10-21 19:24:26)

  • Can no longer play .mpg files

    I just noticed this. iTunes will not play any .mpg files on my Intel Mini runing SnowLeopard. I don't know if this is confined to video files or not. I have iTunes 9. whatever, it's the latest. The same files play fine in Leopard on my G5 Tower in the same version of iTunes. When I try to watch them in FrontRow (which we all know about by now) it get the error message "Not a recognized file format." Once again I can watch these on the G5 in FrontRow with no trouble. Anybody have any ideas?
    I'm really thinking of getting a bunch of used PPC Macs for my home entertainment network, ok i can't blame the poor Intel based models can I, it's just the Snow Leopard droppings all over my house.
    Thanks
    J.

    I should add that these are mpgs of a television series. They were made with QuickTime Pro 7.6.2 or .3 just before the new iTunes and Snow Leopard came out. I can open them with either QT X or QTPro7 on the Mini and they play fine. I don't know where to point the finger since they play through iTunes fine on the PPC Leopard Mac and not the Intel Snow Leopard Mac. It could be how the new tunes works with the OS but those kind of hooks are harder to find than they were back in the old OS7,8,9 days. I'm not meaning to be an old bloke longing for the old days cause i love the magic of technology.

  • How can I play mpg files on my mac or ipad?

    Can I extend Quick Time to play files with the extension mpg? I don't want to have to convert all my files and I'd rather not have to use a different player.
    I'm sure I've played these files on an older mac. Will Quick Time recognise them if I just rename the extensions?
    Message was edited by: Beeps57

    Quicktime Player will easily play MPEG-1 and MPEG-4 files (http://support.apple.com/kb/ht3775).  However, MPEG-2 files (typically from DVDs) are not supported natively (http://support.apple.com/kb/ht3526).
    The easy solution is to use a trusted 3rd party application that can play them.  One of the best is VLC player (http://www.videolan.org/vlc/index.html).
    One way to extent QuickTime player is to purchase QuickTime Pro for QuickTime 7 (http://www.apple.com/quicktime/extending/).  The best other way used to be to install Perian (http://perian.org/) but is is no longer supported.  They however recommend "niceplayer" (https://code.google.com/p/niceplayer/) froom the Perian web site.
    Message was edited by: Tim Snoots

  • Can't import or play .mpg files in iMovie or Quicktime

    I have video files that play on a PC using WinDVD and have a .mpg file extension.  I'm assuming its MPEG-2 based on the quality.  They were taken by a Canon video camera and I have them on a USB drive.  Trying to import them in iMovie it just puts up a window saying "optimizing movies" but gives no time or anything else.  I left it for a couple hours and it did nothing.  I tried to play them in Quicktime but it wouldn't either or in the DVD player app.
    Supposedly Lion has a native MPEG-2 codec but it doesn't seem to be working.  Any ideas on what to do?

    Hi All,
    i have checked the Tools > Options > Applications, but i didn't see "Reset Download Actions". I solved this problem by installing Flash Player. Now i can play swf in firefox.

  • QT 7.3 Crashes Playing .mpg Files on Leopard

    I've got lots of other problems with Leopard, but now I've discovered that any time I try to play a .mpg file with QT 7.3 (build QuickTime-6370000~5) on Leopard 10.5.1 (9B18), QT crashes. 100% reliable. Same for any app that uses the QT engine. Same files play fine on my other (non-Leopard) Macs.
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000000
    Anyone else seeing this?

    Motu says to me that was an account problem:
    "with the ultralite powered on, quicktime crashes when i try to play any .mpg video. The problem dissapears if i switch off the motu. I use a macbook with osx 10.5.1 leopard
    Responses
    Added by Matt on 2008/01/21 15:58:25 US/Central
    State change from 'Unread' to 'In progress'
    What happens if you use a different user account on this machine?
    -Matt
    Added by Eloy on 2008/01/21 17:12:44 US/Central
    ok. i've created a new user (administrator) and running with that account, the problem dissapears. Video mpg runs correctly... why?
    Can i solve the problem in my original account?
    thank you.
    Added by Matt on 2008/01/22 08:55:17 US/Central
    I am not sure if you could solve this problem with your original user account, however that tells me that the problem is not with the unit, it is with your account. Perhaps you could try reinstalling quicktime, however I am not sure what the issue could be within your account."

  • JMF Not playing wav files in Linux

    Hi all,
    I'm using the code below to play a simple wav file in Linux:
    ==
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.media.ControllerEvent;
    import javax.media.ControllerListener;
    import javax.media.EndOfMediaEvent;
    import javax.media.Manager;
    import javax.media.MediaLocator;
    import javax.media.NoPlayerException;
    import javax.media.Player;
    * @author
    public class AudioTest implements ControllerListener {
        /** Creates a new instance of AudioTest */
        public AudioTest() {
        public static Object syncObject = new Object();
        public static void main(String args[]) throws InterruptedException {
            try {
                URL url = new URL("file", "", "/magichome/xruser/jmf/WindowsXPStartup.wav");
                String mediaFile = url.toExternalForm();
                System.out.println(mediaFile);
                MediaLocator mediaLocator = new MediaLocator(mediaFile);
                System.out.println(mediaLocator);
                if(mediaLocator != null) {
                    try {
                        AudioTest test = new AudioTest();
                        //Player player = Manager.createPlayer(mediaLocator);
                        Player player = Manager.createPlayer(url);
                        player.addControllerListener(test);
                        System.out.println(player);
                        player.start();
                        synchronized(syncObject) {
                            syncObject.wait();
                            player.stop();
                            player.close();
                            System.out.println("CLosed...");
                        Thread.sleep(10000);
                        System.exit(0);
                    } catch (NoPlayerException ex) {
                        ex.printStackTrace();
                    } catch (IOException ex) {
                        ex.printStackTrace();
                    } catch (Error err) {
                        err.printStackTrace();
                //com.sun.media.amovie.AMController@9fef6f
            } catch (MalformedURLException ex) {
                ex.printStackTrace();
        public void controllerUpdate(ControllerEvent event) {
            System.out.println(event);
            if (event instanceof EndOfMediaEvent) {
                synchronized(syncObject) {
                    syncObject.notify();
    }==
    But on running the above program with the following commands:
    /usr/java/j2sdk1.4.2_08/bin/javac -classpath /magichome/xruser/jmf/jmf.jar:./:/magichome/xruser/jmf/mediaplayer.jar:/magichome/xruser/jmf/multiplayer.jar:/magichome/xruser/jmf/sound.jar:customizer.jar AudioTest.java
    /usr/java/j2sdk1.4.2_08/bin/java -classpath /magichome/xruser/jmf/jmf.jar:./:/magichome/xruser/jmf/mediaplayer.jar:/magichome/xruser/jmf/multiplayer.jar:/magichome/xruser/jmf/sound.jar:customizer.jar AudioTest
    I get the following error:
    ==
    file:/magichome/xruser/jmf/WindowsXPStartup.wav
    file:/magichome/xruser/jmf/WindowsXPStartup.wav
    com.sun.media.content.unknown.Handler@1ee4648
    javax.media.TransitionEvent[source=com.sun.media.content.unknown.Handler@1ee4648,previous=Unrealized,current=Realizing,target=Started]
    javax.media.DurationUpdateEvent[source=com.sun.media.content.unknown.Handler@1ee4648,duration=javax.media.Time@1e8a1f6
    javax.media.RealizeCompleteEvent[source=com.sun.media.content.unknown.Handler@1ee4648,previous=Realizing,current=Realized,target=Started]
    javax.media.TransitionEvent[source=com.sun.media.content.unknown.Handler@1ee4648,previous=Realized,current=Prefetching,target=Started]
    Unable to handle format: LINEAR, 22050.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 88200.0 frame rate, FrameSize=32 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@91cee
    Error: Unable to prefetch com.sun.media.PlaybackEngine@91cee
    javax.media.ResourceUnavailableEvent[source=com.sun.media.content.unknown.Handler@1ee4648,message=Failed to prefetch: cannot open the audio device.]
    ==
    I'm unable to isolate the problem here. When I play the file with mplayer, it plays just fine. But with the code above, it just does not wish to play..
    Can someone please point out the error I am commiting.
    Thanks

    I'm using the code below to play a simple wav file in
    Linux:I'm running the performance pack under Win XP, here..
             try {
                 URL url = new URL("file", "",  "/magichome/xruser/jmf/WindowsXPStartup.wav");
    ...Is that a linear encoded, 16 bit, stereo sample
    recorded at 22050Hz sample rate? 4.81 seconds
    (424,644 bytes), content type audio.x_wav?
    The reason I ask is just that you do not mention if
    you'd tested on any other OS, and I found a very
    similarly named WAV of the above description on
    my system and tried it with your code - and in
    JMStudio.
    It ran flawlessly in both.
    But on running the above program ...
    I get the following error:...
    file:/magichome/xruser/jmf/WindowsXPStartup.wav
    file:/magichome/xruser/jmf/WindowsXPStartup.wav
    com.sun.media.content.unknown.Handler@1ee4648...
    Unable to handle format: LINEAR, 22050.0 Hz,
    16-bit, Stereo, LittleEndian, Signed, 88200.0 frame
    rate, FrameSize=32 bits...
    I'm unable to isolate the problem here. When I play
    the file with mplayer, What is 'mplayer'? The default media player
    of the OS?
    ..it plays just fine. But with
    the code above, it just does not wish to play..
    Can someone please point out the error I am
    commiting.I cannot tell what the problem is, sorry. Just
    thought I should check in and note there is
    nothing wrong with the code, and that WAV
    is sure understood by Windows based JMF.

  • "Timed Out" message trying to play .mpg files on my STB

    I recently downloaded the new version of Media Manager that plays videos.  I have a lot of .mpg files from home movies taken over the years.  They all play in the Media Manager on my PC, and the thumbnails show up on my TV with the Home Media Center STB.
    But when I hit "OK" to play an .mpg clip, it first says "wait for up to 15 seconds for file to load" and then says "timed out; try again".
    The Media Player menu that shows on my TV has a "FiOS Sample Video" (a 20 second clip that starts playing about 3 seconds) that plays without any problem.  The home movie .mpg clip I tried to play is a 12 second clip, but it always times out.
    My PC is six feet from the Verizon wireless router, but I don't know what the bandwidth is to the STB.  My Internet service is 20/5, but when I test it I get 10/2.
    What am I doing wrong?
    Thanks in advance for any suggestions.

    i heard you have to rename certain files to play.  try renaming it to mpeg instead of mpg

  • Play mpg files in Bridge

    I can play mov and other video files in Bridge but not mpg (mpeg-2). How can I play mpg video files?
    [Moved from the generic Cloud forum to the specific Program forum... Mod]

    I've also just discovered that Cyberlink PowerDVD will also play them.

  • Problem playing .mpg files

    I can not reproduce mpg files.
    I intalled the QuickTime component for mpg files, but even after that, I can here no audio when playing mpg video.
    Thanks in advance

    I'm having the same problem, I paid for and downloaded a MPEG 2 software and it still didn't work. I have a brand new Macbook Pro with OS X Lion

Maybe you are looking for

  • EJB 3.0: EJBQL aggregate functions not working properly

    Hi! We are experiencing problems when using aggregate functions within EJBQL queries. In my case, we have to use max() function to retrieve the max start_date from a specific table. In order to do this, we wrote the following code: String strQuery =

  • For those of you who cannot afford a proper video editing system...

    ...don't buy any prosumer video editing program (including Premiere Pro CS5.5). Here's why: Last night, I ran the PPBM5 test on an Intel i3-2100 system with 4GB of DDR3-1333 RAM, a 500GB OS drive and a 1TB project drive (both drives are 7200 RPM) and

  • Embedded web content viewer

    Downloaded the example from the web site. Modified the hosts file as the readme.txt file indicated. When we access blogs.adobe.com/hostDemos/bridge/ we get the message that we are not authorized to view the publication. I can view the publication if

  • Photoshop brush lags and stops after updating to Yosemite

    After updating to Yosemite whenever I am using brush or the eraser tool it stops or lags (I am not sure what to call it). What happens is I can't hit any other shortcuts keys like "[ ]" for increasing the brush size and even changing tools like press

  • Shipped drivers and DIH

    We want to test DIH in Solr connecting to a MS SQL Server. First we followed the steps described in the Help section "Indexing using Data import Handler" (http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d318518-1acb57941353e8b4 f85-