summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-03 23:27:41 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-22 13:03:04 +0200
commit4f0d027f1964d0c011f89b5706fbaf654955ba2d (patch)
tree1624ee7a35d613e1dd3ff35f72c56cc6bbd53f20
parentfb30f7149ffc18494ce38696ab88d5494ca9dfaf (diff)
Alert user when fixing settings for MPEG2.
-rw-r--r--src/lib/film.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 54c68d756..6dc1b6b6c 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -1232,6 +1232,7 @@ Film::set_video_encoding(VideoEncoding encoding)
{
FilmChangeSignaller ch(this, FilmProperty::VIDEO_ENCODING);
_video_encoding = encoding;
+ check_settings_consistency();
}
@@ -1660,6 +1661,22 @@ Film::check_settings_consistency ()
set_custom_reel_boundaries(boundaries);
}
}
+
+ auto const hd = Ratio::from_id("178");
+
+ if (video_encoding() == VideoEncoding::MPEG2) {
+ if (container() != hd) {
+ set_container(hd);
+ Message(_("DCP-o-matic had to set your container to 1920x1080 as it's the only one that can be used with MPEG2 encoding."));
+ }
+ if (three_d()) {
+ set_three_d(false);
+ Message(_("DCP-o-matic had to set your film to 2D as 3D is not yet supported with MPEG2 encoding."));
+ }
+ } else if (container() == hd && !Config::instance()->allow_any_container()) {
+ set_container(Ratio::from_id("185"));
+ Message(_("DCP-o-matic set your container to DCI Flat as it was previously 1920x1080 and that is not a standard ratio with JPEG2000 encoding."));
+ }
}
void