edit a video with patch method