2015-07-05 07:53:58 +02:00
|
|
|
youtube-dl
|
|
|
|
==========
|
|
|
|
|
2015-07-05 08:43:27 +02:00
|
|
|
[`youtube-dl`][1] is a small command-line program to download videos from
|
|
|
|
<https://www.youtube.com/> and a few more sites.
|
2015-07-05 07:53:58 +02:00
|
|
|
|
|
|
|
## Tutorial
|
|
|
|
|
|
|
|
```
|
|
|
|
# create a alias
|
2015-10-14 02:44:01 +02:00
|
|
|
$ alias yt='docker run --rm -u $(id -u):$(id -g) -v `pwd`:/data vimagick/youtube-dl'
|
2015-07-05 07:53:58 +02:00
|
|
|
|
2015-07-05 08:43:27 +02:00
|
|
|
# list all formats
|
|
|
|
$ yt -F nVjsGKrE6E8
|
|
|
|
|
|
|
|
# download it
|
2015-07-05 07:53:58 +02:00
|
|
|
$ yt nVjsGKrE6E8
|
2015-07-05 07:57:12 +02:00
|
|
|
|
|
|
|
# play it
|
|
|
|
$ vlc *-nVjsGKrE6E8.mp4
|
2015-07-05 07:53:58 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
[1]: https://rg3.github.io/youtube-dl/
|