JMF and movie trailers

I'm trying to add a movie trailer viewer to an application. I'm using JDK 1.5.0_04 and JMF2.1.1e on Windows XP SP2 with IDEA 4.5.3 (if that matters).
        try {
            url = new URL(film.getTrailer());
            player = Manager.createPlayer(url);
            player.addControllerListener(this);
            player.realize();
        catch(Throwable x) {
            System.out.println("MGH: " + x.getMessage());
        }My controllerUpdate code is:
        if(event instanceof RealizeCompleteEvent) {
            player.prefetch();
        else if(event instanceof PrefetchCompleteEvent) {
            clip = player.getVisualComponent();
            Rectangle tsb = trailerScreen.getBounds();
            clip.setBounds((tsb.width-480)/2, (tsb.height-320)/2, 480, 320);
            trailerScreen.add(clip);
        else {
            System.out.println("MGH: " + event);
        }I'm using Apples movie servers as a .mov source for now. After the player.realize() statement above is executed, I get the following console messages:
MGH: javax.media.TransitionEvent[source=com.sun.media.content.unknown.Handler@36d047,previous=Unrealized,current=Realizing,target=Realized]
MGH: javax.media.CachingControlEvent[source=com.sun.media.content.unknown.Handler@36d047,cachingControl=com.sun.media.protocol.DataSource$CachingControl@1fa5e5e,progress=1493]
Failed to configure: com.sun.media.PlaybackEngine@19d12cc
Bad header in the media: Expected mvhd atom but got rmra
Error: Unable to realize com.sun.media.PlaybackEngine@19d12cc
MGH: javax.media.ResourceUnavailableEvent[source=com.sun.media.content.unknown.Handler@36d047,message=Failed to realize: failed to parse the input media.]
MGH: javax.media.ControllerClosedEvent[source=com.sun.media.content.unknown.Handler@36d047]
I've tried other online servers and gotten similar format issues. What am I doing wrong?
TIA

You didn't mention which codec package you're using, so I'm guessing you aren't using any. JMF by itself doesn't support the video encodings used by most movie trailer websites. JFFMPEG and FOBS are plugins for JMF which support a lot of codecs. (http://jffmpeg.sourceforge.net and http://fobs.sourceforge.net).
That said, it also looks like the JMF Quicktime parser isn't happy with the Quicktime file which gets downloaded. If I'm not mistaken, that's what this is:
Bad header in the media: Expected mvhd atom but got rmra
You can download the Sun Community Source release to see why.
Scott

Similar Messages

  • Front Row and Movie trailers

    I just installed the latest front row update. The movie trailers that used to say "server not responging" are now working! I can view all the movie trailers now.
    iMac DC-20", 2G, 256 Vram; Mac mini   Mac OS X (10.4.5)  

    Hi JE3,
    please, post here
    http://discussions.apple.com/thread.jspa?threadID=432141&tstart=0
    the original thread about Movie Server non Responding.
    Antonio

  • Youtube downloading on ATV very slow and I can't view movie trailers

    I am not sure if both these items are related or not. I am using the Airport Extreme as well as 1 Airport Express for my network. The connection speed according to 2 laptop tests in the room the ATV is in shows my speedtest at approximately 3000 kbps. I have my ATV connected to my TV with an HDMI cable.
    I can connect to my iMac and view any content with my ATV without issue.
    I can view Youtube content but the streaming is very slow or freezes all together. This is frustrating. Also the video is very grainy at best.
    Also I've tried to look at movie trailers and they simply won't load. I don't want to rent a movie using ATV unless I know I am going to be able to watch it. I do have movies on my iMac that I watch using the ATV without issue.
    Is anyone else having the same trouble?

    I have contacted my ISP. The speed I am getting is more than they guarantee it to be. There are no limitations on my account. They did say that from their location the youtube loads are quite slow so they are thinking it is Youtube itself.
    As for not viewing the movie trailers from either my iMac or the ATV he said there are no restrictions on my downloads and can't explain why they are not working. I did restart my airport extreme and I am still unable to load trailers.

  • HT2242 Belgium has 2 (well actually 3) main languages, namely Dutch to the North and French in the south. If I select Belgium, I can only buy movies and see trailers in French and not Dutch. Can anybody help?

    Hi all,
    I believe that I am faced with a common problem, namely: A large multinational that wants my money but is not interested in my country. I selected Belgium as country in iTunes. As a consequence, two things happened. One iTunes uses a mix of French and English to talk to me and does not offer me Dutch. But more importanly, it also offer my movie trailers and movies in French and not Dutch. I am not going to buy movies that are dubbed in French.
    As said, I sure many other Belgians have raised this but I cannot find a solution. Any help?
    PS: For the Apple boys and girls, if you ever wondered why Belgium remains a modest market for you, well because you do not address your audience in their language.
    Pss: To make you feel better, you are not alone. Your friends at Microsoft are not much better.
    A disappointed customer

    To have Apple see your request, use
    http://www.apple.com/feedback

  • I Just updated to the latest Apple TV software and now have no Movie trailers. Have they done away with Movie trailers?

    I Just updated to the latest Apple TV software and now have no Movie trailers. Have they done away with Movie trailers?

    Many thanks b Noir
    This is a copy of ONEof the keys  in the registry I changed  as told by Apple support today. I also have changed others as instructed by GEAR  software support to manually delete GEAR drivers (that I had installed but couldn't delete some of the others  they mentioned from Windows system 32. Then some bright spark at work told me I need the Gear drivers so  I downloaded the software and installed again.
    Sorry, just this minute went to insert image  and it is giving me a message saying this sort of content  is not allowed?.
    The most recent key I altered is in: HKey _local _machine. System\class - 4D36E965-E325-11CEBFC1-08002BE10318. Upper Filter data: Upper filter NTIDrvr  SiRem GEARAspiWDN.
    The GEARsoftware info about manually deleting  GEAR drive is from:
    http://www.gearsoftware.com/wiki/index.php?title=DRIVERS:_Windows_-_Updating%2C_ removing%2C_64_bit_versions%2C_etc
    I hope you can help

  • Can't play Movie Trailers from iTunes Store!

    I am wondering if anyone knows why I cant watch free movie trailers on the iTunes Store? It follows as far as letting me choose the size of the trailer cilp I want to watch but after that nothing loads up! the top half of the page is blank! Also I can't watch movie trailers from the apple website through the quicktime option. Yes, I do have Quicktime. Please Help.

    I figured it out, it was just that I needed to upgrade my Quiktime player. Quicktime 7 and I can watch all the movie trailers!!

  • Front Row movie trailers -- not connected to internet message?

    I'm new to Front Row, even though it's been on my laptop for a while! Anyway, when I click on Movie Trailers, I get a message saying I'm not connected to the internet, even though I am (via Airport). I looked at Network Diagnostics as both the message and Apple Support site suggested, and everything is reported as fine (as I knew it would be; I can get to the internet with no problem). The only other thing I found in Support was for machines with more than 1 Ethernet port, which I don't have.
    Is there something special I need to do to get Front Row to see I'm connected to the internet? Thanks for any suggestions!

    I believe you've encountered a bug with Front Row. If you can, try plugging in an Ethernet cable even if it's not actually connected to the Internet itself. Sometimes Front Row looks only for an Internet connection through the Ethernet port even if the port, itself, is not connected to the the Internet. I think the trailers will play through the AirPort connection anyway...
    -Doug

  • Quicktime 7.5 Won't Play Movie Trailers!

    Hi:
    I'm new to this forum. I'm having trouble with my "Free" Quicktime player. When I go to the Quicktime movie trailer website and click on the HD movie trailer button nothing happens at all and when I click on the normal movie trailer buttons a window pops up/opens that has the words "Get the latest Quicktime". I have the latest Quicktime 7.5
    I have been using Quicktime for quite some time now after upgrading from v7.4.5.67 I have NOT been able to play any movie trailers on the Quicktime movie trailer website. I have uninstalled and reinstalled it a couple times to no avail.
    What can I do to fix this problem????

    I was having the same problem but just found a solution for IE. You need to make sure the QuicktimeCheck Class addon is enabled. Tools>Internet Options>Programs>Manage Addons. (Addons currently loaded in Internet Explorer)
    I am not sure how this got disabled but enabling it got rid of the "Get the latest Quicktime" message and allowed me to view trailers once again.

  • Safari is giving me a missing plug in message when I try to view things like movie trailers. The trailers play on Firefox, so I'm not sure what's missing from Safari.

    Safari is giving me a missing plug in message when I try to view things like movie trailers. The trailers play on Firefox, so I'm not sure what's missing from Safari.  I have Safari 5.0.6 and Mac OS X 10.5.8.

    I just noticed that it won't play some newsite videos anymore either. What plug in do I need to update (if that's the problem)?

  • Quicktime movie trailers still not playing, could someone please help me?

    I have not been able to watch any movie trailers from quicktime for two years now and this is really getting old.
    my inf!
    computer: DELL
    system: Windows XP SP2
    QT player version: 7.2
    I have all system requirments and updates also allready unselected derctX and selected safe mode, still all I get when loading the movie trailer from QT websight is the white box with QT logo in middle, sometime the logo will also have ?mark over it. I figured it was just taking its own sweet time loading so I wated it out. 4 hours later there was still no change. you'd think apple would have fixed or resolved this problem since it has been ongoing for last two or more years.
    Could someone please help me?????????
    Message was edited by: scarpredelder

    Try https://discussions.apple.com/thread/4890398?start=0&tstart=0
    See if that helps
    Allan

  • Movie Trailers

    Has anyone else had problems trying to download movie trailers from iTunes store?
    What happens with me is that when I have found the trailer I want to download I click "Get Movie", as you do with any other Movie, TV Show or Music within the store, but when it downloads the file size is only something like 27Kb and I cant play any of the trailer.

    There's no solution as far as I know, since Apple changed the way trailers are accessed through it's site (apple.com/trailers) and itunes, If you try to download and you get a weird 20 to 50 or so kB file, that's actually the htmfile of apple.com/trailers since Apple has disabled direct linking to their trailers. so for example this link to avatar 1080p trailer: [http://movies.apple.com/movies/fox/avatar/avatar2009aug0820a-tsr_h1080p.mov] won't work, and will instead send you back to the homepage at apple.com/trailers and right-clicking and save as, will, as described above get you a weird named file (depending on browser) that's actually an htmlfile (from apple.com/trailers) with either a name like "Pv+meMQw.html.part" on firefox or in the case of Safari (when pasting the url into the Downloads-window) something like "trailers.html" or "avatar2009aug0820a-tsr_h1080p.mov.html".

  • Cannot watch movie trailers

    I have only just gone wireless and now my trusted ATV has access to the internet! All good stuff, YouTube works fine, syncing all works fine but when I click on Movie Trailers I get a message saying 'Downloading trailers' with a spinning wheel which I left overnight. In the morning it was still doing it so I cancelled as I guessed it wasn't working seeing as YouTube content is almost instant ! Any ideas ? Do I need to activate anything in iTunes? Do I need to leave it longer? I have my ATV hooked up to a standard def LCD TV if that helps !

    Sounds like a server problem. Hopefully it will pass.
    Under Settings (firmware 1.1) you can choose your local iTunes store location so you could set it to somewhere else to see if it's a local issue or not.
    If you can see YouTube content then you're connected to the internet.
    Only other thing could be some odd port blocking if YouTube and iTunes trailers work on different ports on AppleTV.
    AC

  • ITunes Movie Trailers App for Australians

    I loved Frontrow on my mac.. and when i updated to Lion I lost it... I always go to the Itunes trailer area on itunes... I saw this app yesterday and thought awesome.......
    but guesswhat..... it's like most things ..... Australia is the forgotten ugly duckling.... Books and tv shows and movies which I could buy from the US Itunes store arent availbale here in australia...
    what a joke...
    Its a digital world apple.. and we speak english down here... what ever is available in the  US should be available here
    grrrrrr
    hopefully someone will agree with me ... try downloading I am number 4 book from Ibooks... in the US 100% ok here in Australia nope..
    How can I get iTunes Movie Trailers?
    iTunes Movie Trailers is available in the App Store.
    In which countries is iTunes Movie Trailers available?
    iTunes Movie Trailers is only available in the United States.
    what the??????

    I feel your frustration.  However, this is not Apple's fault, but rather the owners of the rights to TV, Movies, Trailers, Books and so on.  Until a deal is negotated Apple just can't release that stuff world wide.  The same has happened in Canada and the UK (where thye speak English also).
    In a similar way the BBC iPlayer app can't be used outside the UK.

  • Movie trailers on iPad 2

    When I try to play movie trailers on my iPad2 from the "http://trailers.apple.com/" web page the trailer is displayed way down the page with the only the right half of the trailer visible on the left side of the screen.  Is anyone else having this problem?  Is there a fix?  I have tried resetting my iPad, but that made no difference.

    Hey FlorentP75,
    I found the following information about syncing SD versions to your iPad:
    By default, when syncing video to iPad, iTunes will sync the HD version to iPad when available. You can only sync HD content purchased in 1080p to iPad (3rd generation). You need to download the 720p or SD version from iTunes in the Cloud to sync iPad 2 or earlier, iPhone 4S or earlier, iPod touch (4th generation or earlier), and iPod. Alternatively, you can download the videos directly to your device using iTunes in the Cloud.
    If you prefer to sync SD video content to iPad:
    With iPad connected to your computer, select it on the left side of the iTunes window.
    Click the Summary Tab.
    Scroll down to the Options section and select the checkbox for "Prefer standard definition videos."
    Now when you sync videos to iPad, only SD versions will be synced.
    To undo your change, simply repeat the above steps and uncheck the box next to "Prefer standard definition videos."
    via: iTunes Store: Viewing and downloading HD content on iPad
    http://support.apple.com/kb/HT4095
    Welcome to Apple Support Communities!
    Take care,
    Delgadoh

  • Movie trailers on ipod touch

    Hello, new to the forum.
    I purchased an iPod touch on Sunday and am having a great time with it so far. It was easy enough to figure out how to sync apps, songs and movies.
    However, one issue I am having is I wanted to sync the movie trailer for Transformers: Revenge of The Fallen being that I had a 1080p and also a 720p version stored on my comp in .wmv format.
    Despite the fact that I can open them with iTunes and they are listed under movies, I am unable to get either file to sync with the iPod Touch. I get a message saying the file cannot be played "on this iPod."
    Being a newbie to unit, I was hoping someone would be able to point me in the right direction as far as how to load one of these files on or explain to me why it cannot be done at all.
    Thank you for your time

    Thanks so much! I will try that as soon as I get home.
    I hear you though! I'm 28 and am looking forward to this even more than the 80's animated movie where Optimus died I love to show the new trailer to people and what better way to do so than always having it on hand on the new ipod, rofl.
    I'll probably make a bunch of trailers into that format now that you've explained it to me, thanks again

Maybe you are looking for

  • App store login - not working since Mavericks update

    All, Since I updated to Mavericks, I find I am unable to log into the App Store. I get the login pane OK, enter my credentials, then get a spinner that waits... and waits... And never works. The Apple ID I am using is good - iTunes likes it fine, and

  • Boot camp WINDOWS 7 hard drive formatting and back up

    Hi I have many questions with boot camp. I want to back up my windows 7 side of my computer and my apple mac side.I have 6 black caviah 1tb drives.(3 for each side,3 formatted with windows and 3 formatted with mac).I have noticed I can use the hard d

  • How to save each section report into different excel sheet?

    Hi all How to save each section report into different excel sheet? I have a report in which there are 4 sections north south west east now i need to save north in excel sheet 1 , south in sheet2, west in sheet3, and east in sheet4. under each section

  • Rating card

    Hey... I need to get ahold of a red "R" rated Preview card for a school project.....any one know where I can get a couple of seconds of that any where??

  • Generating Business Blueprint

    Hi, I seem to be having problems generating the business blueprint, we are doing an HCM project and i have defined the following in SOLAR01 1. Organizational Units 2. Master Data 3. Business Scenarios under the business scenarios, i have assigned the