This example shows how to automatically resize video clips to fit the output format in Video Puppet.
Check out the outcome in result.mp4
.
Upload the script
directory to a Video Puppet project. The main script file is source.md
.
When adding a video to a scene, Video Puppet will automatically resize it to fit the target video format. You can control resizing by adding an option to the square brackets when setting the video. For example, to shrink and pad a larger video to fit the smaller target size, use the contain
option:

Alternatively, you can provide a video
stage direction in brackets, and add the size
option in subproperties. When adding subproperties, indent them with two spaces or a tab. (Technically, stage directions are in YAML format).
(video:
file: birds.mp4
size: contain)
Check out Scene videos for more information on scene video sizing options