Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
coroutines
#10
(Feb-04-2017, 11:03 AM)snippsat Wrote:
Quote:so a pre-download-able mp4 could be useable
Python 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
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
coroutines - by Skaperen - Feb-03-2017, 01:46 AM
RE: coroutines - by Mekire - Feb-03-2017, 12:10 PM
RE: coroutines - by Skaperen - Feb-04-2017, 02:19 AM
RE: coroutines - by ichabod801 - Feb-03-2017, 10:29 PM
RE: coroutines - by wavic - Feb-03-2017, 11:03 PM
RE: coroutines - by Larz60+ - Feb-04-2017, 04:15 AM
RE: coroutines - by Skaperen - Feb-04-2017, 04:52 AM
RE: coroutines - by wavic - Feb-04-2017, 10:21 AM
RE: coroutines - by snippsat - Feb-04-2017, 11:03 AM
RE: coroutines - by wavic - Feb-04-2017, 11:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  error in Linking two coroutines shankar 3 5,563 Jun-19-2020, 06:50 PM
Last Post: gogawaleankita

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020