This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Amarok2 and Musepack replaygain

Tags: None
(comma "," separated)
User avatar
nonolemono
Registered Member
Posts
16
Karma
1
OS

Amarok2 and Musepack replaygain

Thu Feb 12, 2009 10:57 pm
Hi,

I just read on the dev blog that Amarok2 will not support replaygain for musepack because taglib cannot read gain value in mpc files, as musepack stores gain info in a proper header, not a metadata tag.

It is also written that Amarok will read gain values written in mp3 by the mutagen lib.
I do not see then why Musepack is causing a problem, because mutagen also provides access to gain value for musepack files.

This is as simple as:

    f = open(file,'rb')
    info = mutagen.musepack.MusepackInfo(f)
    f.close()
    return(info.title_gain,info.album_gain)

This would definitely be sad to loose replaygain support in Musepack for such a small bunch of code
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: Amarok2 and Musepack replaygain

Thu Feb 12, 2009 11:25 pm
Feel free to submit a proper patch for Amarok via the appropriate channels. No guarantees it'll be implemented, but you will have at least done your bit.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
User avatar
sebr
Moderator
Posts
301
Karma
0

Re: Amarok2 and Musepack replaygain

Thu Feb 12, 2009 11:32 pm
@nonolemono we don't depend on the Mutagen library though, so we cannot use it.
User avatar
nonolemono
Registered Member
Posts
16
Karma
1
OS

Re: Amarok2 and Musepack replaygain

Fri Feb 13, 2009 12:39 am
Well I think I read too fast,

gain tag will be read in MP3 even though it was written by mutagen, but amarok won't make use of mutagen for this...

Anyway why not depend on mutagen for this then ? It's not a "huge" library and amarok is already making us of python am I right ?

Nono
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS

Re: Amarok2 and Musepack replaygain

Mon Feb 16, 2009 5:56 pm
Amarok doesn't use python.


Amarok Developer
User avatar
nonolemono
Registered Member
Posts
16
Karma
1
OS

Re: Amarok2 and Musepack replaygain

Tue Mar 17, 2009 7:38 pm
The only way to go seems to be copying replaygain to APEv2 fields.
I'll post a script once done.
User avatar
thenktor
Registered Member
Posts
86
Karma
0
OS

Re: Amarok2 and Musepack replaygain

Wed Apr 08, 2009 6:38 pm
nonolemono wrote:The only way to go seems to be copying replaygain to APEv2 fields.
I'll post a script once done.


Would be great. BTW: The ReplayGain support in Amarok2 still is very buggy here.


Image
Image
Image
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Amarok2 and Musepack replaygain

Wed Apr 08, 2009 8:03 pm
thenktor wrote:
nonolemono wrote:The only way to go seems to be copying replaygain to APEv2 fields.
I'll post a script once done.


Would be great. BTW: The ReplayGain support in Amarok2 still is very buggy here.


In which ways is it buggy? (provided that you are using the Phonon-xine backend) Please submit precise bug reports to us, before it's "too late", that is, before 2.1 is released. We may still be able to fix it.


--
Mark Kretschmann - Amarok Developer
User avatar
thenktor
Registered Member
Posts
86
Karma
0
OS

Re: Amarok2 and Musepack replaygain

Wed Apr 08, 2009 8:15 pm
Mark Kretschmann wrote:In which ways is it buggy? (provided that you are using the Phonon-xine backend) Please submit precise bug reports to us, before it's "too late", that is, before 2.1 is released. We may still be able to fix it.


I'm using the gstreamer backend. Replaygain doesn't work with xine backed at all (bug report exists).
I couldn't really figure out what the problem is, but for some files in my collection replaygain just doesn't work. Sometimes even files from the same album are affected. Perhaps I should try with a complete rescan of the collection and see if this fixes something...
Of course I'll report as soon as I know more.


Image
Image
Image
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Amarok2 and Musepack replaygain

Thu Apr 09, 2009 11:39 am
thenktor wrote:
Mark Kretschmann wrote:In which ways is it buggy? (provided that you are using the Phonon-xine backend) Please submit precise bug reports to us, before it's "too late", that is, before 2.1 is released. We may still be able to fix it.


I'm using the gstreamer backend. Replaygain doesn't work with xine backed at all (bug report exists).
I couldn't really figure out what the problem is, but for some files in my collection replaygain just doesn't work. Sometimes even files from the same album are affected. Perhaps I should try with a complete rescan of the collection and see if this fixes something...
Of course I'll report as soon as I know more.


Woops, yes: I did actually mean Phonon-GStreamer.


--
Mark Kretschmann - Amarok Developer
User avatar
nonolemono
Registered Member
Posts
16
Karma
1
OS

Re: Amarok2 and Musepack replaygain

Mon Apr 13, 2009 2:51 pm
I did the script.
Trying to figure out if Amarok is using the info now. However I'm not sure that v 2.0.2 supports replaygain at all ?
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Amarok2 and Musepack replaygain

Mon Apr 13, 2009 3:33 pm
nonolemono wrote:Trying to figure out if Amarok is using the info now. However I'm not sure that v 2.0.2 supports replaygain at all ?


Nope, it does not. This is a new feature in 2.1.


--
Mark Kretschmann - Amarok Developer
User avatar
thenktor
Registered Member
Posts
86
Karma
0
OS

Re: Amarok2 and Musepack replaygain

Tue Apr 14, 2009 10:58 am
nonolemono wrote:The only way to go seems to be copying replaygain to APEv2 fields.
I'll post a script once done.


Will other software still work with these retagged Musepack files?


Image
Image
Image
User avatar
nonolemono
Registered Member
Posts
16
Karma
1
OS

Re: Amarok2 and Musepack replaygain

Tue Apr 14, 2009 11:09 pm
thenktor wrote:
nonolemono wrote:The only way to go seems to be copying replaygain to APEv2 fields.
I'll post a script once done.


Will other software still work with these retagged Musepack files?


I'm quite sure yes, I do not alter the real tag field as defined by the Musepack format.
Needs a bit of testing though but I'm almost sure the response is positive.
User avatar
thenktor
Registered Member
Posts
86
Karma
0
OS

Re: Amarok2 and Musepack replaygain

Tue Jul 07, 2009 9:26 pm
What about the script?


Image
Image
Image


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]