Skip to content

Instantly share code, notes, and snippets.

@code
Created November 12, 2008 17:39
Show Gist options
  • Save code/24218 to your computer and use it in GitHub Desktop.
Save code/24218 to your computer and use it in GitHub Desktop.
ffmpeg -i work/input.* -b $1 -an -vcodec libx264 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -coder 1 -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 -s $2 -r 24 -threads 4 -y work/temp_video.mp4 && ((ffmpeg -i work/input.* -ar 48000 -ac 2 -y work/temp_audio.wav && neroAacEnc -br $3 -he -if work/temp_audio.wav -of work/temp_audio.aac && MP4Box -add work/temp_audio.aac#audio work/h264.flv) || true) && MP4Box -add work/temp_video.mp4#video work/h264.flv && MP4Box -inter 500 work/h264.flv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment