Skip to content

Instantly share code, notes, and snippets.

@LuisSevillano
Created January 21, 2019 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuisSevillano/4c3a4586dec38c48ecfe04a130e4d25b to your computer and use it in GitHub Desktop.
Save LuisSevillano/4c3a4586dec38c48ecfe04a130e4d25b to your computer and use it in GitHub Desktop.
Bash script to process frames and convert then to a video format with ffmpeg
#!/usr/bin/env bash
# https://askubuntu.com/questions/610903/how-can-i-create-a-video-file-from-a-set-of-jpg-images
ffmpeg -framerate 30 -i \
path_to_file_%04d.jpeg \
-c:v libx264 \
-profile:v high \
-crf 18 \
-pix_fmt yuv420p \
output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment