From 8048374a5c1eb3af80aa057dcfd20deed39447c8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 29 Dec 2014 22:51:18 +0100 Subject: 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. --- options/options.c | 8 ++++++++ options/options.h | 1 + 2 files changed, 9 insertions(+) (limited to 'options') 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 */ diff --git a/options/options.h b/options/options.h index 21f7c100e6..5e24a20d1d 100644 --- a/options/options.h +++ b/options/options.h @@ -180,6 +180,7 @@ typedef struct MPOpts { char **audio_lang; char **sub_lang; int audio_display; + char **display_tags; int sub_visibility; int sub_pos; float sub_delay; -- cgit v1.2.3