site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Rainer, It's not really a bug - it's a feature. Happy weekend Andreas On 06.01.2012, at 18:50, Rainer Standke wrote: Rainer On Jan 5, 2012, at 17:27, Andreas Kiel wrote: Simple thing, There is no fps any more. Just time. Regards Andreas On 05.01.2012, at 23:53, Rainer Standke wrote: Hello all, <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE fcpxml> What am I over-looking? Thanks, _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... The thing with FCPXML is that if you got a project XML all clips are conformed to the sequence timebase. To figure out the timebase of a special clip you additionally need the event XML(s) to search. You need find the involved event(s) by name, then you have to export them one by one, then search for the common file paths of project end event (s). If a clip is found in one of the events you can step backwards from the found asset (in the XML lines) until you've found a format node this allows you to extract the frame rate from the name attribute. Then you can convert the start time of your asset to TC - if you're sure it's NDF. Otherwise you have to go to the clip node and extract the tcFormat attribute entry to make sure. So it's really easy and innovative ;) Other thing you can do is to use the path url and extract all values from the original file. That becomes a major problem when you need to deal in frames, or counting schemes that are based on frames, e.g. timecode. There are circumstances under which the same clip has the correct format listed in the XML - namely when it has not been broken apart in the timeline. This begins to smell like a bug, unless there is something here that I don't yet get. I have a question about parsing FCP X XMLs. I have a simple 30 fps sequence that has one source clip in 24 fps. The XML looks like this: <fcpxml version="1.0"> <project name="seq30 source24 - daddel" uid="6B4E2FB5- D3BD-41D1-8914-55E6A8F7EE2E" eventID="866117F1-0D1D-4E05-BDCA- CC26967FD193" location="file://localhost/Volumes/160/Final%20Cut% 20Projects/seq30%20source24%20-%20daddel/"> <resources> <format id="r1" name="FFVideoFormat1080p30" frameDuration="100/3000s" width="1920" height="1080"/> <projectRef id="r2" name="daddel" uid="866117F1-0D1D-4E05-BDCA-CC26967FD193"/> <asset id="r3" name="bars 24" uid="AE03DB97FAC016F4ED1C71D493C3D8F3" projectRef="r2" src="file://localhost/Volumes/160/bars%2024.mov" start="7200s" duration="60s" hasVideo="1" hasAudio="1" audioSources="1" audioChannels="2" audioRate="48000"/> </resources> <sequence duration="1103600/48000s" format="r1" tcFormat="NDF" audioLayout="stereo" audioRate="48k"> <spine> <gap offset="10800s" name="Gap" duration="166400/12000s" start="3600s"/> <video offset="129766400/12000s" ref="r3" name="bars 24 - v1 - break away" duration="27300/3000s" start="7209s"> <audio lane="-1" offset="7200s" ref="r3" name="bars 24 - a1 break away" duration="870000/48000s" start="7200s" role="dialogue"/> </video> </spine> </sequence> </project> </fcpxml> I can tell that the sequence format is 30 fps, but I can't find a clue that the source clip's frame rate is 24fps. Rainer _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/kiel% 40spherico.com This email sent to kiel@spherico.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/kiel% 40spherico.com This email sent to kiel@spherico.com This email sent to site_archiver@lists.apple.com