From ce058471aa9995adac968cecc205f5a4319f449e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 21 Nov 2020 22:38:45 +0100 Subject: Add hint when making a FTR without FFEC/FFMC markers (#1804). --- src/lib/hints.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/lib/hints.cc') diff --git a/src/lib/hints.cc b/src/lib/hints.cc index 6228f0a48..14022bb59 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2016-2019 Carl Hetherington + Copyright (C) 2016-2020 Carl Hetherington This file is part of DCP-o-matic. @@ -18,6 +18,7 @@ */ +#include "dcp_content_type.h" #include "hints.h" #include "types.h" #include "film.h" @@ -326,6 +327,7 @@ Hints::thread () check_vob (); check_3d_in_2d (); check_loudness (); + check_ffec_and_ffmc_in_smpte_feature (); emit (bind(boost::ref(Progress), _("Examining closed captions"))); @@ -403,3 +405,13 @@ Hints::film () const DCPOMATIC_ASSERT (film); return film; } + + +void +Hints::check_ffec_and_ffmc_in_smpte_feature () +{ + shared_ptr f = film(); + if (!f->interop() && f->dcp_content_type()->libdcp_kind() == dcp::FEATURE && (!f->marker(dcp::FFEC) || !f->marker(dcp::FFMC))) { + hint (_("SMPTE DCPs with the type FTR (feature) should have markers for the first frame of end credits (FFEC) and the first frame of moving credits (FFMC). You should add these markers using the 'Markers' button in the DCP tab.")); + } +} -- cgit v1.2.3