Skip to content

Instantly share code, notes, and snippets.

@seanmavley
Created March 29, 2015 20:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanmavley/cdcda659468a4d4096a6 to your computer and use it in GitHub Desktop.
Save seanmavley/cdcda659468a4d4096a6 to your computer and use it in GitHub Desktop.
# What this command literally does is this:
# It iterates through directory in which the command is executed selecting .mp4 files only
# It then runs avconv command conversion on them
# See the parameters from avconv manual for details.
for i in *.mp4; do avconv -i "$i" -c:v h264 -crf 18 -c:a mp3 -r 30 "out-$i.mp4" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment