Ir para o conteúdo

Comandos

caption.retime_from_clip

Retimes the captions linked to a clip after the clip was moved, trimmed or sped up.

Última atualização:

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

Maps the transcript words of the visible range to the timeline again and gives them to the linked captions in order, each taking as many words as it has. Edited texts are kept when the word count is unchanged. The transcript is supplied by the service in resolved.

Arguments#

ArgumentTypeRequiredDescription
clip_item_idstringyesA clip of a video asset with audio.
resolvedobjectnoFilled by the service from the transcript of the asset; never sent by a caller.

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": "caption.retime_from_clip",
  "args": {
    "clip_item_id": "itm_m1n2p3q4r5"
  }
}

Errors#

E_VALIDATION, E_NOT_FOUND, E_TYPE_MISMATCH, E_INVALID_STATE, E_OVERLAP

Scope and phase#

Scope edit, phase alpha. Run vukem-video command:help caption.retime_from_clip for the same description from the binary.