[FFmpeg-devel] [PATCH] ffprobe: show probe_score in the format section

Stefano Sabatini stefasab at gmail.com
Thu Aug 29 00:35:02 CEST 2013


On date Thursday 2013-08-29 00:31:27 +0200, Stefano Sabatini encoded:
> Should address trac ticket #2621.
> ---
>  doc/ffprobe.xsd | 1 +
>  ffprobe.c       | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/doc/ffprobe.xsd b/doc/ffprobe.xsd
> index 8a1e102..11422f6 100644
> --- a/doc/ffprobe.xsd
> +++ b/doc/ffprobe.xsd
> @@ -184,6 +184,7 @@
>        <xsd:attribute name="duration"         type="xsd:float"/>
>        <xsd:attribute name="size"             type="xsd:long"/>
>        <xsd:attribute name="bit_rate"         type="xsd:long"/>
> +      <xsd:attribute name="probe_score"      type="xsd:int"/>
>      </xsd:complexType>
>  
>      <xsd:complexType name="tagType">
> diff --git a/ffprobe.c b/ffprobe.c
> index 8a65e1a..23f8ec1 100644
> --- a/ffprobe.c
> +++ b/ffprobe.c
> @@ -1867,6 +1867,7 @@ static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
>      else           print_str_opt("size", "N/A");
>      if (fmt_ctx->bit_rate > 0) print_val    ("bit_rate", fmt_ctx->bit_rate, unit_bit_per_second_str);
>      else                       print_str_opt("bit_rate", "N/A");
> +    print_int("probe_score", av_format_get_probe_score(fmt_ctx));
>      show_tags(w, fmt_ctx->metadata, SECTION_ID_FORMAT_TAGS);
>  
>      writer_print_section_footer(w);

Still mostly non working, since the returned value seems bogus (0, 50
for image formats, for the files I tested).
-- 
FFmpeg = Frightening and Fostering Martial Proud Excellent Geisha


More information about the ffmpeg-devel mailing list