youtube videos from terminal
10 Jan 2015
There are multiple ways to see youtube videos from a linux terminal, one of the simplest (and more unix ways) is with mplayer+youtube-dl. Mplayer for playing and youtube-dl for fetching the content.
To do so, go to a shell terminal and define the following alias:
$ alias youtube-slice='sh -c '\''youtube-dl -q -o- "${1}" | mplayer -cache 8192 -'\'' -'
After that:
$ youtube-slice $url
Will work nicely. If you are interested in this and more cool aliases, checkout aliazator, it’s tons of handy ones waiting for you to discover them.
Happy watching 😋