[FFmpeg-user] Two-Pass encoding on Android

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Dec 22 14:11:54 EET 2018


2018-12-22 8:22 GMT+01:00, Majid Shirazi <majidshirazi90 at gmail.com>:
> According to the documentation for using Two-Pass method we have to run
> ffmpeg twice like this:
>
> ffmpeg -y -i input -c:v libx264 -b:v 2600k -pass 1 -an -f mp4 /dev/null && \
> ffmpeg -i input -c:v libx264 -b:v 2600k -pass 2 -c:a aac -b:a 128k
> output.mp4

What's wrong with (remove linebreak after ";"):
$ ffmpeg -y -i input -c:v libx264 -b:v 2600k -pass 1 -an -f mp4 /dev/null ;
ffmpeg -i input -c:v libx264 -b:v 2600k -pass 2 -c:a aac -b:a 128k output.mp4
?

Carl Eugen


More information about the ffmpeg-user mailing list