FFmpeg视频元数据更改

时间:2014-10-31 02:54:45

标签: ffmpeg

我正在尝试更改视频流元数据。请参阅下面的(更改此元数据)。我可以改变电影的标题,但不能改变任何其他标题。改变这个的ffmpeg行是什么。

以下这一行只会改变“电影的标题”

ffmpeg -i Input.mkv -metadata title =“New Title”-c:v copy -c:copy -c:s copy Output.mkv

Input #0, matroska,webm, from 'Input.mkv':
Metadata:
title           : Title Of The Movie
encoder         : libebml v1.2.3 + libmatroska v1.3.0
creation_time   : 2014-08-02 12:58:30
Duration: 02:15:54.21, start: 0.000000, bitrate: 8177 kb/s
Chapter #0.0: start 0.000000, end 208.666778
Metadata:
  title           : Chapter 01
Chapter #0.1: start 208.666778, end 811.727578
Metadata:
  title           : Chapter 02
Chapter #0.2: start 811.727578, end 1077.868444
Metadata:
  title           : Chapter 03
Chapter #0.3: start 1077.868444, end 1345.302289
Metadata:
  title           : Chapter 04
Chapter #0.4: start 1345.302289, end 2000.415067
Metadata:
  title           : Chapter 05
Chapter #0.5: start 2000.415067, end 2487.276444
Metadata:
  title           : Chapter 06
Chapter #0.6: start 2487.276444, end 3097.302533
Metadata:
  title           : Chapter 07
Chapter #0.7: start 3097.302533, end 3503.958778
Metadata:
  title           : Chapter 08
Chapter #0.8: start 3503.958778, end 4060.347956
Metadata:
  title           : Chapter 09
Chapter #0.9: start 4060.347956, end 4582.202622
Metadata:
  title           : Chapter 10
Chapter #0.10: start 4582.202622, end 5083.078000
Metadata:
  title           : Chapter 11
Chapter #0.11: start 5083.078000, end 5537.698822
Metadata:
  title           : Chapter 12
Chapter #0.12: start 5537.698822, end 5826.612444
Metadata:
  title           : Chapter 13
Chapter #0.13: start 5826.612444, end 6553.088200
Metadata:
  title           : Chapter 14
Chapter #0.14: start 6553.088200, end 6903.730156
Metadata:
  title           : Chapter 15
Chapter #0.15: start 6903.730156, end 7271.055444
Metadata:
  title           : Chapter 16
Chapter #0.16: start 7271.055444, end 7582.241333
Metadata:
  title           : Chapter 17
Chapter #0.17: start 7582.241333, end 8153.937444
Metadata:
  title           : Chapter 18
Chapter #0.18: start 8153.937444, end 8154.208000
Metadata:
  title           : Chapter 19
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
  title           : Change This Metadata
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
Metadata:
  title           : Eng
Stream #0:2(eng): Subtitle: subrip (default)
Metadata:
  title           : Eng

3 个答案:

答案 0 :(得分:2)

好的,我发现这个有用

ffmpeg -i Input.mkv -metadata:s:v:0 title =“H264 Video”-c:v copy -c:a copy -c:s Output.mkv

我认为:s:v:0部分评论代表

:v =视频流 :0 =使用第一个视频流

答案 1 :(得分:1)

这可以解决问题: ffmpeg -i“ in.m4v”-元数据标题=“新标题” -c:v复制-c:a复制-c:s复制“ out.m4v”

答案 2 :(得分:-1)

打开Windows资源管理器

找到并高亮显示要更改的文件

选择多个曲目,按键盘上的控制键,然后单击要更改的曲目

右键单击文件,选择属性,然后选择摘要 单击要修改的属性的值字段,例如title。