A youtube-dl fork with additional features and fixes
скачивает видео в формате .webm
bestvideo[height<=720]+bestaudio
$ yt-dlp -F "https://www.youtube.com/watch?v=tWkJaws7YWI"
[youtube] tWkJaws7YWI: Downloading webpage
[youtube] tWkJaws7YWI: Downloading android player API JSON
[info] Available formats for tWkJaws7YWI:
ID EXT RESOLUTION FPS CH │ FILESIZE TBR PROTO │ VCODEC VBR ACODEC ABR ASR MORE INFO
────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb2 mhtml 48x27 4 │ mhtml │ images storyboard
sb1 mhtml 80x45 1 │ mhtml │ images storyboard
sb0 mhtml 160x90 1 │ mhtml │ images storyboard
599 m4a audio only 2 │ 100.12KiB 31k https │ audio only mp4a.40.5 31k 22k ultralow, m4a_dash
600 webm audio only 2 │ 92.91KiB 29k https │ audio only opus 29k 48k ultralow, webm_dash
139 m4a audio only 2 │ 157.65KiB 49k https │ audio only mp4a.40.5 49k 22k low, m4a_dash
249 webm audio only 2 │ 136.50KiB 43k https │ audio only opus 43k 48k low, webm_dash
250 webm audio only 2 │ 173.24KiB 54k https │ audio only opus 54k 48k low, webm_dash
140 m4a audio only 2 │ 415.38KiB 130k https │ audio only mp4a.40.2 130k 44k medium, m4a_dash
251 webm audio only 2 │ 350.23KiB 110k https │ audio only opus 110k 48k medium, webm_dash
17 3gp 176x144 8 1 │ 251.89KiB 79k https │ mp4v.20.3 79k mp4a.40.2 0k 22k 144p
597 mp4 256x144 15 │ 113.12KiB 35k https │ avc1.4d400b 35k video only 144p, mp4_dash
598 webm 256x144 15 │ 107.48KiB 34k https │ vp9 34k video only 144p, webm_dash
160 mp4 256x144 30 │ 388.95KiB 122k https │ avc1.4d400c 122k video only 144p, mp4_dash
278 webm 256x144 30 │ 311.72KiB 98k https │ vp9 98k video only 144p, webm_dash
133 mp4 426x240 30 │ 859.55KiB 269k https │ avc1.4d4015 269k video only 240p, mp4_dash
242 webm 426x240 30 │ 678.57KiB 212k https │ vp9 212k video only 240p, webm_dash
134 mp4 640x360 30 │ 1.85MiB 594k https │ avc1.4d401e 594k video only 360p, mp4_dash
18 mp4 640x360 30 2 │ ~ 2.29MiB 723k https │ avc1.42001E 723k mp4a.40.2 0k 44k 360p
243 webm 640x360 30 │ 1.17MiB 374k https │ vp9 374k video only 360p, webm_dash
135 mp4 854x480 30 │ 3.33MiB 1069k https │ avc1.4d401f 1069k video only 480p, mp4_dash
244 webm 854x480 30 │ 2.24MiB 718k https │ vp9 718k video only 480p, webm_dash
22 mp4 1280x720 30 2 │ ~ 6.92MiB 2181k https │ avc1.64001F 2181k mp4a.40.2 0k 44k 720p
136 mp4 1280x720 30 │ 6.40MiB 2053k https │ avc1.64001f 2053k video only 720p, mp4_dash
247 webm 1280x720 30 │ 4.47MiB 1434k https │ vp9 1434k video only 720p, webm_dash
298 mp4 1280x720 60 │ 8.28MiB 2651k https │ avc1.640020 2651k video only 720p60, mp4_dash
302 webm 1280x720 60 │ 7.43MiB 2380k https │ vp9 2380k video only 720p60, webm_dash
299 mp4 1920x1080 60 │ 14.65MiB 4692k https │ avc1.64002a 4692k video only 1080p60, mp4_dash
303 webm 1920x1080 60 │ 11.71MiB 3752k https │ vp9 3752k video only 1080p60, webm_dash
Что делать что бы оно скачивало в mp4
$ yt-dlp -f 298+251 "https://www.youtube.com/watch?v=tWkJaws7YWI"
298 mp4 1280x720 60 │ 8.28MiB 2651k https │ avc1.640020 2651k video only 720p60, mp4_dash
$ yt-dlp "https://www.youtube.com/watch?v=tWkJaws7YWI"
$ yt-dlp -f "bestvideo[height<=720][ext=mp4]+bestaudio" "https://www.youtube.com/watch?v=tWkJaws7YWI"
и куда оно скачивает?
@echo off
color a
set /p url="Enter video URL: "
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" -o "Result/%(title)s.%(ext)s" %url%
exit
@echo off
color a
set /p url="Enter video URL: "
yt-dlp -x --audio-format mp3 -o "Result/%(title)s.%(ext)s" %url%
exit
bindsym KP_Divide exec "yt-dlp -P /tmp $(wl-paste -n -p)"