Add export test DCP -> prores to trigger #1984.
authorCarl Hetherington <cth@carlh.net>
Sun, 2 May 2021 09:29:56 +0000 (11:29 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 2 May 2021 23:39:32 +0000 (01:39 +0200)
test/ffmpeg_encoder_test.cc

index 730b681..049b8dc 100644 (file)
@@ -397,3 +397,18 @@ BOOST_AUTO_TEST_CASE (ffmpeg_encoder_h264_test9)
        FFmpegEncoder encoder (film, job, "build/test/ffmpeg_encoder_prores_test9.mov", ExportFormat::H264_AAC, false, false, false, 23);
        encoder.go ();
 }
+
+
+/** DCP -> Prores with crop */
+BOOST_AUTO_TEST_CASE (ffmpeg_encoder_prores_from_dcp_with_crop)
+{
+       auto dcp = make_shared<DCPContent>("test/data/import_dcp_test2");
+       auto film = new_test_film2 ("ffmpeg_encoder_prores_from_dcp_with_crop", { dcp });
+       dcp->video->set_left_crop (32);
+       dcp->video->set_right_crop (32);
+       film->write_metadata ();
+
+       auto job = make_shared<TranscodeJob>(film);
+       FFmpegEncoder encoder (film, job, "build/test/ffmpeg_encoder_prores_from_dcp_with_crop.mov", ExportFormat::PRORES, false, false, false, 23);
+       encoder.go ();
+}