[funderwood@localhost ~]$ youtube-dl -F https://youtu.be/Zk9J5xnTVMA
This shows the available video formats and resolutions.
This shows the available video formats and resolutions.
[youtube] Zk9J5xnTVMA: Downloading webpage
[youtube] Zk9J5xnTVMA: Downloading video info webpage
[youtube] Zk9J5xnTVMA: Extracting video information
[youtube] Zk9J5xnTVMA: Downloading MPD manifest
[info] Available formats for Zk9J5xnTVMA:
format code extension resolution note
249 webm audio only DASH audio 56k , opus @ 50k (48000Hz), 1.71MiB
250 webm audio only DASH audio 78k , opus @ 70k (48000Hz), 2.32MiB
140 m4a audio only DASH audio 128k , m4a_dash container, mp4a.40.2@128k (44100Hz), 4.21MiB
171 webm audio only DASH audio 139k , vorbis@128k (44100Hz), 4.31MiB
251 webm audio only DASH audio 145k , opus @160k (48000Hz), 4.51MiB
160 mp4 256x144 DASH video 112k , avc1.4d400c, 24fps, video only, 3.65MiB
278 webm 256x144 DASH video 123k , webm container, vp9, 24fps, video only, 3.31MiB
133 mp4 426x240 DASH video 250k , avc1.4d4015, 24fps, video only, 8.13MiB
242 webm 426x240 DASH video 295k , vp9, 24fps, video only, 7.69MiB
243 webm 640x360 DASH video 559k , vp9, 24fps, video only, 14.21MiB
134 mp4 640x360 DASH video 677k , avc1.4d401e, 24fps, video only, 19.14MiB
244 webm 854x480 DASH video 1017k , vp9, 24fps, video only, 26.14MiB
135 mp4 854x480 DASH video 1183k , avc1.4d401e, 24fps, video only, 36.11MiB
247 webm 1280x720 DASH video 2090k , vp9, 24fps, video only, 52.00MiB
136 mp4 1280x720 DASH video 2392k , avc1.4d401f, 24fps, video only, 69.38MiB
248 webm 1920x1080 DASH video 3405k , vp9, 24fps, video only, 91.30MiB
137 mp4 1920x1080 DASH video 4595k , avc1.640028, 24fps, video only, 125.58MiB
264 mp4 2560x1440 DASH video 10578k , avc1.640032, 24fps, video only, 270.37MiB
271 webm 2560x1440 DASH video 10767k , vp9, 24fps, video only, 279.32MiB
313 webm 3840x2160 DASH video 22275k , vp9, 24fps, video only, 588.32MiB
266 mp4 3840x2160 DASH video 23379k , avc1.640033, 24fps, video only, 587.81MiB
17 3gp 176x144 small , mp4v.20.3, mp4a.40.2@ 24k
36 3gp 320x180 small , mp4v.20.3, mp4a.40.2
18 mp4 640x360 medium , avc1.42001E, mp4a.40.2@ 96k
43 webm 640x360 medium , vp8.0, vorbis@128k
22 mp4 1280x720 hd720 , avc1.64001F, mp4a.40.2@192k (best)
Pay attention to the format 266 which is 3840x2160 and the m4a audio container. Use the folowing to download and join (otherwise video-only or audio-only will download).
[funderwood@localhost ~]$ youtube-dl -f 266+140 https://youtu.be/Zk9J5xnTVMA
[youtube] Zk9J5xnTVMA: Downloading webpage
[youtube] Zk9J5xnTVMA: Downloading video info webpage
[youtube] Zk9J5xnTVMA: Extracting video information
[youtube] Zk9J5xnTVMA: Downloading MPD manifest
[download] Destination: Road to Machu Picchu - Peru in 4K-Zk9J5xnTVMA.f266.mp4
[download] 100% of 587.81MiB in 01:50
[download] Destination: Road to Machu Picchu - Peru in 4K-Zk9J5xnTVMA.f140.m4a
[download] 100% of 4.21MiB in 00:00
[ffmpeg] Merging formats into "Road to Machu Picchu - Peru in 4K-Zk9J5xnTVMA.mp4"
Deleting original file Road to Machu Picchu - Peru in 4K-Zk9J5xnTVMA.f266.mp4 (pass -k to keep)
Deleting original file Road to Machu Picchu - Peru in 4K-Zk9J5xnTVMA.f140.m4a (pass -k to keep)
[funderwood@localhost ~]$