XML parsing: Determining Keycode In Frame

Posted by ericpardee 
XML parsing: Determining Keycode In Frame
April 14, 2007 05:02PM
I'm trying to parse out film data from a FCP XML export. I want to essentially determine the Cut List information from the XML data. My trouble might be of lack of film knowledge with regard to 35mm 3perf. Here's cut list output:
Shot Footage Length Keycode In Frame Out Frame Roll Clip name
003 0032+09 0066+15 KU 10 1522 8210+09.1 8277+02.2 A172 125-2

The XML output gives me the film data as well:
<filmdata>
<filmslate>
<scene>125</scene>
<take>2</take>
<slate>125-2</slate>
</filmslate>
<cameraroll>A172</cameraroll>
<labroll>K7894</labroll>
<keycode>
<prefix>KU101522</prefix>
<feetframes>8189+00</feetframes>
<perfoffset>1</perfoffset>
<reversed>FALSE</reversed>
</keycode>
<filmstandard>35mm3p</filmstandard>
<telecinespeed>24</telecinespeed>
</filmdata>

How can I determine the Keycode In Frame, as listed in the cut list?

To be more clear:
In the XML, it gives, what I believe is the
starting frame of the camera roll's keycode, not the starting frame of the shot's
keycode.
So, the shot goes from, KU 10 1522 8210+09.1 to KU 10 1522 8277+02.2 according to the cutlist.
But, xml just lists: KU 101522 8189+00.1
I think that if I took this starting keycode of the camera roll (A172 in
this case) and added the Count, I should get to:
KU 10 1522 8210+09.1 . Add the Length, and I should get:
KU 10 1522 8277+02.2
This logic works with the timecode, but I can't figure out why things aren't
adding up in Keycode, aside that it's a pain to add 3perf, so hopefully it's
a math error.
If you have time to take a peak, here are samples:
xml output: [www.postlogic.com]
cutlists: [www.postlogic.com]
edls: [www.postlogic.com]
pseudocode for parsing clip: [www.postlogic.com]

If you've made it this far, thank you.
Eric
Re: XML parsing: Determining Keycode In Frame
April 21, 2007 06:45PM
Have you taken this part of the XML into account in your math?

<clipitem id="125-2 ">
<name>125-2</name>
<duration>2716</duration>
<rate>
<ntsc>TRUE</ntsc>
<timebase>30</timebase>
</rate>
<in>622</in>
<out>2401</out>
<start>863</start>
<end>2642</end>
The in tag tells you how many frames into the media your clip starts, the out where it ends and the start and end tell you where it starts and ends in the sequence.
Also the ntsc and timebase tags show that this was digitized at 29.97, so you also have pulldown to deal with it looks like. Yikes.

Robert Weaver
Director of Post Production
Starz Media - Film Roman
Sorry, only registered users may post in this forum.

Click here to login

 


Google
  Web lafcpug.org

Web Hosting by HermosawaveHermosawave Internet


Recycle computers and electronics