Media Exception "Error Media Creation"

I have just started learning JavaFX and I am trying to create a very simple Video Player. This is the code :
public void start(Stage primaryStage) {
Group root = new Group();
Media media = new Media("file:C:/Users/Hekaton/Desktop/commercial.mp4");
MediaPlayer player = new MediaPlayer(media);
MediaView view = new MediaView(player);
root.getChildren().add(view);
Scene scene = new Scene(root, 400, 400);
primaryStage.setScene(scene);
primaryStage.show();
player.play();
A very simple player, however I encounter this Exception when the Stage loads : com.sun.media.jfxmedia.MediaException: "Error media creation". The exception seems to happen at this line "Media player = new MediaPlayer(media);".
Can anybody help me with this? Any help would be greatly appreciated.
Thank you.

Hi. You have two problems here:
1. Mp4 is not a supported format. Take a look at the Supported Media Codecs:
http://docs.oracle.com/javafx/2/media/overview.htm
2.     Wrong file protocol:
Media media = new Media("file:///c://Users//Hekaton//Desktop//commercial.mp4");

Similar Messages

  • Adobe Media Encoder (Error compiling movie) Unknown error when writing to Isilon OneFS 6.5.5.18

    Adobe Media Encoder (Error compiling movie) Unknown error when writing to Isilon OneFS 6.5.5.18 while using Adobe Premiere Pro.
    Process:         Adobe Premiere Pro CC 2014
    Path: /Applications/Adobe Premiere Pro CC 2014/Adobe Premiere Pro CC 2014.app/Contents/MacOS/Adobe Premiere Pro CC 2014
    Identifier: com.adobe.AdobePremierePro
    Version:         8.1.0 (8.1.0)
    Code Type: X86-64 (Native)
    Parent Process: launchd [2538]
    Responsible:     Adobe Premiere Pro CC 2014
    Date/Time: 2015-01-06 14:04:23.500 -0700
    OS Version:      Mac OS X 10.9.2 (13C64)
    Report Version:  11
    Crashed Thread: 55  Dispatch queue: com.apple.root.default-priority
    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
    Customer created test export with 777 permissions and set mount parameters to the following:
    mount_nfs -o vers=3,tcp,rdirplus,intr,nolocks,async,rsize=32768,wsize=32768
      -- Original mount options:
         General mount flags: 0x40 async
         NFS parameters: vers=3,tcp,nolocks,rsize=32768,wsize=32768,rdirplus
      -- Current mount parameters:
         General mount flags: 0x4000058 async,nodev,nosuid multilabel
         NFS parameters: vers=3,tcp,port=2049,nomntudp,hard,nointr,noresvport,negnamecache,callumnt,nolocks,quota, rsize=32768,wsize=32768,readahead=16,dsize=32768,rdirplus,nodumbtimr,timeo=10,maxgroups=16 ,acregmin=5,acregmax=60,acdirmin=5,acdirmax=60,nomutejukebox,nonfc,sec=sys
    The pcap shows once the movie is created a lockup call is responded from Isilon with Error: NFS3ERR_NOENT
    478         V3 CREATE Call (Reply In 479), DH: 0xea5f731c/QBRSN-0-0-1.mov Mode: UNCHECKED
    479         V3 CREATE Reply (Call In 478)
    484         V3 LOOKUP Call (Reply In 485), DH: 0xea5f731c/._QBRSN-0-0-1.mov
    485        V3 LOOKUP Reply (Call In 484) Error: NFS3ERR_NOENT
    V3 LOOKUP Reply (Call In ....) Error: NFS3ERR_NOENT  -   This is by design of OneFS, we coalesce files and then flush them out to disk which is why the commit time is accurate but the file is not immediately available. however when an async option is used within the mount options this should be avoided if writing asynchronously to the cluster.  Has anyone else seen this behavior lately? (current workaround is to store locally and transfer to the cluster via Finder)

    That error can happen for many reasons...one of the reasons that I occassionaly get it is because I try exporting a movie to an external drive that has been formated in the old FAT32 instead of the NTSF standard.  FAT32 only allows for file sizes up to 2 gigs.  And as soon as it reaches that...I would get that error.  I don't know if that is why you are getting that error...but it would be easy to check.  1) are you generating a file that is over 2 gigs?  2) is your drive that you are exporting to FAT 32 (just right click the drive in My Computer and select "properties" then just look for what it says next to "file system".

  • Dynamic Link Media Server Error On Video Export Photoshop CC 2014

    Dynamic Link Media Server Error On Video Export Photoshop CC 2014

    Hi,
    Are you still having problems with CS6 Video Export?
    What Export settings are you using? (A screencapture might be the fastest way to answer that.)
    Does it work if you use the default settings?
    If you have time to experiment, I have some suggestions:
    Would you please try/verify the following:
    1. Be sure virus/security/parental control software hasn't trapped parts of Photoshop, Bridge, Premiere, Lightroom, or any Adobe app using DynamicLinkMediaServer. (Make sure the Adobe apps are added as exceptions if needed.)
    2. Ensure you have the latest version of QuickTime
    3. Close all Adobe applications - wait more than 30 seconds, then launch Photoshop and try to open and export the file.
    - If unsuccessful, view Task Manager/Processes to verify necessary processes started up when importing video (dynamiclinkmanager.exe, dynamiclinkmediaserver.exe and Adobe QT32 Server.exe)
    - If unsuccessful, please capture the full error message text.
    4. Close all Adobe apps, wait 30 seconds - launch Bridge and try to open/export the file.
    Thanks,
    Meredith

  • Adobe Media Encoder error [..\..\Src\RenderFrame.cpp-199]

    Adobe Media Encoder error [..\..\Src\RenderFrame.cpp-199]
    I'm trying to utilize Prelude to actually TRANSCODE some R3D material.  Since R3D clips are spanned, Prelude can 'reassemble' them.  (I don't understand why AME can't do this since Prelude uses AME... but...)
    I get this error when trying to start the transcode in Prelude... any help out there?
    Thanks!

    Hi mboory,
    Please mention the exact version of Media Encoder CS6 that you are using and also the version of operating system. Please check the below link as well.
    http://forums.adobe.com/message/4402558
    Regards,
    Vinay

  • Error on Installing CS5.1, CS6 - Exit Code 15, ERROR: Media DB Error 6

    Hi. I am trying to install Photoshop CS6 trial on my machine (win 8 x64) but all the time it returns the error:
    Exit code : 15
    Summary
    - 0 fatal error(s), 1 error(s), 0 warning(s)
    ERROR: Media DB Error : 6
    I have already used all the steps described on the forum (restarting the PC, downloading again the app, using Adobe Clean Tool) and no success. I even tried to install Photoshop CS5.1, but it goes with the very same error.
    I currently have Fireworks CS6 installed, which I managed to install several months ago without a problem. However, when I try to uninstall it, it shows me also an error message:
    UNINSTALL FAILED
    Your uninstallation encountered errors.
    Troubleshooting tips:
    1. Restart your computer.
    2. Exit all applications [...]
    3. Uninstall again.
    You may also download & run the Cleaner Tool. If the problems persist, please contact Customer Support for further assistance.
    Well... here I am, Customer Support!
    I can't seem to make this thing work. I've passed my whole weekend reading about it on the web and no solution found whatsoever. How can I sort it out, please?
    Thank you,

    After using the Adobe Clean tool, I checked its output log and it mentioned it couldn't find a "caps.db" in the Common Files/Adobe/caps/ folder under Program Files or Program Files (x86).
    So what I did: I manually deleted the Adobe folders from:
    - Program Files
    - Program Files (x86)
    - Program Files (x86)/Common Files
    After that, I was able to install successfully Photoshop CS5.1 and at this very moment I'm able to install PS CS6 (it's been already 50% of the installing progress).
    So far, this action of deleting the Adobe folders from my Program Files folders seems to be sorting out the matter...

  • Adobe Media Encoder 4.0.0.374 - Media Offline Error when encoding

    My problem is a little urgent, so, if possible, i want a fast answer.
    I edited my video in Adobe Premiere Pro CS4. When it was done, i tryed to export it, in File > Export > Media (Ps. In my program, i don't have File > Export > Movie). I set my video export settings, and then accepted. The Adobe Media Encoder 4.0.0.374 window appeared, with my project in the queue list. Then, i pressed in "Encode". First, the program is slower than normally to load the file, but i think it can be that my video is too long. After load, it starts to encode. After a time, in the preview box, appear the "Media Offline" ( and never is the same footage ) image, the same of Premiere Pro CS4. After a little, a "Encoding unsucceful. Unknown Error" appears, and the encoding stops. I don't know if is a Premiere Pro or Media Encoder error, so i posted here.
    Considerations:
    Before i encode, i ever verify (and fix if necessary) if all videos of the project is linked, but ever time i reopen the project, some footages ( never the same ) are unlinked, and i have to link again.
    I tryed to encode various differents formats, like AVI, WMV or F4V, but in every time i get the error. I tryed even to export first the audio, then the video, separated, to link after, but only the audio is succeful exported.
    I am using Windows 7 Ultimate, with a 4gb RAM, 1TB HD and Pentium Dual-Core 3Ghz.
    I just got to encode with succes some times before. This is the first time it occurs.
    I used the program (Premiere Pro) normally, some days ago, until 02/11. Since 03/11, it slowed. I just disabled all visual effects, disfragmented my disk, cleaned, and set the "Use more energy to more process" settings, but my program is still slow.
    If needed more considerations, ask to me.
    I just searched for similar problem, but dont got any result.
    Sorry if my english is bad, i am Braziliam.

    I have a similar problem. When I attempt to encode a list of clips, Media Encoder sometimes fails with a media offline warning. The media is just fine, nothing actually off line nor corrupted. If I elect to encode directly from Premiere Pro, the compilation proceeds normally. That's not practical when I have a list of clips and other things to do besides watch the creeping status bar.
    My temporary fix was to uncheck the "import sequences natively" option. It's a little slower using the dynamic link, but it works, and my hair can start growing again.
    This glitch appeared only with the latest update via Creative Cloud.

  • Media write error for dual layer DVD burn

    I am having a problem burning a dmg to a dual layer DVD using the internal DVD writer. I have tried both Disk Utility and SimplyBurns.
    Both program s go through the preparation for the file, and when it attempts to burn the disk I get a 'media write error'. I am using Memorex DVD +R DL disks. I have successfully burned both CDs and regular DVDs with the drive.
    Does anyone have a suggestion on how I can fix this?
    Thanks

    I am using Memorex DVD +R DL disks.
    Try Verbatim DVD+R DL discs.

  • Can't install photoshop cs6 on brand new iMac - "Media db error: 18"

    At my company we recently hired a web designer – given his insistence on using the Adobe software, we decided to give Photoshop a try.
    We downloaded a trial version and tried to install it on the brand new iMac (no previous installations of adobe stuff) we just bought for the new desigher, but... it's not even installing!
    The installation process halts at around 2% and an error screen appears which gives generic instructions ("restart your computer and retry") and points to a log file where one can read "Media db error: 18".
    Of course we tried restarting the computer, cleaning up ~/Library, re-downloading the installer... no good – we then downloaded and run an adobe cleanup utility... still no good.
    Some people on the internet report they have the same problem... we found several questions on the matter, but no answer (besides "restart your computer" and other generic stuff that we tried and does not work).
    We then called Adobe support (Italian support) and they told us they don't give support for trial versions, like we should sight unseen buy a (pricey!) software we can't even install! .
    Can anyone here help?

    Thanks for your help!
    No, no beta or previous installations of any Adobe products – we are trying to install to a brand new iMac (just bought last week from the store): it has the latest version of everything (Os: Lion 10.7.4)
    Is there any debug switch I can turn on on the installer to get further information on what's going wrong? ("media db error" is a somewhat laconic error message)

  • Exit code 15:  Installation failed.  0 fatal 1 error.  Error: media DB error : 12 while installing premiere pro and photoshop through cloud

    Exact error message as follows:
    There was a problem installing Premiere Pro 2014....   Installation failed.   Installation encountered an error.  Please restart system and try again (15)  Exit code 15  0 fatal  1 error.  Error: media DB : 12

    Thank your for your reply.  I am running windows 8.1.  And there is a huge mess going on.  I was on with Adobe tech support all morning and they cannot get photoshop, premiere to update.  Then they tried to uninstall, and it would not uninstall.  They renamed the directories and did a direct reinstall and it failed.  They changed permissions on directories.  There are no viruses or malware.  I run cccleaner, pcmatic and scan all the time.  This process also corrupted my purchased licensed version of Fireworks CS6.  Now I cannot even get that to install.  We have run the cleaner over and over.  So finally I manually cleaned the registry of selected Adobe products and removed everything from the hard drive.  I am now running scans because they had me disable my pc matic and windows firewall temporarily while they worked on my pc.  I am a graphic designer and I have a project in the waiting.  I need to have fireworks, flash photoshop and premiere working but I don't think this is possible.

  • Adobe Media Core error while installing itunes

    I fixed an MSVCR80.dll error but when I tried to reinstall iTunes, I got an Adobe Media Core error for CS6.  Now itunes won't install at all.  It doesn't save the installer, although the site acts as if it's already downloaded.  Can anyone help with this?

    It doesn't save the installer, although the site acts as if it's already downloaded.
    Try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • Dreamweaver error DW051 and  Media DB Error : 12

    Im using windows 8 asus laptop with slight less resolution  and trying to download adobe dreamweaver cs6 . This shows up
    Exit Code: 15
    Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW051 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 2 error(s), 0 warning(s)
    ERROR: DW051: Dependency of session payload {A4ED5E53-7AA0-11E1-BF04-B2D4D4A5360E} Dreamweaver Adobe Dreamweaver CS6 12 has changed.
    ERROR: Media DB Error : 12
    What are the solutions thanks 

    Please go to C/Program Files(X86)/Common Files/Adobe and rename Caps. Try to install Dreamweaver again. If this does not work install Adobe Application Manager: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4773, install and launch AAm. Download Dreamweaver through AAM. If still it does not work you may perform selective startup http://www.pagestart.com/win8selectivestartup01.html restart your machine and try to install dreamweaver again. You may even try the direct link to download dreamweaver and install it: http://prodesigntools.com/adobe-cs6-direct-download-links.html

  • Media Sync Error - encountered a problem

    I have a 8330, upgrade my Desktop Manager to V4.6 and running V4.3 on BB.  I am trying to get MusicSync to work, but I get a error each time I goto to start it up.
    "MusicSync has encountered a problem and needs to close. We are sorry for the inconvenience.  If you are in the middle of something, the information you were working on might be lost"
    Kudos if you can help.
    Solved!
    Go to Solution.

    You just solved your problem.
    Media manager and Media sync will not move or transfer itunes, that are DRM protected. You will see little red locks on them
    in media sync. Blackberry will not play them even if you were to get them there. There are iTunes that are not DRM but they cost more.
    Now I don't know anything about this but I know if you Google you supposedly can find free apps that will strip the DRM from the
    songs. (That's what I hear anyway.)
    That explains both your problems.
    Cough cough (limewire)   cough, excuse me......
    Thanks,
    Please resolve the post ok?
    Thanks
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Indesign CC Installation problems. ERROR: Media DB Error : 6

    I'm trying to install Indesign CC on a Mac, OS 10.6.8. but the installation is failing. The log shows ERROR: Media DB Error : 6   .  Any suggestions to solve this would be much appreciated.

    Delete the media_db.db in your Adobe caps folder and try again. Info here:
    Important Directories
    Mylenium

  • ERROR: ASU has quit unexpectedly. ERROR: Media DB Error : 18

    I'm using the Creative Cloud on my iMac (OS 10.7.5) at work and whenever I try to download anything from my apps, whether that be installing new software or downloading updates to my existing software, I get this error message:
    Exit Code: 15
    Please see specific errors below for troubleshooting. For example, ERROR:
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 2 error(s)
    ERROR: ASU has quit unexpectedly.
    ERROR: Media DB Error : 18
    It's super frustrating because I would love to update to the CC 2014 version of all my programs. Also, my co-workers who are working on the same machines and same Adobe Cloud set-up haven't had any issues with it. Does anyone have and idea what could be causing this error?
    Thanks for the help!

    sign out and then back in to your cc app.
    if that fails to resolve the problem, follow solution 2 here, CC desktop lists applications as "Up to Date" when not installed

  • Installation Failed with ERROR: Media DB Error : 12 Please help

    Hello,
    Adobe received my payment, I've downloaded Creative Cloud, click on Try button next to product, always on 43% installation failed with- 0 fatal error(s), 1 error(s)
    ERROR: Media DB Error : 12
    What does it mean? I used Cleaner Tool, it says some of the files could not me removed.
    Please help me, I am desperate
    Michaela

    Hello,
    Adobe received my payment, I've downloaded Creative Cloud, click on Try button next to product, always on 43% installation failed with- 0 fatal error(s), 1 error(s)
    ERROR: Media DB Error : 12
    What does it mean? I used Cleaner Tool, it says some of the files could not me removed.
    Please help me, I am desperate
    Michaela

Maybe you are looking for