Move ffmpeg initialization to the init function