Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: [CRASHWARE] updated foo_uie_albumart (Read 694563 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[CRASHWARE] updated foo_uie_albumart

Reply #450
My music files are stored in a series of folders in the name of the artist with the corresponding album art for the files in the artist folder.  As such, these folders have varying number of .jpg files.  What I want to do is randomly cycle through all the .jpg files in a given artist folder for a playing track.  I cannot figure out how to do this with the $rand() function because the number of .jpg files varies from folder to folder, and therefore, simply appending a random number to end of of a .jpg file name will not work because the number of .jpg files for the maximum random number to be generated varies from folder to folder.  Could someone help me with the code for a source that would go to the given folder for the then playing artist and randomly cycle through all the.jpg files in the corresponding artist folder, taking into account that the number of .jpg files in a given folder will vary.


To my knowledge you will not solve your request until you are able to get the number of jpg files while playing a song. You can add a tag to your songs including these numbers, or you include the number in the path name.

[CRASHWARE] updated foo_uie_albumart

Reply #451
My music files are stored in a series of folders in the name of the artist with the corresponding album art for the files in the artist folder.  As such, these folders have varying number of .jpg files.  What I want to do is randomly cycle through all the .jpg files in a given artist folder for a playing track.  I cannot figure out how to do this with the $rand() function because the number of .jpg files varies from folder to folder, and therefore, simply appending a random number to end of of a .jpg file name will not work because the number of .jpg files for the maximum random number to be generated varies from folder to folder.  Could someone help me with the code for a source that would go to the given folder for the then playing artist and randomly cycle through all the.jpg files in the corresponding artist folder, taking into account that the number of .jpg files in a given folder will vary.


To my knowledge you will not solve your request until you are able to get the number of jpg files while playing a song. You can add a tag to your songs including these numbers, or you include the number in the path name.



Thanks for the response which has given me a good idea on how to solve my problem.  Is anyone aware of any software that can copy a series of files from a given folder and paste them into a subfolder named with a number representing the total number of files that were pasted into the subfolder.  This way I could use the subfolder name as the maximum number for the $rand() function.

[CRASHWARE] updated foo_uie_albumart

Reply #452
Great component!

I have just one feature request: Could you add a user-defined amount of flexibility to the "Maintain aspect ratio" option? I would like my almost-square art to fill the panel but my clearly rectangular art to be left alone. Seems simple enough - you could get a numeric value for how far an image strays from being square by just calculating
Code: [Select]
(width in pixels)/(height in pixels) - 1
Though you would want to switch width and height if the image were higher than it was long, just to be consistent.

Thanks!

[CRASHWARE] updated foo_uie_albumart

Reply #453
Thanks for the response which has given me a good idea on how to solve my problem.  Is anyone aware of any software that can copy a series of files from a given folder and paste them into a subfolder named with a number representing the total number of files that were pasted into the subfolder.  This way I could use the subfolder name as the maximum number for the $rand() function.


You can use Active Perl.
This software offers all you need to generate folders named e.g. x_count and to move specific files into this subfolder. You just have to build a script.

[CRASHWARE] updated foo_uie_albumart

Reply #454
Can anybody tell me what source code to put in to get all the images in the path folder i.e front , back and disc to be displayed one after the other after x secs?
Im using the default source settings but only get one picture up .How do i get it to scroll through all the pictures ?
I have searched hi and low and cannot find what im looking for.

This foobar is a great application but its a very steep learning curve for me, a lot of the links , info ive read so far has just flown right over my head, so any help would be appreciated.

cheers

[CRASHWARE] updated foo_uie_albumart

Reply #455
You can try this one:

Code: [Select]
match:$replace(%_path%,%_filename_ext%,)*front*
match:$replace(%_path%,%_filename_ext%,)*cover*
match:$replace(%_path%,%_filename_ext%,)*back*
match:$replace(%_path%,%_filename_ext%,)*inlay*
match:$replace(%_path%,%_filename_ext%,)*inside*
match:$replace(%_path%,%_filename_ext%,)*outside*
match:$replace(%_path%,%_filename_ext%,)*cd.*
match:$replace(%_path%,%_filename_ext%,)*cd)*
match:$replace(%_path%,%_filename_ext%,)*disc*
match:$replace(%_path%,%_filename_ext%,)*cd-*
$replace(%_path%,%_filename_ext%,)folder.jpg
$replace(%_path%,%_filename_ext%,)*
-components\default.jpg


