[Libav-user] how to get metadata via ffmpeg/ffprobe command line

qw applemax82 at 163.com
Mon May 30 11:09:42 CEST 2016


Hi,

As I know, source file may have metadata, so does each stream. I use ffprobe to print some information of 'wynonna_earp.mp4 '. But how to printf its metadata in json format?



ffprobe wynonna_earp.mp4
ffprobe version 2.8.3 Copyright (c) 2007-2015 the FFmpeg developers
  built with icc (ICC) 14.0.2 20140120
  configuration: --cc=/opt/intel/bin/icc --enable-version3 --enable-asm --enable-yasm --enable-avfilter --enable-libvidstab --disable-static --enable-shared --enable-libx264 --enable-gpl --prefix=/usr/local/ --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-libfdk_aac --enable-nonfree --enable-libass --enable-libfreetype --extra-libs=-lfreetype
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'wynonna_earp.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2016-04-03 10:10:01
  Duration: 00:43:06.30, start: 0.000000, bitrate: 1932 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x712 [SAR 1:1 DAR 160:89], 1800 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
      creation_time   : 2016-04-03 09:58:39
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2016-04-03 10:10:02
      handler_name    : GPAC ISO Audio Handler

Thanks!

B.R.

Andrew


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160530/c8af58b3/attachment.html>


More information about the Libav-user mailing list