Split ffmpeg setup routines into own function