I'm not sure if this goes far enough - it seems impossible to find all
the font IDs used in a FFmpeg file without scanning it. I don't know
if (for example) SSA-format font IDs make it through to DoM when decoded
by FFmpeg.
text.clear ();
text.push_back (make_shared<TextContent>(this, TextType::OPEN_SUBTITLE, TextType::UNKNOWN));
_subtitle_stream = _subtitle_streams.front ();
+ text.front()->add_font(make_shared<dcpomatic::Font>(""));
}
}
make_and_verify_dcp(film);
}
+
+BOOST_AUTO_TEST_CASE(make_dcp_with_subs_from_mkv)
+{
+ auto subs = content_factory(TestPaths::private_data() / "clapperboard_with_subs.mkv");
+ auto film = new_test_film2("make_dcp_with_subs_from_mkv", subs);
+ subs[0]->text.front()->set_use(true);
+ subs[0]->text.front()->set_language(dcp::LanguageTag("en-US"));
+ make_and_verify_dcp(film, { dcp::VerificationNote::Code::INVALID_PICTURE_FRAME_RATE_FOR_2K });
+}
+