|
| 1 | +--- |
| 2 | +title: Download YouTube member videos |
| 3 | +date: 2025-03-31 22:25:00 +200 |
| 4 | +categories: [Knowledge] |
| 5 | +tags: [download, youtube] # TAG names should always be lowercase |
| 6 | +--- |
| 7 | + |
| 8 | +There's a lot of websites that allow you to download YouTube videos but they fail when it comes to member videos. |
| 9 | +Below guide will allow you to download Member videos that you have access to on your YouTube account. |
| 10 | + |
| 11 | +## Installation |
| 12 | + |
| 13 | +We'll need to download **[yt-dlp](https://github.com/yt-dlp/yt-dlp/wiki/Installation)** and preferably **[FFmpeg](https://ffmpeg.org/download.html)** so we have more options when it comes to conversion of downloaded videos to different formats and resolutions. |
| 14 | + |
| 15 | +--- |
| 16 | + |
| 17 | +### yt-dlp |
| 18 | + |
| 19 | +**Install yt-dlp** <https://github.com/yt-dlp/yt-dlp/wiki/Installation> in a empty folder |
| 20 | + |
| 21 | +### FFmpeg |
| 22 | + |
| 23 | +**Download FFmpeg** <https://ffmpeg.org/download.html> (for better format conversion) |
| 24 | + |
| 25 | +Extract the FFmpeg files and add ffmpeg.exe to your system PATH (or place it in the same folder as yt-dlp.exe). |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +You're now able to download public non-member videos and don't need to do anything more if you're not interested in member content. |
| 30 | +Open a terminal in the same folder where you installed yt-dlp and try below command, remeber to replace "[URL]" with an actual Youtube link. It will save videos by default in the same folder as the yt-dlp.exe file are located. |
| 31 | + |
| 32 | +```bash |
| 33 | +yt-dlp [URL] |
| 34 | +``` |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +## Cookies |
| 39 | + |
| 40 | +For yt-dlp to be able to access member videos it needs access to your browser cookies. |
| 41 | +The easiest way is to use `--cookies-from-browser [Browser]`. |
| 42 | + |
| 43 | +This isn't working with Chrome and may be because of <https://security.googleblog.com/2024/07/improving-security-of-chrome-cookies-on.html> which once rolled out and will likely mean --cookies-from-browser chrome will be permanently broken on Windows. Read more about this issue here: <https://github.com/yt-dlp/yt-dlp/issues/10927> |
| 44 | + |
| 45 | +So we'll use [Firefox](https://www.mozilla.org/en-GB/firefox/new/). |
| 46 | +Make sure you have it installed and have signed into your YouTube account. |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +## Commands |
| 51 | + |
| 52 | +### Download all members from a channel (You must be a member of their chanel) |
| 53 | + |
| 54 | +Go to a YouTube chanel, click on the Videos tab and copy the URL. Replace [https://www.youtube.com/c/Chanelname/videos] |
| 55 | + |
| 56 | +```bash |
| 57 | +yt-dlp --cookies-from-browser firefox --match-filter "availability=members" -f bestvideo+bestaudio --merge-output-format mp4 [https://www.youtube.com/c/Chanelname/videos] |
| 58 | +``` |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +### Download all non-members from a channel |
| 63 | + |
| 64 | +To download all non-member videos change filter to `"availability=public”` |
| 65 | + |
| 66 | +```bash |
| 67 | +yt-dlp --cookies-from-browser firefox --match-filter "availability=public" -f bestvideo+bestaudio --merge-output-format mp4 [https://www.youtube.com/c/Chanelname/videos] |
| 68 | +``` |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +### Download a specific video |
| 73 | + |
| 74 | +```bash |
| 75 | +yt-dlp -f bestvideo+bestaudio --merge-output-format mp4 --cookies-from-browser firefox [VIDEO_URL] |
| 76 | +``` |
| 77 | + |
| 78 | +More information about yt-dlp commands <https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#general-options> |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +## Update yt-dlp |
| 83 | + |
| 84 | +If running into any issues, try updating **[yt-dlp](https://github.com/yt-dlp/yt-dlp)**. |
| 85 | + |
| 86 | +You can use `yt-dlp -U` command to update if you are using the release binaries |
| 87 | + |
| 88 | +```bash |
| 89 | +yt-dlp -U |
| 90 | +``` |
| 91 | + |
| 92 | +If you installed with pip, simply re-run the same command that was used to install the program |
| 93 | + |
| 94 | +<!-- |
| 95 | +There's two alternatives, to save your cookies from the browser in a file or give it direct access from the browser itself. |
| 96 | +
|
| 97 | +If they are manually saved to a file it will expire and needs to be updated after they expire. |
| 98 | +I recomend giving direct access which won't need to be updated at the moment dosen't work with chrome |
| 99 | +
|
| 100 | +Exported chrome cookies with [**Get cookies.txt LOCALLY](https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc)** and saved them in a ****`cookies.txt` file in the same folder (more info about [**cookies**](https://www.reddit.com/r/youtubedl/wiki/cookies/)) |
| 101 | +
|
| 102 | +~~or --cookies-from-browser chrome [Note! Chrome needs to be closed]~~ |
| 103 | +
|
| 104 | +So if using the browser instead of manually downloading a file with browser cookies that will expire after a short period of time, download Firefox and sign into your google account in YouTube |
| 105 | +
|
| 106 | +Replace `--cookies cookies.txt` With `--cookies-from-browser firefox` in below commands |
| 107 | +--> |
0 commit comments