trying to get the video upload to work without memory crash