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.
Step 1
First, you need a computer with Mac OS X, and make sure Homebrew is installed.
Step 2
Install ffmpeg and libass with Homebrew.
1 | brew install ffmpeg --with-libass |
You should see follow lines once the installation finished.
1 | 🍺 /usr/local/Cellar/ffmpeg/3.3.3: 243 files, 51.0MB, built in 9 minutes 5 seconds |
Step 3
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:
1 | #!/bin/sh |
Step 4
Edit the config file as you wish, then run render.sh with bash.
1 | bash render.sh |
Done! You’re welcome.