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