Skip to content

Instantly share code, notes, and snippets.

@matthiassturm
Created May 9, 2014 09:05
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 matthiassturm/5053b0dafbb7984a2175 to your computer and use it in GitHub Desktop.
Save matthiassturm/5053b0dafbb7984a2175 to your computer and use it in GitHub Desktop.
Crop all 16:9 MP4 videos in folder to PAL 4:3
#!/bin/bash
for f in *.mp4; do
mv "$f" "$f".old;
avconv -i "$f".old -vf crop=490:576:115:0 -vcodec libx264 "$f";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment