Unusable lags on cards with audio, likely due to mpv

On cards with audio, the app gets absurdly laggy (5~10 seconds to proceed to next card), and mpv even keeps running in the background after quitting anki. Using alternate build seems to get rid of the issue. Not sure what exactly is the issue here. I have been using a fairly old build of anki (years ago) and decided to update to the latest one and only encountered it on non alternate latest builds.

Anki version, OS version/platform?

1 Like

Windows 10, issue on standard both versions 2.1.40 and 2.1.35

I don’t know why it didn’t happen this time but in normal circumstances Anki will close mpv process on exit.

It might go nowhere, but maybe create a log file for mpv using the Debug Console just for the current Anki session, then reproduce a laggy behaviour and upload mpv.log.txt from the Desktop folder on https://gofile.io/ or somewhere else.

https://docs.ankiweb.net/#/misc?id=debug-console

from aqt.sound import mpvManager
path = os.path.expanduser("~/Desktop/mpv.log.txt")
mpvManager.set_property("log-file", path)
print(mpvManager.get_property("log-file"))
2 Likes