" --no-use-isdcf-name do not use an ISDCF name; use the specified name unmodified\n"
" --no-sign do not sign the DCP\n"
" --config <dir> directory containing config.xml and cinemas.xml\n"
- " --fourk make a 4K DCP rather than a 2K one\n"
+ " --twok make a 2K DCP instead of choosing a resolution based on the content\n"
+ " --fourk make a 4K DCP instead of choosing a resolution based on the content\n"
" -o, --output <dir> output directory\n"
" --threed make a 3D DCP\n"
" --j2k-bandwidth <Mbit/s> J2K bandwidth in Mbit/s\n"
, still_length (10)
, standard (dcp::Standard::SMPTE)
, no_use_isdcf_name (false)
+ , twok (false)
, fourk (false)
{
string dcp_content_type_string = "TST";
} else if (a == "--right-eye") {
next_frame_type = VideoFrameType::THREE_D_RIGHT;
claimed = true;
+ } else if (a == "--twok") {
+ twok = true;
+ claimed = true;
} else if (a == "--fourk") {
fourk = true;
claimed = true;
boost::optional<boost::filesystem::path> output_dir;
boost::optional<std::string> error;
std::vector<Content> content;
+ bool twok;
bool fourk;
boost::optional<int> j2k_bandwidth;
film->set_use_isdcf_name (!cc.no_use_isdcf_name);
film->set_encrypted (cc.encrypt);
film->set_three_d (cc.threed);
+ if (cc.twok) {
+ film->set_resolution (Resolution::TWO_K);
+ }
if (cc.fourk) {
film->set_resolution (Resolution::FOUR_K);
}
BOOST_CHECK_EQUAL (cc.content[1].frame_type, VideoFrameType::THREE_D_RIGHT);
BOOST_CHECK_EQUAL (cc.fourk, false);
+ cc = run ("dcpomatic2_create --twok foo.mp4");
+ BOOST_REQUIRE_EQUAL (cc.content.size(), 1U);
+ BOOST_CHECK_EQUAL (cc.content[0].path, "foo.mp4");
+ BOOST_CHECK_EQUAL (cc.twok, true);
+ BOOST_CHECK (!cc.error);
+
cc = run ("dcpomatic2_create --fourk foo.mp4");
BOOST_REQUIRE_EQUAL (cc.content.size(), 1U);
BOOST_CHECK_EQUAL (cc.content[0].path, "foo.mp4");