summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-22 23:19:35 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-22 23:19:35 +0100
commit90d598fb10c1808a31bb04f30af8b15e78abcf2f (patch)
tree361071b0032764956d5b7ec5b0ab2f59007cb947 /src
parentb636c3e0323a60526c450c2fd821289c1363f5d2 (diff)
Add SMPTE Bv2.1 ExtensionMetadata.
Diffstat (limited to 'src')
-rw-r--r--src/cpl.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index e995581c..561eb828 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -404,6 +404,14 @@ CPL::maybe_write_composition_metadata_asset (xmlpp::Element* node) const
meta->add_child("MainSubtitleLanguageList")->add_child_text(lang);
}
+ /* SMPTE Bv2.1 8.6.3 */
+ xmlpp::Element* extension = meta->add_child("ExtensionMetadataList", "meta")->add_child("ExtensionMetadata", "meta");
+ extension->set_attribute("scope", "http://isdcf.com/ns/cplmd/app");
+ extension->add_child("Name", "meta")->add_child_text("Application");
+ xmlpp::Element* property = extension->add_child("PropertyList", "meta")->add_child("Property", "meta");
+ property->add_child("Name", "meta")->add_child_text("DCP Constraints Profile");
+ property->add_child("Value", "meta")->add_child_text("SMPTE-RDD-52:2020-Bv2.1");
+
if (_reels.front()->main_sound()) {
shared_ptr<const SoundAsset> asset = _reels.front()->main_sound()->asset();
if (asset) {