Skip to content

Instantly share code, notes, and snippets.

@pax
Created December 25, 2024 14:43
Show Gist options
  • Save pax/fbdd6c011106899f73645aff6dc84edc to your computer and use it in GitHub Desktop.
Save pax/fbdd6c011106899f73645aff6dc84edc to your computer and use it in GitHub Desktop.
video editing
# creates timelapse from a series of images
ffmpeg -framerate 24 -pattern_type glob -i "folder/path/*.jpg" -c:v libx264 -pix_fmt yuv420p timelapse-3.mp4
# stitches vertically 2 videos
ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[0:v:0][1:v:0]vstack=inputs=2" -shortest -c:v libx264 output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment