Utilities for media manipulation