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.
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!