Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Request: Be able to download HQ videos and audio together. #4208
Comments
|
If you have ffmpeg/avconv installed you can just run |
|
Ooh, thanks for the tip. How come this combination isn't in the help? |
|
It has been around for a while, but we documented it just a week ago: https://github.com/rg3/youtube-dl/blob/master/README.md#video-format-options. |
|
Ah thanks. It is perfect. No more manual merging. :D |
|
Question: Why does YouTube separate both audio and videos for their HQ videos? |
|
You should ask them ;).You can read the wikipedia article. |
|
Thanks again jaimeMF. ;) |
Since YouTube have HQ videos like 4K, 60 FPS, etc., youtube-dl script can't download its audio. One would have to get both video and audio and manually merge them. It would be nice to get both at the same time and merge automatically. Here is an example of a HQ YouTube download:
$ youtube-dl -F https://www.youtube.com/watch?v=VfPg36MvdZY
[youtube] Confirming age
[youtube] VfPg36MvdZY: Downloading webpage
[youtube] VfPg36MvdZY: Downloading video info webpage
[youtube] VfPg36MvdZY: Extracting video information
[youtube] VfPg36MvdZY: Downloading DASH manifest
[info] Available formats for VfPg36MvdZY:
format code extension resolution note
139 m4a audio only DASH audio 49k , audio@ 48k (22050Hz), 1.06MiB (worst)
140 m4a audio only DASH audio 129k , audio@128k (44100Hz), 2.81MiB
171 webm audio only DASH audio 140k , audio@128k (44100Hz), 2.69MiB
172 webm audio only DASH audio 230k , audio@256k (44100Hz), 4.07MiB
141 m4a audio only DASH audio 255k , audio@256k (44100Hz), 5.58MiB
278 webm 256x144 DASH video 163k , webm container, VP9, video only, 1.78MiB
160 mp4 256x144 DASH video 110k , video only, 2.39MiB
242 webm 426x240 DASH video 179k , video only, 2.44MiB
133 mp4 426x240 DASH video 248k , video only, 5.34MiB
243 webm 640x360 DASH video 424k , video only, 4.55MiB
134 mp4 640x360 DASH video 606k , video only, 10.02MiB
244 webm 854x480 DASH video 879k , video only, 8.28MiB
135 mp4 854x480 DASH video 1107k , video only, 19.70MiB
247 webm 1280x720 DASH video 1525k , video only, 16.38MiB
302 webm 1280x720 DASH video 2749k , VP9, 60fps, video only, 29.48MiB
136 mp4 1280x720 DASH video 2220k , video only, 39.91MiB
298 mp4 1280x720 DASH video 3322k , h264, 60fps, video only, 58.02MiB
248 webm 1920x1080 DASH video 2165k , video only, 30.90MiB
303 webm 1920x1080 DASH video 4363k , VP9, 60fps, video only, 57.67MiB
137 mp4 1920x1080 DASH video 4146k , video only, 81.57MiB
299 mp4 1920x1080 DASH video 5594k , h264, 60fps, video only, 111.82MiB
17 3gp 176x144
36 3gp 320x240
5 flv 400x240
43 webm 640x360
18 mp4 640x360
22 mp4 1280x720 (best)
$ youtube-dl -f 299 https://www.youtube.com/watch?v=VfPg36MvdZY
[youtube] Confirming age
[youtube] VfPg36MvdZY: Downloading webpage
[youtube] VfPg36MvdZY: Downloading video info webpage
[youtube] VfPg36MvdZY: Extracting video information
[youtube] VfPg36MvdZY: Downloading DASH manifest
[download] Destination: Hurtquake - excess _ 60fps-VfPg36MvdZY.mp4
[download] 100% of 111.82MiB in 00:17
Thank you in advance. :)