summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-29 22:51:18 +0100
committerwm4 <wm4@nowhere>2014-12-29 22:51:18 +0100
commit8048374a5c1eb3af80aa057dcfd20deed39447c8 (patch)
tree311150ab89f3362a1203da1fd39d47b9dcd58d36 /options/options.c
parent6618e5d69ab2f1eef70769e46f4129d13bd7ff29 (diff)
downloadmpv-8048374a5c1eb3af80aa057dcfd20deed39447c8.tar.bz2
mpv-8048374a5c1eb3af80aa057dcfd20deed39447c8.tar.xz
player: filter tags, add --display-tags option
This attempts to increase user-friendliness by excluding useless tags. It should be especially helpful with mp4 files, because the FFmpeg mp4 demuxer adds tons of completely useless information to the metadata. Fixes #1403.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 1eb687d1b2..8393971456 100644
--- a/options/options.c
+++ b/options/options.c
@@ -213,6 +213,8 @@ const m_option_t mp_opts[] = {
OPT_CHOICE("hls-bitrate", hls_bitrate, M_OPT_FIXED,
({"no", 0}, {"min", 1}, {"max", 2})),
+ OPT_STRINGLIST("display-tags*", display_tags, 0),
+
#if HAVE_CDDA
OPT_SUBSTRUCT("cdda", stream_cdda_opts, stream_cdda_conf, 0),
OPT_STRING("cdrom-device", cdrom_device, M_OPT_FILE),
@@ -778,6 +780,12 @@ const struct MPOpts mp_default_opts = {
.dvd_angle = 1,
.mf_fps = 1.0,
+
+ .display_tags = (char **)(const char*[]){
+ "artist", "album", "album_artist", "comment", "composer", "genre",
+ "performer", "title", "track", "icy-title",
+ NULL
+ },
};
#endif /* MPLAYER_CFG_MPLAYER_H */