If you have pictures that do not match the patterns, you have to add some patterns like:
Code: [Select]
match:$replace(%_path%,%_filename_ext%,)*part_of_filename*

If the pattern matches two or more files, only the first one is shown (no cycling inside the pattern).
Cya(o)
      Rainer

[CRASHWARE] updated foo_uie_albumart

Reply #456
I have foobar2000 v0.9.2 beta 5. This is the error I'm getting:

Code: [Select]
Failed to load DLL: foo_uie_albumart.dll
Reason: This component is missing a required dependency, or was made for different version of foobar2000.


Sorry if the answer is obvious, but how do I fix it? Or that version of the player is indeed not supported?

[CRASHWARE] updated foo_uie_albumart

Reply #457
You can try this one:

Code: [Select]
match:$replace(%_path%,%_filename_ext%,)*front*
match:$replace(%_path%,%_filename_ext%,)*cover*
match:$replace(%_path%,%_filename_ext%,)*back*
match:$replace(%_path%,%_filename_ext%,)*inlay*
match:$replace(%_path%,%_filename_ext%,)*inside*
match:$replace(%_path%,%_filename_ext%,)*outside*
match:$replace(%_path%,%_filename_ext%,)*cd.*
match:$replace(%_path%,%_filename_ext%,)*cd)*
match:$replace(%_path%,%_filename_ext%,)*disc*
match:$replace(%_path%,%_filename_ext%,)*cd-*
$replace(%_path%,%_filename_ext%,)folder.jpg
$replace(%_path%,%_filename_ext%,)*
-components\default.jpg


If you have pictures that do not match the patterns, you have to add some patterns like:
Code: [Select]
match:$replace(%_path%,%_filename_ext%,)*part_of_filename*

If the pattern matches two or more files, only the first one is shown (no cycling inside the pattern).


thanks for that will try tommorrow

[CRASHWARE] updated foo_uie_albumart

Reply #458


Thanks for the response which has given me a good idea on how to solve my problem.  Is anyone aware of any software that can copy a series of files from a given folder and paste them into a subfolder named with a number representing the total number of files that were pasted into the subfolder.  This way I could use the subfolder name as the maximum number for the $rand() function.


You can use Active Perl.
This software offers all you need to generate folders named e.g. x_count and to move specific files into this subfolder. You just have to build a script.


Thanks again, but I was hoping for a bit of a simplier cookie cutter approach.  I sure if I really worked at it, I could learn enough to hack together a script, but my program skills and time limitations are a bit constrained.  Do you know of any prepackaged solution?

[CRASHWARE] updated foo_uie_albumart

Reply #459
I would like to submit the idea of two checkboxes
'vertical shrink'
'horizontal shrink'
instead of only
'shrink image to fit'

what do you think about it, could it be possible ?

It's possible, but I'm not going to be adding it.  I'm trying to keep the preferences as light as possible, and I just don't see a good reason to add those two options.  Why would you want to shrink an image in only one direction?

I have just one feature request: Could you add a user-defined amount of flexibility to the "Maintain aspect ratio" option? I would like my almost-square art to fill the panel but my clearly rectangular art to be left alone.

I'll think about it, but see my above comment about keeping preferences light.

I have foobar2000 v0.9.2 beta 5. This is the error I'm getting:

