Skip to content

Instantly share code, notes, and snippets.

@rriemann
Created December 2, 2011 12:43
Show Gist options
  • Save rriemann/1423109 to your computer and use it in GitHub Desktop.
Save rriemann/1423109 to your computer and use it in GitHub Desktop.
Encode Videos for Samsung Galaxy S I9000 with Google Android 2.2 (Froyo) using ffmpeg
ffmpeg -i input.mp4 -y -vcodec libx264 -s 800x480 -acodec aac -strict experimental -ab 96k -ac 2 -b 500K -threads 4 -flags +loop -cmp +chroma -partitions 0 -me_method epzs -subq 1 -trellis 0 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 output.mp4
# input may be everything supported by ffmpeg (*.flv, *.webm, *.mkv, ...)
# "-b 500k" controls bitrate. Lower/Raise to change the video quality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment