Skip to content

Add support for loading edit spec from YAML file #325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IndrekHaav
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant