xxxxxxxxxx
youtube-dl -o "%USERPROFILE%\Desktop\statquest\%(autonumber)s-%(title)s.%(ext)s" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 https://www.youtube.com/playlist?list=PLblh5JKOoLUICTaGLRoHQDuF_7q2GfuJF
xxxxxxxxxx
720p:
youtube-dl -f 22 http://www.youtube.com/watch?v=dQw4w9WgXcQ
360p:
youtube-dl -f 18 http://www.youtube.com/watch?v=dQw4w9WgXcQ
other formats:
https://www.reddit.com/r/youtubedl/comments/aa6uvq/how_do_i_download_a_video_or_playlist_at_480p_only/
xxxxxxxxxx
youtube-dl -f 22 --write-description --write-auto-sub --sub-lang en --autonumber-size [number] -o "%(autonumber)s-%(title)s.%(ext)s" [playlist-id]
xxxxxxxxxx
youtube-dl --download-archive archive.txt --cookies cookies.txt -o "%(playlist_index)s - %(title)s.%(ext)s" https:www.YourCourseURL.com --playlist-start 1 --all-subs -f "best[height=720]"
xxxxxxxxxx
youtube-dl -f 22 -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" https://www.youtube.com/playlist?list=PLvBBnHmZuNQKLGcp0Yh8pCfEez43_l8Ts
# for android
https://fizzy.center/2020/03/11/using-youtube-dl-on-android
xxxxxxxxxx
1. install chocolate on your computer
--- 1. open powershell using 'RUN AS ADMINISTRATOR'
--- 2. Paste the 'follow' and 'run'
$securityProtocolSettingsOriginal = [System.Net.ServicePointManager]::SecurityProtocol
try {
# This should work in .NET 4 where .NET 4.5 is installed as an inplace upgrade
# Set TLS1.2 (3072) then TLS1.1 (768), then TLS 1.0 (192), finally SSL3 (48)
$securityProtocolSettings = 3072 -bor 768 -bor 192 -bor 48
[System.Net.ServicePointManager]::SecurityProtocol = $securityProtocolSettings
} catch {
Write-Warning "Unable to set PowerShell to use TLS 1.2 and TLS 1.1 due to old .NET Framework installed. Please upgrade to at least .NET Framework 4.5 and PowerShell v3 for this to work appropriately."
}
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
[System.Net.ServicePointManager]::SecurityProtocol = $securityProtocolSettingsOriginal
--- 3. Close and Reopen powershell
2. install youtube-dl using choco
--- 1. choco install youtube-dl
--- 2. enter 'a' and press enter for any prompts
--- 3. choco install ffmpeg
--- 4. enter 'a' and press enter for any prompts
3. open 'cmd' and use 'youtube-dl'
--- 1. to download a single video
------> youtube-dl -ciw -f mp4 https://www.youtube.com/watch?v=dQw4w9WgXcQ -o "%(title)s.%(ext)s"
--- 2. to download a playlist
------> youtube-dl -ciw -f mp4 https://www.youtube.com/playlist?list=PLv3TTBr1W_9tppikBxAE_G6qjWdBljBHJ -o "%(playlist_index)s %(title)s.%(ext)s"
--- 3. to extract audio from video
------> youtube-dl -ciw --extract-audio --audio-format mp3 --audio-quality 0 https://www.youtube.com/watch?v=dQw4w9WgXcQ -o "%(title)s.%(ext)s"
xxxxxxxxxx
-h, --help Print this help text and exit
--version Print program version and exit
-U, --update Update this program to latest version.
Make sure that you have sufficient
permissions (run with sudo if needed)
-i, --ignore-errors Continue on download errors, for
example to skip unavailable videos in a
playlist
--abort-on-error Abort downloading of further videos (in
the playlist or the command line) if an
error occurs
--dump-user-agent Display the current browser
identification
--list-extractors List all supported extractors
--extractor-descriptions Output descriptions of all supported
extractors
--force-generic-extractor Force extraction to use the generic
extractor
--default-search PREFIX Use this prefix for unqualified URLs.
For example "gvsearch2:" downloads two
videos from google videos for youtube-
dl "large apple". Use the value "auto"
to let youtube-dl guess ("auto_warning"
to emit a warning when guessing).
"error" just throws an error. The
default value "fixup_error" repairs
broken URLs, but emits an error if this
is not possible instead of searching.
--ignore-config Do not read configuration files. When
given in the global configuration file
/etc/youtube-dl.conf: Do not read the
user configuration in
~/.config/youtube-dl/config
(%APPDATA%/youtube-dl/config.txt on
Windows)
--config-location PATH Location of the configuration file;
either the path to the config or its
containing directory.
--flat-playlist Do not extract the videos of a
playlist, only list them.
--mark-watched Mark videos watched (YouTube only)
--no-mark-watched Do not mark videos watched (YouTube
only)
--no-color Do not emit color codes in output