[FFmpeg-devel] ffprobe can produce invalid XML

Stefano Sabatini stefasab at gmail.com
Sat Apr 7 19:27:02 CEST 2012


On date Saturday 2012-04-07 17:48:31 +0200, Stefano Sabatini encoded:
> On date Tuesday 2012-04-03 10:54:19 +0000, Ian Ashley encoded:
[...]
> Also this looks more like UTF-8 validation rather than something
> related to XML escaping.

On a second thought, I don't think this issue is related to XML, nor
to ffprobe specifically.

If you do:
ffmpeg -i cnet-start.mp4 -c:a copy -c:v copy cnet-start.remux.mp4

the resulting ffprobe output is successfully parsed by xmllint.

ffmpeg remuxes the stream and performs validation on metadata content,
thus stripping all non valid UTF8 characters. So validation should be
performed when extracting the metadata information (demuxer/decoder
level) rather than at the application level.
-- 
FFmpeg = Free & Faithful Mysterious Portable Elected Geisha


More information about the ffmpeg-devel mailing list