#
mp4="$1"
ffmpeg -y -i "$mp4" -c:v h264 -b:v 600k -maxrate 1.2M -bufsize 600k -vf scale=-1:720 -vb 600k -an -pass 1 -f null -
ffmpeg -y -i "$mp4" -acodec aac -strict experimental -c:v h264 -b:v 600k -maxrate 1.2M -bufsize 600k -vf scale=-1:720 -vb 600k -pass 2 out/"$mp4"
#