Giter VIP home page Giter VIP logo

fcpx-xml-composer's Introduction

FCPX XML Composer

work in progress

Convert a json sequence into an FCPX XML.

Inspired by EDL Composer on npm it uses the same schema to describe the sequence.

Part of the bbc/digital-paper-edit project by BBC News Labs

Setup

cd, clone the repo, npm install

Usage - development

see example-usage.js for how to requrie and use the module.

To run the example do node example-usage.js

When importing the .fcpxml sequence in FCPX the media is going to be offline, to re-link the media go to Files -> Relink Files or see see Re-link offline clips in FCPX, for more details.

Usage - production

npm install @bbc/fcpx-xml-composer

require or import in your code and see example usage for more details

System Architecture

A function that loop over the json sequence and using string interpolation creates an equivalent FCPX XML. With no dependencies.

Used the sequence form the docs - Listing 1-1 A library with a simple project as FCPXML as a starting point.

FCPX seems particularly picky about specifying the correct frame rate for the clips in the sequence.

Relinked files must have the same media type, same frame rate, and similar audio channels as the original files, and must be long enough to cover all the clips that reference the files.

DTD errors FCPX reference

A Known limitation is that the EDL composer sequence only supports one track, as the EDL format is not multi track. FCPX sequence could allow multiple tracks. But for the current use case with digital-paper-edit one track is sufficient. PRs might be considered to extend this module to multi track support.

Development env

Build

NA

Tests

TBC

Deployment

TBC - published to npm under @bbc/fcpx-xml-composer

TODO:

  • Add support for optional offset (in a way supported by FCPX XML)

fcpx-xml-composer's People

Contributors

allishultes avatar sarahrainbow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fcpx-xml-composer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.