Moodbar Generator
Amarok 2.x Scripts
Score 80%
Description:

Amarok2 script.
Automatically generates moodbar files for current playlist, songs added to playlist, currently playing song.
thanks Boris Churzin(http://kde-apps.org/usermanager/search.php?username=devenv) for idea, also thanks to Nikhil Marathe for help.
Need this thing: http://amarok.kde.org/wiki/Moodbar.
And, please, check if moodbar is on (check box "Show Moodbar in Progress slider")
Last changelog:

6 years ago

Now it can't slow down amarok, but need testing because of many changes.
Added russian translation, but it is not work :) (don't know why)

msx

4 years ago

Works smooth on Amarok 2.7, KDE 4.10.2-preview (Chakra).
Thank you!

Report

baby-luck

5 years ago

Hi,
After generating a mood file, what code will refresh the Playlist so that the moodbar is shown? Moodbars are only read when starting Amarok (2.5.0). Neither "Update Collection" nor "Full Rescan" work.

Report

ZLv

5 years ago

Maybe it is some feature of moodbar, but not moodbar generator script?

Report

bitcrazy

5 years ago

Since Amarok 2.5 your script doesn't work anymore.
Actually I've Amarok 2.6 running under KDE 4.8.0. The script throws an error about element "Path.is.empty" or something on startup and no mood files are generated.

Report

bitcrazy

5 years ago

Just removed the defunct function path.isEmpty. Now it is working again.

Report

ZLv

5 years ago

Sory for late answer, but there is no such function call as path.isEmpty in last script version.

Report

bitcrazy

5 years ago

You're right, but you should increase the version number correctly then. Both versions show 0.5 in the README and the script.spec. Therefore I guessed having the latest version already.

Report

ZLv

5 years ago

done. Thank you

Report

ZLv

5 years ago

it's strange. Is there any way, that moodbar command doesn't work? Try for example:
moodbar "03 - An Cat Dubh.flac" -o ".03 - An Cat Dubh.mood"
on this song: http://disk.tom.ru/mvlm7dl

You can try to enter debug mode of amarok by:
amarok --debug
maybe it'll help

Report

Ninja1980

5 years ago

Nope won't work on the command line; error:
"Could not create element of type audioconvert, please install it."

I went to the Amarok Wiki to look at which packages are needed for moodbar generation... all the packages in openSuse 12.1 64-bit have been changed from what it recommends. For example, I should have package; gst-plugins-flac installed for flac files... this package does not exist for opensuse 12.1 Do you know of an alternate? I believe this to be a package problem with opensuse 12.1 and your script. So you may have no idea, but I appreciate any help.

Report

ZLv

5 years ago

Have you tried moodbar with ogg or mp3?

Report

Ninja1980

5 years ago

.flac
.mp3
.ogg

All those files types do not work, same error.

Report

ZLv

5 years ago

I've tried it in opensuse, I have moodfiles generated, so this is not problem of the distribution

Report

Ninja1980

5 years ago

I've made sure my music directory is writeable. The error I am receiving now when running the script via the Amarok Script Console is;

TypeError: Result of expression 'Amarok.Window.SettingsMenu.moodbarSettings' [undefined] is not an object.

Report

ZLv

5 years ago

Happy new year!

Ok, I get this error with console too. But why are you running script through amarok script console? Maybe it is better to simply enable script in settings->scripts and start playing songs, then moodbar generate mood files itself.

Report

Ninja1980

5 years ago

Happy New Year! :)

I was running it in the console to troubleshoot, because moodbar files were still not being generated and was not receiving an error in Amarok anymore.

Report

ZLv

5 years ago

Thank you again.
Ok, now I made checking is url empty.
Can you test this script again, please?

Report

Ninja1980

5 years ago

Same error.

Report

ZLv

5 years ago

strange, I have amarok 2.4-git and can't reproduce error after this update and even tried on 2.4.3, but it's work.

Report

Ninja1980

5 years ago

I uninstalled the script, reinstalled via the link on the page here, and pasted the folder into the Amarok Scripts folder. I no longer get the error, however, mood files are not being generated. They should be placed into the same folder as the audio file correct?

Report

ZLv

5 years ago

yes, in the same folder, test if this folder writable

Report

Ninja1980

5 years ago

I get an error when trying to generate moodbars. I previously used the script on the command line via a sh script. But since upgrading to opensuse 12.1 that script no longer works.

Amarok version: 2.4.3
KDE version: 4.7.2
OpenSuse 12.1 64-bit

Error:
Script error reported by: Moodbar generator
Qurl:Qurl() could not find a function match; Candidates are: Qurl() Qurl (string url)
Qurl (string url, parsingMode mode) Qurl (Qurl copy)

Report

ZLv

5 years ago

anyway thank you for the bagreport

Report

bitcrazy

6 years ago

I've Amarok build from GIT and your script installed. Moodfiles are generated, but don't result in colored timeline.

Report

bitcrazy

6 years ago

Showing up moodbar was deactivated.

Report

6 years ago

Now it can't slow down amarok, but need testing because of many changes.
Added russian translation, but it is not work :) (don't know why)

product-maker Etemenanki Sep 28 2014

product-maker msx Apr 02 2013

product-maker hurufu Mar 14 2013

product-maker saabzero Jan 21 2013

product-maker LeonardoXIV Sep 08 2012

product-maker fri Dec 15 2011

product-maker seamanj Oct 13 2011

product-maker pedrolopex5 Sep 21 2011

product-maker dimitarpopov Jun 19 2011

product-maker e1nste1n Jun 14 2011

product-maker spell Jun 13 2011

product-maker irekc May 16 2011

product-maker caidoberco May 13 2011

product-maker malarkannan89 May 05 2011

product-maker trw25 May 01 2011

product-maker nullpointer Apr 17 2011

product-maker gbschenkel Mar 15 2011

product-maker bofhorg Mar 08 2011

product-maker mischi Feb 21 2011

product-maker H00K Jan 25 2011

product-maker mklemenz Jan 24 2011

product-maker lelamal Jan 24 2011

product-maker krnekit Jan 16 2011

product-maker XXXyz Jan 15 2011

product-maker amihere007 Jan 11 2011

product-maker chromatic6 Jan 09 2011

product-maker swiftscythe Jan 08 2011

product-maker SeaJey Jan 08 2011

product-maker Genserowski Jan 07 2011

product-maker MichauSm Jan 04 2011

product-maker aspotashev Dec 20 2010

product-maker PingusPepan Dec 17 2010

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.56
updated Dec 14 2011
added Nov 29 2010
downloads today
2
page views today 1