Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

I have encountered a probable bug in Premiere Elements 10, and fortunately I've also found a workaround which is why I wrote my own answer below. But since I haven't been able to solve the underlying problem, I'd be very glad for additional ideas on how to fix the problem. Now here's the question:

How can I salvage a Premiere Elements project file (.prel) that can't be opened because of the following error:

Premiere Elements Debug Event
Premiere Elements has encountered an error:
[d:\pre\mediacore\mediafoundation\api\inc\Keyframe/Keyframe.h-142]

This error appears to occur sporadically on non-US versions of Windows. There is no previous indication during the editing session that anything may be wrong (saves and auto-saves work fine), but on the next restart, the project can't be opened. Other projects appear to be unaffected.

According to other users who have seen the same error (Google for "premiere debug keyframe" and you'll find some), there might be some connection with the introduction of DVD menus into the project, but I'm just speculating here.

share|improve this question

2 Answers 2

1. Recover broken files

I found this online application very helpful.

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

Simply upload your Premiere Elements file and you get a fixed version in return. Save it to your disk and open it.

With one file I got error messages like this one a few times:

Parse error on line 1431. Expected 8 values, got 9

Old value: 116050644638,87,5,0,0,25,791250419642971,0,16666666666666666,1,2731148504048133,0,16666666666666666

New value: 116050644638,87,5,0,0,25.791250419642971,0.16666666666666666,1.2731148504048133,0.16666666666666666

Using an editor I searched for some of the mentioned numbers in the XML file and simply cleared the XML element (deleted all numbers).

2. Fix it (i.e. a workaound)

A few web pages mentioned that the number formats of the regional settings (especially , and .) may be involved in this problem. After setting "." as the decimal separator I did not have this problem again.

share|improve this answer
up vote 3 down vote accepted

Analyzing the files that fail to open in contrast to those that do open just fine shows one glaring problem: All lines in the project.prel file (which is just an XML file) where there should be decimal numbers in <StartKeyframe> or <Keyframe> tags are damaged. Example:

Correct version:

<StartKeyframe>-91445760000000000,100.,0,0,0.,0.,0.,0.</StartKeyframe>

Defective version:

<StartKeyframe>-91445760000000000,100,,0,0,0,,0,,0,,0,</StartKeyframe>

So apparently Premiere Elements at some point got confused by European locale settings and decided to save decimal values using the European decimal separator (comma) instead of the US decimal separator (dot). Of course it's then impossible to open that file correctly ever again.

Fortunately, at least in my tests, there are only three kinds of decimal values in .prel files:

  1. integer floats: 1., 0., 100.
  2. the single value 0.5
  3. double precision floats: 0.16666666666666666, 1.000000000000000000000000

This makes it possible to fix the file using a regular expression replace. If your editor supports Perl-style regular expressions, you can search for

,(?:(?=[,<]|\d{10})|(?<=\b0,)(?=5\b))

and replace all with

.

This will replace all erroneous decimal commas (i. e. those that are either followed by another comma, an opening angle bracket, a decimal fraction of at least 10 digits, or the number 5 (but only if that comma is preceded by the single digit 0)) with a decimal point.

After that (be sure to back up your .prel file before you do this!), the file can be opened again correctly. However, as soon as it's saved again, the error is re-introduced.

Therefore, if someone has an idea how to actually fix this problem instead of patching it up with an admittedly wonky regex, I'd be most grateful.


One hint as to what the underlying problem might be: Around the time the error was introduced, Premiere spontaneously opened a little dialog window that said (in German) something like

"Premiere Elements is updating a component. Information is being transmitted..."

While this window was displayed, two Win7 UAC boxes popped up, asking me to allow the Windows Regserver to update my system. The actual commands it needed approval for were

C:\Windows\System32\regsvr32.exe /s 
   "C:\Program Files\Adobe\Adobe Premiere Elements 10\mc_dec_mpa_ds.ax" 
   "C:\Program Files\Adobe\Adobe Premiere Elements 10\mc_dec_mp2v_ds.ax"

and

C:\Windows\SysWOW64\regsvr32.exe /s 
   "C:\Program Files\Adobe\Adobe Premiere Elements 10\32\mc_dec_mpa_ds.ax" 
   "C:\Program Files\Adobe\Adobe Premiere Elements 10\32\mc_dec_mp2v_ds.ax"

(line breaks inserted for clarity).

The first time around, I allowed these actions (which in retrospect may have been a bad idea...); now this happens every time I'm trying to open a "patched" project file. It doesn't matter whether I now allow or refuse it - either way, Premiere writes a corrupted project file when I save my project.

share|improve this answer
    
That regular expression is brilliant - saved me a lot of time, when I actually had no hope for recovering this project! Altough I've no idea what caused project to be saved in that way, that happened only once for me. –  kreys May 19 at 21:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.