Code: [Select]
Failed to load DLL: foo_uie_albumart.dll
Reason: This component is missing a required dependency, or was made for different version of foobar2000.


Sorry if the answer is obvious, but how do I fix it? Or that version of the player is indeed not supported?

If you're on Windows 2000, make sure you get Gdiplus.dll.

Code: [Select]
match:$replace(%_path%,%_filename_ext%,)*part_of_filename*

As an aside/reminder, "match:" is unnecessary and ignored since version 0.160.  "match:$replace(%_path%,%_filename_ext%,)*" is treated exactly the same as "$replace(%_path%,%_filename_ext%,)*".

[CRASHWARE] updated foo_uie_albumart

Reply #460
gfngfgf,

Actually, I'm using Windows XP x64. I tried copying the dll you mentioned to both system folders (SysWOW64 and system32) and restarted foobar. Same error.

[CRASHWARE] updated foo_uie_albumart

Reply #461
gfngfgf,

Actually, I'm using Windows XP x64. I tried copying the dll you mentioned to both system folders (SysWOW64 and system32) and restarted foobar. Same error.

Well, you shouldn't need to install gdiplus if you have any version of Windows XP.  Honestly, I don't have the capability to test on XP64, so I really can't help.  Maybe if someone is using XP64 and Album Art Panel, he/she can help.

[CRASHWARE] updated foo_uie_albumart

Reply #462
Thanks again, but I was hoping for a bit of a simplier cookie cutter approach.  I sure if I really worked at it, I could learn enough to hack together a script, but my program skills and time limitations are a bit constrained.  Do you know of any prepackaged solution?


Maybe a "prepackaged solution" exist, but imo it's unlikely, since your task is very special. I needed  to program a Perl script in a similar situation. Although my prgramming skills are limited, after 3 to 4 hours I got a script (about 20 lines).
You will find easy to understand tutorials in the web.
The advantage of a script is that (once created) you can use it again and again.

[CRASHWARE] updated foo_uie_albumart

Reply #463
gfngfgf,

