The audio + screenshot + text sent to Anki for review script sounds awesome as well as the current subtitle analysis. Can you share these?
The code is here https://github.com/pigoz/mpv-nihongo, keep in mind that a lot of stuff is hardcoded, poorly documented, and it requires an mpv patch to work.
If there's enough interest, I can try and make it simple for someone that's not me to use.