fixed ffmpeg install script, travis should work now. also fixed an infinite loop on test failure.