Powered by coANDco UK

Convert Video for iPhone and IPod touch using ffmpeg

From How2s

these are the settings for converting a video for iPhone/ iPod Touch. Using the free tools

  • ffmpeg
  • mp4box


ffmpeg -y -i $1 -pass 1 -vcodec libx264 -b 850k -r 29.96 -deinterlace 
-s 480x360 -f 3gp -me_method epzs -coder 0 -level 10
-flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8
-me hex -subq 5 -me_range 16 -g 250 -keyint_min 25 
-sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -acodec libfaac 
-ab 128k -ar 44100 -ac 2 /dev/null


ffmpeg -y -i $1 -pass 2 -vcodec libx264 -b 850k -r 29.96 -deinterlace 
-s 480x360 -f 3gp -me_method epzs -coder 0 -level 10 
-flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 
-me hex -subq 5 -me_range 16 -g 250 -keyint_min 25 
-sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -acodec libfaac
-ab 128k -ar 44100 -ac 2 $1_encoded.3gp


MP4Box -hint $1_encoded.3gp
Please check out our sponsor, thanks to whom How2s.org is FREE: