Mopidy Discourse

Gstreamer failed to install ALAC

This is probably similar to Mopidy-YouTube "Your GStreamer installation is missing a plug-in."

Oct 28 11:44:42 pavi mopidy[9384]: WARNING [MainThread] Could not find a Apple Lossless Audio (ALAC) decoder to handle media.
Oct 28 11:44:42 pavi mopidy[9384]: INFO [MainThread] You might be able to fix this by running: gst-installer “gstreamer|1.0|mopidy|Apple Lossless Audio (ALAC) decoder|decoder-audio/x-alac, samplesize=(int)16”
Oct 28 11:44:42 pavi mopidy[9384]: WARNING [MainThread] GStreamer warning: No decoder available for type ‘audio/x-alac, codec_data=(buffer)00000024616c616300000000000010000010280a0e0200ff0000325a000dc6000000ac44, samplesize=(int)16, rate=(int)44100, channels=(int)2’.
Oct 28 11:44:42 pavi mopidy[9384]: ERROR [MainThread] GStreamer error: Your GStreamer installation is missing a plug-in.

Based on the error messages in mopidy’s logs, I tried running
sudo gstreamer-codec-install "gstreamer|1.0|mopidy|Apple Lossless Audio (ALAC) decoder|decoder-audio/x-alac"

but am getting an error related to gnome-packagekit? Is there a way to install these codecs that doesn’t require a desktop package installer?

edit: also, I have gstreamer-1.0-plugins-bad installed but gst-inspect doesn’t show ALAC support in the supplied codecs.

The alac decoder appears to live in the libav plugin collection, see

Try installing that: sudo apt install gstreamer1.0-libav

And there they are!

I’d been on a campaign to collect all of the gstreamer plugins that might have them and discovered libav during my install. I didn’t think it was working, but on restarting my mopidy service, my ALACs are now recognized.

That saves me some compute time converting those to FLACs. Thanks!