Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  AlbumArt not shown in UISimulator
« previous next »
  • Print
Pages: [1]

Author Topic: AlbumArt not shown in UISimulator  (Read 3492 times)

Offline cereal_killer

  • Member
  • *
  • Posts: 452
AlbumArt not shown in UISimulator
« on: March 03, 2023, 05:03:38 PM »
I successfully compiled an UISim for the iPod 6G and the Cowon D2 using recent Ubuntu, but AlbumArt is not shown in the WPS or in pictureflow. I use Folder.jpg in every folder and it works on the actual device. Selecting the file in the browser shows the image in the UISim tough. How can I solve this issue?

Kind regards
c_k
Logged

Offline Thew

  • Member
  • *
  • Posts: 27
Re: AlbumArt not shown in UISimulator
« Reply #1 on: March 04, 2023, 06:36:47 AM »
Have you tried folder.jpg? ie all lowercase. I know that might sound unlikely but on one of my Rockboxed players only the lowercase version works.
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 452
Re: AlbumArt not shown in UISimulator
« Reply #2 on: March 04, 2023, 01:17:39 PM »
Hello Thew,

thank you for your response. Your suggestion solved the problem. All albumart is shown now in WPS and pictureflow. I am wondering if there is a reason, that there is case sensitivity. How could this be changed, because I ddon't really like to rename all files.

Kind regards
c_k
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 305
Re: AlbumArt not shown in UISimulator
« Reply #3 on: March 04, 2023, 05:27:32 PM »
The sim uses the host OS to access files -- in your case Linux -- and it's case sensitive because Linux is case sensitive. If you compile and run the sim on a case insensitive OS, like Windows, it would be case insensitive.

Rockbox itself is generally case insensitive which is why "Folder.jpg" is OK on the device, but the sim doesn't bother to emulate that detail because it usually doesn't matter.
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 452
Re: AlbumArt not shown in UISimulator
« Reply #4 on: March 06, 2023, 04:45:20 PM »
Thank you amachronic for your explanantion. I think I understood. I am wondering if I could "teach" the simulator to accept "Folder.jpg" as albumart. I had a look at the source code, but can't make sense of it. "folder.jpg" is mentioned here: https://git.rockbox.org/cgit/rockbox.git/tree/apps/recorder/albumart.c#n191 Are there any changes in the code possible to make the UISimulator accepr Folder.jpg?
Logged

Offline amachronic

  • Developer
  • Member
  • *
  • Posts: 305
Re: AlbumArt not shown in UISimulator
« Reply #5 on: March 07, 2023, 04:03:54 AM »
Changing it to "Folder.jpg" would have the opposite problem: it would find "Folder.jpg" but not "folder.jpg", so it isn't really a solution. Simulating a case insensitive file system on Linux is unfortunately much more complicated and not easy to do.

Anyway, changing it to "Folder.jpg" might work for you if you're sure all your albumart is named "Folder.jpg". Or you could simply mass-rename your cover art to lower case...
Logged

Offline Thew

  • Member
  • *
  • Posts: 27
Re: AlbumArt not shown in UISimulator
« Reply #6 on: March 07, 2023, 04:38:19 AM »
Quote from: amachronic on March 07, 2023, 04:03:54 AM
Or you could simply mass-rename your cover art to lower case...

That's what I ended up doing. Can't comment on other OS but on my Mac it was a simple search and replace that converted the lot in seconds and they now work on all my Rockboxed players.
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 791
Re: AlbumArt not shown in UISimulator
« Reply #7 on: March 07, 2023, 01:29:35 PM »
As it already accepts "cover.jpg" as well as "folder.jpg" and "[ALBUM NAME].jpg" surely it wouldn't be that hard to make a patch that would also accept "Folder.jpg"?  (As opposed to making it case-insensitive in general, which obviously would be far more difficult).

Personally, though, I'd just do a bulk rename of all the existing artwork.  Seems a much simpler solution.
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 452
Re: AlbumArt not shown in UISimulator
« Reply #8 on: March 07, 2023, 03:34:28 PM »
What I am trying to do is creating the database and the pictureflow slides of my ~100k library with the UISim, having the same folder structure on my player and the simdisk and then transfer the corresponding files to the player. Currently I have a Folder.jpg in every folder/subfolder and I'd prefer to not rename. Nautilus refuses somehow to rename all files and I have to do it in tranches.

Are you cretaing the database and pictureflow files on your player if you have a huge library? How do you batch rename? Is a potential patch a one line change or more complex?
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3555
  • creature
Re: AlbumArt not shown in UISimulator
« Reply #9 on: March 07, 2023, 04:43:46 PM »
Quote from: cereal_killer on March 07, 2023, 03:34:28 PM
Are you cretaing the database and pictureflow files on your player if you have a huge library? How do you batch rename? Is a potential patch a one line change or more complex?

Quick and dirty solution from the shell. Find all folders below the current folder, and try to rename a file "Folder.jpg" to "folder.jpg". Since you might have folders without a "folder.jpg" you'll get errors for those, so the following can be refined (search for the file, then strip the filename from the path, put in the new filename, but that's the solution I came up with quicker :) )
Code: [Select]
find . -type d -exec mv "{}"/Folder.jpg "{}"/folder.jpg \;
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 791
Re: AlbumArt not shown in UISimulator
« Reply #10 on: March 07, 2023, 08:11:14 PM »
Quote from: cereal_killer on March 07, 2023, 03:34:28 PM
What I am trying to do is creating the database and the pictureflow slides of my ~100k library with the UISim, having the same folder structure on my player and the simdisk and then transfer the corresponding files to the player. Currently I have a Folder.jpg in every folder/subfolder and I'd prefer to not rename. Nautilus refuses somehow to rename all files and I have to do it in tranches.

I used to do that, with the database.  Can't remember if I ever figured out how to do it with the pictureflow stuff (I know I attempted it, but not sure if I ever got it to work).  Problem I ran into was the downloadable UISim was usually several versions behind the latest dev version that I was running on the ipod, and changes to the database structure kept making the two incompatible.  And I constantly ran into problems compiling my own up-to-date UISim to the point I gave up bothering.

  Plus more recent dev versions seem to be able to build the database on the player (even flash modded ones) far more reliably than used to be the case, so I can do that part on the player now.  Pictureflow is a bit more of a hassle to get set-up, but occasionally I manage to do so - just can't be bothered doing it anew after every resync.

(Would be cool if Rockbox had an iTunes-like full-feature utility that could do a lot of this grunt-work on the PC, along with keeping track of playcounts - though I suppose that's basically how you're using the UISim)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  AlbumArt not shown in UISimulator
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.12 seconds with 22 queries.