From 54ff91a3275483ee1289b6c016018e781c0072dd Mon Sep 17 00:00:00 2001 From: Hibyehello <36666883+Hibyehello@users.noreply.github.com> Date: Sat, 21 Feb 2026 20:27:30 -0700 Subject: [PATCH 1/5] Print all formats and codecs --- Source/Core/VideoCommon/FrameDumpFFMpeg.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp index 52d41549dd8e..918d2752306e 100644 --- a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp +++ b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp @@ -113,6 +113,22 @@ void InitAVCodec() } }); + av_register_all(); + + AVCodec* codec = av_codec_next(NULL); + while(codec != NULL) + { + INFO_LOG_FMT(Common::Log::LogType::FRAMEDUMP, "codec: {} and {}", codec->long_name, codec->name); + codec = av_codec_next(codec); + } + + AVOutputFormat* oformat = av_oformat_next(NULL); + while(oformat != NULL) + { + INFO_LOG_FMT(Common::Log::LogType::FRAMEDUMP, "format: {} and {}" oformat->long_name, oformat->name); + oformat = av_oformat_next(oformat); + } + // TODO: We never call avformat_network_deinit. avformat_network_init(); From bc4b2cd4ea594eb55e1ac87a964a120de4c86a7a Mon Sep 17 00:00:00 2001 From: Hibyehello <36666883+Hibyehello@users.noreply.github.com> Date: Sat, 21 Feb 2026 20:55:27 -0700 Subject: [PATCH 2/5] Add missing comma --- Source/Core/VideoCommon/FrameDumpFFMpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp index 918d2752306e..191e142e283f 100644 --- a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp +++ b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp @@ -125,7 +125,7 @@ void InitAVCodec() AVOutputFormat* oformat = av_oformat_next(NULL); while(oformat != NULL) { - INFO_LOG_FMT(Common::Log::LogType::FRAMEDUMP, "format: {} and {}" oformat->long_name, oformat->name); + INFO_LOG_FMT(Common::Log::LogType::FRAMEDUMP, "format: {} and {}", oformat->long_name, oformat->name); oformat = av_oformat_next(oformat); } From 930f7aa800064e758d68e0163f1f9ca669ed0e8b Mon Sep 17 00:00:00 2001 From: Hibyehello <36666883+Hibyehello@users.noreply.github.com> Date: Sat, 21 Feb 2026 21:23:38 -0700 Subject: [PATCH 3/5] Use non-deprecated functions --- Source/Core/VideoCommon/FrameDumpFFMpeg.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp index 191e142e283f..31bd53541644 100644 --- a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp +++ b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp @@ -115,18 +115,19 @@ void InitAVCodec() av_register_all(); - AVCodec* codec = av_codec_next(NULL); - while(codec != NULL) + AVCodec* codec = nullptr; + void* i = 0; + while(codec = av_codec_iterate(&i)) { - INFO_LOG_FMT(Common::Log::LogType::FRAMEDUMP, "codec: {} and {}", codec->long_name, codec->name); - codec = av_codec_next(codec); + if(av_codec_is_encoder(codec)) + INFO_LOG_FMT(FRAMEDUMP, "codec: {} and {}", codec->long_name, codec->name); } - AVOutputFormat* oformat = av_oformat_next(NULL); - while(oformat != NULL) + AVOutputFormat* oformat = nullptr; + i = 0; + while(oformat = av_muxer_iterate(&i)) { - INFO_LOG_FMT(Common::Log::LogType::FRAMEDUMP, "format: {} and {}", oformat->long_name, oformat->name); - oformat = av_oformat_next(oformat); + INFO_LOG_FMT(FRAMEDUMP, "format: {} and {}", oformat->long_name, oformat->name); } // TODO: We never call avformat_network_deinit. From 28a643bde42025cb27a86c2498cf7d6992ba5871 Mon Sep 17 00:00:00 2001 From: Hibyehello <36666883+Hibyehello@users.noreply.github.com> Date: Sat, 21 Feb 2026 21:42:13 -0700 Subject: [PATCH 4/5] Please work --- Source/Core/VideoCommon/FrameDumpFFMpeg.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp index 31bd53541644..cdbd9186995b 100644 --- a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp +++ b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp @@ -113,9 +113,7 @@ void InitAVCodec() } }); - av_register_all(); - - AVCodec* codec = nullptr; + const AVCodec* codec = nullptr; void* i = 0; while(codec = av_codec_iterate(&i)) { @@ -123,7 +121,7 @@ void InitAVCodec() INFO_LOG_FMT(FRAMEDUMP, "codec: {} and {}", codec->long_name, codec->name); } - AVOutputFormat* oformat = nullptr; + const AVOutputFormat* oformat = nullptr; i = 0; while(oformat = av_muxer_iterate(&i)) { From 426b1172e4d03a4bb8455b649ba0cee7bbf76329 Mon Sep 17 00:00:00 2001 From: Hibyehello <36666883+Hibyehello@users.noreply.github.com> Date: Sat, 21 Feb 2026 22:00:27 -0700 Subject: [PATCH 5/5] I don't like msvc --- Source/Core/VideoCommon/FrameDumpFFMpeg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp index cdbd9186995b..9c8f4410a74f 100644 --- a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp +++ b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp @@ -115,7 +115,7 @@ void InitAVCodec() const AVCodec* codec = nullptr; void* i = 0; - while(codec = av_codec_iterate(&i)) + while((codec = av_codec_iterate(&i))) { if(av_codec_is_encoder(codec)) INFO_LOG_FMT(FRAMEDUMP, "codec: {} and {}", codec->long_name, codec->name); @@ -123,7 +123,7 @@ void InitAVCodec() const AVOutputFormat* oformat = nullptr; i = 0; - while(oformat = av_muxer_iterate(&i)) + while((oformat = av_muxer_iterate(&i))) { INFO_LOG_FMT(FRAMEDUMP, "format: {} and {}", oformat->long_name, oformat->name); }