This is the tool building the screenshots behind 截圖道 (jeetou.com). Given a MKV video, it generates screenshots for every subtitle.
sudo apt install libav-tools libpng12-dev libass-dev
brew install libav libass
make all
mkv is a container of audio, video and subtitle. It could contains multiple subtitle of different languages. The first thing to do is to find the desired subtitle.
mkvinfo <mkvfile>
jeetou <<mkvfile>> <subtitle_track>
jeetou
extracts the subtitle file and repeats the above three steps for each subtitle.