Feb-04-2017, 11:17 AM
(Feb-04-2017, 11:03 AM)snippsat Wrote:Quote:so a pre-download-able mp4 could be useablePython has the best download module for Youtube,and a couple of hundred other sites.
youtube-dl
Usage:
youtube-dl url_from_youtube
This will download the best video and audio quality and will merge them. Most of the times the program packs the download to .mkv file.
But you can list all available formats with -F option.
victor@jerry:~$ youtube-dl -F https://youtu.be/Z_OAlIhXziw [youtube] Z_OAlIhXziw: Downloading webpage [youtube] Z_OAlIhXziw: Downloading video info webpage [youtube] Z_OAlIhXziw: Extracting video information [youtube] Z_OAlIhXziw: Downloading MPD manifest [info] Available formats for Z_OAlIhXziw: format code extension resolution note 249 webm audio only DASH audio 67k , opus @ 50k (48000Hz), 70.54MiB 250 webm audio only DASH audio 97k , opus @ 70k (48000Hz), 105.58MiB 171 webm audio only DASH audio 116k , vorbis@128k (44100Hz), 138.91MiB 140 m4a audio only DASH audio 138k , m4a_dash container, mp4a.40.2@128k (44100Hz), 173.02MiB 251 webm audio only DASH audio 178k , opus @160k (48000Hz), 215.63MiB 278 webm 192x144 DASH video 91k , webm container, vp9, 15fps, video only, 59.29MiB 160 mp4 192x144 DASH video 150k , avc1.4d400c, 30fps, video only, 152.29MiB 242 webm 320x240 DASH video 206k , vp9, 30fps, video only, 66.51MiB 133 mp4 320x240 DASH video 306k , avc1.4d400d, 30fps, video only, 335.94MiB 243 webm 480x360 DASH video 381k , vp9, 30fps, video only, 140.15MiB 134 mp4 480x360 DASH video 446k , avc1.4d401e, 30fps, video only, 283.97MiB 244 webm 640x480 DASH video 724k , vp9, 30fps, video only, 283.95MiB 135 mp4 640x480 DASH video 1026k , avc1.4d401e, 30fps, video only, 735.69MiB 17 3gp 176x144 small , mp4v.20.3, mp4a.40.2@ 24k 36 3gp 320x240 small , mp4v.20.3, mp4a.40.2 18 mp4 480x360 medium , avc1.42001E, mp4a.40.2@ 96k 43 webm 640x360 medium , vp8.0, vorbis@128k (best)Then:
youtube-dl -f <format code> https://youtu.be/Z_OAlIhXziw