Skip to main content
Participating Frequently
November 13, 2011
Answered

Elements 10 Error: d:\pre\mediacore\mediafoundation\api\inc\Keyframe/Keyframe.h-142

  • November 13, 2011
  • 9 replies
  • 47339 views

Hi all,

have spent my hole day at my brother but still no idea what this error could be. After having this project in APE 8.0 and editing it now with the newly bougt Verion 10.0, everything was fine... Opened and saved it several time but today there were suddenly problems: Even a complete new project with the same material and same cut is now broken after having saved and exportet it....

When we are trying to open the project, we're getting the error:

--------------

"Premiere Elements has encountered an error.

CONTINUE

--------------

And in the next window:

-------------

Project could no be loaded. It's damaged oder has old elements (not same words, cause my brother is using the german version)

--------------

I have tried everything so long: new installation, opening the damaged project on another computer with ELements 8.0 (identical error also there), deleting cahe, deleting Prefs, loading Auto-Backup (also damaged) and so on... Another "Test-Project" I have created with 2 clips is working fine.... I have no idea what to to else... The project is just a "normal" HD project with 20 Minutes and 20 Clips...

Everything on google (about 8 sites) I have tried - no success until now... 😞

so: any ideas???

Thanks a lot!

Michael

    This topic has been closed for replies.
    Correct answer RainerBl

    Hi everyone,

    after getting some hints from you about the possible cause of this error, I have been able to fix my project and I'd like to give you back my insights...

    First, I uploaded the project file in the Windows Editor. By comparing the file to an earlier backup version which worked fine, I found the following:

    At one point in time PE10 corrupts the .prel file by inserting "," in decimal numbers instead of the required "." for the <StartKeyframe> as well as for the <Keyframes> tags. The correct syntax of both these tags seems to be as follows:

    <StartKeyframe>-xxxx,yyyy,0,0,z.,z.,z.,z.</StartKeyframe>

    <Keyframes>-xxxx,yyyy,0,0,z.,z.,z.,z.</Keyframes>

    xxxx is a 17 digit (integer) number

    yyyy is either a (decimal) number z. or a range z.:z. or a boolean value (true or false)

    z. is a decimal number (number followed by a ".")

    In my corrupted .prel file, all numbers which were supposed to be "z." were actually "z," which caused the error.

    Only some of the occurrences of this error can be captured by the script described above, namely replacing the "," followed by 12 or 24 "0" with a ".". Unfortunately, there are a lot of other occurencences which have to be dealt with in order to correct the .prel file. One can get a number of algorithms for speeding up the process of replacing the erroneous "," with ".",

    e.g. search for ",000000" and replace it by ".000000"  (similar to the scipt above) but you also have to consider 

    search for ",," and replace it by ".,"

    search for "0,5" and replace it by "0.5",

    search for ",<" and replace it by ".<  etc., you get the idea....

    This list is not complete, you still have to search manually for some odd numbers!! However, as you progress with replacing the erroneous "," you will see the perceantage of the .prel file loading successfully increase and at the end of the day (more an hour really) the file will load completely. I have not tried to fully automate the process. Hope this was a one time effort!

    The above procedure is a pain in the neck, but if your son has spent an entire weekend on a project it is worth the effort! Hope this will work for you as well. Adobe should be able to fix this easily. Good luck!

    Best regards, Rainer

    9 replies

    New Participant
    July 25, 2014

    Inspiring
    July 25, 2014

    bonberris

    Please continue the discussion in the other thread to which you have attached yourself.

    Re: Problems with Premiere Elements 12

    Or better yet, if our discussions continue on your Premiere Elements issues, it might be a good idea to start your own new thread so that we

    can find each other. I nearly missed your display error screenshots in this thread that we are in now.

    Thanks.

    ATR

    New Participant
    July 3, 2012

    hello... i found a really really easy solution for your/my problem on the internet!

    http://www.vibait.com/software/premiere-fix-keyframe.h-142/

    just upload your corrupt file and the fixed file will be automatically downloaded to your PC! it helped me a lot and my project works fine again!!!

    best regards and hope it will help you (although it's been a while since you posted it here)

    January 16, 2012

    Could all of you that still have this problem go to http://feedback.photoshop.com/photoshop_family/topics/pre10_project_open_fail and click the "+1" (Add my vote) to make sure Adobe gets the extent of this problem.

    New Participant
    January 21, 2012

    Yes yes,my prel is working again, thanks to tip in that post:

    upload your defect prel file and get a working back!

    http://www.vibait.com/software/premiere-fix-keyframe.h-142/

    Nice job!

    Only "one little thing", you need to check all the video- and audio fade-in and fade-outs!

    New Participant
    May 20, 2012

    I have the same problem. I have tryed all the solutions and are currently browsing trough my prel file for dot or comma errors that this solutions dont catch. But how do I know if this key frame is correct

    <Keyframes>914305190400000,264,93505859375,0,0,0.,0.16666666666666666,-39.557989075251342,0.16666666666666666,915205848338028,124.675323486328,0,0,-39.557989075251342,0.16666666666666666,0.,0.16666666666666666;</Keyframes>

    or it shoud be 264.93505859375

    ?

    I also have another recurrent keyframe

    <StartKeyframe>-91445760000000000,0.500000000000000000000000:0.500000000000000000000000,0,0,0.000000000000000000000000,0.000000000000000000000000,0.000000000000000000000000,0.000000000000000000000000,5,4,0.000000000000000000000000,0.000000000000000000000000,0.000000000000000000000000,0.000000000000000000000000</StartKeyframe>

    How can I know that 5,4 is correct, not 5.4?

    Is there a way of knowing where in the file Premier Elements find the error?

    New Participant
    January 12, 2012

    Made a console application (Windows) that solved this problem for me (based on the above regex but with some modifications). Make sure to backup your data before trying this! You need .NET4.

    http://www.slottet.org/downloads/Premier10ProjRepair.zip

    Usage:

    Premier10ProjRepair.exe <input.prel> <output.prel>

    Thanks to SetAdMichael for the help with this. Hope this will be resolved properly soon! My experiences with Premier was so good until this fatal error occured .

    New Participant
    January 13, 2012

    After running your exe, i have the same h-142 problem.

    But i did find out something else.

    The last working backup from my prel file is from 5-1-2012. This file is 3.223 kb

    I then worked some hours and the corrupt prel file is from 8-1-2012. But this file is smaller: 2.462 kb ?

    When you work at a projects, for as far as i know, the prel file will each time growing ... or not?

    Can i send my files to someone who can look at whats going wrong with my last working good en defective prel file?

    Would be very pleased....

    the_wine_snob
    Inspiring
    January 13, 2012

    With a PREL, the file size will depend on what one is doing. If a Project is Trimmed, Assets are Deleted, etc., the size of the file may well shrink. It is, after all, just an XML database, and contains links to Assets, plus instructions, that will be used, when one Exports/Shares to an AV file.

    Good luck,

    Hunt

    Participating Frequently
    December 18, 2011

    Hi Rainer,

    that's it - everything is working... What have I done?

    I used both (!!) scripts from cloud565 with the following command lines via cmd:

    C:\Perl64\bin>perl -p -e "s/([-0-9]+?),([0-9]{12,24})/$1.$2/g" D:\We.prel >D:\We1.prel

    C:\Perl64\bin>perl -p -e "s/([-0-9]+?)\.([0-9]{12,24});([0-9]{15})/$1.$2,$3/g" D:\We1.prel >D:\We2.prel

    Note: C:\Perl64 is the install path of pearl, We.prel is the damaged existing initial project. We1 and We2 are going to be created by the script.

    Then I opend We2.prel in notepad++ and followed the instructions of Rainer, but just 2 of them:

    search for ,< and replace by .<

    search for 0,5 and replaxe by 0.5

    And that was all I had to to - after this PE10 was able to open the projects, I didn't have to replace other lines / expressions like Rainer.

    So glad that the projects are working again, thanks all of you for helping us and leading us to the solution!

    Cheers!

    Michael

    Kinou31
    New Participant
    January 7, 2012

    Hi everyone,

    I have the same problem after many hours on this project.

    "Premiere Elements has encountered an error.

    My project weighs 3 499 038 octets.

    without explanation, suddenly, my project has been altered and also all versions of the same project automatically saved in Adobe Premiere Elements 10.

    This is the first project that I create with Adobe Premiere Elements 10 on my new pc.

    I use a Intel Core I7 with Windows 7 Pro FR 64bits, 120Go SSD Harddisk and 16Go DDRAM.

    I have applied all solutions proposed above without success.

    I would like to have your opinion on two points.

    1 - do you think it is possible to find a solution to my problem?

    2 - how to be on not to meet again this problem on other projects?

    Best regards,

    Kinou

    Balma, France.

    Brainiac
    January 7, 2012

    If your problem is exactly the same, you should start by using exactly the same solution that worked for the original poster.

    RainerBlCorrect answer
    New Participant
    December 11, 2011

    Hi everyone,

    after getting some hints from you about the possible cause of this error, I have been able to fix my project and I'd like to give you back my insights...

    First, I uploaded the project file in the Windows Editor. By comparing the file to an earlier backup version which worked fine, I found the following:

    At one point in time PE10 corrupts the .prel file by inserting "," in decimal numbers instead of the required "." for the <StartKeyframe> as well as for the <Keyframes> tags. The correct syntax of both these tags seems to be as follows:

    <StartKeyframe>-xxxx,yyyy,0,0,z.,z.,z.,z.</StartKeyframe>

    <Keyframes>-xxxx,yyyy,0,0,z.,z.,z.,z.</Keyframes>

    xxxx is a 17 digit (integer) number

    yyyy is either a (decimal) number z. or a range z.:z. or a boolean value (true or false)

    z. is a decimal number (number followed by a ".")

    In my corrupted .prel file, all numbers which were supposed to be "z." were actually "z," which caused the error.

    Only some of the occurrences of this error can be captured by the script described above, namely replacing the "," followed by 12 or 24 "0" with a ".". Unfortunately, there are a lot of other occurencences which have to be dealt with in order to correct the .prel file. One can get a number of algorithms for speeding up the process of replacing the erroneous "," with ".",

    e.g. search for ",000000" and replace it by ".000000"  (similar to the scipt above) but you also have to consider 

    search for ",," and replace it by ".,"

    search for "0,5" and replace it by "0.5",

    search for ",<" and replace it by ".<  etc., you get the idea....

    This list is not complete, you still have to search manually for some odd numbers!! However, as you progress with replacing the erroneous "," you will see the perceantage of the .prel file loading successfully increase and at the end of the day (more an hour really) the file will load completely. I have not tried to fully automate the process. Hope this was a one time effort!

    The above procedure is a pain in the neck, but if your son has spent an entire weekend on a project it is worth the effort! Hope this will work for you as well. Adobe should be able to fix this easily. Good luck!

    Best regards, Rainer

    Mohammad Tahseen
    Adobe Employee
    Adobe Employee
    November 28, 2011

    Try following which is workaround for this problem, should resolve the issue:

    For the issue that ends up in a corrupt project, please do the following:

    1.     Download perl from http://www.activestate.com/activeperl...

    2.     Open cmd prompt

    3.     Run this command from there

    perl -p -e "s/([-0-9]+?),([0-9]{12,24})/$1.$2/g" damaged.prel >working.prel

    4.     Please specify the path for the prel files that cause the issue in place of the text “damaged.prel”

    5.     Reopen the project and let me know how it goes.

    Exact command with paths should go like

    perl -p -e "s/([-0-9]+?),([0-9]{12,24})/$1.$2/g" C\Users\...\Desktop\AVCHD.prel >C\Users\...\Desktop\AVCHD_working.prel

    Please let us know if this is resolved or not.

    Thanks,

    Tahseen

    Participating Frequently
    November 28, 2011

    Hi Tahseen,

    thanks for your help but unfortunately the error is the same again... The Script is working as it's creating a new file named "XYZ_working.prel" - i just had to edit the path from d\project.prel to d:\project.prel

    Any other ideas?

    Michael

    New Participant
    December 6, 2011

    Hi Tahseen,

    I have sent the projects via mail - hope you'll find a solution!

    Michael


    Hello SedAdMichael,

    it seems Adobe Software has problems on system using non-dot decimal separators. To verify this, could I ask about the decimal separator your system is using (language setting). Is it a comma "," or a dot "."?

    Greetings,

    Jens.

    New Participant
    November 19, 2011

    i have exactly the same problem. since i used it the first time. i really hate this programm!

    the_wine_snob
    Inspiring
    November 13, 2011

    Michael,

    I am not familiar with that particular error, but I would immediately look in the PrE AutoSave folder, and Copy those PREL files to another folder. If the PrE 8.0 Project is still intact, I would do the same with the AutoSave PREL files from it to.

    Then, I would explore Opening the AutoSave PREL's, to see how things behave. Note: AutoSave files are FIFO (First In - First Out), and are being constantly overwritten, as one edits over time. That is why I suggest doing the Copy action immediately. If the default has not been changed, there should be five PREL's, in each of those two folders (the PrE 10, and PrE 8 Projects' folder hierarchy). When looking at the files in Windows Explorer, set the View to Details, so that you can see the Date/Time of each file. The AutoSave PREL, marked 3, may well be more recent, than say 5.

    Good luck, and maybe others will have more input, specific to the exact error messages.

    Hunt

    Participating Frequently
    November 13, 2011

    Hi Hunt,

    thanks for your answer - but all the AutoSave projects are incorrect, too... Have already done the step you suggested - but they are all incorrect... That's what makes me so crazy...

    Michael

    the_wine_snob
    Inspiring
    November 13, 2011

    OK, quick question: As PrE will continue doing AutoSaves, while you edit, so that with a long session, if something has gone wrong early, the older AutoSaves will have likely been overwritten - on the PREL files, do any date from back when things worked well? If so, and as you say, they are also showing problems, my question would be, what has changed with the system, from the time that things worked, until now? Have you added any new software, or hardware? Have you reconfigured anything that you can think of?

    As a test, create a new System Restore Point for now, and then reboot to Safe Mode, choosing to use another System Restore Point, from when things worked well. Reboot, and attempt to load one of the PREL's. Do you get the same errors?

    Good luck, and let us know how this test goes, please,

    Hunt