Skip to content

Instantly share code, notes, and snippets.

@alexturpin
Created January 5, 2020 06:12
Show Gist options
  • Save alexturpin/fceaf931c8b2145aa5623f4fef0f9df8 to your computer and use it in GitHub Desktop.
Save alexturpin/fceaf931c8b2145aa5623f4fef0f9df8 to your computer and use it in GitHub Desktop.
ffmpeg slideshow generate
#!/bin/sh
./bin/ffmpeg -framerate 1/6 -start_number 1 -i "photos/pic (%d).jpg" -y -pix_fmt yuv420p -vf "scale='min(1280,iw)':min'(720,ih)':force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2" slideshow.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment