From ef3c0e6edafd6460d30c24dfd9f5b2f50401f38f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 30 Mar 2013 20:08:56 +0100 Subject: osd: draw the OSD bar with ASS vector drawings Drawing the bar with vector drawings (instead with characters from the OSD font) offers more flexibility and looks better. This also adds chapter marks to the OSD bar, which are visible as small triangles on the top and bottom inner border of the bar. Change the default position of the OSD bar below the center of the screen. This is less annoying than putting the bar directly into the center of the view, where it obscures the video. The new position is not quite on the bottom of the screen to avoid collisions with subtitles. The old centered position can be forced with ``--osd-bar-align-y=0``. Also make it possible to change the OSD bar width/height with the new --osd-bar-w and --osd-bar-h options. It's possible that the new OSD bar renders much slower than the old one. There are two reasons for this: 1. the character based bar allowed libass to cache each character, while the vector drawing forces it to redraw every time the bar position changes. 2., the bar position is updated at a much higher granularity (the bar position is passed along as float instead of as integer in the range 0-100, so the bar will be updated on every single video frame). --- DOCS/man/en/options.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index 91078b2424..98019c0333 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -1315,12 +1315,19 @@ prefixes, see ``Input command prefixes``. If you want to disable the OSD completely, use ``--osd-level=0``. ---osd-bar-align-x=<-1..1> +--osd-bar-align-x=<-1-1> Position of the OSD bar. -1 is far left, 0 is centered, 1 is far right. ---osd-bar-align-y=<-1..1> +--osd-bar-align-y=<-1-1> Position of the OSD bar. -1 is top, 0 is centered, 1 is bottom. +--osd-bar-w=<1-100> + Width of the OSD bar, in percentage of the screen width (default: 75). + A value of 0.5 means the bar is half the screen wide. + +--osd-bar-h=<0.1-50> + Height of the OSD bar, in percentage of the screen height (default: 3.125). + --osd-back-color=<#RRGGBB>, --sub-text-back-color=<#RRGGBB> See ``--osd-color``. Color used for OSD/sub text background. -- cgit v1.2.3