WDTV Forum - WDTV Media Player

WDTV 1 Forum Groups => Homebrew / Custom Firmware => Topic started by: BMD_Online on July 11, 2009, 02:24:56 AM

Title: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: BMD_Online on July 11, 2009, 02:24:56 AM
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 :
(http://www.bourmad.com/wd_tv/ThumbCache/ThumbCache.v.0.2.jpg)

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 (http://www.bourmad.com/wd_tv/ThumbCache/ThumbCache.v.0.2.zip)
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: BMD_Online on July 16, 2009, 09:52:04 AM
Up. Version 0.2 is released.

event-osd is required for saving/restoring/pre-caching cache manually !
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: Mr Lazy on July 17, 2009, 04:30:40 AM
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?
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: BMD_Online on July 17, 2009, 09:26:58 AM
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.
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: lifterjack on July 17, 2009, 11:23:32 AM
Do You have any thumbnails we can download Thanks
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: BMD_Online on July 17, 2009, 11:54:18 AM
Do You have any thumbnails we can download Thanks

No, I don't have.
Some members here have produced some thumbnails (eg lilibabe (http://wdtv.free.fr/ajouts_1/index.html) for example), or you can find some icons yourself with google (that's what I do).
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: Monkeyface66 on July 17, 2009, 12:38:01 PM
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?
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: Mr Lazy on July 17, 2009, 12:55:46 PM
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...
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: ahbf09 on July 17, 2009, 12:57:35 PM
any thumbnails we can download

http://rapidshare.com/files/250567901/templ.rar (http://rapidshare.com/files/250567901/templ.rar)

mirror
http://uploaded.to/file/kidrkk (http://uploaded.to/file/kidrkk)
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: BMD_Online on July 17, 2009, 02:06:23 PM
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.
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: Monkeyface66 on July 17, 2009, 04:38:39 PM

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
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: spumiglia on July 25, 2009, 12:31:53 PM
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
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: BMD_Online on July 25, 2009, 11:48:14 PM
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 ?
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: videomilk on July 28, 2009, 01:14:59 PM
Is there anyway to get this to cache all the movie thumbs as well.   It would be perfect.  Thanks
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: BMD_Online on July 28, 2009, 02:42:16 PM
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.
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: videomilk on July 28, 2009, 04:38:04 PM
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.

hmmm thought it would be easier than that.  Thanks for looking into it anyway.  Cheers
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: muchacho1 on August 07, 2009, 05:20:50 AM
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.
What if to cache all .jpg files in Video folder? Loading of folder and movie thumbs is so slow if using network share.
Wanted some app to speed up showing pictures in thumbnail mode. Is it possible to make yours app.bin copy all jpgs from set folder to cache (on boot USB-flash). So when browsing Video folder on network share thumbs are loading from cache.
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: BMD_Online on August 07, 2009, 07:31:24 AM
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.
What if to cache all .jpg files in Video folder? Loading of folder and movie thumbs is so slow if using network share.
Wanted some app to speed up showing pictures in thumbnail mode. Is it possible to make yours app.bin copy all jpgs from set folder to cache (on boot USB-flash). So when browsing Video folder on network share thumbs are loading from cache.

Don't think it's a good idea. With your method, I will copy all pictures, not only thumbs.
Defining a set of directory may not be simple to implement, nor to use.
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: muchacho1 on August 07, 2009, 09:22:19 PM
What if to cache all .jpg files in Video folder? Loading of folder and movie thumbs is so slow if using network share.
Wanted some app to speed up showing pictures in thumbnail mode. Is it possible to make yours app.bin copy all jpgs from set folder to cache (on boot USB-flash). So when browsing Video folder on network share thumbs are loading from cache.

Don't think it's a good idea. With your method, I will copy all pictures, not only thumbs.
Defining a set of directory may not be simple to implement, nor to use.
By 'set folder' I mean given path (e.g. /tmp/media/usb/Video). So there will be only pictures like folder.jpg, movie.jpg and wd_tv.jpg.
Or you mean it's necessary to repeat all directory structure of /tmp/media/usb/Video inside cache folder?
Is there any filter means you can use? (to copy pictures with size less 20 kB).

Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: compostbak on August 17, 2009, 01:33:00 AM
great application

My setup is: Wdtv connected wireless to a router to a NAS

is it possible to cach the thumbnails on the nas also
made a folder: folder.jpg on the nas nothing there

i see the thumbnails in /var/tmp/media/usb/USB2/70D6-F9EF/.wd_tv.cache/usb/usb2/ch3snas/video

but it doesnt cache them

is this a bug or am i doing something wrong??
help would be appreciated
compostbak
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: BMD_Online on August 17, 2009, 03:11:34 AM
great application

My setup is: Wdtv connected wireless to a router to a NAS

is it possible to cach the thumbnails on the nas also
made a folder: folder.jpg on the nas nothing there

i see the thumbnails in /var/tmp/media/usb/USB2/70D6-F9EF/.wd_tv.cache/usb/usb2/ch3snas/video

but it doesnt cache them

is this a bug or am i doing something wrong??
help would be appreciated
compostbak

NAS, as any remote shares aren't managed with my scripts.
You can manually add your thumbnail, in /tmp/cache/usb/USB2/ch3snas.thumb (linked to /tmp/media/usb/USB2/70D6-F9EF/.wd_tv_cache/...)
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: Titi on September 11, 2009, 12:57:15 PM
@BMD_Online
You have worked hard on the cache of wdtv and perhaps you can help me.
On my mod, I display sheet dynamically (tag image in the xml files) but the wdtv downgrade and cache sheet with a width above 1024pix.
So quality is lower than the original image and it take time to change sheet. It seems that it keep only 3 images in cache (navigation on this 3 images is very quick).
Did you know where wdtv cache this files?
Thanks
Titi
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: BMD_Online on September 11, 2009, 10:49:59 PM
@BMD_Online
You have worked hard on the cache of wdtv and perhaps you can help me.
On my mod, I display sheet dynamically (tag image in the xml files) but the wdtv downgrade and cache sheet with a width above 1024pix.
So quality is lower than the original image and it take time to change sheet. It seems that it keep only 3 images in cache (navigation on this 3 images is very quick).
Did you know where wdtv cache this files?
Thanks
Titi

I think these pictures are stored in memory. Have a look (somewhere, don't remember which topic) at a conversation about black backgrounds because of memory consumption.

Are you sure your sheet is resized to 1024pix ?
I have tried with big backgrounds (above 720p), and they are cropped on TV, but not resized.
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: Titi on September 11, 2009, 11:56:23 PM
Quote
I think these pictures are stored in memory. Have a look (somewhere, don't remember which topic) at a conversation about black backgrounds because of memory consumption.
This is what I fear, because when I change the large_image_cache_num parameter in the home.xml, this change nothing.
But how to be sure that we are out of memory? I am able to listen musik and navigate through a folder with displaying sheet dynamically
Quote
Are you sure your sheet is resized to 1024pix ?
No, sheet is not resize to 1024pix, it is just that up to 1024pix image is not downgraded, above it is. 1024pix image have black borders but quality is good.
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: Phy on September 12, 2009, 02:09:08 PM
Hi I got the usb thumbs to work, but my folder.jpg are not cache to the usb drive.  I'm running ext3.

Where on the usb drive are the cache thumbs saved to?   I aso don't see a WDTV thumbs menu


Thanks
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: dwoz on November 02, 2009, 09:14:55 AM
hello, how to set up automatically at startup preload all thumbnails folder.jpg?
Title: Re: ThumbCache.app.bin - Folder thumbnail for USB devices
Post by: Warlockmatized on April 01, 2010, 02:26:56 PM
Weird issue for me. I run a two USB setup. One for all my media (movies, pix, music) which is an external HD and has a folder.jpg on it in its root, the other is a 1 GB stick that has nothing but .apps and .bins on it as well as a folder.jpg in its root. The ONLY way I can get your ThumbCache app to show the 1 GB sticks image on the screen is if I also add some type of media to it. WHAT am I doing wrong?