From 8b7da7a8e50764e750a0507cc4b72687203bba89 Mon Sep 17 00:00:00 2001 From: TheAMM Date: Sat, 16 Dec 2017 14:21:18 +0200 Subject: 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. --- common/encode.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/encode.h') 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 -- cgit v1.2.3