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

index 049b8dc..c15973f 100644 (file)
@@ -412,3 +412,18 @@ BOOST_AUTO_TEST_CASE (ffmpeg_encoder_prores_from_dcp_with_crop)
        FFmpegEncoder encoder (film, job, "build/test/ffmpeg_encoder_prores_from_dcp_with_crop.mov", ExportFormat::PRORES, false, false, false, 23);
        encoder.go ();
 }
+
+
+/** DCP -> H264 with crop */
+BOOST_AUTO_TEST_CASE (ffmpeg_encoder_h264_from_dcp_with_crop)
+{
+       auto dcp = make_shared<DCPContent>("test/data/import_dcp_test2");
+       auto film = new_test_film2 ("ffmpeg_encoder_h264_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::H264_AAC, false, false, false, 23);
+       encoder.go ();
+}