Re: Final Cut Pro XML clip encodingand duration
Re: Final Cut Pro XML clip encodingand duration
- Subject: Re: Final Cut Pro XML clip encodingand duration
- From: Helena Ju <email@hidden>
- Date: Tue, 14 Oct 2008 14:51:33 -0700
Hey Bjørn,
The way the XML import works
1. it makes the whole project, all offline.
2. it reconnects the files if specified to in the XML import dialog or
in the <importoptions>.
At reconnect time, the durations would get updated, as long as the
reconnect succeeds (which might not happen if there is a problem).
But if the reconnect failed, or the XML did anything other than making
browser clips, then a bogus duration won't work.
For example, a sequence referencing items with bogus durations won't
work since it happens in step 1 (before reconnect) and it is unclear
how to edit things, or even if the source media is long enough.
So, the updating of durations is intentional, but only at that one
phase of the XML import, which you can guarantee we do by specifying
it in the <importoptions>, but you can't guarantee that it succeeds
(I've heard reports of specific servers preventing the reconnect from
succeeding, for example).
You're going to have to make the call about whether to use that hack
or not.
Best Luck!
Helena
On Oct 14, 2008, at 2:16 PM, Bjørn Holmgren wrote:
I am developing an application that searches through a folder on the
network containing many thousands of clips, and generates a FCP XML
with the search results. The problem is that I have no easy and fast
way of determining the duration of the found clips (mdls does not
work; no spotlight index). The manual for the XML interchange format
indicates that duration is mandatory in the XML, and testing
confirms that it is.
The good news is that FCP seems to ignore the duration encoded in
the XML, so I can write an arbitrary value on all clips, and FCP get
the real duration from the source files.
My question is: Is this behaviour intentional, or can I expect it to
change at any time, thereby breaking my app?
This is how I encode the clips:
<clip id="asdf">
<name>asdf</name>
<duration>25</duration>
<rate>
<ntsc>FALSE</ntsc>
<timebase>25</timebase>
</rate>
<file id="asdf 2">
<name>asdf</name>
<pathurl>file://localhost/Volumes/disk/dir/asdf</pathurl>
</file>
</clip>
_______________________________________________
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
_______________________________________________
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