sharepoint-teams-video-transcript-downloader
Skill1 starsChanged 7 days agoMITView on GitHub
Automated tool and workflow to extract, download, and format 100% full-length Microsoft Teams / SharePoint Stream video recordings (1080p MP4 at strict 1.0x native normal playback speed) and complete speaker-annotated transcripts (.txt and .srt) without missing virtualized cues or playing audio.
- Installs packages
In this repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/agents.mdcCursor rule
- bootstrap-contextSkill
- code-reviewerSkill
- debug-issueSkill
- delegation-coordinatorSkill
- docs-memory-maintainerSkill
- drift-reportSkill
- handoffSkill
- human-voice-draftingSkill
- implement-taskSkill
- karpathy-engineerSkill
- local-media-transcriptionSkill
- plan-taskSkill
- pre-edit-checkSkill
- project-plannerSkill
- project-upgraderSkill
- refactor-safelySkill
- self-evaluateSkill
- sharepoint-teams-video-transcript-downloaderSkill
- spec-driven-developmentSkill
- storm-researchSkill
- test-strategistSkill
- update-memory-bankSkill
- upgrade-projectSkill
- usage-pacingSkill
- bootstrap-contextSkill
- code-reviewerSkill
- debug-issueSkill
- delegation-coordinatorSkill
- docs-memory-maintainerSkill
- drift-reportSkill
- handoffSkill
- human-voice-draftingSkill
- implement-taskSkill
- karpathy-engineerSkill
- local-media-transcriptionSkill
- plan-taskSkill
- pre-edit-checkSkill
- project-plannerSkill
- project-upgraderSkill
- refactor-safelySkill
- self-evaluateSkill
- spec-driven-developmentSkill
- storm-researchSkill
- test-strategistSkill
- update-memory-bankSkill
- upgrade-projectSkill
- usage-pacingSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when a user wants to download a Microsoft Teams meeting recording or video hosted on SharePoint / Stream, along with its …
- Very specific: line 17
When direct download buttons are disabled or DASH manifests (videomanifest?provider=spo...) use DRM / 12-second token expirations, direct …
- Distinctive: line 33
Ensure Python environment has required packages installed:
- Very specific: line 39
Ensure ffmpeg is available on system PATH.
- Very specific: line 52
Run the bundled video downloader script (scripts/download_sharepoint_stream.py):
- Distinctive: line 60
If direct download is restricted (no download button / token timeout / DRM):
- Very specific: line 72
Run the automated Playwright harvester script (scripts/harvest_sharepoint_transcript.py):
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SharePoint / Teams Video & Transcript Downloader
Use this skill when a user wants to download a Microsoft Teams meeting recording or video hosted on SharePoint / Stream, along with its complete, full-length speaker-annotated transcript and subtitles.
Technical Overview & Solutions Solved
- Authentication & Session Persistence:
- Stream requires SharePoint session authentication (
rtFaandFedAuthNetscape cookies) or Chrome CDP / Playwright context.
- Stream requires SharePoint session authentication (
- Lossless Video Download & Playback Speed Preservation:
- When direct download buttons are disabled or DASH manifests (
videomanifest?provider=spo...) use DRM / 12-second token expirations, direct segment concatenation can fail or require decryption. - Automated Fallback: Uses a headless Playwright Chromium browser context with
MediaRecorder(video.captureStream()). - CRITICAL SPEED REQUIREMENT: Playback rate MUST be set to STRICT 1.0x native normal speed (
v.playbackRate = 1.0;). SettingplaybackRate > 1.0(e.g. 4x or 16x) causes the output stream to encode at accelerated playback rates, making the resulting video play back in fast-forward! - Chunks are streamed incrementally to disk every 5 seconds to prevent browser memory exhaustion on long recordings.
- Converted to
.mp4container viaffmpeg -i temp.webm -c:v copy -c:a copy output.mp4.
- When direct download buttons are disabled or DASH manifests (
- Complete 100% Transcript Extraction (No Missing Cues):
- Direct GET requests to
/_api_cached/v2.1/.../cdnmedia/transcriptsreturn raw compressed Brotli stream bytes (b'B\x1c') which fail plain text decoding. - Microsoft Stream renders transcript cues inside a virtualized Fluent UI container (
.ms-FocusZone/divwithscrollHeight > 5000px) that unmounts offscreen DOM nodes as you scroll. - Solution: Automated Playwright browser context in MUTED MODE (
--mute-audioflag) that navigates to the video page, opens the Transcript side panel, and programmatically scrolls down the virtualized container from0pxto max height (~60,000px), harvesting 100% of speaker cues and timestamps.
- Direct GET requests to
Step-by-Step Execution Workflow
Step 1: Prerequisites Check
Ensure Python environment has required packages installed:
pip install yt-dlp playwright
playwright install chromiumEnsure ffmpeg is available on system PATH.
Step 2: Export Session Cookies
Export active SharePoint session cookies into Netscape format (sp_session_cookies.txt):
- Extract via Playwright context / Chrome CDP (
rtFa,FedAuthcookies) or browser extension.
Step 3: Automated Video Download
Run the bundled video downloader script (scripts/download_sharepoint_stream.py):
python scripts/download_sharepoint_stream.py --url "<SHAREPOINT_STREAM_URL>" --cookies "sp_session_cookies.txt" --out "Meeting Recording.mp4"What the Script Does Automatically:
- Tries direct
yt-dlpdownload with Netscape session cookies. - If direct download is restricted (no download button / token timeout / DRM):
- Launches Playwright Chromium with Netscape cookies in muted mode (
--mute-audio). - Sets
<video>playback rate to STRICT 1.0x native normal speed (v.playbackRate = 1.0). - Captures decoded 1080p video/audio stream via HTML5
MediaRecorder. - Streams chunks incrementally to disk every 5 seconds (
temp_stream_recorded_1x.webm). - Converts the stream to final
.mp4container usingffmpeg. - Cleans up temporary
.webmfiles upon completion.
- Launches Playwright Chromium with Netscape cookies in muted mode (
Step 4: Harvest 100% Full Transcript & SRT Subtitles
Run the automated Playwright harvester script (scripts/harvest_sharepoint_transcript.py):
python scripts/harvest_sharepoint_transcript.py --url "<SHAREPOINT_STREAM_URL>" --cookies "sp_session_cookies.txt" --out-dir "<DESTINATION_DIR>"Outputs Formatted Files:
[Title] - Complete Transcript.txt(Clean dialogue tagged with speaker names and timestamps)[Title] - Complete.srt(Valid SRT subtitle file)
Troubleshooting & Edge Cases
| Issue | Root Cause | Solution |
| Downloaded video plays in fast-forward / sped up | playbackRate was set > 1.0 (e.g. 4.0 or 16.0) during MediaRecorder stream capture. | Always set v.playbackRate = 1.0 (strict native normal speed) in MediaRecorder capture. |
| Direct GET transcript returns garbage text | Direct API endpoint returns compressed Brotli binary stream. | Use Playwright DOM harvesting script (harvest_sharepoint_transcript.py). |
| Only 10-15 minutes of transcript saved | Stream list is virtualized; un-scrolled DOM nodes aren't rendered. | Script performs step-by-step scrolling (scrollTop += 400) until bottom reached. |
| Audio playing during harvest | Default browser playback triggers audio on load. | Always pass --mute-audio in Chromium launch args and pause <video> via DOM evaluate. |
Bundled Helper Scripts
scripts/download_sharepoint_stream.py- Automated video downloader with 1.0x native speed MediaRecorder fallback.scripts/harvest_sharepoint_transcript.py- Complete 100% transcript harvester.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

