Skip to content

Instantly share code, notes, and snippets.

@jonathanschilling
Created November 1, 2021 17:53
Show Gist options
  • Save jonathanschilling/d5720fc7fcb5ac4b53ecaefc24692911 to your computer and use it in GitHub Desktop.
Save jonathanschilling/d5720fc7fcb5ac4b53ecaefc24692911 to your computer and use it in GitHub Desktop.
Generate a mp4 movie from a series of png images
#!/bin/bash
#ffmpeg -r 1/5 -start_number 1900 -i ../Inference_volInt_20180906.40_20180906.40_%dms.png -c:v libx264 -vf "fps=25,format=yuv420p" Inference_volInt_20180906.40.mp4
ffmpeg -r 4 -f image2 -pattern_type glob -i '../*.png' -c:v libx264 -vf "fps=25,format=yuv420p,pad=ceil(iw/2)*2:ceil(ih/2)*2" Inference_volInt_20180906.40.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment