Guides

Saving Twitch VODs on Windows

How to download Twitch VODs and clips on Windows with yt-dlp: single VODs, a time range from a long stream, a channel’s past broadcasts and live recording.

What can be saved from Twitch

Twitch keeps past broadcasts for a limited time and then removes them, so streamers who want a permanent copy of their own work have to save it. Twitch has a download button for a channel’s owner; for everything else you have the right to keep, yt-dlp does the job from the command line.

yt-dlp’s list of supported sites has separate entries for the different kinds of Twitch page. In practice that means it understands these addresses:

  • A single VOD — twitch.tv/videos/ followed by a number. Past broadcasts, highlights and uploads all use this form.
  • A clip — clips.twitch.tv/ followed by the clip’s name, or twitch.tv/CHANNEL/clip/ and the name.
  • A channel’s video list — twitch.tv/CHANNEL/videos, optionally with a filter.
  • A channel’s clips — twitch.tv/CHANNEL/clips.
  • A collection — twitch.tv/collections/ and its ID.
  • A live channel — twitch.tv/CHANNEL, while it is streaming.

Saving a single VOD

Copy the VOD’s address from the browser and pass it to yt-dlp. With nothing else on the command line you get the best quality the VOD offers, usually the source resolution at 60 frames a second where the stream had it.

Long streams are large, so look before you download. -F lists the qualities available, which typically run from 160p up to the source and include an audio-only entry. -S "res:720" then takes the best quality up to 720p, which is a good deal smaller than a 1080p stream and plenty for most rewatching.

Twitch delivers video in thousands of small fragments. By default yt-dlp fetches them one at a time; -N downloads several at once and shortens the wait considerably on a fast connection. Four is a reasonable number. A sensible output template puts the date first so that a folder of VODs sorts in order.

Best quality
yt-dlp "https://www.twitch.tv/videos/1234567890"
List the available qualities
yt-dlp -F "https://www.twitch.tv/videos/1234567890"
720p, four fragments at a time, dated file name
yt-dlp -S "res:720" -N 4 -o "%(uploader)s/%(upload_date)s - %(title)s [%(id)s].%(ext)s" "https://www.twitch.tv/videos/1234567890"
Audio only
yt-dlp -x "https://www.twitch.tv/videos/1234567890"

Clips

A clip is a short file and needs no special handling: pass its address and it is saved. Both forms of clip address work, the one on clips.twitch.tv and the one under a channel’s name.

A channel’s clips page works as a list. The range in the address decides how far back it reaches: the last 24 hours, 7 days, 30 days or all time, with 7 days as the default when none is given. A popular channel’s all-time list can run to thousands of clips, so try the shorter ranges first.

One clip
yt-dlp "https://clips.twitch.tv/CLIP_NAME"
A channel’s top clips from the last 30 days
yt-dlp "https://www.twitch.tv/CHANNEL/clips?filter=clips&range=30d"

Only part of a long stream

Often you want twenty minutes out of a six-hour broadcast. --download-sections takes a time range, written with a leading asterisk, and downloads only that part. Times can be given as minutes and seconds or with hours in front, and inf means the end of the video. It needs FFmpeg.

By default nothing is re-encoded, so the edges of a section can be slightly rough. --force-keyframes-at-cuts cleans them up at the price of a re-encode, which is slow; I only add it when the edges matter.

yt-dlp also reads the chapters Twitch attaches to a VOD when the streamer changed category. The same option accepts a chapter’s name in place of a time range.

From 1:30:00 to 1:50:00
yt-dlp --download-sections "*1:30:00-1:50:00" "https://www.twitch.tv/videos/1234567890"
From 10:15 to the end
yt-dlp --download-sections "*10:15-inf" "https://www.twitch.tv/videos/1234567890"
Cleaner cuts, re-encoded
yt-dlp --download-sections "*1:30:00-1:50:00" --force-keyframes-at-cuts "https://www.twitch.tv/videos/1234567890"

A channel’s past broadcasts

To back up a channel, give yt-dlp the videos page. The filter in the address chooses the type: archives for past broadcasts, highlights, uploads, or all. Because broadcasts expire, this is a job worth repeating on a schedule, and that is what an archive file is for. --download-archive records each VOD that has been saved, so the next run fetches only what is new.

Count the size first. A channel that streams daily can hold hundreds of hours, and at source quality that is a great deal of disk. Capping the resolution and running a few items as a test with -I is the careful way to start.

Every past broadcast, recorded in an archive file
yt-dlp --download-archive twitch-archive.txt -S "res:720" -N 4 -o "%(uploader)s/%(upload_date)s - %(title)s [%(id)s].%(ext)s" "https://www.twitch.tv/CHANNEL/videos?filter=archives"
Highlights only
yt-dlp "https://www.twitch.tv/CHANNEL/videos?filter=highlights"
Test with the three most recent
yt-dlp -I 1:3 "https://www.twitch.tv/CHANNEL/videos?filter=archives"

Sub-only VODs and sign-in

Some channels restrict their past broadcasts to subscribers. For those, yt-dlp stops with “You must be logged into an account that has access to this subscriber-only content”. If you are subscribed, let yt-dlp use the session from the browser where you are signed in to Twitch, and the VOD downloads as it would play for you.

If you are not subscribed, there is nothing to configure. With cookies from an account that lacks the subscription, the message becomes “Your account does not have access to this subscriber-only content”. This page does not cover getting around that, and I would not want it to: the restriction is the streamer’s choice.

Use your signed-in Firefox session
yt-dlp --cookies-from-browser firefox "https://www.twitch.tv/videos/1234567890"

Live streams

Pass a channel’s address while it is live and yt-dlp records the stream from that moment until the broadcast ends.

To start from the beginning of a broadcast that is already running, there is --live-from-start. The README lists Twitch among the few sites it supports and calls the feature experimental, so do not rely on it for something you cannot get again. Once the stream ends, the VOD is the dependable copy. One thing neither route captures is chat: these commands save the video and audio only.

Record a live channel from now
yt-dlp "https://www.twitch.tv/CHANNEL"
Try to record from the start (experimental)
yt-dlp --live-from-start "https://www.twitch.tv/CHANNEL"

Without a terminal

GetVideosLocally, the Windows app this site is about, reaches 1,000+ sites through its bundled yt-dlp, and Twitch is on yt-dlp’s supported list. Paste a VOD or clip link into the link box, pick a quality and format, and press Download Now. FFmpeg is bundled too, a long VOD can sit in the queue and be paused and resumed, and you can schedule it for overnight. For subscriber-only VODs you are entitled to watch, add your browser cookies in Settings.

The options that need typing stay on the command line: time ranges, channel-wide backups with an archive file, and live recording. Whichever you use, download only what you are allowed to save: your own broadcasts, content the streamer has given you permission for, and nothing that a paywall is there to protect.

FAQ

Can I download my own Twitch VODs?

Yes. Twitch offers a download button to a channel’s owner, and yt-dlp can save any of your VODs from their address. To back up everything, use your channel’s videos page with --download-archive so later runs only fetch new broadcasts.

Why is my Twitch download so slow?

Twitch video arrives in many small fragments and yt-dlp downloads one at a time by default. Add -N 4 to fetch four at once. Choosing 720p instead of the source quality also cuts the amount of data.

Can I download just part of a VOD?

Yes. Use --download-sections with a time range, for example "*1:30:00-1:50:00". Only that part is downloaded. FFmpeg must be installed.

Does yt-dlp save Twitch chat?

No. The commands on this page save the video and audio. Chat replay is not part of the download.

Can I download subscriber-only VODs?

Only with an account that has access. If you subscribe to the channel, pass your browser session with --cookies-from-browser. Without a subscription yt-dlp reports that the account does not have access, and that is where it ends.

Download GetVideosLocally for Windows. Free and open source.

Home · Guides · Changelog · Privacy · GitHub · Donate