Ir para o conteúdo

Comandos

track.set_caption_style

Merges a partial caption style into a track, or replaces it.

Última atualização:

Esta referência é gerada a partir do programa e está em inglês.

Sets the caption style of a visual track. The style is stored exactly as given, including keys equal to the default. A null value removes a key when merging. In this build highlight accepts only "none".

Arguments#

ArgumentTypeRequiredDescription
replacebooleannoReplace the whole style instead of merging.
styleobjectyesA partial CaptionStyle; null removes a key when merging.
track_idstringyes

Example#

As one operation of an edit batch (the edit tool of MCP, vukem-video edit --ops, or POST /api/v1/projects/{id}/edit):

JSON
{
  "op": "track.set_caption_style",
  "args": {
    "style": {
      "position": "middle",
      "size": 72
    },
    "track_id": "trk_a1b2c3d4e5"
  }
}

Errors#

E_VALIDATION, E_NOT_FOUND, E_TYPE_MISMATCH, E_FONT_UNKNOWN

Scope and phase#

Scope edit, phase prototype. Run vukem-video command:help track.set_caption_style for the same description from the binary.