When I double-click on the audio icon of cards, a message pops up: Sounds and video on cards will not function until mpv or mplayer is installed. So it does not play audios. What should I do?
I’m using Mac 10.15.7. Only 2.1.44 Anki opens on my Laptop.
Basic options:
–start= seek to given (percent, seconds, or hh:mm:ss) position
–no-audio do not play sound
–no-video do not play video
–fs fullscreen playback
–sub-file= specify subtitle file to use
–playlist= specify playlist file
–list-options list all mpv options
–h= print options which contain the given string in their name
if you put an mp3 file in your home folder and add " ~/filename.mp3" at the end of that line, does the audio play? I presume you haven’t installed a separate copy of mpv in the past?
If you’ve installed mpv in the past, maybe the system-installed version or one of its config files is interfering with Anki’s bundled version. You could try running Anki from a terminal (/Applications/Anki.app/Contents/MacOS/AnkiMac) and see if that reveals anything further.
Thank you for your help. Audio sounds when I run Anki from terminal. I put
/Applications/Anki.app/Contents/Resources/audio/mpv and
/Applications/Anki.app/Contents/MacOS/AnkiMac, then press enter in Terminal.
I hope the problem will be solved as soon as possible as it takes time to run it from terminal instead of double clicking on Anki.
Are you saying that Anki correctly plays audio when it is run from the terminal? That implies it’s something to do with your environment; perhaps your PATH is configured differently when running GUI apps.
If Anki is not run from the terminal, a message pops up when I double-click on the audio icon of cards: Sounds and video on cards will not function until mpv or mplayer is installed.