Skip to content

Instantly share code, notes, and snippets.

@shunchan0677
Last active November 25, 2016 05: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 shunchan0677/5cd8d3fc3f930c47151041f6bbc0649d to your computer and use it in GitHub Desktop.
Save shunchan0677/5cd8d3fc3f930c47151041f6bbc0649d to your computer and use it in GitHub Desktop.
#!/bin/sh
for FILE in */*.avi
do
FILENAME=`echo ${FILE} | sed 's/\.[^\.]*$//'`
ffmpeg -i ${FILENAME}.avi -r 10 -qscale 0 ${FILENAME}_10Hz.avi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment