Ir para o conteúdo

Comandos

item.crossfade

Sets a matching fade-out and fade-in on two overlapping visual items of different tracks.

Última atualização:

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

The item that leaves gets a fade transition out and the item that arrives a fade transition in, both of the given length, plus the matching audio fades for clips. The two items must overlap by at least that length, and the arriving item must start after the leaving one.

Arguments#

ArgumentTypeRequiredDescription
durationstringyesLength of the crossfade, at least 1 frame.
from_item_idstringyesThe item that leaves.
to_item_idstringyesThe item that arrives.

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": "item.crossfade",
  "args": {
    "duration": "1s",
    "from_item_id": "itm_m1n2p3q4r5",
    "to_item_id": "itm_s6t7v8w9x0"
  }
}

Errors#

E_VALIDATION, E_INVALID_TIME, E_NOT_FOUND, E_TYPE_MISMATCH, E_INVALID_STATE

Scope and phase#

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