1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/youtube/youtube-dl/README.md

24 lines
419 B
Markdown
Raw Normal View History

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