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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  where does pictureflow store its database?
« previous next »
  • Print
Pages: [1]

Author Topic: where does pictureflow store its database?  (Read 3845 times)

Offline Frankenpod

  • Member
  • *
  • Posts: 787
where does pictureflow store its database?
« on: July 04, 2020, 04:51:47 PM »
I already use the simulator to build the database, copying the *.tcd files to the ipod(s) afterwards (quicker, saves battery life and more reliable with flash mods).  If I were to do the same with pictureflow, does anyone know what files need to be copied across?
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 452
Re: where does pictureflow store its database?
« Reply #1 on: July 08, 2020, 12:35:58 PM »
I think pictureflow uses the same files as the database (the *.tcd files). The slides are created in rocks\demos\pictureflow. So copying the *.pfraw files over should do it.
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 787
Re: where does pictureflow store its database?
« Reply #2 on: July 16, 2020, 10:28:08 AM »
Thanks.  Though now I have the follow-on question - how do I ensure the simulator uses the latest rockbox dev version?  I'm guessing the simulators have to be built from source?

(Want to test out the recent changes to pictureflow - found it actually crashed when I tried to build the picture database on the ipod itself - but I don't know if there's a bug in the new picture flow changes or if it's just that building that database is too much of a strain on the flash-modded ipod, which of course has the known flash-mod ata-driver issues when writing to the disk)
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 787
Re: where does pictureflow store its database?
« Reply #3 on: October 01, 2020, 09:47:01 PM »
The problem now is that the simulators available for direct download are all compiled with older versions of rockbox, from before the recent change to the pictureflow plugin, hence aren't compatible with the latest release or dev version.  I realise the solution is probably to compile my own simulator build, but that means powering up the linux box and working out again how to do that (I've managed it in the past, but have forgotten how it's done), and I can't face the effort!

Building the picture database on the ipod itself seems to take a ridiculous amount of time.  So much time I suspect the battery will drain before it finishes.
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 452
Re: where does pictureflow store its database?
« Reply #4 on: October 02, 2020, 01:35:44 AM »
I missed your post Form july, but I don't know if the code for Plugins in dev builds and UiSim builds are identical.

A nice and well done guide for compiling is https://www.rockbox.org/wiki/LinuxSimpleGuideToCompiling
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 787
Re: where does pictureflow store its database?
« Reply #5 on: October 02, 2020, 05:42:22 AM »
Ha, turns out I can't run pictureflow (on the actual device) anyway because it gives up with an error of 'not enough memory for cache to run'.  Seems as if I can't get round that with building on the simulator, as I guess it needs cache memory just to run at all, even with the database already built?  Presumably the problem is just too many tracks and hence too much cover art? (modded ipod).  I assume the only solution would be a rewritten coverflow that didn't rely on holding so much in memory?  Oh well, can't have everything.

I still wish rockbox had a thumbnail/cover art grid, that you could just scroll through to select an album (like Sony players do with original firmware).

Edit - in fact looking at it, it seems the pictureflow directory is corrupted, so maybe it's the iflash disk-writing issue rather than a lack of device memory?
« Last Edit: October 02, 2020, 06:01:22 AM by Frankenpod »
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 787
Re: where does pictureflow store its database?
« Reply #6 on: October 02, 2020, 06:28:01 AM »
Rockbox would benefit from a companion PC utility that would do things like build databases, perhaps keep track of playcounts, etc.  I guess as iTunes does for the OF.
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 787
Re: where does pictureflow store its database?
« Reply #7 on: October 02, 2020, 07:00:31 AM »
Quote from: cereal_killer on October 02, 2020, 01:35:44 AM
I missed your post Form july, but I don't know if the code for Plugins in dev builds and UiSim builds are identical.

A nice and well done guide for compiling is https://www.rockbox.org/wiki/LinuxSimpleGuideToCompiling

Thanks.  Though it's more matter of not having the energy to do it at the moment!

Edit - if anyone were to ever update the simulators available for direct download, that would be appreciated!

Edit2 - started the process, and, Good Lord, it takes a long time to set up a development environment.  Its been very rapidly scrolling messages for half an hour now.  Must be thousands of lines of messages (including quite a few 'warnings') in there.

If I make a Sim build (on a linux build environment), how do I tell it to build it so as to run under Windows?

Tried to follow the instructions here
https://www.rockbox.org/wiki/UiSimulator

But after the line

./configure --host=i586-mingw32msvc --prefix=${HOME}/mingw32-sdl

I get the message "your compiler (gcc) does not produce Win32 exectuables!"

Anyone got any ideas what the issue is?  Really hoping to try getting pictureflow to work using the simulator.
« Last Edit: October 02, 2020, 10:25:29 AM by Frankenpod »
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 787
Re: where does pictureflow store its database?
« Reply #8 on: July 07, 2024, 06:12:06 PM »
Gotten back to experimenting with this, now there are up-to-date simulators for download [And as Chris_s very kindly fixed the problem with insufficient memory allocated by RB to use pictureflow with a huge number of tracks].

  And, while I can copy the database from the sim to the ipod, by copying the .tcd files across, I still haven't managed to copy the pictureflow database.  Copying the rocks/demos/pictureflow folder, with its pfraw files, doesn't seem to be sufficient, RB still tries to build the pictureflow database from scratch when I start it up on the ipod itself.  Seems as if it needs something else to be copied - maybe the nvram.bin file?

Someone must know what files are relevant, surely?  Looking at the modified time stamps doesn't seem to suggest anything obvious.
« Last Edit: July 07, 2024, 06:46:34 PM by Frankenpod »
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 787
Re: where does pictureflow store its database?
« Reply #9 on: July 08, 2024, 06:29:37 AM »
On the upside, it seems the current dev version is _much_ better at loading the database into RAM than it was when I last tried building the pictureflow database.  Presumably something has been improved/changed since then?
Seems now I can consistently get the ipod to load the database to RAM by just setting that option, shutting down, and restarting the ipod.  (And loading the database to RAM is essential to build the pictureflow database in a bearable length of time)

  The last time I tried pictureflow (years back) it took an eternity of faffing around, repeatedly restarting, waiting for ages, browsing the database, performing ritual chants, etc, to persuade the "load to RAM" option to actually do what it was told.  Now it just does it.  Hurrah!
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 299
Re: where does pictureflow store its database?
« Reply #10 on: July 08, 2024, 08:47:39 AM »
The database is stored in pictureflow_album.idx (inside of the pictureflow folder). I seem to remember that the version generated by the simulator can't be used on the player, though, for one reason or another.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1191
Re: where does pictureflow store its database?
« Reply #11 on: July 09, 2024, 12:57:25 AM »
I'd like to eventually get them able to be run like that but looking at the source I bet the sizes don't line up or endian issues

Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 787
Re: where does pictureflow store its database?
« Reply #12 on: July 17, 2024, 12:10:35 PM »
Quote from: chris_s on July 08, 2024, 08:47:39 AM
The database is stored in pictureflow_album.idx (inside of the pictureflow folder). I seem to remember that the version generated by the simulator can't be used on the player, though, for one reason or another.

Yeah, that seems to be the case.  Managed to create it on the player itself, though.  Next idea is to then copy that from one player to another...
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  where does pictureflow store its database?
 

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

Page created in 0.177 seconds with 22 queries.