FCP 7 Mixed Frame Rate XML Timecode
FCP 7 Mixed Frame Rate XML Timecode
- Subject: FCP 7 Mixed Frame Rate XML Timecode
- From: David Heidelberger <email@hidden>
- Date: Tue, 09 Oct 2012 19:12:31 -0400
Hello,
I'm hoping to get a little help with figuring out the timecode in a mixed format FCP 7 sequence. I have a PAL clip in an NTSC 30 NDF sequence. Here's a portion of the XML (V5). For space, I've trimmed out some of the tags that aren't relevant to the timecode:
<sequence id="Test">
<uuid>02F87F8A-A683-44EE-8CF2-4FA28807C357</uuid>
<updatebehavior>add</updatebehavior>
<name>Test</name>
<duration>222</duration>
<rate>
<ntsc>TRUE</ntsc>
<timebase>30</timebase>
</rate>
<timecode>
<rate>
<ntsc>TRUE</ntsc>
<timebase>30</timebase>
</rate>
<string>01:00:00:00</string>
<frame>108000</frame>
<source>source</source>
<displayformat>NDF</displayformat>
</timecode>
<in>-1</in>
<out>-1</out>
<media>
<video>
<format>
<samplecharacteristics>
<width>1920</width>
<height>1080</height>
<anamorphic>FALSE</anamorphic>
<pixelaspectratio>Square</pixelaspectratio>
<fielddominance>none</fielddominance>
<rate>
<ntsc>TRUE</ntsc>
<timebase>30</timebase>
</rate>
<colordepth>24</colordepth>
</samplecharacteristics>
</format>
<track>
<clipitem id="test_clip">
<name>test_clip</name>
<duration>6919</duration>
<rate>
<ntsc>TRUE</ntsc>
<timebase>30</timebase>
</rate>
<in>3026</in>
<out>3248</out>
<start>0</start>
<end>222</end>
<masterclipid>test_clip1</masterclipid>
<file id="test_clip2">
<name>test_clip.mov</name>
<rate>
<timebase>25</timebase>
</rate>
<duration>5766</duration>
<timecode>
<rate>
<timebase>25</timebase>
</rate>
<string>01:05:15:09</string>
<frame>97884</frame>
<displayformat>NDF</displayformat>
<source>source</source>
</timecode>
<media>
<video>
<duration>5766</duration>
<samplecharacteristics>
<width>1920</width>
<height>1080</height>
</samplecharacteristics>
</video>
<sourcetrack>
<mediatype>video</mediatype>
</sourcetrack>
</clipitem>
<enabled>TRUE</enabled>
<locked>FALSE</locked>
</track>
</media>
<ismasterclip>FALSE</ismasterclip>
</sequence>
First, I was surprised that the timebase for the clipitem was reported as 30 NTSC. And, in fact, if you drag that clip from the timeline into a new project, FCP reports its Vid Rate as 29.97 instead of 25. But anyway, I'm trying to figure out the clip timecode for the in and out points. I can get it close, but I really need to be exact. On this clip, the in-point in PAL timecode is 01:06:56:06
I take the in point, 3026 and divide by the reported timebase, 30 in this case, which converts to seconds: 100.866666. Why I'm dividing by 30 and not 29.97, I'm not entirely sure. Is that reliable behavior? The XML for a DF and NDF sequence reports the same in point. I then convert those seconds to frames in PAL by multiplying by 25. I think I would want to look to the clip's timecode timebase to get the number I need to multiply by, but I'm not totally positive of that, either. So in PAL, it's 2521.66666 frames. I then add that to the starting frame from the clip timecode tag, 97884, and get 100405.666666. If I convert that to a PAL timecode number, I get 01:06:56:05.66666, which Final Cut calls 01:06:56:06. In an example where the decimal remainder is less than .5, Final Cut still seems to round it up. Is that consistent behavior? Does it always take the ceiling of the frames number?
My question is, is this the proper way to find the timecode? Am I looking at the right tags (for example, if a clip's video and timecode tracks were different frame rates, I assume the clip's timecode timebase and file timebase would be different)? Is there anything I'm overlooking?
Thanks in advance for any help, I know this isn't developed software anymore, but I'm trying to fix a bug in an older program.
- David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden