Hello Jayesh Tiwari,
Thank you for posting your query here!
Yes, Media services are going to retried starting from 30 June 2024. You need to migrate to a Microsoft partner solution for your on-demand encoding, live streaming, on-demand streaming, and content protection workflows and to Azure Video Indexer for your audio and video analysis workflows.
Refer to this detailed documentation about the retirement guide of Azure Media Services and also other different Partner solutions that are available to migrate.
You can also find a good alternative here: https://azuremarketplace.microsoft.com/de-de/marketplace/apps/3Q_GmbH.3q-video?tab=Overview
Now coming to your question "Is it possible to encode video files on Azure Blob Storage for streaming purposes?"
According to my search, Azure Blob service has added support using that header for video streaming a long time ago so this shouldn't be an issue today. You should be able to stream the video.
I can stream one of my mp4 blob by creating a SAS URL and putting it in a <video> tag in an html document. From the network tab, I can see the correct Accept-Ranges header in the response and the video can be streamed with the progress bar working properly.
Note: I found the mp4 formatted videos will play in browser. I copied the URL from file's properties. However. MOV formatted files were not able to play. In that case, we need to convert the files as mp4.
So, Azure Blobs does support this, you just need to enable it by setting the default version of the service to a newer one. https://learn.microsoft.com/en-us/rest/api/storageservices/Versioning-for-the-Azure-Storage-Services
Suppose the Accept-Ranges
is not enabled, from this blog I got it needs to set the default version of the service.
So, updating the Azure blob storage API version should help.
List of available versions: https://learn.microsoft.com/en-us/rest/api/storageservices/previous-azure-storage-service-versions.
Just run:
az storage account blob-service-properties update --default-service-version 2023-08-03 -n yourStorageAccountName -g yourStorageResourceGroupName
Here is a similar thread that I answered which might help you: How come my videos hosted on Azure Storage Blobs don't allow me to scrub the video while streaming? - Microsoft Q&A
I hope this helps! Please let me know if you have any other questions or need further clarification.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.