Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save datavudeja/249ffffbd7622eec7c4094575200747d to your computer and use it in GitHub Desktop.

Select an option

Save datavudeja/249ffffbd7622eec7c4094575200747d to your computer and use it in GitHub Desktop.

Downloading Read-Only Microsoft Teams and Stream Videos and Recordings with FFMPEG

Getting the URL

  • Go to URL which has the video, open dev tools (usually F12) / inspect (Right Click > Inspect) in the browser and go to the Network tab.

  • Then reload the page.

  • In the network tab, search the following command using the search area. videomanifest?provider

image

  • Click on the highlighted area and you can see the right panel is viewing some contents. image

  • You can find the URL under Request URL, this is the URL that we need to download the Teams / Stream video content. Copy this URL.

Downloading the video

  • Make sure you are in the right directory and use to download the video:

ffmpeg -i "URL_TO_DOWNLOAD" -codec copy VIDEO_FILE.mp4


  • If you get "Invalid data found when processing input" try removing url parameters starting with altManifestMetadata all the way to the end of the url
  • Use ffmpeg -h to get help with all ffmpeg options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment