Add a failing test.
[dcpomatic.git] / test / ffmpeg_encoder_test.cc
index 3d6276fcb388605e837e6f50c928da38a95cc13f..c3e8c9a81a8ccafa2713eac29325be836c8dbf41 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "lib/audio_content.h"
 #include "lib/compose.hpp"
 
 #include "lib/audio_content.h"
 #include "lib/compose.hpp"
+#include "lib/config.h"
 #include "lib/content_factory.h"
 #include "lib/dcp_content.h"
 #include "lib/ffmpeg_content.h"
 #include "lib/content_factory.h"
 #include "lib/dcp_content.h"
 #include "lib/ffmpeg_content.h"
@@ -466,3 +467,20 @@ BOOST_AUTO_TEST_CASE (ffmpeg_encoder_prores_regression_1)
        encoder.go ();
 }
 
        encoder.go ();
 }
 
+
+/** Regression test for Butler video buffers reached 480 frames (audio is 0) (#2101) */
+BOOST_AUTO_TEST_CASE (ffmpeg_encoder_prores_regression_2)
+{
+       auto logs = Config::instance()->log_types();
+       Config::instance()->set_log_types(logs | LogEntry::TYPE_DEBUG_PLAYER);
+
+       auto content = content_factory(TestPaths::private_data() / "tge_clip.mkv").front();
+       auto film = new_test_film2 ("ffmpeg_encoder_prores_regression_2", { content });
+
+       auto job = make_shared<TranscodeJob>(film);
+       FFmpegEncoder encoder (film, job, "build/test/ffmpeg_encoder_prores_regression_2.mov", ExportFormat::PRORES, false, true, false, 23);
+       encoder.go ();
+
+       Config::instance()->set_log_types(logs);
+}
+