Hey Dmitriy,
“I’m, using script that generates fcpxml project”
Where does the data/project come from that you are using the script to generate the fcpxml with?
As a guide, if the framerate is based on video, then if progressive, 1 frame = 1 fps.
Audio on the other hand, depending on the NLE, can be played back in a number of vays from locked to video to milliseconds.
It all appears to be 29.97 fps, but maybe it is not?
I suggest that you investigate the two clips.
36 x – where does the “lens_flare” come from?
<asset id="video17" format="r1" name="36 x.mov" start="0s" hasVideo="1" videoSources="1" duration="16.02s">
<media-rep kind="original-media" src="file:///Volumes/Dropbox1/RealMedia%20Dropbox/Real%20Media/Media/Test/FC%20Test%20Address,%20Final%20Cut,%20testOLOLO/video/36%20x.mov" />
</asset>
<effect id="lens_flare" name="Lens Flare" uid=".../Transitions.localized/Lights.localized/Lens Flare.localized/Lens Flare.motr" />
And details for 36 x:
</asset-clip>
<asset-clip ref="video17" offset="165095/2997s" name="36 x.mov" duration="15274/2997s">
<timeMap>
<timept time="0s" value="0s" interp="smooth2" />
<timept time="2.2982332672809s" value="2.2782332672809s" interp="smooth2" inTime="0.5s" outTime="0.5s" />
<timept time="2.7982332672809s" value="13.721766732719s" interp="smooth2" inTime="0.5s" outTime="0.5s" />
<timept time="5.0964665345618s" value="16s" interp="smooth2" />
</timeMap>
For 12 vo, that is an MP4 file. Which FCPX has a love-hate relation ship with:
<asset id="video2" format="r1" name="12 vo.MP4" start="0s" hasVideo="1" videoSources="1" duration="9.51s">
<media-rep kind="original-media" src="file:///Volumes/Dropbox1/RealMedia%20Dropbox/Real%20Media/Media/Test/FC%20Test%20Address,%20Final%20Cut,%20testOLOLO/video/12%20vo.MP4" />
</asset>
Details for 12 vo
<asset-clip ref="video2" offset="31067/2997s" name="12 vo.MP4" lane="-2" />
</asset-clip>
My first test would be to convert the MP4s to .MOV files, to see if that locks the duration?
But as set out at the the top, where is the original data coming from before you use the FCPX XML generator?
Atb
Mads