I’m using Mopidy on my Pi Zero with the web front end and even though there are images embedded into the music files, the images don’t appear. I should mention that these files are locally stored on the Pi.
I saw some similar issues on GitHub which go back to 2014, but I wondered if this had been resolved yet?
Hi. Which web frontend? Please post your mopidy config. Mopidy-local-sqlite will return image data and mopidy-musicbox-webclient (amongst others) will display it.
I was able to fix the installation of Local Images by updating PIP
sudo apt-get remove python-pip
and
sudo easy_install pip
My problem now is that cover art is shown of MP3 files but not M4A files (although both file types play since I installed gstreamer1.0-plugins-bad. The images for M4A files (downloaded with get_iplayer) show when I play them in VLC.
Mopidy-Local-Images should support all file formats from which gstreamer can extract image metadata. I tested this with an .m4a file (AAC-encoded) I got from iTunes several years ago, and it was able to extract the embedded cover art:
$ mopidy -v local scan
...
INFO 2016-12-18 11:52:37,090 [4946:MainThread] mopidy.local.commands
Scanning...
INFO 2016-12-18 11:52:37,114 [4946:MainThread] mopidy_local_images.library
Creating file /home/tkem/.local/share/mopidy/local-images/caa787c8e4c83a25dcf40c5fe36300e9-600x600.jpeg
DEBUG 2016-12-18 11:52:37,116 [4946:MainThread] mopidy.local.commands
Added local:track:The%20First%20Four%20Years/01%20-%20Nervous%20Breakdown.m4a
...
To check whether gstreamer is able to find an embedded image in a specific file, you may try
This is what I get when I run that command, so it looks as though it has an image in it, but it’s still not being extracted
preview image: buffer of 4125 bytes, type: image/jpeg, width=(int)150, heigh$
QT atom: buffer of 25 bytes
container format: ISO MP4/M4A
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
I then run sudo mopidyctl local scan and sudo service mopidy restart which results in:
Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.c$
INFO Starting Mopidy 2.0.1
INFO Loading config from builtin defaults
INFO Loading config from /etc/mopidy/mopidy.conf
INFO Loading config from command line options
INFO Disabled extension alsamixer: Dependency The 'pyalsaaudio' distributio$
INFO Enabled extensions: mpd, local-images, stream, m3u, material-webclient$
INFO Disabled extensions: alsamixer
INFO Found 12 files in media_dir.
INFO Checking 12 tracks from library.
INFO Removing 0 missing tracks.
INFO Found 0 tracks which need to be updated.
INFO Scanning...
INFO Scanned 0 of 0 files in 0s.
INFO Cleaning up image directory
INFO Done scanning.
I checked the images directory again and I still only have the four for the MP3 files. The only odd thing I see is the message about alsa mixer.
I have installed what I think are all the gstreamer plugins needed with sudo apt-get install gstreamer0.10-plugins-bad gstreamer1.0-plugins-bad gstreamer0.10-plugins-ugly
mopidyctl local scan will skip files already in the database, hence the
So your command didn’t actually do anything
Please run mopidyctl local clean first, or try mopidyctl local scan --force to re-import all files. If that would take too long, you may also try to explicitly touch filename.m4a, which should make sure that filename.m4a gets uptdated next time you do a local scan.
Thank you, doing that did re scan the files again but still no images. I have done some further testing and it’s not all .m4a files only certain ones. However they all show images in VLC.
Is there anywhere I could possibly privately upload the file to you, if you would be willing to test it on your set-up?