Revision 4bfe67da

View differences:

doc/ffprobe-doc.texi
66 66

  
67 67
@table @option
68 68

  
69
@item -convert_tags
70
Convert the tag names in the format container to the generic FFmpeg tag names.
71

  
69 72
@item -f @var{format}
70 73
Force format to use.
71 74

  
ffprobe.c
34 34
static int do_show_format  = 0;
35 35
static int do_show_streams = 0;
36 36

  
37
static int convert_tags                 = 0;
37 38
static int show_value_unit              = 0;
38 39
static int use_value_prefix             = 0;
39 40
static int use_byte_value_binary_prefix = 0;
......
211 212
    printf("bit_rate=%s\n",         value_string(val_str, sizeof(val_str), fmt_ctx->bit_rate,
212 213
                                                 unit_bit_per_second_str));
213 214

  
215
    if (convert_tags)
216
        av_metadata_conv(fmt_ctx, NULL, fmt_ctx->iformat->metadata_conv);
214 217
    while ((tag = av_metadata_get(fmt_ctx->metadata, "", tag, AV_METADATA_IGNORE_SUFFIX)))
215 218
        printf("TAG:%s=%s\n", tag->key, tag->value);
216 219

  
......
319 322

  
320 323
static const OptionDef options[] = {
321 324
#include "cmdutils_common_opts.h"
325
    { "convert_tags", OPT_BOOL, {(void*)&convert_tags}, "convert tag names to the FFmpeg generic tag names" },
322 326
    { "f", HAS_ARG, {(void*)opt_format}, "force format", "format" },
323 327
    { "unit", OPT_BOOL, {(void*)&show_value_unit}, "show unit of the displayed values" },
324 328
    { "prefix", OPT_BOOL, {(void*)&use_value_prefix}, "use SI prefixes for the displayed values" },

Also available in: Unified diff