Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
# Download best mp4 format available or any other best if no mp4 available(需要安装ffmpeg) $ youtube-dl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" # 下载Ytb自动生成字幕,设置格式为srt --write-auto-sub --sub-format srt
Installing FFmpeg in Windows: 下载最新build,解压缩到你选择的位置。为windows的环境变量path增加一个 ffmpeg路径\bin的路径,如
1
C:\ffmpeg\bin
配置软件的configure file
On Linux and macOS, the system wide configuration file is located at /etc/youtube-dl.conf and the user wide configuration file at ~/.config/youtube-dl/config. On Windows, the user wide configuration file locations are %APPDATA%\youtube-dl\config.txt or C:\Users\\youtube-dl.conf. Note that by default configuration file may not exist so you may need to create it yourself.
1 2 3 4 5 6 7 8 9 10 11 12 13
# Lines starting with # are comments
# Always extract audio -x
# Do not copy the mtime --no-mtime
# Use this proxy --proxy 127.0.0.1:3128
# Save all videos under Movies directory in your home directory -o ~/Movies/%(title)s.%(ext)s