ffprobe: Include the RFC 4281 "mime codec string" in show_stream output

This commit is contained in:
Martin Storsjö
2025-10-27 13:43:45 +02:00
parent c9b5e145b7
commit 86f1ee1842
12 changed files with 24 additions and 10 deletions

View File

@@ -1776,6 +1776,10 @@ static int show_stream(AVTextFormatContext *tfc, AVFormatContext *fmt_ctx, int s
print_str("codec_tag_string", av_fourcc2str(par->codec_tag));
print_fmt("codec_tag", "0x%04"PRIx32, par->codec_tag);
av_bprint_clear(&pbuf);
if (!av_mime_codec_str(par, stream->avg_frame_rate, &pbuf))
print_str("mime_codec_string", pbuf.str);
switch (par->codec_type) {
case AVMEDIA_TYPE_VIDEO:
print_int("width", par->width);