summaryrefslogtreecommitdiffstats
path: root/sub/sd_ass.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-05 00:25:24 +0200
committerwm4 <wm4@nowhere>2014-06-05 01:10:37 +0200
commit015399f6967c683eb27265f81c4e93a61bc1b389 (patch)
tree66d8dc71d190984b1d950a869b2ed0ef911868ec /sub/sd_ass.c
parente82af029a9f5fa02c581de5a7c6654696f38c87d (diff)
downloadmpv-015399f6967c683eb27265f81c4e93a61bc1b389.tar.bz2
mpv-015399f6967c683eb27265f81c4e93a61bc1b389.tar.xz
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.
Diffstat (limited to 'sub/sd_ass.c')
0 files changed, 0 insertions, 0 deletions