I think the DRM part is made during the packaging phase the https://howvideo.works/#packaging (where they need to signalize the media has drm and also encrypt the media)