i figured it out, the video settings had to be in function_main. thanks everyone for all your help!