Offline video masking

Hi,

is there a way to load a video, mask it and create a new, already masked video from it?

Thanks,
Dirk