init
This commit is contained in:
30
02. PARA/03. Resources(資源)/Scripts.md
Normal file
30
02. PARA/03. Resources(資源)/Scripts.md
Normal file
@@ -0,0 +1,30 @@
|
||||
## youtube-dl
|
||||
### List format
|
||||
```shell
|
||||
youtube-dl -F <YOUTUBE_URL>
|
||||
```
|
||||
|
||||
e.g.
|
||||
```shell
|
||||
youtube-dl -F https://www.youtube.com/watch?v=Pbzn79TSRO0
|
||||
```
|
||||
|
||||
### Download
|
||||
```shell
|
||||
youtube-dl -f <FORMAT_ID> <YOUTUBE_URL>
|
||||
```
|
||||
|
||||
### Download video-only & audio-only & merge to MKV
|
||||
```shell
|
||||
youtube-dl -f <VIDEO_ONLY_ID>+<AUDIO_ONLY_ID> --merge-output-format mkv <YOUTUBE_URL>
|
||||
```
|
||||
|
||||
e.g.
|
||||
```shell
|
||||
youtube-dl -f 313+251 --merge-output-format mkv https://www.youtube.com/watch?v=Pbzn79TSRO0
|
||||
```
|
||||
|
||||
### Download video to MP3
|
||||
```shell
|
||||
youtube-dl -i --extract-audio --audio-format mp3 --audio-quality 0 https://www.youtube.com/watch?v=IruVsWrfPqs
|
||||
```
|
||||
Reference in New Issue
Block a user