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


- IceNine - 2010-01-25 23:16

fidoboy Wrote:Hi again IceNine, i'm trying to get this working right now, but i've problems when using "sudo make" into "nvidia-texture-tools" folder, it gives me an error saying that target is not specified and there isn't any makefile.

What i'm doing wrong?

Now I knew I was going to forget something. Confused I think the problem is that you need to install cmake along with the other dependencies to compile this.

EDIT: I tried to compile the nvidia tools on a fresh Ubuntu 9.10 install and have updated the instructions so they actually work now. You should be able to follow them to the letter and it will work.


- TeknoJnky - 2010-01-25 23:57

Very interesting thread.

Has anyone attempted to use the dds on the osx/appletv?


- fidoboy - 2010-01-26 01:48

arco Wrote:Did you run configure first?

Code:
sudo ./configure

@IceNine, thanks for the script! I'll try it out on my box later. Smile

Blush You are right arco, i was so excited with this that i forgot that line! Now all is working like a charm, i've also created a cron job to automate the process every day... I'll report any extrange issue here. Again, big thanks to IceNine for his effort...

Another little question, can i uninstall gcc++4.3 and other libraries after doing this process? do they affect to my comp performance if i keep them installed?

kind regards, Big Grin


- IceNine - 2010-01-26 03:01

Feel free to uninstall the libraries in my instructions, they aren't really needed (unless you compile something in the future, then you might need them again). There really isn't any problem leaving them installed, the only thing they will do to your machine is take up a few MB of hard drive space.


- JumJum - 2010-01-26 04:14

Wow, the difference with dds fanart is amazing, great work! Smile

Here's a script creates dds files for any tbn files that don't have one already.
It doesn't rename all the files like the other scripts and it has a progress indicator.
Code:
#!/bin/sh
cd ~/.xbmc/userdata/Thumbnails/Video/Fanart/ || exit
find . -name '*.tbn' -or -name '*.dds' | cut -c-10 | sort | uniq -u |
while read n; do
mv $n.tbn $n.jpg
nvcompress -bc1 $n.jpg | awk '/taken:/{printf $3}'
mv $n.jpg $n.tbn
echo "s $(ls *.dds | wc -l)/$(ls *.tbn | wc -l)"
done

I seriously can't tell anymore if a fanart is loaded from the 2 sec cache or not. That was the only little annoyance I had with with XBMC. Again, wonderful work! XBMC is now perfect! Smile


- fidoboy - 2010-01-26 13:05

Wow!! performance now is really good!! i can't believe it... fan arts are loaded very very fast on my ION based machine. This feature is really a must in XBMC; i've not find any problems ATM.

I've also modified IceNine's script to convert also music fanarts. For ION based devices, this feature should be added by default.

good work guys! things like this makes XBMC better and better every day...


- headcase - 2010-01-26 20:37

AR1600, using Aeon65, not a lot of performance difference in the overall scheme of things. I can definately tell that the fanart is loading faster, so as long as I set the info panel timing high scrolling through the library is faster. Still chugs on loading the movie poster thumbnail when scrolling and then the info panel with the fanart scaled down when that loads.

I'll probably still continue to use this, because any perf boost I can get on the AR1600 gui is worth it.

One question, if I have useddsfanart turned on, will it fall-back to using a the tbn for new fanart that hasn't been converted or do I need to call the script every few minutes to check for new stuff?


- arco - 2010-01-26 20:49

headcase Wrote:One question, if I have useddsfanart turned on, will it fall-back to using a the tbn for new fanart that hasn't been converted or do I need to call the script every few minutes to check for new stuff?

It won't fallback, so you'd have to do the converting after fetching new fanarts.

Btw, good job on the scripts guys. I made it a bit easier for myself by using the Launcher plugin to start the conversion script from within XBMC. Now if someone could implement this properly in a python script for XBMC, with maybe a progress bar, that would be ace. Smile


- headcase - 2010-01-26 21:45

JumJum Wrote:Wow, the difference with dds fanart is amazing, great work! Smile

Here's a script creates dds files for any tbn files that don't have one already.
It doesn't rename all the files like the other scripts and it has a progress indicator.
Code:
#!/bin/sh
cd ~/.xbmc/userdata/Thumbnails/Video/Fanart/ || exit
find . -name '*.tbn' -or -name '*.dds' | cut -c-10 | sort | uniq -u |
while read n; do
mv $n.tbn $n.jpg
nvcompress -bc1 $n.jpg | awk '/taken:/{printf $3}'
mv $n.jpg $n.tbn
echo "s $(ls *.dds | wc -l)/$(ls *.tbn | wc -l)"
done

I seriously can't tell anymore if a fanart is loaded from the 2 sec cache or not. That was the only little annoyance I had with with XBMC. Again, wonderful work! XBMC is now perfect! Smile


I'm not much of a bash scripter ... any clues on how I would modify the while statement so that I could add a sleep xx before the done and keept this script constantly looping looking for changes? The idea is to have the script launch at boot and just constantly be monitoring directories for new fanart every xx seconds.

Thanks for any help anybody can provide.


- fidoboy - 2010-01-26 22:17

headcase Wrote:I'm not much of a bash scripter ... any clues on how I would modify the while statement so that I could add a sleep xx before the done and keept this script constantly looping looking for changes? The idea is to have the script launch at boot and just constantly be monitoring directories for new fanart every xx seconds.

Thanks for any help anybody can provide.

Well, easy solution is to use a cron job, i've created one that runs every hour (but you can run it every 5 or 10 minutes if you need to), if there is no new images it only takes 1-2 seconds to run it. Also i've added music fan art to the IceNine script to have also faster fanarts in music section. It could be amazing if this could also be done for movie posters, music covers, etc. I think that right now the advancedsettings.xml feature only works for fanarts, but i'm not sure. Is this right? will this be added iin the future?

regards,