ffmpeg -i video.wmv -c:v libx264 -preset medium -pass 2 -c:a aac -b:a 128k output.mp4
constant rate-factor is incompatible with 2pass.
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height