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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- 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


- .:B:. - 2010-06-25

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

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

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

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

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

I've noticed this as well.


- jmarshall - 2010-06-25

I can't say whether the dds files produced using some other tool will load or not, though I should think they would. If you're on windows, then there's been some recent changes to when various options (eg NPOT support) are set so that may have something to do with it.

At any rate, it's a different issue than XBMC-produced DDS images being rendered incorrectly.

Cheers,
Jonathan


- RazorFR - 2010-06-25

The xbmc dds conversion is working well, but

1. The process is quite cpu intensive (60% on e8400) . Not sure if picture library is also converted on the fly, but it may not be such a good idea.
2. Some dds are quite big, that's for sure. I have a lot of 8101kb here too.
3. After the whole process is completed at least for fanarts (same number of tbn and dds files), well, something somehow is killing the benefit of it. Actually navigation through library with dds enabled is even less smooth with dds than with tbn... That was really different with 28xxx and the old nvidia manual conversion where the Gui speed diffrenec was quite blatant.

I suspect it maybe related to the size of dds, but I am definitely no expert.


- IceNine - 2010-06-25

I finally decided to upgrade past the addon barrier to SVN31345, I got my preferred skin (Aeon65) working as an addon and my library remade. Now the problem I have is that XBMC crashes like a champ when I enable DDS support. I think it works ok if I use Confluence, but Aeon65 definitely has some issue with DDS. I also tried Legacy Dark, and that has the same issue.

I have a couple of crashlogs I will attach, but I think this is the relevant error:

Code:
Program terminated with signal 11, Segmentation fault.
#0  squish::CopyRGBA (source=0x9c5b000 <Address 0x9c5b000 out of bounds>,
    dest=0xb27fafb4 "", flags=521) at squish.cpp:133
133            dest[0] = source[2];

and

Code:
Program terminated with signal 11, Segmentation fault.
#0  squish::CopyRGBA (source=0xa9bdf000 <Address 0xa9bdf000 out of bounds>,
    dest=0xb2b17fb4 "\006\347", <incomplete sequence \330>, flags=521)
    at squish.cpp:133
133            dest[0] = source[2];

I'm not sure if the skin is just not playing nice with Squish, but either way I wanted to report. If it looks to be a skin issue, is there anything I can pass along to the maker so this can get fixed?

Crashlog 1
Crashlog 2

I also had 2 more crashlogs with a different error, and I can't tell by the log if I was using Confluence at the time or not, but I will include them just in case they may be helpful.

Crashlog 3
Crashlog 4


- jmarshall - 2010-06-26

By the looks of it you have already compressed DDS images elsewhere that are being used as some sort of background image. Correct?


- IceNine - 2010-06-28

When I upgraded I deleted the .xbmc, so I thought that would take care of it. Apparently there were some in the folder I hold the images for my backgrounds in also. I removed those DDS files and hopefully that will work. I haven't enabled DDS support over the weekend, I'm still a little gunshy after losing my library three times in a row. I'll report back when I give it a try.


The same Error with SVN 31516 - BoBeRzE - 2010-06-30

Hello again,

i have try it again with XBMC Nightly SVN 31516. Fist of all i have delete all dds File, create the advancedsettings.xml and still have same errors. Here is a Screenshot.

Edit:

The Debug Log


- jmarshall - 2010-07-01

1. Grab that .dds file and the corresponding .tbn - you can probably find it by examining the log (if it logs about loading the .tbn file, then it'll be actually loading the .dds equivalent)

2. See if it loads in something like Irfanview. Both should load fine (you may need to rename the .tbn to .jpg).

3. What are the dimensions of the original .tbn file?

4. What are the dimensions of the .dds file?

5. Upload both so that others can test them.

Cheers,
Jonathan


- BoBeRzE - 2010-07-01

Hi Jonathan and all others,

1. -> done Smile

2. -> both pictures are fine in Irfanview

3. -> 1920 x 1080 (357.155 Bytes)

4. -> 1920 x 1080 (1.036.928 Bytes)

5. -> Original Fanart and DDS File


BTW

I have 78 movies in my database. XBMC has created 78 DDS files. All files are fine in Irfanview.

VGA Drivers are Up to Date.

Bye

---
EDIT

I have browse my movie database. 58 of 78 files are broken in XBMC.

Jonathan wrote:
Quote:if it logs about loading the .tbn file, then it'll be actually loading the .dds equivalent

But in my log is no entry about loading a tbn file. In the Debug log i cant see a difference when XBMC is loading a "good" file or a broken file.

Here is my Debug Log
---


- furii - 2010-07-02

BoBeRzE Wrote:DDS File

not sure if this is the right way to test, but that image opens just fine in xbmc for me through the filemanager.

edit: log


- jmarshall - 2010-07-02

DDS image loads fine in XBMC here. My guess is you suffer from a similar bug as discussed here:

http://trac.xbmc.org/ticket/9269

Try setting <restrictcapsmask> to 4 in advancedsettings.xml.

Cheers,
Jonathan