PR #24754 opened by James Almer (jamrial) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24754 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24754.patch
They provide info the group itself can't, like underlying audio codec, which is nice to have available without having to request verbose logging. >From 1901cdac4ed700e8c1a21d577ad0cd2a36a55f33 Mon Sep 17 00:00:00 2001 From: James Almer <[email protected]> Date: Mon, 28 Sep 2026 17:31:59 -0300 Subject: [PATCH 1/2] avformat/dump: print IAMF Audio Element streams in info log level They provide info the group itself can't, like underlying audio codec, which is nice to have available without having to request verbose logging. Signed-off-by: James Almer <[email protected]> --- libavformat/dump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/dump.c b/libavformat/dump.c index 6a1ad91516..bbdec08c97 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -713,7 +713,8 @@ static void dump_stream_group(const AVFormatContext *ic, uint8_t *printed, av_log(NULL, AV_LOG_INFO, "\n"); for (int k = 0; channel_count > 0 && k < stg->nb_streams; k++) { AVStream *st = stg->streams[k]; - dump_stream_format(ic, st->index, i, index, is_output, AV_LOG_VERBOSE); + int loglevel = printed[st->index] ? AV_LOG_VERBOSE : AV_LOG_INFO; + dump_stream_format(ic, st->index, i, index, is_output, loglevel); printed[st->index] = 1; channel_count -= st->codecpar->ch_layout.nb_channels; } -- 2.52.0 >From 64357029889e6c132a7dc61fe0d00665e35012ba Mon Sep 17 00:00:00 2001 From: James Almer <[email protected]> Date: Mon, 28 Sep 2026 17:32:46 -0300 Subject: [PATCH 2/2] avformat/dump: add some indentation to IAMF Audio Element stream lines Cosmetic change. Signed-off-by: James Almer <[email protected]> --- libavformat/dump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/dump.c b/libavformat/dump.c index bbdec08c97..d4c7cde2eb 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -714,6 +714,7 @@ static void dump_stream_group(const AVFormatContext *ic, uint8_t *printed, for (int k = 0; channel_count > 0 && k < stg->nb_streams; k++) { AVStream *st = stg->streams[k]; int loglevel = printed[st->index] ? AV_LOG_VERBOSE : AV_LOG_INFO; + av_log(NULL, loglevel, " "); dump_stream_format(ic, st->index, i, index, is_output, loglevel); printed[st->index] = 1; channel_count -= st->codecpar->ch_layout.nb_channels; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
