Author Topic: ThumbCache.app.bin - Folder thumbnail for USB devices  (Read 22075 times)

July 11, 2009, 02:24:56 AM
Read 22075 times

BMD_Online

  • Full Member

  • Offline
  • ***

  • 135
Hi,

Thumbnails cache manager.

- if folder.jpg is present in your usb device root, it will be displayed as USB device preview.
- load/save cache directory. Then, thumbnails may be displayed faster.
- browse entire disk and cache all folder.jpg files. Then, resolution can be more than 180pixels.
- usb is used instead of /tmp for storing cache (less memory used). This option can be disabled.

It will look like this :


How to display usb thumbnails :
- create folder.jpg in your root directory.
- decompress zip file, place ThumbCache.app.bin and ThumbCache.conf in your root directory.
- edit ThumbCache.conf and set NBUSB to nomber of devices you have :
- if either USB1 or USB2 is used (one disk at time), set NBUSB=1
- if both USB1 and USB2 are used (two disks at the same time), set NBUSB=2

In ThumbCache.conf, if PERSISTENT=1 is set, the process remains in memory, check USB devices each 10 seconds and refresh folder thumbnail.

How to use cache directly on usb (default behaviour) :
- edit ThumbCache.conf and set CACHE2USB=1
For disable it, set CACHE2USB=0

How to save/restore/preload cache directory :
- event-osd is required.
- go to WDTV Cache "directory" and follow menus.

Download ThumbCache v0.2
« Last Edit: July 16, 2009, 09:52:19 AM by BMD_Online »

July 16, 2009, 09:52:04 AM
Reply #1

BMD_Online

  • Full Member

  • Offline
  • ***

  • 135
Up. Version 0.2 is released.

event-osd is required for saving/restoring/pre-caching cache manually !

July 17, 2009, 04:30:40 AM
Reply #2

Mr Lazy

  • Sr. Member

  • Offline
  • ****

  • 408
    • Mr Lazy
I like the idea of having a different USB device thumbnail, thanks.  Will try this and the cache feature as soon as time permits.

Is it possible to have a different icon depending on whether USB1 or USB2?
Gen1, ext3-boot, Belkin AX88178 Gigabit adapter, Synology DS109 NAS

How-to setup WD TV with NFS shares

July 17, 2009, 09:26:58 AM
Reply #3

BMD_Online

  • Full Member

  • Offline
  • ***

  • 135
I like the idea of having a different USB device thumbnail, thanks.  Will try this and the cache feature as soon as time permits.

Is it possible to have a different icon depending on whether USB1 or USB2?

folder.jpg on the device will be used.
I don't care if it's usb1 or usb2.

July 17, 2009, 11:23:32 AM
Reply #4

lifterjack

  • Newbie

  • Offline
  • *

  • 5
Do You have any thumbnails we can download Thanks

July 17, 2009, 11:54:18 AM
Reply #5

BMD_Online

  • Full Member

  • Offline
  • ***

  • 135
Do You have any thumbnails we can download Thanks

No, I don't have.
Some members here have produced some thumbnails (eg lilibabe for example), or you can find some icons yourself with google (that's what I do).

July 17, 2009, 12:38:01 PM
Reply #6

Monkeyface66

  • Jr. Member

  • Offline
  • **

  • 58
This is a very useful application!
Thanks!  :)



Do you think you can optimize it so that we don't have to set "NBUSB=....." in the config?

July 17, 2009, 12:55:46 PM
Reply #7

Mr Lazy

  • Sr. Member

  • Offline
  • ****

  • 408
    • Mr Lazy
I like the idea of having a different USB device thumbnail, thanks.  Will try this and the cache feature as soon as time permits.

Is it possible to have a different icon depending on whether USB1 or USB2?

folder.jpg on the device will be used.
I don't care if it's usb1 or usb2.

Hmm yeah but USB2 has a network adapter...I'll have a play...
Gen1, ext3-boot, Belkin AX88178 Gigabit adapter, Synology DS109 NAS

How-to setup WD TV with NFS shares


July 17, 2009, 02:06:23 PM
Reply #9

BMD_Online

  • Full Member

  • Offline
  • ***

  • 135
This is a very useful application!
Thanks!  :)



Do you think you can optimize it so that we don't have to set "NBUSB=....." in the config?

NBUSB means "how many usb devices will be connected", and not "where the device will be connected".
I wasn't able to guess if there 1, 2, 3 or more (using usb hub) will be connected.
When booting, usb devices aren't mounted. My script will wait until NBUSB devices will be detected and mounted.

Maybe another solution is to play with PERSISTENT, and stay in memory. I will think about it.

July 17, 2009, 04:38:39 PM
Reply #10

Monkeyface66

  • Jr. Member

  • Offline
  • **

  • 58

NBUSB means "how many usb devices will be connected", and not "where the device will be connected".

I know that  ;)


Sometimes I connect only 1 USB drive and sometimes 2, but I don't want to change "NBUSB=X" all the time  ;D

July 25, 2009, 12:31:53 PM
Reply #11

spumiglia

  • Newbie

  • Offline
  • *

  • 1
Hi, i don't understand how i can make a thumbs of my video ( i like the way where only 3 thumbs appear like lillibabe mod) but don't change nothing in the resolution of the thumbs with this thumbcache...
I did this "browse entire disk and cache all folder.jpg files. Then, resolution can be more than 180pixels" but the resolution for the three thumbs are always the default, what's wrong? i make the option cache all thumbs and the save...
Thanx

July 25, 2009, 11:48:14 PM
Reply #12

BMD_Online

  • Full Member

  • Offline
  • ***

  • 135
Actually, I cache only folder.jpg, not movie thumbs.

Personnaly, I haven't tried with 3 thumbs. Can you confirm me if folder thumbnails uses better resolution ?

July 28, 2009, 01:14:59 PM
Reply #13

videomilk

  • Jr. Member

  • Offline
  • **

  • 74
Is there anyway to get this to cache all the movie thumbs as well.   It would be perfect.  Thanks

July 28, 2009, 02:42:16 PM
Reply #14

BMD_Online

  • Full Member

  • Offline
  • ***

  • 135
Is there anyway to get this to cache all the movie thumbs as well.   It would be perfect.  Thanks

It was a little complicated, and may be really long to scan entire disk.

Complicated, I mean : which files to scan ? all mpeg, mpg, avi, mkv, ... I need to list all available video/audio formats, and for each existing file check if a picture exists.