about that new resizing option - maybe one to proportionally enlarge / shrink the image so that there would be no space left (taking padding into account). i have my album art panel sized for 1:1 covers, though quite often the cover image is not sqare (either by a small disproportion, or almost 1:2 or 2:1 when there's "open cover" shot).

from aesthetical point of view, i wouldn't mind not seeing the whole image - in exchange of filling the whole space.

[CRASHWARE] updated foo_uie_albumart

Reply #464
Hey Guys,

I just noticed that album art plugin eats 30-40% of CPU on my machine. What's wrong with it? Does it really require that many processor power to show the image?

[CRASHWARE] updated foo_uie_albumart

Reply #465
gfngfgf,

about that new resizing option - maybe one to proportionally enlarge / shrink the image so that there would be no space left (taking padding into account). i have my album art panel sized for 1:1 covers, though quite often the cover image is not sqare (either by a small disproportion, or almost 1:2 or 2:1 when there's "open cover" shot).

from aesthetical point of view, i wouldn't mind not seeing the whole image - in exchange of filling the whole space.

That sounds pretty good to me.  Basically, it would maintain the aspect ratio, but zoom until the area is filled.  This would be very handy, as I have some cassette only stuff, and cassette covers are definetaly not square and certainly don't look good stretched out.  Not a critical request, but would certainly add to the appeal of the plugin.

[CRASHWARE] updated foo_uie_albumart

Reply #466
Hey Guys,

I just noticed that album art plugin eats 30-40% of CPU on my machine. What's wrong with it? Does it really require that many processor power to show the image?

What speed/type of processor?  I am aware that the CPU usage spikes fairly high when fading between sources, but I'm not aware of any other major slowdowns.  Try lowering the resizing quality, as that can contribute to CPU usage as well.

[CRASHWARE] updated foo_uie_albumart

Reply #467
Yeah, I'll try to do that. The processor is Intel Pentium 4 - 3.2GHz.
By the way does it really matter for album art plugin if I have FB2K minimized?

Thanks.


Hey Guys,

I just noticed that album art plugin eats 30-40% of CPU on my machine. What's wrong with it? Does it really require that many processor power to show the image?

What speed/type of processor?  I am aware that the CPU usage spikes fairly high when fading between sources, but I'm not aware of any other major slowdowns.  Try lowering the resizing quality, as that can contribute to CPU usage as well.

[CRASHWARE] updated foo_uie_albumart

Reply #468
<<nevermind>>

[CRASHWARE] updated foo_uie_albumart

Reply #469
Yeah, I'll try to do that. The processor is Intel Pentium 4 - 3.2GHz.
By the way does it really matter for album art plugin if I have FB2K minimized?

Hmm, you shouldn't have that high usage just from album art.  Are you absolutely certain it's album art panel's fault (that is, have you tried uninstalling album art and seeing if you still have the high cpu usage)?  What OS?

What do mean "does it really matter" if fb2k is minimized?  If you're still talking about the CPU usage, I'm not too sure.  If my theory is correct and the image-drawing code is what's causing the high CPU usage, then minimizing foobar2000 should help.

[CRASHWARE] updated foo_uie_albumart

Reply #470
I dont know how to address this, but it seems that when album are is loaded into the columns UI interface, it locks up foobar2000. This also happens when I press play and when i first start up foobar.


gfngfgf, ive found the source of my problems...

The default search string was looking in my music folder for album art.

On another note... some of my music has characters that windows wont allow to be in the filename (Ex. AC/DC - Highway to hell). How would i be able to name my files without the characters windows wont allow and still have the album art show?

My current format for sources is:
C:\art\%artist%-%album%.*
-C:\art\default.*

[CRASHWARE] updated foo_uie_albumart

Reply #471
gfngfgf, ive found the source of my problems...

The default search string was looking in my music folder for album art.

I'm glad you were able to solve your problem.

On another note... some of my music has characters that windows wont allow to be in the filename (Ex. AC/DC - Highway to hell). How would i be able to name my files without the characters windows wont allow and still have the album art show?

My current format for sources is:
C:\art\%artist%-%album%.*
-C:\art\default.*

The current behavior is that each restricted character is replaced by the wildcard '?', which matches a single character.  Thus, for your example, you could name your file "AC_DC - Highway to hell" (the underscore could be any character...as long as there's something in place of the slash).

[CRASHWARE] updated foo_uie_albumart

Reply #472
Stuart60611: There is another solution to your problem, but it may be a bit "unfair" (some photos will be rarely selected) if the possible number of photos may vary much.

Draft of the idea:
Let's say the max number of photos per artist is 10, but for this particular artist you have 5 photos.
First rule matches with random(10). If you're lucky, it's a hit. If you're unlucky (for example try to get photo #8), next rule is tried. And next rule is... random(9). Sooner or later, you'll get a match, because last rule selects photo #1.
If max number of photos you have is much bigger than 10 (let's say 100), it may be not a good idea to have 100 rules. Then you can have random(100), random(90), etc. But this way, "last" photos may be hard to pick, I guess.
Maciek

 

[CRASHWARE] updated foo_uie_albumart

Reply #473
2 questions

- how can I get album covers from INSIDE Foobar with foo_run and which .exe and which dedicated scripts ?

- is it possible to display random pics from external folder, alternatively with album cover ? script ?

Thanks a lot for help
les conquérants de l'inutile

[CRASHWARE] updated foo_uie_albumart

Reply #474
Hi Foobarians!

A little question :

I got some covers like :

akfgcdcover40.jpg
akfgcdcover41.jpg
akfgcdcover43.jpg
akfgcdcover45.jpg
akfgcdcover49.jpg

etc...

how the hell can I make for that albumart match all and cicle between them ?

Thanks and sorry the crapy english 
Ready Steady Go