Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yt-dlp: update page #12580

Merged
merged 25 commits into from
Jun 4, 2024
Merged
Changes from 7 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6e469ba
yt-dlp: refactor ytdlp page in youtube-dl format
thrila Oct 5, 2023
a37f211
yt-dlp: remove incidental extra space
thrila Oct 5, 2023
2590579
Merge branch 'tldr-pages:main' into main
thrila Mar 30, 2024
2f3be91
feat: removed url and added placeholder
thrila Apr 13, 2024
6b25c63
Merge branch 'main' into yt-dlp
thrila Apr 13, 2024
0b85d8c
chore: change placeholder path
thrila Apr 13, 2024
b59ddc8
Merge branch 'yt-dlp' of github.com:thrila/tldr into yt-dlp
thrila Apr 13, 2024
845c4ff
Merge branch 'tldr-pages:main' into main
thrila Apr 13, 2024
52be391
Merge branch 'tldr-pages:main' into main
thrila Apr 17, 2024
b92be93
Merge branch 'main' into main
thrila May 5, 2024
b9fd88e
Merge branch 'main' into main
thrila May 19, 2024
38d7320
Merge branch 'main' into main
thrila May 26, 2024
07a0557
yt-dlp: edit file with suggestions
thrila May 26, 2024
1042a44
Merge branch 'yt-dlp'
thrila May 27, 2024
6192988
Merge branch 'tldr-pages:main' into main
thrila May 27, 2024
ddb8a24
Update pages/common/yt-dlp.md
thrila May 27, 2024
4ea2b36
Update pages/common/yt-dlp.md
thrila May 27, 2024
31366a1
Update pages/common/yt-dlp.md
thrila May 27, 2024
4268b31
Update pages/common/yt-dlp.md
thrila May 27, 2024
166eb90
Update pages/common/yt-dlp.md
thrila May 27, 2024
0188dd2
Update pages/common/yt-dlp.md
thrila May 27, 2024
bcf4bf6
Merge branch 'main' into main
thrila May 27, 2024
082092d
yt-dlp: fix placeholder url
spageektti Jun 4, 2024
d8e4ebd
remove example
spageektti Jun 4, 2024
c86f465
Apply suggestions from code review
kbdharun Jun 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions pages/common/yt-dlp.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

`yt-dlp "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`

- List the available downloadable formats for a video:
- List all formats that a video or playlist is available in:
thrila marked this conversation as resolved.
Show resolved Hide resolved

`yt-dlp --list-formats "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`

- Download a video with a defined format, in this case the best mp4 video available (default is "bv\*+ba/b"):
- Download a video or playlist at a specific quality:
kbdharun marked this conversation as resolved.
Show resolved Hide resolved
kbdharun marked this conversation as resolved.
Show resolved Hide resolved

`yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`

Expand All @@ -23,16 +23,16 @@

- Specify audio format and audio quality of extracted audio (between 0 (best) and 10 (worst), default = 5):

`yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`
`yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{url}}"`
kbdharun marked this conversation as resolved.
Show resolved Hide resolved

- Download all playlists of YouTube channel/user keeping each playlist in separate directory:
thrila marked this conversation as resolved.
Show resolved Hide resolved

`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"`
`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{url}}"`
kbdharun marked this conversation as resolved.
Show resolved Hide resolved

- Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home:

`yt-dlp -u {{user}} -p {{password}} -P "{{~/MyVideos}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.udemy.com/java-tutorial}}"`
`yt-dlp -u {{user}} -p {{password}} -P "{{~/MyVideos}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{url}}"`

- Download entire series season keeping each series and each season in separate directory under C:/MyVideos:
kbdharun marked this conversation as resolved.
Show resolved Hide resolved

`yt-dlp -P "{{C:/MyVideos}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{https://videomore.ru/kino_v_detalayah/5_sezon/367617}}"`
`yt-dlp -P "{{C:/MyVideos}}" -o "{{%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s}}" "{{url}}"`
kbdharun marked this conversation as resolved.
Show resolved Hide resolved