Skip to content

Commit 7540504

Browse files
committed
Download YouTube Videos guide
1 parent 719c187 commit 7540504

File tree

4 files changed

+117
-11
lines changed

4 files changed

+117
-11
lines changed

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ url: "https://lincken.tech"
3030
github:
3131
username: Cyanolinck # change to your GitHub username
3232

33-
twitter:
34-
username: Lincken # change to your Twitter username
33+
#twitter:
34+
#username: Lincken # change to your Twitter username
3535

3636
social:
3737
# Change to your full name.
3838
# It will be displayed as the default author of the posts and the copyright owner in the Footer
3939
name: Lincken
40-
email: felix.linck@gmail.com # change to your email address
40+
# email: # change to your email address
4141
links:
4242
# The first element serves as the copyright owner's link
43-
- https://twitter.com/username # change to your Twitter homepage
43+
# - https://twitter.com/username # change to your Twitter homepage
4444
- https://github.com/username # change to your GitHub homepage
4545
# Uncomment below to add more social links
4646
# - https://www.facebook.com/username

_data/contact.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
- type: github
44
icon: "fab fa-github"
55

6-
- type: twitter
7-
icon: "fa-brands fa-x-twitter"
6+
#- type: twitter
7+
# icon: "fa-brands fa-x-twitter"
88

9-
- type: email
10-
icon: "fas fa-envelope"
11-
noblank: true # open link in current tab
9+
#- type: email
10+
# icon: "fas fa-envelope"
11+
# noblank: true # open link in current tab
1212

1313
- type: rss
1414
icon: "fas fa-rss"

_posts/2024-10-23-website with Jekyll.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Host a static website in Github pages
3-
date: 2024-10-23 12:00:00 -500
3+
date: 2024-10-23 12:00:00 +200
44
categories: [projects]
55
tags: [website, github] # TAG names should always be lowercase
66
---
@@ -222,7 +222,6 @@ bundle exec jekyll serve --port 8080
222222
<!--
223223
cat ~/.ssh/id_rsa.pub.
224224
225-
226225
## mac setup
227226
228227
Install rbenv and ruby-build:
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
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+
&nbsp;
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+
&nbsp;
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+
&nbsp;
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+
&nbsp;
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+
&nbsp;
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+
&nbsp;
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

Comments
 (0)