From 463d95d16f630dc2ec77e019cebc195cef72a7a70dd14083b512e4a8469884b1 Mon Sep 17 00:00:00 2001 From: copecone Date: Mon, 31 Aug 2026 12:43:38 +0900 Subject: [PATCH] Add Debug Log When Skipping Encoder --- Util/FFmpeg/FFmpegNativeEncoder.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Util/FFmpeg/FFmpegNativeEncoder.cs b/Util/FFmpeg/FFmpegNativeEncoder.cs index 1c322da..3cb19a2 100644 --- a/Util/FFmpeg/FFmpegNativeEncoder.cs +++ b/Util/FFmpeg/FFmpegNativeEncoder.cs @@ -372,7 +372,11 @@ namespace ADOFAIRenderer.Util.FFmpeg // Returns null if the encoder is not included in the build. // Reference: https://ffmpeg.org/doxygen/trunk/group__lavc__encoding.html var pCodec = ffmpeg.avcodec_find_encoder_by_name(encoder.Name); - if (pCodec == null) continue; + if (pCodec == null) + { + Melon.Logger.Warning($"Encoder '{encoder.Name}' not found in FFmpeg library. Testing next candidate codec."); + continue; + } // avcodec_alloc_context3: Allocates a codec context for the selected encoder. // All encoding parameters such as resolution, framerate, quality, etc., are set on this context.