diff options
author | wm4 <wm4@nowhere> | 2014-12-29 22:51:18 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-29 22:51:18 +0100 |
commit | 8048374a5c1eb3af80aa057dcfd20deed39447c8 (patch) | |
tree | 311150ab89f3362a1203da1fd39d47b9dcd58d36 /options | |
parent | 6618e5d69ab2f1eef70769e46f4129d13bd7ff29 (diff) | |
download | mpv-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')
-rw-r--r-- | options/options.c | 8 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 9 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 */ 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; |