XBMC Community Forum
Compressed textures for FanArt - testing here with XBMC 2009-10-05 (r23431) or newer - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+--- Thread: Compressed textures for FanArt - testing here with XBMC 2009-10-05 (r23431) or newer (/showthread.php?tid=59115)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


- jmarshall - 2010-06-13 04:57

They're created as and when you view background loaded images. Depending on what skin you're using it could be that it never background loads any images.

But really we're just guessing - check your debug log - it tells you:
1. Whether you really have the advanced setting set.
2. Whether it's doing any dds compression.

Cheers,
Jonathan


- sdsnyr94 - 2010-06-16 01:17

Jonathan,

I have compiled SVN 31103 on my main PC to experiment with dds fanart. I have the advancedsettings.xml set to "true", and it is creating the dds files under .xbmc/userdata/Thumbnails. I am a little concerned about the size of my Thumbnails folder, which stands at 785 MB right now, and that's without all of my files loaded into the library.

My main XBMC unit is a zotac ion with XBMC-Live on a 4gb stick.... adding 1Gb+ to that may be an issue. Is there a way to make XBMC use the location where files are located, the same way it was prior to setting the DDS to "true"?

Thanks.


- jmarshall - 2010-06-16 02:08

It always creates them next to where the (cached) files are. If it's creating it in .xbmc/userdata/Thumbnails that's because there's a jpg or png sitting there as well.

Cheers,
Jonathan


- DasMarx - 2010-06-21 00:43

Is it normal that some dds files take MUCH more space than the normal files, lets say 400 kb (.tbn) and 8101kb (.dds) ?

Just took a look at my Database which is about 3,5 gb big now.


- jmarshall - 2010-06-21 02:40

