I am using the following workflow which leaves several copies of the original assets and blobs that should be cleaned up. I want to make sure I only keep the necessary assets in order to playback the videos that have been encoded. Also I am wondering if there is a more efficient way of creating encoded assets. It seems the only improvements that could be made is uploading the blob directly to a media service container instead of having to copy the blob.
I am using the following workflow:
- From my website, a video file is uploaded to a non media service container
- After file is uploaded, a message queue is created for the blob
- Azure Web Job receives the message queue
- The uploaded blob is copied to the media service container
- Create a media service asset from the copied blob
- Start a media encoder job from the new asset for H264 Adaptive Bitrate MP4 Set 720p
- After the job is complete, delete the original blob, the first asset, and the queue message