-
FFMPEG 2 PASS Encoding
Hi, for about a week, I am trying to make FFMPEG 2 Pass encoding work, but with no success. It drives me nuts and the fact there is not much support on this topic out there makes me feel sorry for developers like me.
Here is what I want to do. I want to convert a video AVI to MP4 with the video codec libx264. I’ve probably tried nearly every single possible example I found on the internet. By the way, I am encoding with Windows FFMPEG Build.
So here is what I have done so far:
For the first pass, I used the commands: FFMPEG -i “input.avi” -an -y -b 1024k -r 25 -vcodec libx264 -s 448×436 –vpre slower_fastfirstpass -pass 1 “output.mp4” -threads 1
and for the second pass:
FFMPEG -i “input.avi” -y -b 1024k -r 25 -s 448×436 -vcodec libx264 -deinterlace -acodec libvo_aacenc -ab 128k -ar 44100 -ac 2 –vpre slower -pass 2 “output.mp4” -threads 1
By using the above commands, I always get the same error message: [NULL @ 02c63e60] Unable to find a suitable output format for ‘–vpre’
–vpre: Invalid argumentAlso, I have changed the preset to fastfirstpass or something similar, and got a message relating to the fact that there are some presets missing.
So, I am asking the community here. I am stuck, and need your help to successfully encode my file twice using x264. Thanks in advance.