Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created July 6, 2019 22:55
Show Gist options
  • Select an option

  • Save jamesmichiemo/88fda4b4ab95053bf809744b8794cac0 to your computer and use it in GitHub Desktop.

Select an option

Save jamesmichiemo/88fda4b4ab95053bf809744b8794cac0 to your computer and use it in GitHub Desktop.
ffmpeg options for instagram clips
# frames per sec
ffmpeg -r 30 \
-f image2 \
# resolution
-s 1080x1080 \
# frame number to start at
-start_number 1 \
# sequence for images with leading zeros
-i gaus-%04d.png \
# audio
-i dream.mp3\
# frame number to end with
-vframes 500 \
# select h264 codec
-vcodec libx264 \
# quality level
-crf 25 \
# pixel format
-pix_fmt yuv420p \
# time for clipping the end of stream
-t 00:00:15.0 gauss.mp4
@jamesmichiemo

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment