[Jack Passmore] “ffmpeg -i video.avi -pass 1 -ab 320k -acodec libfaac -vcodec libx264 -vpre fast_firstpass -vf “crop=1440:1080:240:0,scale=640:480″ -b 2000k -bt 2000k -threads 0 video.mp4”
This is doing the first pass only. For 2 pass libx264 using your example as a base:
ffmpeg -i video.avi -an -vcodec libx264 -vpre fast_firstpass -b 2000k -bt 2000k -vf “crop=1440:1080:240:0,scale=640:480” -pass 1 -threads 0 /dev/null && ffmpeg -i video.avi -ab 320k -acodec libfaac -vcodec libx264 -vpre normal -b 2000k -bt 2000k -vf “crop=1440:1080:240:0,scale=640:480” -pass 2 -threads 0 video.mp4
NOTE: this is all one line.
First pass: ignore audio and write to null as you will not use this video. libx264 generates it’s own log file which will be used in the second pass. Use && to run the second ffmpeg line if the first one is successful. Second pass: write audio and video to output format.
Michael