Installation instructions
Before installation
You need a variety of things. Others aren’t needed, but greatly improve your experience with Smart DJ. Here’s the list (optional items are marked ‘optional’):
- amaroK 1.3.1 or higher
- a working installation of Python
- attr
(getfattrandsetfattrcommands) - Extended attributes for Python
- the Python commandsplus module
- the Python Observer/Observable pattern
- the amaroK bindings for Python
- the songanalysis program (which analyzes the songs)
- (optional, highly desirable ) mpg321 (to analyze MP3)
- (optional, highly desirable) ogg321 (to analyze Ogg Vorbis files)
- (optional, highly desirable) PyQt
- (optional, highly desirable) support for extended attributes on your file systems
- (future optional requirements) PyKDE
Of those, all are available on the Internet, as source packages and as precompiled RPM packages.
Optional activities
Install mpg321 and ogg321
The program that performs the music analysis, songanalysis, does not read MP3 or Ogg Vorbis files directly. songanalysis requires mpg321 and ogg321 to be present in order to analyze MP3 and Ogg Vorbis files, respectively. I guess you could make use of Smart DJ with only WAV files… but then again, I’m guessing you own lots more MP3 than WAV files.
Install PyQt
This plug-in requires the PyQt Python bindings for Qt for the user interface. You’ll probably find it easy to install PyQt since you already have amaroK and hence you have Qt installed. Basically, without PyQt, no user interface, no Auto DJ. Only analysis and a small box in the Context browser.
Patch amaroK with the included patch named amarok-show-tempo.diff
This will let you see song tempo in a playlist column. This is very convenient.
Enable extended attribute usage on your computer
Note that extended attributes are optional. But not enabling them may prove detrimental to this package’s performance. What is required is the presence of the Extended attributes for Python package, along with the getfattr and setfattr commands. See below for easy instructions on enabling extended attributes.
How to install Smart DJ
Simply open amaroK, then open the Script manager, click the Install Script button, and locate the script package. After installing, hit the Run button. That’s it!