Skip to content

Instantly share code, notes, and snippets.

@mfd
Last active February 12, 2026 23:33
Show Gist options
  • Select an option

  • Save mfd/c990a01d626847a6d7e823dceca598e1 to your computer and use it in GitHub Desktop.

Select an option

Save mfd/c990a01d626847a6d7e823dceca598e1 to your computer and use it in GitHub Desktop.
Download any video from Microsoft Teams, SharePoint and OneDrive
2teams() {
NOW=$(date +"%Y-%m-%d_%H%M")
if [ ! -z $2 ] ; then
echo $NOW"_"$2.mp4
ffmpeg -i $1 -codec copy $NOW"_"$2.mp4
else
echo $NOW"_teamsvid".mp4
ffmpeg -i $1 -codec copy $NOW"_teamsvideo".mp4
fi
}

Download any video from Microsoft Teams, SharePoint and OneDrive

Videos like

- https://{ORGID}.sharepoint.com/personal/{USERID}/_layouts/15/stream.aspx?id={VIDEOID}%2Emp4&ga=1
- https://{ORGID}.sharepoint.com/:v:/p/{USERID}/{VIDEOID}
  1. Run video from SharePoint corporate account or OneDrive,
  2. In Chrome open Web inspector and in Network filter by videomanifest
  3. Copy this url
  4. Run ffmpeg -i "%URL%" -codec copy outputvideo.mp4

chrome

@poopseecheque
Copy link

Seems like teams added some authorization check. Has anyone had the following problem?: I'm trying to download read-only recording, followed all the recommendations, but i get the following error: Error opening input: Server returned 401 Unauthorized (authorization failed)
image

@shebenu
Copy link

shebenu commented Feb 6, 2026

Seems like teams added some authorization check. Has anyone had the following problem?: I'm trying to download read-only recording, followed all the recommendations, but i get the following error: Error opening input: Server returned 401 Unauthorized (authorization failed) image

You selected a wrong url
usually 3 links appears , selected one of the others

@brendangooden
Copy link

brendangooden commented Feb 12, 2026

You can also try this extension which I made for downloading transcripts, including grouped by speaker for LLM ingest.
https://github.com/brendangooden/ms-teams-transcript-downloader
https://chromewebstore.google.com/detail/MS%20Teams%20Transcript%20Downloader/hmljlkhcebhkkhbbafiheolbneecoinp

i will be adding video and audio download support soon!
[Edit - added now!]

modal_popup_download_options
Example_Video_Audio_Ytdlp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment