I was planned to download a Blibli video with funny bullet screen build-in. But the Chrome extension Bilibili Helper is only able to download source video and separate .ass file.
So I tried to google the way how to hardcode .ass subtitles into .mp4 video, and I found FPSLuoziASSSubs . It’s a simple Mac OS X command line tool which is so easy to use, really surprised me.
First, you need a computer with Mac OS X, and make sure Homebrew is installed.
Install ffmpeg and libass with Homebrew.
brew install ffmpeg --with-libass
You should see follow lines once the installation finished.
🍺 /usr/local/Cellar/ffmpeg/3.3.3: 243 files, 51.0MB, built in 9 minutes 5 seconds
Keep your .mp4 and .ass file names simple, should not contain any special characters and blank spaces. Create a new file named
render.sh, paste follow content:
Edit the config file as you wish, then run render.sh with bash.
Done! You’re welcome.