1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-11 09:27:26 +00:00
mpv/options
wm4 55d7f9ded1 player: add automatic loading of external cover art files
Picks up files like "cover.jpg". It's made part of normal external file
loading, so I'm adding 3 new options that are direct equivalents for the
options that control loading of external subtitle and audio files. Even
though I bet nobody wants them and they just increase confusion... I
guess the world is actually hell, so this outcome should be fine.

It prefers non-specific external files like "cover.jpg" over embedded
cover art. Not sure if that's wanted or unwanted.

There's some pain over explicitly marking such files as external
pictures. This is basically an optimization: in most cases, a heuristic
would treat an image file loaded with --external-file the same (it's a
heuristic because ffmpeg can't tell us whether something is an image or
a video). However, even with this heuristic, it would decode the cover
art picture again on each seek, which would essentially slow down
seeking in audio files. This bothered me greatly, which is why I'm
adding these additional options at all, and bothered with the previous
commit.

Fixes: #3056
2020-09-28 00:12:52 +02:00
..
m_config_core.c options: more pushing code around 2020-03-13 16:50:27 +01:00
m_config_core.h options: more pushing code around 2020-03-13 16:50:27 +01:00
m_config_frontend.c options: add some way to more or less "unapply" profiles 2020-08-07 19:41:56 +02:00
m_config_frontend.h options: add some way to more or less "unapply" profiles 2020-08-07 19:41:56 +02:00
m_config.h options: split m_config.c/h 2020-03-13 16:50:27 +01:00
m_option.c options: do not accept ":" as separator anymore in key/value lists 2020-08-22 20:25:20 +02:00
m_option.h options: simplify --android-surface-size handling 2020-09-20 12:04:25 +02:00
m_property.c command: disable edition switching if there are no editions 2020-03-14 01:32:27 +01:00
m_property.h
options.c player: add automatic loading of external cover art files 2020-09-28 00:12:52 +02:00
options.h player: add automatic loading of external cover art files 2020-09-28 00:12:52 +02:00
parse_commandline.c options: split m_config.c/h 2020-03-13 16:50:27 +01:00
parse_commandline.h
parse_configfile.c options: add some way to more or less "unapply" profiles 2020-08-07 19:41:56 +02:00
parse_configfile.h options: split m_config.c/h 2020-03-13 16:50:27 +01:00
path.c path: fix broken exe-dir[/mpv] config locations 2020-07-08 12:14:54 +03:00
path.h path: add mp_path_is_absolute() 2020-02-06 14:14:35 +01:00