Add some write_metadata() calls; use ImageContent for still image.
authorCarl Hetherington <cth@carlh.net>
Thu, 1 Mar 2018 23:40:18 +0000 (23:40 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 1 Mar 2018 23:40:18 +0000 (23:40 +0000)
test/data
test/ffmpeg_encoder_test.cc

index 22ba7b14571926f6c3fd860df57ad2146d9ba404..a6e0009c6e762d3bd27ebc6499b6e30fc4baea01 160000 (submodule)
--- a/test/data
+++ b/test/data
@@ -1 +1 @@
-Subproject commit 22ba7b14571926f6c3fd860df57ad2146d9ba404
+Subproject commit a6e0009c6e762d3bd27ebc6499b6e30fc4baea01
index d958995ca2628d71fb7f98d769c2963b4ac4cb6d..fc53ee40c3221049eddd97d1c30589ea9ce8f15c 100644 (file)
@@ -21,6 +21,7 @@
 #include "lib/ffmpeg_encoder.h"
 #include "lib/film.h"
 #include "lib/ffmpeg_content.h"
+#include "lib/image_content.h"
 #include "lib/video_content.h"
 #include "lib/audio_content.h"
 #include "lib/text_subtitle_content.h"
@@ -62,6 +63,7 @@ ffmpeg_content_test (int number, boost::filesystem::path content, FFmpegEncoder:
        film->examine_and_add_content (c);
        BOOST_REQUIRE (!wait_for_jobs ());
 
+       film->write_metadata ();
        shared_ptr<Job> job (new TranscodeJob (film));
        FFmpegEncoder encoder (film, job, String::compose("build/test/%1.%2", name, extension), format, false);
        encoder.go ();
@@ -96,7 +98,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_encoder_prores_test5)
 {
        shared_ptr<Film> film = new_test_film ("ffmpeg_encoder_prores_test5");
        film->set_name ("ffmpeg_encoder_prores_test5");
-       shared_ptr<FFmpegContent> c (new FFmpegContent (film, private_data / "bbc405.png"));
+       shared_ptr<ImageContent> c (new ImageContent (film, private_data / "bbc405.png"));
        film->set_container (Ratio::from_id ("185"));
        film->set_audio_channels (6);
 
@@ -105,6 +107,7 @@ BOOST_AUTO_TEST_CASE (ffmpeg_encoder_prores_test5)
 
        c->video->set_length (240);
 
+       film->write_metadata ();
        shared_ptr<Job> job (new TranscodeJob (film));
        FFmpegEncoder encoder (film, job, "build/test/ffmpeg_encoder_prores_test5.mov", FFmpegEncoder::FORMAT_PRORES, false);
        encoder.go ();