Closed cwmke closed 6 years ago
Anki uses mplayer and this can't be trivially replaced with another audio player because it actually uses mplayer features (manages a playlist etc).
Wondering if there might be legal concerns with codecs etc, I looked at building a minimal mplayer only with support for MP3/vorbis/wav. But that's pretty hard.
Giving up on that, and thinking of another approach: what does Debian do?
Debian preinstalls loads of build deps and then builds mplayer with these args:
CONFIGURE_FLAGS = \
--prefix=/usr \
--confdir=/etc/mplayer \
--enable-xvmc \
--enable-menu \
--enable-radio --enable-radio-capture \
--disable-arts \
--language=all
That'll use the internal ffmpeg with loads of demuxers/filters/decoders enabled.
I could just use a similarly small set of build args and let mplayer's autodetection do the rest (based on which other libs are available in the build root), also including many internal ffmpeg-supported formats. I'm thinking if Debian are OK shipping it along these lines then we should be too?
@nedrichards @ramcq thoughts?
Not sure if this helps any but doesn't Anki use mpv now with the 2.1 series?
Ah, I didn't realise that. mplayer is only used as a fallback if mpv is not available. And I can copy mpv from the existing flathub io.github.GnomeMpv.json
Pushed that. Should be published shortly.
I don't have errors anymore but audio still doesn't seem to work.
I have the same problem
Trying this out but I get an error stating it needs mpv or mplayer installed. I'm running Fedora 28.