[FFmpeg-devel] [PATCH] ffprobe.xsd: Add packets_and_frames element definition

Tobias Rapp t.rapp at noa-audio.com
Thu Oct 30 11:39:02 CET 2014


On 23.10.2014 15:17, Tobias Rapp wrote:
> Attached patch allows validation of ffprobe XML output if -show_packets
> and -show_frames are both set.
Steps to reproduce the issue:

 > ./ffprobe -show_packets -show_frames -print_format xml=q=1 \
   $FATE_SAMPLES/qpeg/Clock.avi > /tmp/ffprobe-out01.xml

 > xmllint -noout -schema doc/ffprobe.xsd /tmp/ffprobe-out01.xml

/tmp/ffprobe-out01.xml:3: element packets_and_frames: Schemas validity 
error : Element 'packets_and_frames': This element is not expected. 
Expected is one of ( program_version, library_versions, pixel_formats, 
packets, frames, programs, streams, chapters, format, error ).
/tmp/ffprobe-out01.xml fails to validate


After the patch:

 > xmllint -noout -schema doc/ffprobe.xsd.new /tmp/ffprobe-out01.xml

/tmp/ffprobe-out01.xml validates



More information about the ffmpeg-devel mailing list