libdcp.git
2 years agowip check-signatures
Carl Hetherington [Mon, 7 Mar 2022 21:00:06 +0000 (22:00 +0100)]
wip

2 years agoTweak path in the example.
Carl Hetherington [Mon, 7 Mar 2022 20:52:21 +0000 (21:52 +0100)]
Tweak path in the example.

2 years agoRemove unused capture.
Carl Hetherington [Thu, 3 Mar 2022 23:05:31 +0000 (00:05 +0100)]
Remove unused capture.

2 years agoFix slightly extended libxml++ dependency. v1.8.10
Carl Hetherington [Thu, 3 Mar 2022 21:28:01 +0000 (22:28 +0100)]
Fix slightly extended libxml++ dependency.

2 years agoAdd lists of ratings. v1.8.9
Carl Hetherington [Tue, 1 Mar 2022 16:06:26 +0000 (17:06 +0100)]
Add lists of ratings.

2 years agoMake dcp::init() take a general resources directory rather than specifically tags.
Carl Hetherington [Tue, 1 Mar 2022 19:29:13 +0000 (20:29 +0100)]
Make dcp::init() take a general resources directory rather than specifically tags.

2 years agoMove Rating out to a separate file.
Carl Hetherington [Tue, 1 Mar 2022 15:27:59 +0000 (16:27 +0100)]
Move Rating out to a separate file.

2 years agoAdd -x32/-x64 suffix to boost libraries when building for Windows. v1.8.8
Carl Hetherington [Tue, 22 Feb 2022 21:56:48 +0000 (22:56 +0100)]
Add -x32/-x64 suffix to boost libraries when building for Windows.

2 years agoDon't look for ImageMagick/GraphicsMagick if not building examples.
Carl Hetherington [Sat, 19 Feb 2022 22:27:37 +0000 (23:27 +0100)]
Don't look for ImageMagick/GraphicsMagick if not building examples.

2 years agoPass certificate validity length into the constructor. v1.8.7
Carl Hetherington [Sat, 12 Feb 2022 20:22:40 +0000 (21:22 +0100)]
Pass certificate validity length into the constructor.

2 years agoCleanup: use dcp::LocalTime for certificate validity times.
Carl Hetherington [Sat, 12 Feb 2022 20:15:03 +0000 (21:15 +0100)]
Cleanup: use dcp::LocalTime for certificate validity times.

Before we were using struct tm but not filling it all in, which
seems quite unpleasant.

2 years agoUse optional for ReelAsset _annotation_text. v1.8.6
Carl Hetherington [Mon, 17 Jan 2022 17:45:19 +0000 (18:45 +0100)]
Use optional for ReelAsset _annotation_text.

