[FFmpeg-user] getting some xml-ish dump while ffprobing a media file's metadata?

Albretch Mueller lbrtchx at gmail.com
Sat Dec 31 20:18:45 CET 2011


 great!
~
 ffprobe -show_streams, -show_format -print_format xml <input_file>
~
 is exactly what I needed!
~
$ ffprobe -show_streams  -show_format -print_format xml
/media/sdb1/LklWb/com/youtube/gmcummings/Are_You_Going_With_Me_Quality_Version_Rare_Video~Ip7kEx789n8.flv
ffprobe version N-36301-g81980bf, Copyright (c) 2007-2011 the FFmpeg developers
  built on Dec 31 2011 08:26:41 with gcc 4.6.1
  configuration: --prefix=/media/sdb1/inst/sw
  libavutil      51. 33.100 / 51. 33.100
  libavcodec     53. 49.100 / 53. 49.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 56.100 /  2. 56.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
Input #0, flv, from
'/media/sdb1/LklWb/com/youtube/gmcummings/Are_You_Going_With_Me_Quality_Version_Rare_Video~Ip7kEx789n8.flv':
  Metadata:
    starttime       : 0
    totalduration   : 259
    totaldatarate   : 368
    bytelength      : 11911909
    canseekontime   : true
    sourcedata      : B4A7DD646HH1325136036615908
    purl            :
    pmsg            :
  Duration: 00:04:18.64, start: 0.000000, bitrate: 368 kb/s
    Stream #0:0: Video: h264 (Main), yuv420p, 320x240 [SAR 1:1 DAR
4:3], 260 kb/s, 29.92 tbr, 1k tbn, 59.83 tbc
    Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 107 kb/s
<?xml version="1.0" encoding="UTF-8"?>
<ffprobe>
 <streams>
  <stream index="0" codec_name="h264" codec_long_name="H.264 / AVC /
MPEG-4 AVC / MPEG-4 part 10" codec_type="video"
codec_time_base="500/29917" codec_tag_string="[0][0][0][0]"
codec_tag="0x0000" width="320" height="240" has_b_frames="0"
sample_aspect_ratio="1:1" display_aspect_ratio="4:3" pix_fmt="yuv420p"
level="13" is_avc="1" nal_length_size="4" r_frame_rate="359/12"
avg_frame_rate="0/0" time_base="1/1000" start_time="0.000"/>
  <stream index="1" codec_name="aac" codec_long_name="Advanced Audio
Coding" codec_type="audio" codec_time_base="0/1"
codec_tag_string="[0][0][0][0]" codec_tag="0x0000" sample_fmt="s16"
sample_rate="44100" channels="2" bits_per_sample="0"
r_frame_rate="0/0" avg_frame_rate="1000/23" time_base="1/1000"
start_time="0.000"/>
 </streams>

 <format filename="/media/sdb1/LklWb/com/youtube/gmcummings/Are_You_Going_With_Me_Quality_Version_Rare_Video~Ip7kEx789n8.flv"
nb_streams="2" format_name="flv" format_long_name="FLV format"
start_time="0.000" duration="258.649" size="11911909"
bit_rate="368434">
  <tag key="starttime" value="0"/>
  <tag key="totalduration" value="259"/>
  <tag key="totaldatarate" value="368"/>
  <tag key="bytelength" value="11911909"/>
  <tag key="canseekontime" value="true"/>
  <tag key="sourcedata" value="B4A7DD646HH1325136036615908"/>
  <tag key="purl" value=""/>
  <tag key="pmsg" value=""/>
 </format>
</ffprobe>


More information about the ffmpeg-user mailing list