Add a --screenshot option to the disk writer run file.
[dcpomatic.git] / test / ffmpeg_encoder_test.cc
index 3d6276fcb388605e837e6f50c928da38a95cc13f..993da4d2348a84e32d9a681900092b81bad1c846 100644 (file)
 
 #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/dcpomatic_log.h"
 #include "lib/ffmpeg_content.h"
 #include "lib/ffmpeg_encoder.h"
 #include "lib/ffmpeg_examiner.h"
@@ -466,3 +468,20 @@ BOOST_AUTO_TEST_CASE (ffmpeg_encoder_prores_regression_1)
        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 = dcpomatic_log->types();
+       dcpomatic_log->set_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 ();
+
+       dcpomatic_log->set_types(logs);
+}
+