+
+void
+DCPPanel::setup_warnings ()
+{
+ if (!_film) {
+ _container_warning->disable ();
+ return;
+ }
+
+ ContentList content = _film->content ();
+
+ int flat_or_narrower = 0;
+ int scope = 0;
+ BOOST_FOREACH (shared_ptr<const Content> i, content) {
+ shared_ptr<const VideoContent> vc = dynamic_pointer_cast<const VideoContent> (i);
+ if (vc) {
+ Ratio const * r = vc->scale().ratio ();
+ if (r && r->id() == "239") {
+ ++scope;
+ } else if (r && r->id() != "239" && r->id() != "full-frame") {
+ ++flat_or_narrower;
+ }
+ }
+ }
+
+ _container_warning->disable ();
+ _frame_rate_warning->disable ();
+ _j2k_bandwidth_warning->disable ();
+ _three_d_warning->disable ();
+ _audio_channels_warning->disable ();
+ _standard_warning->disable ();
+
+ if (scope && !flat_or_narrower && _film->container()->id() == "185") {
+ _container_warning->enable (_("All of your content is in Scope (2.39:1) but your DCP's container is Flat (1.85:1). This will letter-box your content inside a Flat (1.85:1) frame. You may prefer to set the container to Scope (2.39:1)."));
+ }
+
+ if (!scope && flat_or_narrower && _film->container()->id() == "239") {
+ _container_warning->enable (_("All of your content is at 1.85:1 or narrower but your DCP's container is Scope (2.39:1). This will pillar-box your content inside a Flat (1.85:1) frame. You may prefer to set the container to Flat."));
+ }
+
+ if (_film->video_frame_rate() != 24 && _film->video_frame_rate() != 48) {
+ _frame_rate_warning->enable (wxString::Format (_("Your DCP frame rate (%d fps) may cause problems in a few (mostly older) projectors. If possible, use 24 or 48 frames per second."), _film->video_frame_rate()));
+ }
+
+ if (_film->j2k_bandwidth() >= 245000000) {
+ _j2k_bandwidth_warning->enable (_("A few projectors have problems playing back very high bit-rate DCPs. It is a good idea to drop the JPEG2000 bandwidth down to about 200Mbit/s; this is unlikely to have any visible effect on the image."));
+ }
+
+ int three_d = 0;
+ BOOST_FOREACH (shared_ptr<const Content> i, content) {
+ shared_ptr<const VideoContent> vc = dynamic_pointer_cast<const VideoContent> (i);
+ if (vc && vc->video_frame_type() != VIDEO_FRAME_TYPE_2D) {
+ ++three_d;
+ }
+ }
+
+ if (three_d > 0 && !_film->three_d()) {
+ _three_d_warning->enable (_("You are using 3D content but your DCP is set to 2D. Set the DCP to 3D if you want to play it back on a 3D system (e.g. Real-D, MasterImage etc.)"));
+ }
+
+ if (_film->audio_channels() < 6) {
+ _audio_channels_warning->enable (_("Your DCP has fewer than 6 audio channels. This may cause problems on some projectors."));
+ }
+
+ if (_film->interop() && _film->video_frame_rate() != 24 && _film->video_frame_rate() != 48) {
+ _standard_warning->enable (_("You are set up for an Interop DCP at a frame rate which is not officially supported. You are advised to make a SMPTE DCP instead."));
+ }
+
+ _video_grid->Layout ();
+}