prepare video first