Serializes the media files