使用Ffmpeg编辑视频元数据

时间:2012-06-25 03:18:31

标签: ffmpeg metadata

我想更改视频元数据。

原始视频信息(ffmpeg -i video.mp4)

     Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    creation_time   : 2007-11-22 09:11:58
  Duration: 00:00:52.70, start: 0.000000, bitrate: 235 kb/s
    Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 107 kb/s
    Metadata:
      creation_time   : 2007-11-22 09:11:58
      handler_name    : (C) 2007 Google Inc. v06.24.2007.
    Stream #0:1(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 140x96 [SAR 1:1 DAR 35:24], 125 kb/s, 10 fps, 10 tbr, 10k tbn, 20k tbc
    Metadata:
      creation_time   : 2007-11-22 09:11:58
      handler_name    : (C) 2007 Google Inc. v06.24.2007.

我的ffmpeg shell代码:

ffmpeg -i test.mp4 -metadata handler_name="Ahmetka" -i logo.png -filter_complex "overlay=(main_w-overlay_w):(main_h-overlay_h)" output.flv

输出视频信息(ffmpeg -i output.flv)

    Input #0, flv, from 'output.flv':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    creation_time   : 2007-11-22 09:11:58
    encoder         : Lavf54.11.100
  Duration: 00:00:53.60, start: 0.000000, bitrate: 212 kb/s
    Stream #0:0: Video: flv1, yuv420p, 140x96, 200 kb/s, 10 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s

我该怎么办?

0 个答案:

没有答案