[FFmpeg-trac] #3838(ffprobe:new): ffprobe's "fully_qualified" XML output does not namespace all elements
FFmpeg
trac at avcodec.org
Sat Aug 9 01:31:23 CEST 2014
#3838: ffprobe's "fully_qualified" XML output does not namespace all elements
---------------------------------+---------------------------------------
Reporter: misty | Type: defect
Status: new | Priority: normal
Component: ffprobe | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+---------------------------------------
ffprobe's XML output features a "fully_qualified" option, which is
documented as follows:
> fully_qualified, q
> If set to 1 specify if the output should be fully qualified. Default
value is 0. This is required for generating an XML file which can be
validated through an XSD file.
However, when this option is set, only the root <ffprobe> element is
namespaced. All other elements are left unaltered, so they will not be
interpreted as being in the same namespace as the parent element. Here's
an example:
Regular output:
{{{
<?xml version="1.0" encoding="UTF-8"?>
<ffprobe>
<format filename="/Users/mistydemeo/image.png" nb_streams="1"
nb_programs="0" format_name="image2" format_long_name="image2 sequence"
start_time="0.000000" duration="0.040000" probe_score="50"/>
</ffprobe>
}}}
Fully-qualified output:
{{{
<?xml version="1.0" encoding="UTF-8"?>
<ffprobe:ffprobe xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:ffprobe='http://www.ffmpeg.org/schema/ffprobe'
xsi:schemaLocation='http://www.ffmpeg.org/schema/ffprobe ffprobe.xsd'>
<format filename="/Users/mistydemeo/image.png" nb_streams="1"
nb_programs="0" format_name="image2" format_long_name="image2 sequence"
start_time="0.000000" duration="0.040000" probe_score="50"/>
</ffprobe:ffprobe>
}}}
The fully-qualified example was generated with the "-print_format
xml=fully_qualified=1 -show_format" options.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3838>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list