From Indie IT Wiki
Jump to: navigation, search

Wealth Statistics on YouTubers


Dark Mode

Change To HTML5 Instead Of Flash


In the browser add 'ss' (without the quotes) after www. For example:

Press enter and you will be directed to:

You will then be presented with the option to download the video in various qualities and formats.

Downloading using youtube-dl (Linux)

Small command-line program to download videos from and other video sites.

sudo pip install --upgrade youtube_dl
youtube-dl --version
youtube-dl --help

Download just the audio from a web site...

youtube-dl --extract-audio --audio-format mp3 --audio-quality 0

Download and stream a youtube video to mplayer...

youtube-dl -o- "" | mplayer -

To select a different video resolution...

youtube-dl -F

[youtube] HOqt8NDZHgI: Downloading webpage
[youtube] HOqt8NDZHgI: Downloading video info webpage
[youtube] HOqt8NDZHgI: Extracting video information
[youtube] HOqt8NDZHgI: Downloading MPD manifest
[info] Available formats for HOqt8NDZHgI:
format code  extension  resolution note
249          webm       audio only DASH audio   45k , opus @ 50k (48000Hz), 191.35KiB
250          webm       audio only DASH audio   51k , opus @ 70k (48000Hz), 210.25KiB
171          webm       audio only DASH audio   81k , vorbis@128k (44100Hz), 332.05KiB
251          webm       audio only DASH audio   93k , opus @160k (48000Hz), 382.95KiB
140          m4a        audio only DASH audio  127k , m4a_dash container, mp4a.40.2@128k (44100Hz), 716.26KiB
278          webm       256x144    DASH video  101k , webm container, vp9, 24fps, video only, 440.55KiB
160          mp4        256x144    DASH video  116k , avc1.4d400c, 24fps, video only, 550.42KiB
242          webm       426x240    DASH video  238k , vp9, 24fps, video only, 848.43KiB
133          mp4        426x240    DASH video  252k , avc1.4d4015, 24fps, video only, 1.18MiB
243          webm       640x360    DASH video  409k , vp9, 24fps, video only, 1.56MiB
134          mp4        640x360    DASH video  645k , avc1.4d401e, 24fps, video only, 2.40MiB
244          webm       854x480    DASH video  769k , vp9, 24fps, video only, 2.93MiB
135          mp4        854x480    DASH video 1192k , avc1.4d401e, 24fps, video only, 4.44MiB
247          webm       1280x720   DASH video 1513k , vp9, 24fps, video only, 5.96MiB
136          mp4        1280x720   DASH video 2378k , avc1.4d401f, 24fps, video only, 8.79MiB
248          webm       1920x1080  DASH video 2773k , vp9, 24fps, video only, 10.74MiB
137          mp4        1920x1080  DASH video 4379k , avc1.640028, 24fps, video only, 16.21MiB
17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3,  mp4a.40.2
43           webm       640x360    medium , vp8.0,  vorbis@128k
18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)

Thanks -

MPlayer YouTube Shell Script

mplayer -fs -cookies -cookies-file /tmp/cookie.txt $(youtube-dl -g --cookies /tmp/cookie.txt "")