[FFmpeg-devel] [PATCH] ffprobe: add XML output

Stefano Sabatini stefasab at gmail.com
Sat Dec 24 15:00:10 CET 2011


On date Friday 2011-12-23 11:22:55 +0100, Stefano Sabatini encoded:
> On date Friday 2011-11-25 13:57:47 +0100, Stefano Sabatini encoded:
> > On date Tuesday 2011-10-18 19:17:32 +0200, Stefano Sabatini encoded:
> [...]
> > Pending problems:
> > XSD validation only works with xml=q=1, and no special formatting
> > options selected (e.g. -pretty).
> > 
> > XSD validation also doesn't work in case the codec context contains
> > private options (check show_stream), not sure what's the best option
> > here from the UI point of view, alternatives are:
> > 
> 
> > * make private options printing configurable, warn user that the XML
> >   output may not be validated against the XSD if enabled
> 
> Adopted a variant of this (depends on "[PATCH] ffprobe: add
> show_private_data option").
> 
> > * replace print_str() with print_str_opt() in the code which prints
> >   private options, so they won't be displayed in JSON/XML, so XML
> >   will validate but it will miss potentially useful information
> > * manually update the XSD anytime a new private field is added, or
> >   alternatively, add a script for doing it automatically, which looks
> >   quite overkill and/or brittle
> 
> Updated.
> -- 
> FFmpeg = Faithful Friendly Most Peaceful Evil Goblin

> From c3155390d3b3aee2e29840c55ca09dfef2a3358d Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefasab at gmail.com>
> Date: Sun, 9 Oct 2011 00:24:31 +0200
> Subject: [PATCH] ffprobe: add XML writer
> 
> ---
>  Makefile         |    2 +-
>  doc/ffprobe.texi |   33 +++++++
>  doc/ffprobe.xsd  |   96 +++++++++++++++++++++
>  ffprobe.c        |  245 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
>  4 files changed, 374 insertions(+), 2 deletions(-)
>  create mode 100644 doc/ffprobe.xsd

I'll apply this in a few days if I read no comments (after checking it
myself again).
-- 
FFmpeg = Fundamental and Fostering Monstrous Ponderous Excellent Glue


More information about the ffmpeg-devel mailing list