工作流程
Youtube-dl: youtube下载视频及下载自动生成字幕
Aegisub: 整理及制作中文字幕
小丸压制工具: 压制
第一步 下载视频(youtube-dl使用笔记)
youtube-dl是一款强大的开源软件,据说可以下载任意网站的视频
需要系统中安装python
如果安装了pip,可使用1
sudo -H pip install --upgrade youtube-dl
或是Mac系统安装Homebrew之后:1
brew install youtube-dl
下载命令
(windows系统中使用双引号,其他系统单引号)1
2
3
4# 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
所以合起来的命令是1
youtube-dl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" --write-auto-sub --sub-format srt URL
youtube-dl
安装ffmpeg
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\
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
misc:下载Ytb视频的封面
查看网页源代码中,Ctrl+f搜索default.jpg或者thumbnail
或者使用网页:http://thumbnailsave.com/
第二步 Aegisub字幕制作
Aegisub的功能十分强大,依靠简单的代码可以实现淡入、淡出、旋转、变色、平移等特效,配合附带的ASSDraw3矢量图绘制软件,甚至可以在特效上一定程度上取代视频编辑软件。
1 听写
只要有视频播放器和笔记本就可以。每一段都另起一行
2 打轴
将听写内容直接粘贴到Aegisub中。打轴详见教程av6527949