fixing ffmpeg transcoding using 2 pass algos