mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 20:44:56 +02:00
added youtube-dl
Not so sure about the last example. I wanted to give an example of how youtube-dl allows you to very precisely filter a playlist, so I made up a sort of strange task. It might be better to just remove it though.
This commit is contained in:
parent
fdaf29d920
commit
8cf1d29111
1 changed files with 23 additions and 0 deletions
23
pages/common/youtube-dl.md
Normal file
23
pages/common/youtube-dl.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# youtube-dl
|
||||
|
||||
> Download videos from YouTube and other websites.
|
||||
|
||||
- Download a video or playlist:
|
||||
|
||||
`youtube-dl {{https://www.youtube.com/watch?v=oHg5SJYRHA0}}`
|
||||
|
||||
- Download the audio from a video as an MP3:
|
||||
|
||||
`youtube-dl -x --audio-format {{mp3}} {{url}}`
|
||||
|
||||
- Download video(s) as MP4 files with custom filenames:
|
||||
|
||||
`youtube-dl --format {{mp4}} --output {{"%(title) by %(uploader) on %(upload_date) in %(playlist).%(ext)"}} {{url}}`
|
||||
|
||||
- Download a video and save its description, metadata, annotations, subtitles, and thumbnail:
|
||||
|
||||
`youtube-dl --write-description --write-info-json --write-annotations --write-sub --write-thumbnail {{url}}`
|
||||
|
||||
- From a playlist, download all "Let's Play" videos that aren't marked "NSFW" or age-restricted for 7 year-olds:
|
||||
|
||||
`youtube-dl --match-title {{"let's play"}} --age-limit {{7}} --reject-title {{"nsfw"}} {{playlist_url}}`
|
Loading…
Add table
Reference in a new issue