You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ffprobe: Print format specific variables of codecs.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
11
ffprobe.c
11
ffprobe.c
@@ -709,6 +709,17 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
|
|||||||
} else {
|
} else {
|
||||||
print_str("codec_type", "unknown");
|
print_str("codec_type", "unknown");
|
||||||
}
|
}
|
||||||
|
if (dec_ctx->codec && dec_ctx->codec->priv_class) {
|
||||||
|
AVOption *opt = NULL;
|
||||||
|
while (opt = av_opt_next(dec_ctx->priv_data,opt)) {
|
||||||
|
uint8_t *str;
|
||||||
|
if (opt->flags) continue;
|
||||||
|
if (av_opt_get(dec_ctx->priv_data, opt->name, 0, &str) >= 0) {
|
||||||
|
print_str(opt->name, str);
|
||||||
|
av_free(str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (fmt_ctx->iformat->flags & AVFMT_SHOW_IDS)
|
if (fmt_ctx->iformat->flags & AVFMT_SHOW_IDS)
|
||||||
print_fmt("id", "0x%x", stream->id);
|
print_fmt("id", "0x%x", stream->id);
|
||||||
|
Reference in New Issue
Block a user