Skip to content

Instantly share code, notes, and snippets.

@chrisfarms
Created April 30, 2010 07:45
Show Gist options
  • Save chrisfarms/384896 to your computer and use it in GitHub Desktop.
Save chrisfarms/384896 to your computer and use it in GitHub Desktop.
ffmpeg -y -i $input_file$ -pass 1 -passlogfile $private_tmp_path$/$record_id$_2pass -s $width$x$height$ -vcodec libx264 -b 192k -bt 192k -flags +loop -cmp +chroma -partitions 0 -me_method epzs -subq 1 -trellis 0 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 30 -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 -aspect 4:3 -acodec libfaac -ar 22050 -an $private_tmp_path$/$record_id$_pass1.mp4
ffmpeg -y -i $input_file$ -pass 2 -passlogfile $private_tmp_path$/$record_id$_2pass -s $width$x$height$ -vcodec libx264 -b 192k -bt 192k -flags +loop -cmp +chroma -partitions +parti4x4+partp4x4+partp8x8+partb8x8 -me_method umh -subq 7 -trellis 2 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 30 -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 -aspect 4:3 -acodec libfaac -ar 22050 -an $private_tmp_path$/$record_id$_noqt.mp4
qt-faststart $private_tmp_path$/$record_id$_noqt.mp4 $output_file$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment