avcodec/ttmlenc: add support for region positioning and sizing

The ASS margins are utilized to generate percentual values, as
the usage of cell-based sizing and offsetting seems to be not too
well supported by renderers.

Signed-off-by: Jan Ekström <jan.ekstrom@24i.com>
This commit is contained in:
Jan Ekström 2021-03-29 17:19:58 +03:00 committed by Jan Ekström
parent 3ef5a8ba2b
commit b24488e727
2 changed files with 45 additions and 2 deletions

View file

@ -9,6 +9,8 @@
<head>
<layout>
<region xml:id="Default"
tts:origin="3% 0%"
tts:extent="97% 97%"
tts:displayAlign="after"
tts:textAlign="center"
tts:fontSize="16c"