dylman123 / automatic-subtitle-generator-python

A tool to automatically generate subtitles for videos which are editable in Final Cut Pro X.
6 stars 0 forks source link

Error shown when importing modified .fcpxml file into Final Cut Pro X #10

Closed dylman123 closed 4 years ago

dylman123 commented 4 years ago

00bd1456-85d8-4cf9-9b96-b1a05531e929

MichaelOren commented 4 years ago

The error was that the audio-channel-source needs to be at the bottom of the asset-clip within the XML file. Still not fixed yet

dylman123 commented 4 years ago
  1. Fixed in code. 'audio-channel-source' will now always exist at bottom of 'asset-clip'.
  2. Added a XML DTD validator. Returns 0 if .fcpxml file validates correctly, returns 1 if not.
  3. Still waiting on Darren's feedback on opening the .fcpxml file before closing this issue.
dylman123 commented 4 years ago

This error no longer appears upon an XML import. However the following warnings appear: warnings

dylman123 commented 4 years ago

And there is a new import error, when attempting import on a new video clip IDREF_error

dylman123 commented 4 years ago

A new 'effect' resource is appended to the 'resources' node in the .fcpxml file. This 'effect' resource is for a Basic Title. New titles will now reference this resource in the attribute called 'ref'.