From 1e817c5272b956e1235e3437ca70ffcdbb93632c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 5 Nov 2025 00:43:14 +0100 Subject: Add hint about partially-encrypted projects. --- src/lib/hints.cc | 17 +++++++++++++++++ src/lib/hints.h | 1 + 2 files changed, 18 insertions(+) (limited to 'src/lib') diff --git a/src/lib/hints.cc b/src/lib/hints.cc index cf385216e..99882ec0e 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -487,6 +487,7 @@ try check_audio_language(); check_8_or_16_audio_channels(); check_video_alpha(); + check_encryption(); scan_content(film); @@ -786,3 +787,19 @@ Hints::check_video_alpha() } } + +void +Hints::check_encryption() +{ + if ( + film()->encrypt_picture() != film()->encrypt_sound() || + film()->encrypt_picture() != film()->encrypt_text() || + film()->encrypt_sound() != film()->encrypt_text()) { + hint(_("Some of your content is encrypted, and some not. Though some distributors (e.g. Netflix) " + "require subtitles not to be encrypted (even if picture and sound are), others will flag " + "errors with the DCP made from this project. If in doubt, set everything (picture, sound " + "and text) to be either encrypted or not.")); + + } +} + diff --git a/src/lib/hints.h b/src/lib/hints.h index 49fd32ea9..b17da2c99 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -87,6 +87,7 @@ private: void check_audio_language(); void check_8_or_16_audio_channels(); void check_video_alpha(); + void check_encryption(); boost::thread _thread; /** This is used to make a partial DCP containing only the subtitles and closed captions that -- cgit v1.2.3