This is very impressive.
One possible option is to install Anki 2.1.35-alternate and use this Anki version or replace mpv.exe in C:\Program Files\Anki with mplayer.exe from C:\Program Files (x86)\Anki, e.g. by renaming or deleting mpv.exe so Anki couldn’t find it.
Otherwise, I’m not sure where is the problem but the log file looks good to me, I see there “Run command: loadfile” with the actual audio file, but for some reason the log file is cut short and there no log entries that mean that the audio playback was successful. Maybe mpv got unresponsive or maybe it’s something else.
Just to be sure that “mpv.debug.log.txt” will still be the same and as before end with
[ 74.652][d][ao/wasapi] Init wasapi thread
[ 74.652][d][ao/wasapi] Activating pAudioClient interface
maybe start Anki with anki-console.exe and run the following code in the Debug Console to play the audio file with Anki.
filename = "ATTS audio02.mp3"
import os
from aqt.sound import mpvManager
path = os.path.join(os.getcwd(), filename)
mpvManager.command("loadfile", path, "append-play")
I assume there will be no sound. After waiting for a few seconds it should be safe to upload the log file on gofile.io or open it in the text editor.
The correct log file should look something like
[ 66.004][d][ao/wasapi] Init wasapi thread
[ 66.004][d][ao/wasapi] Activating pAudioClient interface
[ 66.007][d][ao/wasapi] Probing formats
[ 66.054][v][ao/wasapi] Trying stereo float (32/32 bits) @ 48000hz (shared) -> ok
[ 66.054][v][ao/wasapi] Accepted as stereo float @ 48000hz -> stereo float (32/32 bits) @ 48000hz (shared)
[ 66.054][d][ao/wasapi] Fixing format
[ 66.054][d][ao/wasapi] IAudioClient::GetDevicePeriod
[ 66.054][v][ao/wasapi] Device period: 10 ms
[ 66.054][d][ao/wasapi] IAudioClient::Initialize
[ 66.084][d][ao/wasapi] IAudioClient::Initialize pRenderClient
[ 66.084][d][ao/wasapi] IAudioClient::Initialize IAudioClient_SetEventHandle
[ 66.084][d][ao/wasapi] IAudioClient::Initialize IAudioClient_GetBufferSize
[ 66.084][v][ao/wasapi] Buffer frame count: 2400 (50 ms)
[ 66.084][v][ao/wasapi] IAudioClock::GetFrequency gave a frequency of 384000.
[ 66.087][d][ao/wasapi] IAudioClient::Initialize pAudioVolume
[ 66.087][d][ao/wasapi] Entering dispatch loop
[ 66.087][d][ao/wasapi] Init wasapi done
[ 66.087][v][ao/wasapi] device buffer: 2400 samples.
[ 66.087][v][ao/wasapi] using soft-buffer of 9600 samples.
[ 66.087][i][cplayer] AO: [wasapi] 48000Hz stereo 2ch float
[ 66.087][v][cplayer] AO: Description: Windows WASAPI audio output (event mode)
[ 66.088][v][autoconvert] inserting resampler
[ 66.088][v][swresample] format change, reinitializing resampler
[ 66.088][v][swresample] 44100Hz stereo floatp -> 48000Hz stereo float
[ 66.088][v][af] [out] 48000Hz stereo 2ch float
[ 66.089][d][osc] osc_init
[ 66.089][v][cplayer] audio ready
[ 66.089][v][cplayer] starting audio playback
Also it might be better to open the Task Manager or Process Explorer and double-check that mpv.exe is still there.
After that, maybe play the same audio file directly with mpv.exe but with log-file enabled and upload it on gofile.io so we could compare two log files for any significant differences.
To enable logging with mpv.exe and create the log file on Desktop, either open cmd.exe in C:\Program Files\Anki, copy-paste something like mpv --log-file=%USERPROFILE%\Desktop\mpv.log.txt
and drag-and-drop the audio file from the collection.media folder, i.e. it will look like
mpv --log-file=%USERPROFILE%\Desktop\mpv.log.txt "C:\Users\Nickolay\AppData\Roaming\Anki2\# Debug\collection.media\ATTS audio02.mp3"
https://lifehacker.com/quickly-open-a-command-prompt-from-the-windows-explorer-5989434
or create mpv
folder in %APPDATA%
and put there mpv.conf
containing something like this
log-file=C:\Users\Nickolay\Desktop\mpv.log.2.txt
and drag-and-drop the audio file to mpv.exe.