[FFmpeg-devel] [PATCH] ffprobe: display the codec profile in show_stream()
Stefano Sabatini
stefasab at gmail.com
Fri May 25 15:07:45 CEST 2012
From: Christian Schmidt <schmidt at digadd.de>
Signed-off-by: Stefano Sabatini <stefasab at gmail.com>
---
doc/ffprobe.xsd | 1 +
ffprobe.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/doc/ffprobe.xsd b/doc/ffprobe.xsd
index 3984b7d..f8e9fe9 100644
--- a/doc/ffprobe.xsd
+++ b/doc/ffprobe.xsd
@@ -83,6 +83,7 @@
<xsd:attribute name="index" type="xsd:int" use="required"/>
<xsd:attribute name="codec_name" type="xsd:string" />
<xsd:attribute name="codec_long_name" type="xsd:string" />
+ <xsd:attribute name="profile" type="xsd:string" />
<xsd:attribute name="codec_type" type="xsd:string" />
<xsd:attribute name="codec_time_base" type="xsd:string" use="required"/>
<xsd:attribute name="codec_tag" type="xsd:string" use="required"/>
diff --git a/ffprobe.c b/ffprobe.c
index d53ec11..3d32a2e 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1367,9 +1367,11 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
if ((dec = dec_ctx->codec)) {
print_str("codec_name", dec->name);
print_str("codec_long_name", dec->long_name);
+ print_str("profile", av_get_profile_name(dec, dec_ctx->profile);
} else {
print_str_opt("codec_name", "unknown");
print_str_opt("codec_long_name", "unknown");
+ print_str_opt("profile", "unknown");
}
s = av_get_media_type_string(dec_ctx->codec_type);
--
1.7.5.4
More information about the ffmpeg-devel
mailing list