- shared_ptr<Film> film = new_test_film ("ffmpeg_encoder_image_test_mov");
- film->set_name ("ffmpeg_encoder_image_test");
- shared_ptr<FFmpegContent> c (new FFmpegContent (film, private_data / "bbc405.png"));
- film->set_container (Ratio::from_id ("185"));
- film->set_audio_channels (6);
-
- film->examine_and_add_content (c);
- BOOST_REQUIRE (!wait_for_jobs ());
-
- c->video->set_length (240);
-
- shared_ptr<Job> job (new TranscodeJob (film));
- FFmpegEncoder encoder (film, job, "build/test/ffmpeg_encoder_image_test.mov", FFmpegEncoder::FORMAT_PRORES, false);
+ shared_ptr<Film> film = new_test_film2 ("ffmpeg_encoder_h264_test6_ov");
+ film->examine_and_add_content (shared_ptr<ImageContent>(new ImageContent(private_data / "bbc405.png")));
+ BOOST_REQUIRE (!wait_for_jobs());
+ film->make_dcp ();
+ BOOST_REQUIRE (!wait_for_jobs());
+
+ shared_ptr<Film> film2 = new_test_film2 ("ffmpeg_encoder_h264_test6_vf");
+ shared_ptr<DCPContent> ov (new DCPContent("build/test/ffmpeg_encoder_h264_test6_ov/" + film->dcp_name(false)));
+ film2->examine_and_add_content (ov);
+ BOOST_REQUIRE (!wait_for_jobs());
+ ov->set_reference_video (true);
+ shared_ptr<Content> subs = content_factory("test/data/subrip.srt").front();
+ film2->examine_and_add_content (subs);
+ BOOST_REQUIRE (!wait_for_jobs());
+ BOOST_FOREACH (shared_ptr<TextContent> i, subs->text) {
+ i->set_use (true);
+ }
+
+ shared_ptr<Job> job (new TranscodeJob (film2));
+ FFmpegEncoder encoder (film2, job, "build/test/ffmpeg_encoder_h264_test6_vf.mp4", EXPORT_FORMAT_H264, true, false, 23);