Preparing media operations