Skip to content

Instantly share code, notes, and snippets.

@jamiecurran
Created January 5, 2014 22:47
Show Gist options
  • Save jamiecurran/8275097 to your computer and use it in GitHub Desktop.
Save jamiecurran/8275097 to your computer and use it in GitHub Desktop.
find all .mts file, convert to ipad friendly mp4.
IFS=$'\n'
for f in `find *.MTS`; do ffmpeg -i $f -r 30 -strict -2 -async 1 -acodec aac -ac 2 -ab 160k -threads 0 -preset slower -profile:v high -level 4.1 -f mp4 -refs 4 $(basename $f .MTS).mp4; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment