This blog shows a tutorial about how to download any Azure media service video or live stream.
Before starting, you need to have FFmpeg installed. No matter you are using Windows, Linux, or Mac OS.
Download latest FFmpeg here: https://ffmpeg.org/download.html
After installing it, prepare a command:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "{0}" -c copy video.mp4
And you need to get the Azure Media Service smooth streaming URL of the video you are watching. Typically, this URL ends with 'manifest
'.
For example, it might be:
https://amssamples.streaming.mediaservices.windows.net/3b970ae0-39d5-44bd-b3a3-3136143d6435/AzureMediaServicesPromo.ism/manifest
To download this, first, append it to be an m3u8 format. Append the following item to the end of the URL.
(format=m3u8-aapl-v3)
Now the URL shall be like:
https://amssamples.streaming.mediaservices.windows.net/3b970ae0-39d5-44bd-b3a3-3136143d6435/AzureMediaServicesPromo.ism/manifest(format=m3u8-aapl-v3)
And now replace the URL with {0}
to the command in the first step.
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "https://yourdomain/manifest(format=m3u8-aapl-v3)" -c copy video.mp4
And now, execute the command you generated. And your video will just download as file: video.mp4.
Thank you for sharing this informative blog post on how to download any Azure media service video or live stream using FFmpeg. The step-by-step tutorial is easy to follow and well-explained, making it accessible for readers with varying levels of technical expertise. I appreciate the inclusion of necessary links and the clear examples provided.
The core idea of this blog post is to offer a practical solution for those who wish to download videos or live streams from Azure Media Services. This is a valuable resource for individuals who need to access this content offline or for personal use.
One of the highlights of this post is the detailed explanation of how to modify the URL to make it compatible with FFmpeg. This is a crucial step that might not be apparent to many users, and your guidance simplifies the process.
While the tutorial is comprehensive, there is room for improvement. It would be helpful to provide some background information on Azure Media Services and FFmpeg for readers who may be unfamiliar with these tools. Additionally, it would be beneficial to include some screenshots or visual aids to further clarify the steps and make the tutorial more engaging.
Another area for improvement is to address any potential legal or ethical concerns related to downloading copyrighted content. It would be prudent to include a disclaimer or a brief discussion on respecting intellectual property rights.
Overall, this blog post is an excellent resource for those looking to download Azure media service videos or live streams using FFmpeg. With a few enhancements, it could become an even more valuable and comprehensive guide. Keep up the great work, and I look forward to reading more of your content in the future.
You can also chose the specific quality of the video you which to download for example i dowload videos from caltech website which is using Azure Media Services using ffmpeg: ffmpeg -i "INSERT_MAINFEST_FILE_URL_HERE" -map 0:6 -map 0:8 -c copy video.mp4
to print availbale qualities to chose from just type: ffmpeg -i "INSERT_MAINFEST_FILE_URL_HERE"
You, you're good you. thank's a lot for your help. that's just working fine actually, I have to wait for the end of the process, it's a big video file. will see if the video.mp4 is okay when it will be 100% downloaded.
get access dennied
thx, it's work!