Skip to content

Instantly share code, notes, and snippets.

@devinschumacher
Last active February 7, 2026 06:30
Show Gist options
  • Select an option

  • Save devinschumacher/c7c8f9e1ca821afcaeccefde131c80c6 to your computer and use it in GitHub Desktop.

Select an option

Save devinschumacher/c7c8f9e1ca821afcaeccefde131c80c6 to your computer and use it in GitHub Desktop.
How to download videos from Whop.com

πŸŽ₯ How to Download Videos from Whop (Mux Streams) with yt-dlp

Whop.com hosts its videos using Mux, which serves them over HLS streaming (.m3u8 playlists with short-lived tokens).

If you want to save these videos locally as clean .mp4 files, you can do it reliably with the following process...

πŸ‘‰ Or you can just get the Whop Video Downloader

Click the image below to watch the video πŸ‘‡


πŸ”Ž Step 1: Capture the .m3u8?token=... URL

  1. Open the video on Whop.
  2. Open DevTools β†’ Network tab.
  3. Play the video.
  4. Filter requests by m3u8.
  5. Copy the https://stream.mux.com/...m3u8?token=... link.
  • ⚠️ This link is time-limited (?token= contains an expiry). If it stops working, grab a fresh one.

πŸ’» Step 2: Run yt-dlp

Use this command to download the video:

yt-dlp \
  --no-playlist \
  --concurrent-fragments 16 \
  -f "bv*+ba/b" \
  --merge-output-format mp4 \
  --postprocessor-args "ffmpeg:-movflags +faststart" \
  -o "video.mp4" \
  "URL"

πŸ”‘ Flag Breakdown

  • --no-playlist β†’ ensures only the video you give is downloaded.
  • --concurrent-fragments 16 β†’ downloads HLS segments in parallel for speed.
  • -f "bv*+ba/b" β†’ grabs best video + best audio and merges, fallback if only one stream exists.
  • --merge-output-format mp4 β†’ ensures the final file is .mp4.
  • --postprocessor-args "ffmpeg:-movflags +faststart" β†’ optimizes MP4 for instant playback.
  • -o "video.mp4" β†’ avoids filename-too-long errors caused by tokenized URLs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment