summaryrefslogtreecommitdiffstats
path: root/common/encode.h
diff options
context:
space:
mode:
authorTheAMM <the.actual.amm@gmail.com>2017-12-16 14:21:18 +0200
committerKevin Mitchell <kevmitch@gmail.com>2017-12-26 03:33:19 -0700
commit8b7da7a8e50764e750a0507cc4b72687203bba89 (patch)
tree5edbdfad9652f6cac0fdb92aa6799cdff37a4dc4 /common/encode.h
parentc8d955571dbf15d7aa0280c439c964907ded32f4 (diff)
downloadmpv-8b7da7a8e50764e750a0507cc4b72687203bba89.tar.bz2
mpv-8b7da7a8e50764e750a0507cc4b72687203bba89.tar.xz
encode: implement --oset-metadata, and --oremove-metadata
This commit introduces a new --oset-metadata key-value-list option, allowing the user to specify output metadata when encoding (eg. --oset-metadata=title="Hello",comment="World"). A second option --oremove-metadata is added to exclude existing metadata from the output file (assuming --ocopy-metadata is enabled). Not all output formats support all tags, but luckily libavcodec simply discards unsupported keys.
Diffstat (limited to 'common/encode.h')
-rw-r--r--common/encode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/encode.h b/common/encode.h
index ce5d06873d..047207eea4 100644
--- a/common/encode.h
+++ b/common/encode.h
@@ -50,6 +50,8 @@ struct encode_opts {
int video_first;
int audio_first;
int copy_metadata;
+ char **set_metadata;
+ char **remove_metadata;
};
// interface for mplayer.c