From 5d898e30c3b3af72b4e4f6d93c9be4ceeedd1101 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 1 Oct 2026 07:00:07 +0200 Subject: [PATCH] Suppress misleading ffmpeg error messages --- src/rtpstreamer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rtpstreamer.cpp b/src/rtpstreamer.cpp index ab391a8..e975431 100644 --- a/src/rtpstreamer.cpp +++ b/src/rtpstreamer.cpp @@ -19,6 +19,7 @@ extern "C" { #include #include +#include #include #include } @@ -56,6 +57,8 @@ void RTPStreamer::allocResources() { if(codecCtx != nullptr) return; + av_log_set_level(AV_LOG_QUIET); // Suppress misleading log output due to not existing encoder hardware, we're doing our own error handling and logging + const AVCodec* codec; std::vector codecNames {"h264_nvenc", "h264_qsv", "h264_vaapi", "libx264"}; for (const auto &codecName : codecNames) {