#10613: ffprobe outputs invalid xml
------------------------------------+-----------------------------------
             Reporter:  nuro        |                    Owner:  (none)
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  ffprobe
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------
Comment (by Stefano Sabatini):

 I'm able to reproduce, attaching a provisional patch.

 If you can test it would be helpful.

 Note that this (together with the other "fix" which "broke" it) fixes a
 long-standing issue with the rendering of side data, as variable fields
 elements cannot contain fields with arbitrary names or that would break
 the schema.

 New output looks like this:
 {{{
 <?xml version="1.0" encoding="UTF-8"?>
 <ffprobe>
     <streams>
         <stream index="0" codec_name="mpeg1video" codec_long_name="MPEG-1
 video" codec_type="video" codec_tag_string="[0][0][0][0]"
 codec_tag="0x0000" width="320" height="240" coded_width="0"
 coded_height="0" closed_captions="0" film_grain="0" has_b_frames="1"
 sample_aspect_ratio="1:1" display_aspect_ratio="4:3" pix_fmt="yuv420p"
 level="-99" color_range="tv" chroma_location="center"
 field_order="progressive" refs="1" id="0x1e0" r_frame_rate="60000/1001"
 avg_frame_rate="30000/1001" time_base="1/90000" start_pts="48003"
 start_time="0.533367" duration_ts="719218" duration="7.991311"
 bit_rate="104857200" extradata_size="12">
             <disposition default="0" dub="0" original="0" comment="0"
 lyrics="0" karaoke="0" forced="0" hearing_impaired="0" visual_impaired="0"
 clean_effects="0" attached_pic="0" timed_thumbnails="0" captions="0"
 descriptions="0" metadata="0" dependent="0" still_image="0"/>
             <side_data_list>
                 <datum key="side_data_type" value="CPB properties"/>
                 <datum key="max_bitrate" value="0"/>
                 <datum key="min_bitrate" value="0"/>
                 <datum key="avg_bitrate" value="0"/>
                 <datum key="buffer_size" value="49152"/>
                 <datum key="vbv_delay" value="-1"/>
             </side_data_list>
         </stream>
         <stream index="1" codec_name="mp2" codec_long_name="MP2 (MPEG
 audio layer 2)" codec_type="audio" codec_tag_string="[0][0][0][0]"
 codec_tag="0x0000" sample_fmt="s16p" sample_rate="22050" channels="1"
 channel_layout="mono" bits_per_sample="0" initial_padding="0" id="0x1c0"
 r_frame_rate="0/0" avg_frame_rate="0/0" time_base="1/90000"
 start_pts="46040" start_time="0.511556" duration_ts="272755"
 duration="3.030611" bit_rate="160000">
             <disposition default="0" dub="0" original="0" comment="0"
 lyrics="0" karaoke="0" forced="0" hearing_impaired="0" visual_impaired="0"
 clean_effects="0" attached_pic="0" timed_thumbnails="0" captions="0"
 descriptions="0" metadata="0" dependent="0" still_image="0"/>
         </stream>
     </streams>

     <format filename="slow.disc.mpeg" nb_streams="2" nb_programs="0"
 format_name="mpeg" format_long_name="MPEG-PS (MPEG-2 Program Stream)"
 start_time="0.511556" duration="8.013122" size="256000" bit_rate="255580"
 probe_score="26"/>
 </ffprobe>
 }}}

 Thanks for the report.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10613#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to