Skip to content

User JSON SubtitlesIndicator

roosit edited this page Oct 16, 2026 · 1 revision

Subtitles JSON

Back to list | Indicator page | Русский

Purpose

This page describes the JSON template of the subtitles indicator for manual editing of .vttp. The indicator shows a subtitle line over the video.

Full Template

{
  "name": "com.velitask.plagin.official.subtitles",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "Subtitle": {},
      "mode": {"value":0},
      "font": {"name":"Dialog","style":0,"size":48,"color":{"r":255,"g":255,"b":255,"a":255}},
      "highlight": {"r":245,"g":194,"b":66,"a":255},
      "bg": {"color":{"r":0,"g":0,"b":0,"a":255},"transparency":{}},
      "textAlign": {"value":7},
      "detail": {"value":1}
    }
  }
}

Settings

Subtitle

Selection of the subtitle track ("Subtitle"). An empty object means the track is picked automatically when the indicator is added to the project.

{
  "Subtitle": {}
}
Field Values What it does
sourceId source id in the project In a real project it points to the source. It is not specified in a manual template.
sensorId sensor id in the source In a real project it points to the track. It is not specified in a manual template.

mode

How the line is displayed ("Display mode").

{
  "mode": {"value":0}
}
Field Values What it does
value 0, 1, 2, 3 Number of the mode.
Value Mode
0 Whole block
1 By words
2 By characters
3 Karaoke

font

Font ("Font"): name, style, size, and color of the main text.

{
  "font": {"name":"Dialog","style":0,"size":48,"color":{"r":255,"g":255,"b":255,"a":255}}
}
Field Values What it does
name font name, for example Dialog Font family.
style 0, 1, 2 Style: 0 plain, 1 bold, 2 italic.
size integer 1..999 Font size (48 by default).
color color object Text color.

Fields of the color object:

Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Transparency: 0 is fully transparent, 255 is opaque.

highlight

Highlight color ("Highlight color") for the "Karaoke" mode.

{
  "highlight": {"r":245,"g":194,"b":66,"a":255}
}
Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Transparency: 0 is fully transparent, 255 is opaque.

bg

Backing under the text ("Background"): color and transparency.

{
  "bg": {"color":{"r":0,"g":0,"b":0,"a":255},"transparency":{}}
}
Field Values What it does
color color object Color of the plate. Only the r, g, b channels are used.
transparency.value 0..100 Transparency of the plate in percent: 0 is opaque, 100 means no plate. An empty object {} means the default value, 45; to set your own, use {"value": N}.

Fields of the color object:

Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 The channel is written but does not affect the plate color: transparency is set by transparency.

textAlign

Alignment of the text inside the layer ("Text Alignment").

{
  "textAlign": {"value":7}
}
Field Values What it does
value 0..8 Position of the text (7 by default).
Value Position
0 Top left
1 Top center
2 Top right
3 Middle left
4 Center
5 Middle right
6 Bottom left
7 Bottom center
8 Bottom right

detail

Detail level ("Detail level").

{
  "detail": {"value":1}
}
Field Values What it does
value 0, 1, 2 Number of the option.
Value Option What it does
0 Compact Line breaks in the line are replaced with spaces.
1 Standard Line breaks are kept (default).
2 Full Line breaks are kept (currently the same as "Standard").

Clone this wiki locally