Javicle - a JSON Video Composition Language
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

asset_refs.md 1.1 KiB

1234567891011121314151617181920212223242526272829
  1. # Asset References
  2. Most operations have a `source` parameter that indicates what asset is
  3. considered the primary input to that operation.
  4. The value of `source` is the name of an asset, either defined in `assets`
  5. or as the output of a previous operation (named in the `creates` block).
  6. ## List Assets
  7. The `split` operation creates multiple assets under the same name, this
  8. is called a "list asset", in contrast to a "singular asset" that only
  9. refers to one file.
  10. If you want to reference a specific file within a list asset, use square
  11. bracket notation:
  12. ```shell script
  13. some_list_asset[0] # first sub-asset
  14. some_list_asset[-1] # last sub-asset
  15. some_list_asset[1..3] # 2nd, 3rd and 4th assets
  16. some_list_asset[..3] # 1st, 2nd, 3rd and 4th assets
  17. some_list_asset[3..] # 4th asset and everything after
  18. ```
  19. ## Concat Operation `sources`
  20. The `concat` operation does not take a `source` param (which would name
  21. one asset), it takes a `sources` array of asset names.
  22. The named assets can be either singular assets or list assets.
  23. `concat` flattens the list of assets and concatenates them all together.