editly icon indicating copy to clipboard operation
editly copied to clipboard

Add support for loading edit spec from YAML file

Open IndrekHaav opened this issue 10 months ago • 0 comments

This PR adds support for loading the edit spec from a YAML file.

Specifying the filename works the same as for JSON - either implicitly as the only CLI argument (if it ends with .yml or .yaml), or explicitly with the --yaml flag.

Example:

$ cat project.yaml
---
outPath: output_yaml.gif
clips:
  - layers:
      - type: title-background
        text: YAML config

$ podman run --rm -it -v $(pwd):/videos:z -w /videos editly/editly editly project.yaml
ffmpeg version 5.1.6
ffprobe version 5.1.6
320x320 10fps
  0%  25%  50%  75% 100% Done with transition, switching to next transitionFromClip (1)
No more transitionFromClip, done

Done. Output file can be found at:
output_yaml.gif

Result:

output_yaml

IndrekHaav avatar Apr 11 '25 10:04 IndrekHaav