ffmpeg: Move vframes flag after input and change Popen from wait to communicate

New versions of ffmpeg check the location of vframes and will throw an error if it's specified before the input. 
Also changed wait to communicate.