Not only is this tag optional in Interop and SMPTE, but it would
appear that if it is present but empty a DCP will not play back
on Sony SRX320 / LMT3000 systems (DoM bug #2124).

Here we use optional<>, as seems to make sense, and also refuse
to write empty tags (instead omitting the tag entirely).

2 years agoFix off-by-one in verification of closed caption line length. v1.8.5
Carl Hetherington [Tue, 9 Nov 2021 22:43:46 +0000 (23:43 +0100)]
Fix off-by-one in verification of closed caption line length.

2 years agoMessage tweak.
Carl Hetherington [Sun, 24 Oct 2021 23:13:07 +0000 (01:13 +0200)]
Message tweak.

2 years agoOrder subtitles in the XML according to their vertical position (DoM bug #2106). v1.8.4
Carl Hetherington [Mon, 18 Oct 2021 06:55:27 +0000 (08:55 +0200)]
Order subtitles in the XML according to their vertical position (DoM bug #2106).

2 years agoAllow specification of valign when writing verify tests.
Carl Hetherington [Sat, 23 Oct 2021 21:51:49 +0000 (23:51 +0200)]
Allow specification of valign when writing verify tests.

2 years agoRemove some unused using statements.
Carl Hetherington [Mon, 18 Oct 2021 06:55:07 +0000 (08:55 +0200)]
Remove some unused using statements.

2 years agoBasic implementation of <Space> tag in subtitles. v1.8.3
Carl Hetherington [Wed, 13 Oct 2021 20:18:59 +0000 (22:18 +0200)]
Basic implementation of <Space> tag in subtitles.

2 years agoRemove some unused using commands.
Carl Hetherington [Sun, 10 Oct 2021 20:38:03 +0000 (22:38 +0200)]
Remove some unused using commands.

2 years agoFix problems when adding KDMs to a VF, before adding the OV. v1.8.2
Carl Hetherington [Fri, 8 Oct 2021 10:08:10 +0000 (12:08 +0200)]
Fix problems when adding KDMs to a VF, before adding the OV.

If we have a KDM which contains keys for all the assets referred
to by a VF (even the ones in the OV) we would previously throw
an exception because we tried to give the KDM to the resolved
assets when it was given to the Reel.

Here we change things so that the addition of KDMs to assets can
be deferred if the asset is not yet resolved.

2 years agoFix incorrect error code (2K when it should be 4K). v1.8.1
Carl Hetherington [Tue, 5 Oct 2021 23:17:52 +0000 (01:17 +0200)]
Fix incorrect error code (2K when it should be 4K).

2 years agoTweak comments for the DoM manual.
Carl Hetherington [Tue, 5 Oct 2021 23:17:35 +0000 (01:17 +0200)]
Tweak comments for the DoM manual.

2 years agoRemove an unnecessary using.
Carl Hetherington [Tue, 5 Oct 2021 19:02:40 +0000 (21:02 +0200)]
Remove an unnecessary using.

2 years agoBuild with libcxml 0.17.2. v1.8.0
Carl Hetherington [Sun, 3 Oct 2021 20:23:59 +0000 (22:23 +0200)]
Build with libcxml 0.17.2.

2 years agoMake the former dcst namespace default for SMPTE subtitles.
Carl Hetherington [Sun, 3 Oct 2021 20:18:56 +0000 (22:18 +0200)]
Make the former dcst namespace default for SMPTE subtitles.

In DoM bug #2061 it is reported that Easy DCP gives the error

"XML Document has default root namespace prefix: dcst.
 Default namespace should not use prefix for root or root namespace child nodes."

with SMPTE subtitle files written by DCP-o-matic, and that the correct
fix is to make the former dcst: namespace the default and then remove
the dcst: qualifiers from everything.

I'm not sure I agree with the error; AFAICS the subtitle files written
by previous versions did not have a default root namespace prefix,
since it was specified by xmlns:dcst and not just xmlns alone, so I
think they were valid.

However, using a default NS also seems fine, slightly simplifies the
code and produces more compact subtitle files, so we change that here.
It should also stop Easy DCP complaining, which is always marginally
preferable to sticking to our guns and getting the blame for it.

2 years agoAdd .cache.
Carl Hetherington [Sun, 3 Oct 2021 20:18:42 +0000 (22:18 +0200)]
Add .cache.

2 years agoAdd some missing LIBDCP_RESOURCES.
Carl Hetherington [Sat, 21 Aug 2021 22:07:47 +0000 (00:07 +0200)]
Add some missing LIBDCP_RESOURCES.

2 years agoImprove message on verify test failure.
Carl Hetherington [Wed, 11 Aug 2021 21:35:30 +0000 (23:35 +0200)]
Improve message on verify test failure.

2 years agoAdd verify check for empty <Text> nodes in timed text.
Carl Hetherington [Tue, 10 Aug 2021 00:10:49 +0000 (02:10 +0200)]
Add verify check for empty <Text> nodes in timed text.

2 years agoRename verify_text_timing -> verify_text_details.
Carl Hetherington [Mon, 9 Aug 2021 16:04:09 +0000 (18:04 +0200)]
Rename verify_text_timing -> verify_text_details.

2 years agoAdd support for writing CPL metadata about sign language video tracks (DoM #2062).
Carl Hetherington [Wed, 4 Aug 2021 18:27:32 +0000 (20:27 +0200)]
Add support for writing CPL metadata about sign language video tracks (DoM #2062).

2 years agoC++11 tidying.
Carl Hetherington [Wed, 4 Aug 2021 18:25:02 +0000 (20:25 +0200)]
C++11 tidying.

2 years agoAdd a belt-and-braces check.
Carl Hetherington [Wed, 4 Aug 2021 18:24:29 +0000 (20:24 +0200)]
Add a belt-and-braces check.

2 years agoDon't bother checking the return of node_child as it can never be null
Carl Hetherington [Wed, 4 Aug 2021 18:24:16 +0000 (20:24 +0200)]
Don't bother checking the return of node_child as it can never be null

2 years agoMake adding extension metadata items more generic.
Carl Hetherington [Tue, 3 Aug 2021 22:11:43 +0000 (00:11 +0200)]
Make adding extension metadata items more generic.

2 years agoFix tests after previous commit.
Carl Hetherington [Tue, 3 Aug 2021 22:03:06 +0000 (00:03 +0200)]
Fix tests after previous commit.

2 years agoFix incorrect channel assigment (DoM bug #2062).
Carl Hetherington [Thu, 15 Jul 2021 12:08:08 +0000 (14:08 +0200)]
Fix incorrect channel assigment (DoM bug #2062).

2 years agoC++11 tidying.
Carl Hetherington [Wed, 14 Jul 2021 00:02:17 +0000 (02:02 +0200)]
C++11 tidying.

2 years agoC++11 cleanup.
Carl Hetherington [Fri, 25 Jun 2021 22:00:38 +0000 (00:00 +0200)]
C++11 cleanup.

2 years agoAdd issuer() and creator() getters to CPL.
Carl Hetherington [Thu, 24 Jun 2021 15:02:19 +0000 (17:02 +0200)]
Add issuer() and creator() getters to CPL.

2 years agoFix tests after changes to language tags.
Carl Hetherington [Fri, 18 Jun 2021 18:01:14 +0000 (20:01 +0200)]
Fix tests after changes to language tags.

2 years agoRemove count at start of language files that wasn't being read.
Carl Hetherington [Fri, 18 Jun 2021 18:01:05 +0000 (20:01 +0200)]
Remove count at start of language files that wasn't being read.

2 years agoFix strange python 3 incompatibilities.
Carl Hetherington [Fri, 18 Jun 2021 18:00:49 +0000 (20:00 +0200)]
Fix strange python 3 incompatibilities.

2 years agoFix update-language-subtags to include all descriptions for a particular code.
Carl Hetherington [Sat, 12 Jun 2021 18:51:44 +0000 (20:51 +0200)]
Fix update-language-subtags to include all descriptions for a particular code.

This avoids, e.g. "nl" being labelled as only Flemish and not also
Dutch.

2 years agoAdd option to ignore mismatched HMACs when reading MXFs.
Carl Hetherington [Fri, 4 Jun 2021 12:37:43 +0000 (14:37 +0200)]
Add option to ignore mismatched HMACs when reading MXFs.

2 years agoMissing finalize() in dcpdecryptmxf.
Carl Hetherington [Fri, 4 Jun 2021 11:54:23 +0000 (13:54 +0200)]
Missing finalize() in dcpdecryptmxf.

2 years agoImprove dcpdecryptmxf in various ways.
Carl Hetherington [Fri, 4 Jun 2021 11:32:30 +0000 (13:32 +0200)]
Improve dcpdecryptmxf in various ways.

2 years agoFix up dcpdecryptmxf start script in various ways.
Carl Hetherington [Fri, 4 Jun 2021 11:32:12 +0000 (13:32 +0200)]
Fix up dcpdecryptmxf start script in various ways.

2 years agoAdd missing LIBDCP_RESOURCES to script.
Carl Hetherington [Thu, 3 Jun 2021 22:21:49 +0000 (00:21 +0200)]
Add missing LIBDCP_RESOURCES to script.

2 years agoTest churn from adding make_uuid() into CPL.
Carl Hetherington [Tue, 1 Jun 2021 23:38:53 +0000 (01:38 +0200)]
Test churn from adding make_uuid() into CPL.

2 years agoImprove output when a test fails.
Carl Hetherington [Tue, 1 Jun 2021 23:27:41 +0000 (01:27 +0200)]
Improve output when a test fails.

2 years agoReduce test flakyness a bit.
Carl Hetherington [Tue, 1 Jun 2021 23:27:33 +0000 (01:27 +0200)]
Reduce test flakyness a bit.

2 years agoPass through CompositionMetadataAsset correctly.
Carl Hetherington [Tue, 1 Jun 2021 22:33:01 +0000 (00:33 +0200)]
Pass through CompositionMetadataAsset correctly.

We weren't saving Id, and were not quite handling FullContentText
correctly.

2 years agoMake similar changes to the previous commit for _xml_id.
Carl Hetherington [Thu, 27 May 2021 12:22:48 +0000 (14:22 +0200)]
Make similar changes to the previous commit for _xml_id.

This is also unavailable if the asset is encrypted.

2 years agoTidy handling of _raw_xml.
Carl Hetherington [Thu, 27 May 2021 12:21:35 +0000 (14:21 +0200)]
Tidy handling of _raw_xml.

Before this if we tried to get the XML of an encrypted asset we
would just get an empty string.  Now we get a boost::none which
means the verifier can avoid trying to check details of the XML
(and instead raise a warning that you are trying to verify data
that it cannot decrypt).

2 years agoFix bug causing failure to decrypt SMPTE subtitles.
Carl Hetherington [Thu, 27 May 2021 12:19:40 +0000 (14:19 +0200)]
Fix bug causing failure to decrypt SMPTE subtitles.

2 years agoC++11 cleanup.
Carl Hetherington [Thu, 27 May 2021 12:16:40 +0000 (14:16 +0200)]
C++11 cleanup.

2 years agoRead the bits we can from the MXF header even when it is encrypted.
Carl Hetherington [Thu, 27 May 2021 09:45:11 +0000 (11:45 +0200)]
Read the bits we can from the MXF header even when it is encrypted.

2 years agoSort notes when checking verifications.
Carl Hetherington [Thu, 27 May 2021 09:44:21 +0000 (11:44 +0200)]
Sort notes when checking verifications.

So that the lists in the tests don't have to be in the right order.

2 years agoActually use correct gcc version in check from previous.
Carl Hetherington [Fri, 7 May 2021 16:21:51 +0000 (18:21 +0200)]
Actually use correct gcc version in check from previous.

2 years agoFix build on old GCC.
Carl Hetherington [Fri, 7 May 2021 16:15:39 +0000 (18:15 +0200)]
Fix build on old GCC.

3 years agoAlso install mono_picture_asset_writer.h
Mart Jansink [Mon, 26 Apr 2021 09:52:39 +0000 (11:52 +0200)]
Also install mono_picture_asset_writer.h

3 years agoPrefer the tags directory specified in LIBDCP_RESOURCES
Mart Jansink [Mon, 26 Apr 2021 09:50:25 +0000 (11:50 +0200)]
Prefer the tags directory specified in LIBDCP_RESOURCES

3 years agoAlso depend on libcxml
Mart Jansink [Mon, 26 Apr 2021 09:48:53 +0000 (11:48 +0200)]
Also depend on libcxml

3 years agoSlightly more details message when sound data differs in ::equals().
Carl Hetherington [Thu, 29 Apr 2021 07:36:46 +0000 (09:36 +0200)]
Slightly more details message when sound data differs in ::equals().

3 years agoDon't give an error on verifying Interop DCPs with possibly-incorrectly
Carl Hetherington [Thu, 22 Apr 2021 19:56:38 +0000 (21:56 +0200)]
Don't give an error on verifying Interop DCPs with possibly-incorrectly
marked 3D assets.

This also adds a warning into the verification output.

I don't know if this is actually a standard violation but they
have been seen in the wild made by "reputable" DCP creation software.

DoM bug #1976.

3 years agoFix macOS build warning.
Carl Hetherington [Wed, 14 Apr 2021 22:02:56 +0000 (00:02 +0200)]
Fix macOS build warning.

3 years agoMissing header install.
Carl Hetherington [Wed, 14 Apr 2021 14:49:50 +0000 (16:49 +0200)]
Missing header install.

3 years agoImprove handling of image subtitle IDs in XML (DoM bug #1965)
Carl Hetherington [Wed, 14 Apr 2021 07:56:21 +0000 (09:56 +0200)]
Improve handling of image subtitle IDs in XML (DoM bug #1965)

When reading/writing the XML for image subtitles, we assumed that
the content of the <Image> tag is just the ID of the PNG in the MXF,
without any prefix.

DoM bug #1965 mentions a DCP where this is not the case, and SMPTE
429-5-2009 has an example where there is urn:uuid: in the XML.

This change makes DoM write this urn:uuid: prefix, and accept it if
it's present (but not complain if it's not).

If the urn:uuid: _is_ required in the field, it's a bit surprising
that nobody has complained up to this point.  Maybe nobody noticed,
or nobody reported it.

3 years agoIgnore parameters in PKL type strings when checking them.
Carl Hetherington [Wed, 14 Apr 2021 10:40:01 +0000 (12:40 +0200)]
Ignore parameters in PKL type strings when checking them.

3 years agoRename write_subtitle_test -> shared_subtitle_test
Carl Hetherington [Wed, 14 Apr 2021 09:28:50 +0000 (11:28 +0200)]
Rename write_subtitle_test -> shared_subtitle_test

3 years agoMove some tests from write_subtitle_test into interop_subtitle_test.
Carl Hetherington [Wed, 14 Apr 2021 09:26:08 +0000 (11:26 +0200)]
Move some tests from write_subtitle_test into interop_subtitle_test.

3 years agoRename read_interop_subtitle_test -> interop_subtitle_test.
Carl Hetherington [Wed, 14 Apr 2021 09:23:59 +0000 (11:23 +0200)]
Rename read_interop_subtitle_test -> interop_subtitle_test.

3 years agoMove some tests from write_subtitle_test to smpte_subtitle_test.
Carl Hetherington [Wed, 14 Apr 2021 09:14:13 +0000 (11:14 +0200)]
Move some tests from write_subtitle_test to smpte_subtitle_test.

3 years agoMerge read_smpte_subtitle_test with smpte_subtitle_test.
Carl Hetherington [Wed, 14 Apr 2021 09:11:47 +0000 (11:11 +0200)]
Merge read_smpte_subtitle_test with smpte_subtitle_test.

3 years agoMissing file.
Carl Hetherington [Wed, 14 Apr 2021 07:57:00 +0000 (09:57 +0200)]
Missing file.

3 years agoC++11 tidying.
Carl Hetherington [Wed, 14 Apr 2021 07:46:55 +0000 (09:46 +0200)]
C++11 tidying.

3 years agoFix/hide some warnings.
Carl Hetherington [Tue, 13 Apr 2021 23:00:05 +0000 (01:00 +0200)]
Fix/hide some warnings.

3 years agoTidying a few things up.
Carl Hetherington [Tue, 13 Apr 2021 21:50:28 +0000 (23:50 +0200)]
Tidying a few things up.

3 years agoRemove ReelEncryptableAsset and tidy up a bit.
Carl Hetherington [Tue, 13 Apr 2021 21:36:22 +0000 (23:36 +0200)]
Remove ReelEncryptableAsset and tidy up a bit.

3 years agoMake ReelAsset the parent of ReelFileAsset.
Carl Hetherington [Mon, 12 Apr 2021 23:38:56 +0000 (01:38 +0200)]
Make ReelAsset the parent of ReelFileAsset.

3 years agoAdd some missing override statements. sub-rework
Carl Hetherington [Sun, 11 Apr 2021 22:38:01 +0000 (00:38 +0200)]
Add some missing override statements.

3 years agoSplit ReelClosedCaptionAsset into Interop and SMPTE parts.
Carl Hetherington [Sun, 11 Apr 2021 22:20:44 +0000 (00:20 +0200)]
Split ReelClosedCaptionAsset into Interop and SMPTE parts.

3 years agoC++11 tidying.
Carl Hetherington [Sun, 11 Apr 2021 20:25:21 +0000 (22:25 +0200)]
C++11 tidying.

3 years agoSpecify CPL standard on construction.
Carl Hetherington [Sun, 11 Apr 2021 20:24:44 +0000 (22:24 +0200)]
Specify CPL standard on construction.

Then choose which standard DCP should use based on the CPL(s).

3 years agoSplit ReelSubtitleAsset into Interop and SMPTE classes.
Carl Hetherington [Sun, 11 Apr 2021 18:49:44 +0000 (20:49 +0200)]
Split ReelSubtitleAsset into Interop and SMPTE classes.

3 years agoSmall bits of tidying up.
Carl Hetherington [Sun, 11 Apr 2021 18:49:18 +0000 (20:49 +0200)]
Small bits of tidying up.

3 years agoAdd header guards.
Carl Hetherington [Sun, 11 Apr 2021 18:46:55 +0000 (20:46 +0200)]
Add header guards.

3 years agoExtract some parts of ReelEncryptableAsset into ReelFileAsset
Carl Hetherington [Sat, 10 Apr 2021 22:10:30 +0000 (00:10 +0200)]
Extract some parts of ReelEncryptableAsset into ReelFileAsset

3 years agoRename ReelFileAsset -> ReelEncryptableAsset
Carl Hetherington [Sat, 10 Apr 2021 21:54:31 +0000 (23:54 +0200)]
Rename ReelFileAsset -> ReelEncryptableAsset

3 years agoAdd check for Bv2.1 10.4.3 - container duration vs reel duration in timed text.
Carl Hetherington [Fri, 9 Apr 2021 21:49:42 +0000 (23:49 +0200)]
Add check for Bv2.1 10.4.3 - container duration vs reel duration in timed text.

3 years agoAdd accessor for intrinsic_duration in SMPTESubtitleAsset.
Carl Hetherington [Fri, 9 Apr 2021 21:49:07 +0000 (23:49 +0200)]
Add accessor for intrinsic_duration in SMPTESubtitleAsset.

3 years agoMake sound asset language optional.
Carl Hetherington [Thu, 8 Apr 2021 22:02:09 +0000 (00:02 +0200)]
Make sound asset language optional.

3 years agoVerify that SMPTE subtitle IDs are handled properly (DoM #1962).
Carl Hetherington [Thu, 8 Apr 2021 00:07:05 +0000 (02:07 +0200)]
Verify that SMPTE subtitle IDs are handled properly (DoM #1962).

3 years agoDon't set the MXF _id from the XML <Id> tag.
Carl Hetherington [Thu, 8 Apr 2021 00:05:04 +0000 (02:05 +0200)]
Don't set the MXF _id from the XML <Id> tag.

They should not be the same, so it's unhelpful to make them so.
parse_xml() sets up _xml_id anyway.

3 years agoExpose the MXF ResourceID from SMPTESubtitleAsset.
Carl Hetherington [Thu, 8 Apr 2021 00:04:44 +0000 (02:04 +0200)]
Expose the MXF ResourceID from SMPTESubtitleAsset.

3 years agoComment tweaks.
Carl Hetherington [Thu, 8 Apr 2021 00:04:06 +0000 (02:04 +0200)]
Comment tweaks.

3 years agoDon't try to verify encrypted JPEG2000 bitstreams.
Carl Hetherington [Tue, 6 Apr 2021 12:34:23 +0000 (14:34 +0200)]
Don't try to verify encrypted JPEG2000 bitstreams.

3 years agoHide dump_notes() again.
Carl Hetherington [Tue, 6 Apr 2021 12:34:05 +0000 (14:34 +0200)]
Hide dump_notes() again.

3 years agoCall verify_j2k when verifying DCPs.
Carl Hetherington [Mon, 5 Apr 2021 22:39:20 +0000 (00:39 +0200)]
Call verify_j2k when verifying DCPs.