8MB DDS indicates either a huge image (DDS is normally 4bits per pixel, so 8MB is indicating a 16MP image, unless it has alpha, then it's 8bits per pixel so 8MP) or an image that XBMC determined could not be stored as DXT1 or DXT5 due to quality degradation, in which case it's 32bpp, or 2MP.

In the future XBMC will cache DDS versions at a maximum of 512x1024 (or 1024x512) for thumbs and 2048x1080 for fanart (on NPOT systems, 2048x2048 in memory, not on disk). Obviously this will be settable via advancedsettings for those that really want insanely huge images.

In addition, we'll also be compressing using lzo which should save up to 50% or so on disk.

Cheers,
Jonathan


- .:B:. - 2010-06-25 01:09

I am using r31321 but noticed this with other recent revisions too. Browsing through my collection is as 'slow' as it was without DDS before. I noticed the log shows quite a bit of errors about failed generation of DDS images:

Code:
00:32:48 T:2846923632 M: 80838656   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/Video/Fanart/6310fbea.tbn
00:33:02 T:2846923632 M: 78921728   DEBUG: Compress - no format suitable (min error is: 13.38:0.00)
00:33:05 T:2830138224 M: 88342528   DEBUG: Compress - no format suitable (min error is: 28.08:0.00)
00:33:14 T:2838530928 M: 64274432   DEBUG: Compress - no format suitable (min error is: 10.83:0.00)
00:33:14 T:2838530928 M: 64348160   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/c/cafe7e0c.jpg
00:33:14 T:2821745520 M: 64348160   DEBUG: Thread 2821745520 terminating
00:33:16 T:2838530928 M: 63299584   DEBUG: Compress - no format suitable (min error is: 10.83:0.00)
00:33:16 T:2830138224 M: 63586304   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/b/b45a8779.jpg
00:33:18 T:2830138224 M: 63524864   DEBUG: Compress - no format suitable (min error is: 6.99:0.00)
00:33:18 T:2855316336 M: 63565824   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/6/6616f8ee.jpg
00:33:20 T:2855316336 M: 63496192   DEBUG: Compress - no format suitable (min error is: 6.99:0.00)
00:33:20 T:2846923632 M: 63397888   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/3/3cbd2769.jpg
00:33:22 T:2846923632 M: 63397888   DEBUG: Compress - no format suitable (min error is: 6.48:0.00)
00:33:22 T:2838530928 M: 63725568   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/5/5b2a10c3.jpg
00:33:24 T:2838530928 M: 63655936   DEBUG: Compress - using DXT1 (min error is: 4.94:0.00)
00:33:24 T:2830138224 M: 63737856   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/a/adbd90fa.jpg
00:33:25 T:2830138224 M: 82067456   DEBUG: Compress - no format suitable (min error is: 6.58:0.00)
00:44:38 T:2876762992 M: 81494016   DEBUG: Compress - no format suitable (min error is: 10.70:0.00)
00:44:39 T:3028641664 M: 85499904   DEBUG: ------ Window Deinit (FileBrowser.xml) ------
--
00:46:15 T:2876762992 M: 84070400   DEBUG: thread start, auto delete: 1
00:46:15 T:2855316336 M: 79822848   DEBUG: Compress - no format suitable (min error is: 19.16:0.00)
00:46:18 T:3028641664 M: 81915904   DEBUG: ------ Window Deinit (FileBrowser.xml) ------
--
00:46:32 T:2908588912 M: 76017664   DEBUG: Thread 2908588912 terminating
00:46:33 T:2855316336 M: 76021760   DEBUG: Compress - no format suitable (min error is: 12.02:0.00)
00:46:52 T:2830138224 M: 99143680   DEBUG: DoWork - took 294 ms to load special://profile/Thumbnails/Video/6/6310fbea.tbn
00:46:55 T:2838530928 M: 99164160   DEBUG: Compress - no format suitable (min error is: 28.08:0.00)
00:46:55 T:2813352816 M:100196352    INFO: Python script stopped
--
00:52:25 T:2855316336 M: 99471360   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/e/ef2df204.png
00:52:26 T:2855316336 M: 99471360   DEBUG: Compress - no format suitable (min error is: 40.08:0.00)
00:52:27 T:3028641664 M: 99516416   DEBUG: CGUIMediaWindow::GetDirectory (addons://enabled/)
--
00:54:06 T:3028641664 M: 66449408   DEBUG: Alloc resources: 1.46ms (0.01 ms skin load)
00:54:07 T:2838530928 M: 66338816   DEBUG: Compress - using DXT1 (min error is: 4.22:0.00)
00:54:08 T:2818055024 M: 75411456   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/Video/f/f9042d80.tbn
00:54:10 T:2818055024 M: 75661312   DEBUG: Compress - no format suitable (min error is: 20.96:0.00)
00:54:10 T:3028641664 M: 75587584   DEBUG: ------ Window Init (DialogVideoInfo.xml) ------
--
00:54:29 T:2801269616 M: 43020288   DEBUG: Thread 2801269616 terminating
00:54:33 T:2876762992 M: 43233280   DEBUG: Compress - no format suitable (min error is: 10.46:0.00)
00:54:34 T:2838530928 M: 51634176   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/Video/9/97437d5f.tbn
00:54:35 T:2838530928 M: 51712000   DEBUG: Compress - no format suitable (min error is: 21.96:0.00)
00:54:35 T:2818055024 M: 52711424   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/1/12718161.jpg
00:54:36 T:2818055024 M: 52711424   DEBUG: Compress - using DXT1 (min error is: 1.52:0.00)
00:54:36 T:2855316336 M: 52854784   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/1/193feabc.jpg
00:54:38 T:2855316336 M: 52781056   DEBUG: Compress - no format suitable (min error is: 17.83:0.00)
00:54:39 T:2876762992 M: 53043200   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/a/afec9150.jpg
00:54:41 T:2876762992 M: 52908032   DEBUG: Compress - no format suitable (min error is: 17.83:0.00)
00:54:41 T:2838530928 M: 51695616   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/e/e5738872.jpg
00:54:44 T:2838530928 M: 58941440   DEBUG: Compress - no format suitable (min error is: 17.83:0.00)
00:54:44 T:2818055024 M: 60002304   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/0/00487064.jpg
00:54:47 T:2818055024 M: 59994112   DEBUG: Compress - no format suitable (min error is: 13.07:0.00)
00:54:47 T:2855316336 M: 60317696   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/b/ba196279.jpg
00:54:49 T:2855316336 M: 61034496   DEBUG: Compress - no format suitable (min error is: 7.64:0.00)
00:54:49 T:2876762992 M: 61358080   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/0/0e65bb4e.jpg
00:54:50 T:2876762992 M: 61358080   DEBUG: Compress - using DXT1 (min error is: 0.65:0.00)
00:54:50 T:2838530928 M: 59998208   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/e/eacd5a05.jpg
00:54:51 T:2838530928 M: 60006400   DEBUG: Compress - no format suitable (min error is: 8.81:0.00)
00:54:51 T:2818055024 M: 61067264   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/4/4291591e.jpg
00:54:53 T:2818055024 M: 61059072   DEBUG: Compress - no format suitable (min error is: 7.64:0.00)
00:54:53 T:2855316336 M: 61321216   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/e/ead8e0e0.jpg
00:54:55 T:2855316336 M: 61313024   DEBUG: Compress - no format suitable (min error is: 10.96:0.00)
00:54:55 T:2876762992 M: 61329408   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/8/86d68554.jpg
00:54:57 T:3028641664 M: 62099456    INFO: CheckIdle - Closing session to http://hwcdn.themoviedb.org (easy=0xac1b478, multi=0xa247d78)
00:54:57 T:2876762992 M: 62099456   DEBUG: Compress - no format suitable (min error is: 13.01:0.00)
00:54:57 T:2838530928 M: 61071360   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/3/3e533e29.jpg
00:54:57 T:2838530928 M: 61071360   DEBUG: Compress - using DXT1 (min error is: 0.66:0.00)
00:55:00 T:2818055024 M: 63160320   DEBUG: Compress - no format suitable (min error is: 13.72:0.00)
00:55:41 T:3028641664 M: 58626048   DEBUG:   -- items: 114, sort method: 24, ascending: true
00:55:41 T:2876762992 M: 58626048   DEBUG: Compress - no format suitable (min error is: 9.93:0.00)
00:55:41 T:2908588912 M: 57020416   DEBUG: thread start, auto delete: 0
--
00:59:38 T:3028641664 M: 84066304   DEBUG: python thread 5 destructed
00:59:39 T:2855316336 M: 83169280   DEBUG: Compress - no format suitable (min error is: 24.03:0.00)
00:59:39 T:2818055024 M: 81895424   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/d/d858fd98.tbn
00:59:41 T:2818055024 M: 82767872   DEBUG: Compress - no format suitable (min error is: 18.61:0.00)
00:59:42 T:2876762992 M: 83705856   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/9/9ced64fa.tbn
00:59:43 T:2876762992 M: 83759104   DEBUG: Compress - no format suitable (min error is: 21.96:0.00)
00:59:43 T:2855316336 M: 83836928   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/c/cd537ff2.tbn
00:59:46 T:2855316336 M: 83824640   DEBUG: Compress - no format suitable (min error is: 7.98:0.00)
00:59:48 T:3028641664 M: 83836928    INFO: Python, unloading python24.dll because no scripts are running anymore
--
01:03:12 T:2818055024 M: 76140544   DEBUG: DoWork - took 2525 ms to load special://masterprofile/Thumbnails/Video/Fanart/1d1c201f.tbn
01:03:26 T:2876762992 M: 78979072   DEBUG: Compress - no format suitable (min error is: 7.25:0.00)
01:03:26 T:2818055024 M: 87543808   DEBUG: Creating DDS version of: special://masterprofile/Thumbnails/Video/1/1d1c201f.tbn
01:03:28 T:2818055024 M: 87539712   DEBUG: Compress - no format suitable (min error is: 27.89:0.00)

Just wondering if this is a known issue? Or should I file a bug report and put up a full log?


- jmarshall - 2010-06-25 03:57

It's not failing - it's simply deciding that the image quality wouldn't be good enough. Part of this is due to a bug - I think we're using a threshold that's too high. This has been reduced in r31366.

You may find that the if you regen the DDS images they'll be slightly worse quality now, but more images will be accepted.

When the DDSImage quality is regarded as not good enough we use ARGB which is obviously a lot larger so will take longer to load - it's a trade off between decoding CPU and disk speed.

Cheers,
Jonathan


- fidoboy - 2010-06-25 04:26

I'm sorry but i'm a bit lost testing this new feature. What's the status right now? if i enable the advancedsettings 'useddsfanart' switch XBMC will do all conversions on the fly? don't i need my manual script to generate dds files anymore?

Also, what kind of images are being used right now? fanarts only?

many thanks in advance and i'm sorry if this questions are already solved.


- BoBeRzE - 2010-06-25 07:00

Hello,

first of all hello forum and sorry for my bad english Rolleyes.

I have also problems with dds Fanarts.

With XBMC´s internal conversion:
If i use the xbmc´s internal conversion i get the same erros like .:B: and the filesize is really large. BTW i think the performance on my A330ION ist the same without DDS


With nVidia DDS Tools:

If i use the nVidia DDS Tools the filsize is OK but XBMC display the most pictures wrong. I think one of ten is OK (its load REALLY fast) and the others are display unidentifiable (only stripes on the screen). If i open all generated DDS File with IrfanView all its fine.

I have this problem since i play around with DDS Fanarts (i start with svn Build r31095). I tried a couple of VGA driver but the problem still exists.

I hope you can understand what i mean Eek

EDIT:

XBMC try to load my DDS files also if no advancedsettings.xml exist . Coud it be that this switch only say "Hello XBMC generate a couple of DDS files Laugh"?

EDIT 2 Smile:

@Jonathan

All of my Fanart has a resolution at least 1280*720. If think the quality to convert is good enough and the same files converted with the nVidia tools are fine with IrfanView. On the other side i get a file error if i try to open a DDS file (created with XBMC) in IrfanView.

BoBeRzE


- Hitcher - 2010-06-25 07:41

BoBeRzE Wrote:others are display unidentifiable (only stripes on the screen).

I've noticed this as well.