Ir para o conteúdo

Comandos

audio.add

Places an audio asset, or the audio of a video asset, on an audio track.

Última atualização:

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

Adds an audio item. The default duration is the rest of the asset from source_in. The reserved asset ast_placeholder creates a template slot holder and needs an explicit duration.

Arguments#

ArgumentTypeRequiredDescription
asset_idstringyesAn audio asset, a video asset with audio, or ast_placeholder in a template.
durationstringnoA length; default the rest of the asset.
idstringno
source_instringnoOffset into the asset; default 0s.
startstringyesAbsolute position.
track_idstringyesAn audio track.

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": "audio.add",
  "args": {
    "asset_id": "ast_4h6j8k2m3n",
    "id": "itm_s6t7v8w9x0",
    "start": "1s",
    "track_id": "trk_m1n2p3q4r5"
  }
}

Errors#

E_VALIDATION, E_INVALID_TIME, E_NOT_FOUND, E_TYPE_MISMATCH, E_ID_EXISTS, E_LIMIT, E_OUT_OF_SOURCE, E_OVERLAP

Scope and phase#

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