mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added examples to yt-dlp's notes
This commit is contained in:
@@ -16,6 +16,9 @@ yt-dlp -F AK44wAvv2E4
|
||||
# See all available information from a video.
|
||||
yt-dlp -j BaW_jenozKc
|
||||
|
||||
# List available subtitiles.
|
||||
yt-dlp --list-subs rQnNghhPw6o
|
||||
|
||||
# Check what name will be used for the destination.
|
||||
# Output templates at https://github.com/yt-dlp/yt-dlp#output-template, or use
|
||||
# '-j' to see the json file with all of them.
|
||||
@@ -26,6 +29,19 @@ yt-dlp --get-filename \
|
||||
# Download all videos in a YouTube channel.
|
||||
yt-dlp -f "bestvideo+bestaudio/best" -ciw \
|
||||
-o "%(title)s.%(ext)s" -v https://www.youtube.com/c/pbsspacetime/videos
|
||||
|
||||
# As above with improvements.
|
||||
# Slow down the requests to avoid issues in retrieving the data.
|
||||
# Include chapters, metadata and selected subtitles.
|
||||
# Prefix the file name with its timestamp, or upload date if it is null.
|
||||
yt-dlp -ciw \
|
||||
--retry-sleep 3 --sleep-requests 0 --sleep-subtitles 3 \
|
||||
--embed-chapters --embed-metadata --embed-subs \
|
||||
--sub-langs "(de|en|fr|es|it|ja|nl|zh(-Han.*)?)(-en)?" \
|
||||
--sub-format "ass/srt/best" --write-auto-subs \
|
||||
-f "bestvideo+bestaudio/best" \
|
||||
-o "%(timestamp>%Y-%m-%d,upload_date>%Y-%m-%d)s %(title)s.%(ext)s" \
|
||||
https://www.youtube.com/c/becausescience/videos
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
Reference in New Issue
Block a user