Skip to content
ldo edited this page Sep 13, 2010 · 20 revisions

Overview of the XML syntax, deduced from the spu_elems and spu_attrs structures defined in src/subgen-parse-xml.c.

toplevel ::= <subpictures [format]> stream </subpictures>

stream ::= <stream> (spu | textsub) </stream>

spu := <spu [image] [highlight] [select] [start] [end] [transparent] [autooutline] [outlinewidth] [autoorder] [force] [xoffset] [yoffset]> button … < /spu>

textsub ::= <textsub filename [characterset] [fontsize] [font] [fill-color] [outline-color] [outline-thickness] [shadow-offset] [shadow-color] [horizontal-alignment] [vertical-alignment] [left-margin] [right-margin] [top-margin] [bottom-margin] [subtitle-fps] [movie-fps] [movie-width] [movie-height] [aspect] [force] />

button ::= <buttontype [name] [up] [down] [left] [right] [x0] [y0] [x1] [y1] />

buttontype ::= button | action

Clone this wiki locally