1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 13:14:36 +00:00
mpv/options
wm4 015399f696 sub: add --ass-style-override=force option
(The old "force" choice of that option is renamed to "force-default".)

This allows overriding native ASS script subtitle styles with the style
provided by the --sub-text-* options (like --sub-text-font etc.). This
is disabled by default, and needs to be explicitly enabled with the
--ass-style-override=force option and input property.

This uses in fact exactly the same options (--sub-text-*) and semantics
as the ones used to configure unstyled text subtitles.

It's recommended to combine this with this in the mpv config file:

ass-force-style="ScaledBorderAndShadow=1"   # work around dumb libass behavior

Also, adding a key binding to toggle this behavior should be added,
because overriding can easily break:

L cycle ass-style-override

This would cycle override behavior on Shift+L and allows quickly
disabling/enabling style overrides.

Note: ASS should be considered a vector format rather than a subtitle
format. There is no easy or reliable way to determine whether the style
of a given subtitle event can be changed without destroying visuals or
not. This patch relies on a simple heuristic, which often works and
often breaks.
2014-06-05 01:10:37 +02:00
..
m_config.c cache: redo options and default settings 2014-05-20 02:40:22 +02:00
m_config.h options: unify code for setting string and "raw" options 2014-05-18 19:21:39 +02:00
m_option.c m_option: use isfinite() instead of isnormal() 2014-06-01 17:23:56 +02:00
m_option.h options: allow changing options at runtime 2014-02-25 23:59:27 +01:00
m_property.c command: remove extended information from --list-properties 2014-04-11 01:27:57 +02:00
m_property.h command: add helper function to split property paths 2014-03-30 13:41:03 +02:00
options.c sub: add --ass-style-override=force option 2014-06-05 01:10:37 +02:00
options.h player: write file name to the watch later config file 2014-06-01 19:55:45 +02:00
parse_commandline.c options: fix "-" (stdin) input 2014-05-06 01:06:07 +02:00
parse_commandline.h
parse_configfile.c options: let unknown option case be handled by final option parser 2014-05-05 23:55:47 +02:00
parse_configfile.h encode: don't apply default config options 2014-04-19 22:05:17 +02:00
path.c config: fix --config-dir logic for global config files 2014-02-28 21:32:00 +01:00
path.h path: add function to split URL into prefix and path 2013-12-22 23:25:10 +01:00