[Mac] Download Streaming Media from Azure Media Service

使用 ffmpeg 來下載帶有 Azure 網址的串流影片

1. Install ffmpeg

brew install ffmpeg

2. Find your azure media link

  • Open browser developer window and refresh your page.
    (F12 for Chrome & Sidekick users shortcut)
  • Search “manifest” and copy the request url.

3. Download Video by ffmpeg

ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "your_url" -c copy output.mp4

4. Download Only Audio

Replace brackets of url with (format=m3u8-aapl-v3,audio-only=true)

ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "your_url(format=m3u8-aapl-v3,audio-only=true)" -c copy output.mp4

Leave a Reply