add merge video functions