+
+
+/** Export to H264 with reels */
+BOOST_AUTO_TEST_CASE (ffmpeg_encoder_h264_with_reels)
+{
+ auto content1 = content_factory("test/data/flat_red.png").front();
+ auto content2 = content_factory("test/data/flat_red.png").front();
+ auto film = new_test_film2 ("ffmpeg_encoder_h264_with_reels", { content1, content2 });
+ film->set_reel_type (ReelType::BY_VIDEO_CONTENT);
+ content1->video->set_length (240);
+ content2->video->set_length (240);
+
+ auto job = make_shared<TranscodeJob>(film);
+ FFmpegEncoder encoder (film, job, "build/test/ffmpeg_encoder_h264_with_reels.mov", ExportFormat::H264_AAC, false, true, false, 23);
+ encoder.go ();
+
+ auto check = [](boost::filesystem::path path) {
+ auto reel = std::dynamic_pointer_cast<FFmpegContent>(content_factory(path).front());
+ BOOST_REQUIRE (reel);
+ FFmpegExaminer examiner(reel);
+ BOOST_CHECK_EQUAL (examiner.video_length(), 240U);
+ };
+
+ check ("build/test/ffmpeg_encoder_h264_with_reels_reel1.mov");
+ check ("build/test/ffmpeg_encoder_h264_with_reels_reel2.mov");
+}
+