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.

concepts.md 1.4 KiB

3 anos atrás
1234567891011121314151617181920212223242526272829303132333435363738
  1. # Concepts
  2. In JVCL the main concepts are assets and operations.
  3. ## Assets
  4. Assets are your media files: generally image, audio and video files.
  5. All assets have a name and a path.
  6. Input assets are defined using the `assets` array of a JVCL spec.
  7. For input assets, the path can be a file or a URL. URL-based assets will be downloaded
  8. to the scratch directory. This can be overridden using the `dest` property on the asset.
  9. Operations produce one or more output assets, as specified in the `creates` property of
  10. an operation JSON object.
  11. For output assets, the path will be within the scratch directory.
  12. You can override this using the `dest` property on the `creates` object associated with the operation.
  13. ### Asset Properties
  14. Assets expose properties that can be referenced in operations. The properties currently exposed are:
  15. * `duration`: duration of the audio/video in seconds (audio and video assets only)
  16. * `width`: width of the video in pixels (video and image assets only)
  17. * `height`: width of the video in pixels (video and image assets only)
  18. ## Operations
  19. Operations are transformations to perform on the inputs.
  20. An operation can produce one or more new assets, which can then be referenced in
  21. later operations.
  22. Most of the operation settings can be JavaScript expressions, for example:
  23. "start": "someAsset.duration - 10"
  24. The above would set the `start` value to ten seconds before the end of `someAsset`.