User Tools

Site Tools


products:ict:linux:youtube_download:yt_dlp_commands

`yt-dlp` is a fork of `youtube-dl`, a command-line program to download videos from YouTube and other sites. It offers similar functionalities to `youtube-dl` but with additional features and improvements. Here are some common commands you can use with `yt-dlp`:

1. Basic Usage:

 ```
 yt-dlp [OPTIONS] URL
 ```

2. Download a Video:

 ```
 yt-dlp URL
 ```

3. Download Audio Only:

 ```
 yt-dlp -x URL
 ```

4. Download Video with Specified Format:

 ```
 yt-dlp -f FORMAT_CODE URL
 ```

5. List Available Formats:

 ```
 yt-dlp -F URL
 ```

6. Download Video Playlist:

 ```
 yt-dlp -f FORMAT_CODE --yes-playlist URL
 ```

7. Download Video Playlist with Index Range:

 ```
 yt-dlp -f FORMAT_CODE --playlist-start INDEX_FROM --playlist-end INDEX_TO URL
 ```

8. Download Video as MP3:

 ```
 yt-dlp -x --audio-format mp3 URL
 ```

9. Download Subtitles:

 ```
 yt-dlp --write-sub --sub-lang LANGUAGE_CODE URL
 ```

10. Download Thumbnails:

 ```
 yt-dlp --write-thumbnail URL
 ```

11. Limit Download Speed:

 ```
 yt-dlp --limit-rate RATE URL
 ```

12. Download Video Metadata:

 ```
 yt-dlp --print-json URL
 ```

13. Download Specific Video Quality (e.g., 720p):

 ```
 yt-dlp -f 'bestvideo[height<=720]+bestaudio/best[height<=720]' URL
 ```

14. Download Video with Specific Resolution:

 ```
 yt-dlp -f 'bestvideo[height=720]+bestaudio/best[height=720]' URL
 ```

15. Download Videos Matching Specific Criteria:

 ```
 yt-dlp --match-filter 'height <= 720' URL
 ```

These are just a few examples of how you can use `yt-dlp` commands. You can find more options and detailed explanations in the `yt-dlp` documentation or by running `yt-dlp –help`.

products/ict/linux/youtube_download/yt_dlp_commands.txt · Last modified: 2024/03/19 01:37 by wikiadmin