持续更新中
youtube-dl下载常用命令

$ youtube-dl --get-filename -o '%(title)s.%(ext)s' BaW_jenozKc
youtube-dl test video ''_ä↭?.mp4

# 各种怪异的字符

$ youtube-dl --get-filename -o '%(title)s.%(ext)s' BaW_jenozKc --restrict-filenames
youtube-dl_test_video_.mp4

# 一个简单的文件名

# 在播放列表中按视频顺序索引的单独目录中下载YouTube播放列表视频

$ youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re

#下载YouTube频道/用户的所有播放列表,将每个播放列表保存在单独的目录中:

$ youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/user/TheLinuxFoundation/playlists

# 下载Udemy课程,将每章保存在家中MyVideos目录下的单独目录中

$ youtube-dl -u user -p password -o '~/MyVideos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/java-tutorial/

# 下载整个系列赛的季节保存每个系列和每个赛季在单独的目录下 C:/MyVideos

$ youtube-dl -o "C:/MyVideos/%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s" https://videomore.ru/kino_v_detalayah/5_sezon/367617

# 流式视频下载到标准输出

$ youtube-dl -o - BaW_jenozKc