diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-11-05 00:43:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-11-05 00:43:19 +0100 |
| commit | 1e817c5272b956e1235e3437ca70ffcdbb93632c (patch) | |
| tree | da9b80e229cdef2af230c3123c73a77dd8082041 | |
| parent | a10f0a137a09039cb2d1970f12e8ac2f3f1121a6 (diff) | |
Add hint about partially-encrypted projects.
| -rw-r--r-- | src/lib/hints.cc | 17 | ||||
| -rw-r--r-- | src/lib/hints.h | 1 |
2 files changed, 18 insertions, 0 deletions
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 |
