hoyon / mpv-mpris

MPRIS plugin for mpv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for mpris:artUrl

Vexatos opened this issue · comments

Would be nice to have album art displayed by software that supports it. I guess for embedded art, a temp file would have to be created for this to work.

That would indeed be very nice. I briefly played around with this in the past but since, as far as I can tell, there is no way to access the album art from the mpv api, it is pretty difficult. Although it's possible I've missed it since the docs can be quite cryptic at times.

For embedded artwork I tried manually loading the file using ffmpeg which sort of worked but it didn't seem very robust and I don't really have the time to be delving too deep into ffmpeg.

Perhaps the plugin could look for external album art in the directory of the current file, but I'm not aware if there is any standard or convention for naming album art files. Maybe just the first *.jpg found in the directory?

It might be jpg or png, but generally, this might already be a good start. I also checked the docs briefly and couldn't find very much.

antlarr's lua-mpris plugin for mpv looks for external album art in the directory of the current file: antlarr/lua-mpris@1f2b53f

Perhaps we can refer to VLC for the list of external album art files to look for?

Thanks for the nudge @86423355844265459587182778 , hopefully this works for external images.

I don't plan on ever supporting embedded artwork due to the complexity. That is, unless mpv adds a way to access it (unlikely).