Album and Cover Art Vis Plugin (xmp-coverart rev.8, source code)

Started by Barna,

Barna

Doesn't it say "The cover feature requires a newer XMPlay version. Please download the newest release from un4seen.com and/or use download the program from http://www.un4seen.com/stuff/xmplay.exe" ?
Even though I just saw that it's pretty much super broken English, go ahead with the download link there :-)
The EXE only releases in the stuff directory are the newest builds and the cover plugin requires a feature only recently added into XMPlay versions after the 3.4.2 release.

Bjossi

This is a great new feature for XMPlay, very good job!
One of the few album art features that work for ogg vorbis, albeit not in a traditional way. That is the main format I use for my music so this is a dream come true. ;)

By the way, check this link out.
http://www.hydrogenaudio.org/forums/index.php?showtopic=48386
Ogg vorbis doesn't support album art, but the effect can be "faked". It would be very neat if XMPlay could read that base64 data and display the picture with the help of your plugin. :)

Another thing I had in mind is if you could support a secondary album name method. I'm not a big fan of duplicates so you can imagine I don't like having a bunch of Cover.jpg's scattered about. What I had in mind is to direct XMPlay to a folder, like C:\XMPlay\AlbumArt, and in there you put all the album art files named after the album. For example, you put Crash Test 02.jpg into XMPlay\AlbumArt, this means all files that have their album tag set to Crash Test 02 will display that picture.

This could be a drop-down setting for this plugin. Like selecting between Traditional and Advanced cover art file management.

Dotpitch

Quote from: BjossiWhat I had in mind is to direct XMPlay to a folder, like C:\XMPlay\AlbumArt, and in there you put all the album art files named after the album.
Middle click the visual, go to Auto-download > 'Set default cover directory' and select your folder :). It won't download anything if there's already a matching file.

Barna: if the middle click-menu is opened and the Info window is closed with a shortcut, XMPlay vanishes.

Bjossi

Thanks for the tip! It works wonderfully, exactly what I had in mind!

I have noticed something odd, but I'm not sure if it is connected with this plugin; I can no longer see number of frames/pages in a song. It was being displayed prior to installing this. Cycling through skins doesn't have any effect, the frames/pages is gone on all of them. *scratches head*

Ian @ un4seen

Quote from: BjossiI have noticed something odd, but I'm not sure if it is connected with this plugin; I can no longer see number of frames/pages in a song. It was being displayed prior to installing this. Cycling through skins doesn't have any effect, the frames/pages is gone on all of them. *scratches head*

The orders/frames/pages info was actually removed in one of the XMPlay "stuff" updates, for this reason...

   www.un4seen.com/forum/?topic=6977.msg56641#msg56641

I'm not 100% decided on that, so it may still reappear. I may also put the frames/pages information in the "General" info page (where the "orders" is already shown for MODs).

Bjossi

Putting it there would be fine by me. But to be honest I could get used to not seeing number of pages or frames, to me it serves no special purpose. The player just looks weird with an empty space. :P

Oh, and I was wondering; is there a way to configure the size of the album art displayed in the visuals tab? Sometimes text on the cover is unreadable due to the small size. Most of the pictures I have are pretty big so a small size increase wouldn't affect quality.

Dotpitch

Quote from: Bjossi...is there a way to configure the size of the album art displayed in the visuals tab?
Sure, just enlarge the whole window by dragging the bottom corner :). Perhaps tick auto-resize off and remove any rendering restrictions for visuals as well.

Bjossi

That did the trick, but now the contents of the other tabs in the info window look weird.
Like the tags, they look so lonely in the center of that big window. :P

Lesmo16

Quote from xmp-coverart.txt:

"The configuration of the cover art can be accessed by middle clicking the visuals screen."

Well ... quite a problem with my HP Compaq Notebook with 2 buttons Synaptics Touchpad. ::)

I googled suggestions like <Shift+LMB> or <LMB+RMB> but nothing works.


@Barna: What do you think about a keyboard shortcut?

Barna

On my laptop I can tip ON the touchpad with two fingers to get a middle mouse button click (three fingers = right MB). I think it's synaptics, too, plus the laptop itself is nothing fancy or so, so it may be a standard feature. Try that :-)

The middle mouse requirement is not something I added, but a feature of the visuals implementation in XMPlay. So maybe Ian could add a ctrl/shift left/right click option to get the same result. Otherwise I could look into adding a shortcut either to XMPlay or hard code one into the plugin itself.

Ian @ un4seen

Quote from: BjossiThat did the trick, but now the contents of the other tabs in the info window look weird.
Like the tags, they look so lonely in the center of that big window. :P

The vis window size should be retained, so just enlarging that (without disabling auto-resize) should suffice.

Quote from: BarnaThe middle mouse requirement is not something I added, but a feature of the visuals implementation in XMPlay. So maybe Ian could add a ctrl/shift left/right click option to get the same result.

This has come up before, but I haven't changed things yet as I'm not entirely sure what the "Clicked" function's "buttons" parameter is meant to be. It suggests that multiple buttons may be supported, but there's no information in the Sonique API. Perhaps you know something about it? :)

Lesmo16

Quote from: BarnaOn my laptop I can tip ON the touchpad with two fingers to get a middle mouse button click (three fingers = right MB). I think it's synaptics, too, plus the laptop itself is nothing fancy or so, so it may be a standard feature. Try that :-)

Thanks, but that doesn't work either.

Sam_Zen

This plugin works fine, when showing one album bitmap in PNG or JPG format,
but i'm not able to stop the playback anymore, other than closing the application.
This is a bug, I think.

Barna

Does the same kind of frozen state occur on a clean XMPlay application directory with just xmplay.exe and xmp-coverart.svp?
On what kind of media file does that happen for you? One with a cover included (ID3, FLAC, MP4) or with an external PNG/JPEG file in the same directory as the song you're playing?

Sam_Zen

It's not a matter of a frozen state. And I must add that this is happening in the full-screen representation.
Then, the only command available is to disable the function via the context menu.
Stopping some playback is not directly possible.

EDIT: In the meantime I noticed, that, if two bitmaps are in the dir, a JPG is shown, not a PNG.

Dotpitch

Quote from: Sam_ZenIn the meantime I noticed, that, if two bitmaps are in the dir, a JPG is shown, not a PNG.
Middle click > Select cover? The JPG is just chosen first by the plugin.

Quote from: Sam_ZenThen, the only command available is to disable the function via the context menu.
Wait, are you using the latest version? The previous version (with Winamp visuals) had a 'Disable' command, but the current xmp-coverart does not.

Sam_Zen

Quite a pity the BMP, or another uncompressed format, is not supported by this plugin, by the way.
Thanks Dotpitch. Nice tip about the Middle click for the choice. Is there a keyboard equivalent for the middle click ?
I think I'm using the latest version.

Cypress

Mhh ... I can only say thanks 4 this great plugin it makes xmplay even better..  (posting from my k300 usin' opera mini)

Sam_Zen

Right on, Cypress. I forgot to express my thanks for this great tool, of which I've searched for a long time..
I did some testing, and it's even possible to give every track of the album its own bitmap.
For example the cover, but with the track-title edited on it. As another file of course.
If every track has its own subdir, with that bitmap included, and the proper path-decription is in the playlist-file, it will work.

Sam_Zen

Hmm. I did some testing with non-square bitmaps to use as cover art during playing.
I did this by adding some information at the right side of the cover. Two examples :



Strange thing is, the first one is shown correctly by XMP while running a song or the playlist,
while the second one only shows the left half of the bitmap. I don't understand this.