A similar post has already been here: <a href="https://news.ycombinator.com/item?id=23312259" rel="nofollow">https://news.ycombinator.com/item?id=23312259</a>
but I decided to improve it and it may be useful to someone.
I corrected code, added docker configuration and more detailed descriptions. I also simplified the preparation of input video for animations not in real time. Everything should work automatically.