Skip to content

Instantly share code, notes, and snippets.

@datavudeja
Forked from sahildeshp/ffmpeg_download.md
Created December 30, 2025 20:16
Show Gist options
  • Select an option

  • Save datavudeja/6e434562ee221a2e117faadbce93a5d0 to your computer and use it in GitHub Desktop.

Select an option

Save datavudeja/6e434562ee221a2e117faadbce93a5d0 to your computer and use it in GitHub Desktop.
Downloading Read-Only Microsoft Teams and Stream Videos and Recordings with FFMPEG

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

Understanding FFMPEG

https://www.youtube.com/watch?v=26Mayv5JPz0&t=19s


Downloading and Installing FFMPEG

image

  • Put the contents of the bin folder in your new folder C:\ffmpeg

image

  • Go to "Edit the system enviroment variables"

image

  • Then click on Environment Variables

image

  • Find the environment variable "PATH" and click on it to open

image

  • Click on "NEW" and add the path of your ffmpeg folder

image

  • Click OK to save and close the environment variables editor.
  • Open windows terminal / cmd and use the command ffmpeg -version to verify that ffmpeg binaries were added to the path and the correct verion is being used

image


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