Skimming backward it seems like a few scripts are floating around there to deal with the dds conversion until a proper solution is in place in xbmc. Anywho, I wrote a script to convert my existing fanart. Then I wrote a script to monitor for new fanart. Then I thought that perhaps somebody else wants it, so I spent a short while merging them together, and cleaning up a little bit. It is messy. It is virtually untested (I have not tested on my production xbmc box -file server is down waiting for new sas kit).
The script can be found
here.
Dependencies are inotify-tools and nvcompress.
It uses inotify to monitor the dir(s) for files that are opened for writing, so there is no polling going on. When the opened file is closed nvcompress is run on the file. This should cover the case where you keep the original file and it gets over written with a new fanart while keeping the same file name.
This script handles jpeg and png original images, as those are the only formats I have seen from themoviedb.
There is an option to convert existing directories. (-c)
Or an option to monitor directories. (-m)
There is an option to delete the original file after conversion. (-r)
There is an option to daemonize the process (run in background), in which case all output will be to logs. (-d)
Logs are /tmp/tbn2dds.*, you can `tail -f /tmp/tbn2dds.log` to monitor nvcompress' progress if you running in '-d' mode.
Example usage would be:
tbn2dds -md /home/xbmc/fanart
or
tbm2dds -cr /home/xbmc/fanart
The script is a hack. It is uggly. It is bad. It will make you cry. It will make neighborhood children laugh at you as they pelt you with their leftover lunches. There is virtually *NO* sanity checking at all. Use at your own risk.
enjoy,
Andreas