refine all scripts for manpiulating videos