o108minmin/halberd

fcpxmlの生成サポート

Closed this issue · 2 comments

やりたいこと

  • fcpxmlを生成できるようにしたい
    • davinci resolveで取り込めるようにしたい

やること

  • fcpxmlの仕様書を読む
  • davinci resolveで取り込めるxmlのテンプレートを作る
  • halberd上で実装する

davinci resolveで取り込めるxmlのテンプレートを作る

とりあえずこれで読み込めた

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fcpxml>

<fcpxml version="1.8">
    <resources>
        <format id="r1" name="FFVideoFormat1080p2398" frameDuration="1001/24000s" width="1920" height="1080" colorSpace="1-1-1 (Rec. 709)"/>
        <effect id="r2" name="text"/>
    </resources>
    <library>
        <event name="2021-02-08">
            <project name="xml">
                <sequence format="r1" duration="1201200/120000s" tcStart="0s" tcFormat="NDF" audioLayout="stereo" audioRate="48k">
                    <spine>
                        <text-style-def id="ts1">
                            <text-style font="Helvetica" fontSize="72" fontFace="Regular" fontColor="1 0.999974 0.999991 1" alignment="center"/>
                        </text-style-def>
                        <title ref="r2" offset="0s" name="カスタム" start="86486400/24000s" duration="600600/120000s">
                            <text>
                                <text-style ref="ts1">タイトル</text-style>
                            </text>
                        </title>
                        <title ref="r2" offset="1200600/120000s" name="カスタム2" start="86486400/24000s" duration="55/2s">
                            <text>
                                <text-style ref="ts1">これは
あああ</text-style>
                            </text>
                        </title>
                    </spine>
                </sequence>
            </project>
        </event>
    </library>
</fcpxml>

mergeできたのでclose