FFmpeg is a cross-platform solution to record, convert and stream audio and video.
Table of Contents
Installation

You can also download a Windows version (ffmpeg.org).
sudo apt update
sudo apt install ffmpeg
Find the video manifest
- Open a web browser.
- Open the Developer Tools.
- Go to the Network tab.
- Filter on Fetch/XHR.
- Go to the webpage with the video. Look for the manifest.
- .m3u8: HLS video stream
- .mpd: MPEG-DASH video stream
- .mp4: direct video download
- .m4s or .ts: individual video segments
Usage
Help
ffmpeg -h
ffmpeg -h long
ffmpeg -h full
Download mp4 from a URL
URL="https://[...].svc.ms/transform/videomanifest?provider=[...]&inputFormat=mp4&[...]"
ffmpeg -i $URL -codec copy video.mp4
Download from “.m3u8” file
URL="https:[...]/video.m3u8"
ffmpeg -http_persistent 0 -headers "Referer: https://[...]\r\n" -i "$URL" -map 0:v? -map 0:a? -c copy -avoid_negative_ts make_zero output.mp4
Example: Fathom video from Windows
ffmpeg -i "https://[...]/video.m3u8" -fflags +discardcorrupt -c copy video.mp4
Example: Skool video from Windows
ffmpeg -http_persistent 0 -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" -referer "https://www.skool.com/" -headers "Origin: https://www.skool.com" -i "https://stream.video.skool.com/<VIDEO-ID>.m3u8?token=<JWT>" -fflags +discardcorrupt -c copy output.mp4
Reference
- Official documentation (ffmpeg.org)
- Record a video from command line with ffmpeg (CSbyGB)