From 5e04a581436e6bbaa3057bedfea737b07dba37de Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 9 Nov 2025 21:02:40 +0100 Subject: Add some more logging for examine content. --- src/lib/examine_content_job.cc | 5 +++-- src/lib/ffmpeg_examiner.cc | 5 +++++ src/lib/job.cc | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/lib/examine_content_job.cc b/src/lib/examine_content_job.cc index d12d736a7..b3cfbd097 100644 --- a/src/lib/examine_content_job.cc +++ b/src/lib/examine_content_job.cc @@ -20,16 +20,15 @@ #include "content.h" +#include "dcpomatic_log.h" #include "examine_content_job.h" #include "film.h" #include "log.h" #include -#include #include "i18n.h" -using std::cout; using std::shared_ptr; using std::string; using std::vector; @@ -69,7 +68,9 @@ ExamineContentJob::run() { int n = 0; for (auto c: _content) { + LOG_GENERAL("Examine {}", c->path(0).string()); c->examine(_film, shared_from_this(), _tolerant); + LOG_GENERAL("Examine {} finished", c->path(0).string()); set_progress(float(n) / _content.size()); ++n; } diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index d2e1c9d40..66d6c399e 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -63,6 +63,8 @@ static const int PULLDOWN_CHECK_FRAMES = 16; FFmpegExaminer::FFmpegExaminer(shared_ptr c, shared_ptr job) : FFmpeg(c) { + LOG_GENERAL_NC("Starting FFmpegExaminer constructor"); + _need_length = _format_context->duration == AV_NOPTS_VALUE; /* Find audio and subtitle streams */ @@ -116,6 +118,7 @@ FFmpegExaminer::FFmpegExaminer(shared_ptr c, shared_ptr carry_on_audio(_audio_streams.size(), true); + LOG_GENERAL_NC("Looking for interesting things"); while (true) { auto packet = av_packet_alloc(); DCPOMATIC_ASSERT(packet); @@ -171,6 +174,7 @@ FFmpegExaminer::FFmpegExaminer(shared_ptr c, shared_ptr c, shared_ptr