Skip to content

Instantly share code, notes, and snippets.

@whichlight
Created October 1, 2011 05:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save whichlight/1255647 to your computer and use it in GitHub Desktop.
Save whichlight/1255647 to your computer and use it in GitHub Desktop.
convert all .3gp to .mp4 in a directory
#!/bin/bash
#the video recordings in my phone are in .3gp
#so i wrote this to convert .3GP to .mp4
#
#http://whichlight.com/blog/mobile-video-recording-convert-from-3gp-to-mp4/
LIST=`ls *.3gp`
for i in $LIST;
do ffmpeg -i $i -sameq -ab 64k -ar 44100 ${i%3gp}mp4
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment