Skip to content

Instantly share code, notes, and snippets.

@av-gantimurov
Created October 8, 2024 06:43
Show Gist options
  • Save av-gantimurov/ec98319db1ddcfcb3096e81acbfddd90 to your computer and use it in GitHub Desktop.
Save av-gantimurov/ec98319db1ddcfcb3096e81acbfddd90 to your computer and use it in GitHub Desktop.
Конфигурационный файл для yt-dlp для загрузки видео с каналов по списку.
# downloading youtube video channels
#
# yt-dlp --config-location yt-dlp.conf
# or put this config to work directory
#
# list of channels in CUR_DIR/channels.txt
#
# video format not above 1080p + best audio
--continue
--ignore-errors
--output "%(uploader)s (%(uploader_id)s)/%(upload_date)s - %(title)s - (%(duration)ss) [%(resolution)s] [%(id)s].%(ext)s"
--download-archive history.txt
--prefer-ffmpeg
--merge-output-format mkv
--write-sub
--write-auto-subs
--sub-lang "en.*"
--sub-lang "ru.*"
--convert-subs srt
--add-metadata
--add-chapters
--write-description
--write-thumbnail
--format "bv[height<=?1080]+ba/b"
--batch-file "channels.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment