Robust motion-based segmentation for content-based video coding