Skip to content

Instantly share code, notes, and snippets.

@melMass
Last active June 29, 2021 21:18
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 melMass/65ea5c71afb0411c19c6292b3bbd7c52 to your computer and use it in GitHub Desktop.
Save melMass/65ea5c71afb0411c19c6292b3bbd7c52 to your computer and use it in GitHub Desktop.
My most used ffmpeg command combination
# Convert all mov in $PWD to png sequences in subfolders
for x in *.mov; do mkdir "${x%.*}" && ffmpeg -i $x "${x%.*}"/"${x%.*}_%04d.png"; done
# H264 Animation
ffmpeg -i input.mov -c:v libx264 -pix_fmt yuv420p -movflags +faststart -preset veryslow -tune animation out.mp4;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment