digital-paper-edit-electron icon indicating copy to clipboard operation
digital-paper-edit-electron copied to clipboard

Error While Exporting to FCPX XML

Open kedar264 opened this issue 3 years ago • 1 comments

While exporting to FCPX XML i managed to get the file but ,upon opening i got this error "The XML document could not be imported.DTD validation failed. (The data couldn’t be read because it isn’t in the correct format.)"

Screenshot 2022-02-24 at 12 03 04 AM

Looks like there's some issue with the FCPXML File, Here's the file content

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE fcpxml><fcpxml version="1.9"><resources><format id="r0" frameDuration="1/60s"/><asset id="r1" duration="366/5s" hasVideo="1" hasAudio="1"><media-rep kind="original-media" src="2022-02-16 14-48-07.mov"/></asset></resources><library><event name="Timeline 1"><project name="Timeline 1"><sequence format="r0"><spine><asset-clip ref="r1" start="11/10s" duration="619/30s" offset="3600/1s"/><asset-clip ref="r1" start="2029/60s" duration="269/30s" offset="108619/30s"/><asset-clip ref="r1" start="2639/60s" duration="299/60s" offset="18148/5s"/><asset-clip ref="r1" start="51/1s" duration="41/15s" offset="43615/12s"/><asset-clip ref="r1" start="3373/60s" duration="589/60s" offset="218239/60s"/></spine></sequence></project></event></library></fcpxml>

i attached Example of correct file which works with final-cut

combined copy.fcpxml.zip

i hope you can fix it soon

kedar264 avatar Feb 23 '22 18:02 kedar264

The issue is likely with https://github.com/pietrop/fcpx-xml-composer

Probl generating an invalid output. It might be good to try and reproduce by exporting the paper edit as a json, if I remember correctly, that could then be used in isolation with the fcpx xml compose module to determine what might be breaking.

It could also be that fpcx might have changed their specs in subsequent versions since the module was made.

pietrop avatar Sep 01 '23 01:09 pietrop