Amarok 1.4.2-beta1

Jeff Mitchell kde-dev at emailgoeshere.com
Sun Jul 30 01:49:07 UTC 2006


Jocke--

1)
Here's my metadata on one of my files.  The ReplayGain info was added when I 
ripped the CD a long time ago.  I don't remember what program it was, but I 
can definitely say that this was not from the Amarok replaygain script...in 
fact, it was so long ago, it was probably some Windows program.  However, you 
can see the ATF tag in there, co-existing nicely with the replaygain tags 
from eons ago.

jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ eyeD3 Barenaked\ 
Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

Barenaked Ladies - Stunt - 01 - One Week.mp3    [ 4.32 MB ]
--------------------------------------------------------------------------------
Time: 2:49      MPEG1, Layer III        [ ~214 kb/s @ 44100 Hz - Joint 
stereo ]
--------------------------------------------------------------------------------
ID3 v2.4:
title: One Week         artist: Barenaked Ladies
album: Stunt            year: None
track: 1                genre: General Listening (id None)
Unique File ID: [AMAROK - REDISCOVER YOUR MUSIC AT HTTP://AMAROK.KDE.ORG] 
HMwy[QW;

UserTextFrame: [Description: REPLAYGAIN_TRACK_PEAK]
0.98855591
UserTextFrame: [Description: REPLAYGAIN_TRACK_GAIN]
-8.06 dB
UserTextFrame: [Description: REPLAYGAIN_ALBUM_PEAK]
0.98855591
UserTextFrame: [Description: REPLAYGAIN_ALBUM_GAIN]
-8.06 dB

2)
Looks to me like the replaygain tags are perfectly happy.  In fact, I'll even 
rewrite the tag with a new UID:

jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ dcop amarok 
collection newUniqueIdForFile /mnt/share/Current\ Media/Barenaked\ 
Ladies/Stunt/Barenaked\ Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ eyeD3 Barenaked\ 
Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

Barenaked Ladies - Stunt - 01 - One Week.mp3    [ 4.32 MB ]
--------------------------------------------------------------------------------
Time: 2:49      MPEG1, Layer III        [ ~214 kb/s @ 44100 Hz - Joint 
stereo ]
--------------------------------------------------------------------------------
ID3 v2.4:
title: One Week         artist: Barenaked Ladies
album: Stunt            year: None
track: 1                genre: General Listening (id None)
Unique File ID: [AMAROK - REDISCOVER YOUR MUSIC AT HTTP://AMAROK.KDE.ORG] 
Qw]mN-(2

UserTextFrame: [Description: REPLAYGAIN_TRACK_PEAK]
0.98855591
UserTextFrame: [Description: REPLAYGAIN_TRACK_GAIN]
-8.06 dB
UserTextFrame: [Description: REPLAYGAIN_ALBUM_PEAK]
0.98855591
UserTextFrame: [Description: REPLAYGAIN_ALBUM_GAIN]
-8.06 dB

3)
Yep, has a new ID, and the replaygain tags are still there.  Okay, how about I 
remove the tag that's there and start from scratch.

jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ 
eyeD3 --remove-all ./Barenaked\ Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

Barenaked Ladies - Stunt - 01 - One Week.mp3    [ 4.32 MB ]
--------------------------------------------------------------------------------
Time: 2:49      MPEG1, Layer III        [ ~214 kb/s @ 44100 Hz - Joint 
stereo ]
--------------------------------------------------------------------------------
Removing ID3 v1.x and/or v2.x tag: SUCCESS
jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ eyeD3 Barenaked\ 
Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

Barenaked Ladies - Stunt - 01 - One Week.mp3    [ 4.32 MB ]
--------------------------------------------------------------------------------
Time: 2:49      MPEG1, Layer III        [ ~214 kb/s @ 44100 Hz - Joint 
stereo ]
--------------------------------------------------------------------------------
No ID3 v1.x/v2.x tag found!   

4)
Right, now I'll add the tags back using Amarok, with ATF tag writing turned 
off:

jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ eyeD3 Barenaked\ 
Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

Barenaked Ladies - Stunt - 01 - One Week.mp3    [ 4.32 MB ]
--------------------------------------------------------------------------------
Time: 2:49      MPEG1, Layer III        [ ~214 kb/s @ 44100 Hz - Joint 
stereo ]
--------------------------------------------------------------------------------
ID3 v2.4:
title: One Week         artist: Barenaked Ladies
album: Stunt            year: None
track: 1                genre: General Listening (id None)

5)
Now, I make my playlist only have that one track, and right-click on the track 
and hit "Apply Replaygain to playlist in album mode."
jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ eyeD3 Barenaked\ 
Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

Barenaked Ladies - Stunt - 01 - One Week.mp3    [ 4.32 MB ]
--------------------------------------------------------------------------------
Time: 2:49      MPEG1, Layer III        [ ~214 kb/s @ 44100 Hz - Joint 
stereo ]
--------------------------------------------------------------------------------
ID3 v2.4:
title: One Week         artist: Barenaked Ladies
album: Stunt            year: None
track: 1                genre: General Listening (id None)

6)
Huh, that's odd.  Try it again, and again.  Nope, no tags getting written from 
the replaygain script.  Hmm, maybe Okay, let's try something else.  Maybe the 
replaygain script doesn't like the ID3v2.4 tag.  Let's make it v2.3.

jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ eyeD3 --to-v2.3 
Barenaked\ Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

Barenaked Ladies - Stunt - 01 - One Week.mp3    [ 4.32 MB ]
--------------------------------------------------------------------------------
Time: 2:49      MPEG1, Layer III        [ ~214 kb/s @ 44100 Hz - Joint 
stereo ]
--------------------------------------------------------------------------------
Converting tag to ID3 version v2.3
Writing tag...
ID3 v2.3:
title: One Week         artist: Barenaked Ladies
album: Stunt            year: None
track: 1                genre: General Listening (id None)

7)
Now, try applying the replaygain tag again...and again, and again.  With the 
same exact tag as above.

Okay, so I look and realize I'm using version 0.8.5 and version 0.9 is out 
now.  I go to GHNS and download the latest version.  Let's try the above 
tests again...

Nope, same result.  Amarok keeps telling me that the replaygain was 
successfully written to the file, and eyeD3 keeps telling me nothing is 
there, for both the v2.3 and v2.4 tag.  I know, maybe eyeD3 is messing up.  
Let's look at a hex dump:

0000:0000 49 44 33 03 00 00 00 00 08 7d 54 49 54 32 00 00 ID3......}TIT2..
0000:0010 00 09 00 00 03 4f 6e 65 20 57 65 65 6b 54 50 45 .....One WeekTPE
0000:0020 31 00 00 00 11 00 00 03 42 61 72 65 6e 61 6b 65 1.......Barenake
0000:0030 64 20 4c 61 64 69 65 73 54 41 4c 42 00 00 00 06 d LadiesTALB....
0000:0040 00 00 03 53 74 75 6e 74 54 52 43 4b 00 00 00 02 ...StuntTRCK....
0000:0050 00 00 03 31 54 43 4f 4e 00 00 00 12 00 00 03 47 ...1TCON.......G
0000:0060 65 6e 65 72 61 6c 20 4c 69 73 74 65 6e 69 6e 67 eneral Listening
0000:0070 54 50 4f 53 00 00 00 02 00 00 03 31 54 43 4d 50 TPOS.......1TCMP
0000:0080 00 00 00 02 00 00 03 30 00 00 00 00 00 00 00 00 .......0........
0000:0090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

Hmm.  v2.3 tag, no replaygain tag.

8)
Okay, so the replaygain tags that were there before were text frames.  How 
about adding one:

jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ 
eyeD3 --set-user-text-frame="TestingForJocke:Blahblahblah" Barenaked\ 
Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

Barenaked Ladies - Stunt - 01 - One Week.mp3    [ 4.32 MB ]
--------------------------------------------------------------------------------
Time: 2:49      MPEG1, Layer III        [ ~214 kb/s @ 44100 Hz - Joint 
stereo ]
--------------------------------------------------------------------------------
Setting 'TestingForJocke' TXXX frame to 'Blahblahblah'
Writing tag...
ID3 v2.3:
title: One Week         artist: Barenaked Ladies
album: Stunt            year: None
track: 1                genre: General Listening (id None)

UserTextFrame: [Description: TestingForJocke]
Blahblahblah
jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ 
eyeD3 --set-user-text-frame="TestingForJocke2:Watch Me Still Exist" 
Barenaked\ Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

Barenaked Ladies - Stunt - 01 - One Week.mp3    [ 4.32 MB ]
--------------------------------------------------------------------------------
Time: 2:49      MPEG1, Layer III        [ ~214 kb/s @ 44100 Hz - Joint 
stereo ]
--------------------------------------------------------------------------------
Setting 'TestingForJocke2' TXXX frame to 'Watch Me Still Exist'
Writing tag...
ID3 v2.3:
title: One Week         artist: Barenaked Ladies
album: Stunt            year: None
track: 1                genre: General Listening (id None)

UserTextFrame: [Description: TestingForJocke]
Blahblahblah
UserTextFrame: [Description: TestingForJocke2]
Watch Me Still Exist

9)
Okay, looks good.  Let's turn on ATF tag writing and write an ATF tag.  I 
expect the tag to be converted to v2.4, and to keep the UserTextFrames just 
fine.

jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ dcop amarok 
collection newUniqueIdForFile /mnt/share/Current\ Media/Barenaked\ 
Ladies/Stunt/Barenaked\ Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3
jeff at scales /mnt/share/Current Media/Barenaked Ladies/Stunt $ eyeD3 Barenaked\ 
Ladies\ -\ Stunt\ -\ 01\ -\ One\ Week.mp3

Barenaked Ladies - Stunt - 01 - One Week.mp3    [ 4.32 MB ]
--------------------------------------------------------------------------------
Time: 2:49      MPEG1, Layer III        [ ~214 kb/s @ 44100 Hz - Joint 
stereo ]
--------------------------------------------------------------------------------
ID3 v2.4:
title: One Week         artist: Barenaked Ladies
album: Stunt            year: None
track: 1                genre: General Listening (id None)
Unique File ID: [AMAROK - REDISCOVER YOUR MUSIC AT HTTP://AMAROK.KDE.ORG] 
(paQ91!G

UserTextFrame: [Description: TestingForJocke]
Blahblahblah
UserTextFrame: [Description: TestingForJocke2]
Watch Me Still Exist

Okay, so unless I am somehow managing not to use the replaygain script 
correctly, and if this is the case someone please tell me what I'm doing 
wrong and I'll be happy to do more testing, I have shown the following:

1) ATF tags can be written, and rewritten, to MP3 files without doing anything 
harmful to existing ReplayGain tags (at least, assuming all programs use 
UserTextFrames for them).
2) The Amarok ReplayGain script simply doesn't work, period.


Jocke, I'd highly suggest you see the command ~jefferai in #amarok.

--Jeff



On Saturday 29 July 2006 18:37, Jocke Andersson wrote:
> Jeff, I know it wasn't intended to remove the tags, just said that it did
> so here...
> Replaygain 0.9beta3 apparently[1] uses the mutagen library [2] from Quod
> Libet, which seems to be able to use id3v2.4... Maybe I used an older
> version when testing ATF...
> Although, when I complained a little in #amarok, markey (I think) said
> something about taglib maybe rewriting the entire id3 thingie, which made
> the gain tags disappear since taglib doesn't support them. Can that be the
> reason?
>
> [1] http://www.kde-apps.org/content/show.php?content=26073
> [2] http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen
>
> //Firetech
>
> On Sunday July 30 2006 00:23, Jeff Mitchell wrote:
> > ATF has never removed mp3gain tags.  I have plenty of files with
> > replaygain tags and ATF tags together.  Apparently the mp3gain script
> > does not use taglib but instead relies on some other library that will
> > only read up to ID3v2.3, while TagLib uses ID3v2.4.
> >
> > People should either not turn on writing ATF tags, update
> > mp3gain/replaygain to use the latest version of id3v2, or just deal with
> > it
> >
> > :-)
> >
> > --Jeff
> >
> > On Saturday 29 July 2006 16:59, Jocke Andersson wrote:
> > > Is ATF still removing mp3gain tags?
> > > It did for me when I tried it right after 1.4.1. I don't really want to
> > > try again since rescanning the gain tags takes some hours...
> > > It might be a taglib or id3v2 version issue, but it's still annoying. I
> > > can imagine a lot of users of the replaygain script getting angry....
> > >
> > > //Firetech
> > >
> > > On Saturday July 29 2006 17:47, Jeff Mitchell wrote:
> > > > On Saturday 29 July 2006 07:51, Harald Sitter wrote:
> > > > > Jeff, is ATF ready for beta?
> > > >
> > > > Yep.  Fixed a regression and everything seems to be peachy.
> > > >
> > > > --Jeff
> > > > _______________________________________________
> > > > Amarok mailing list
> > > > Amarok at kde.org
> > > > https://mail.kde.org/mailman/listinfo/amarok
> > >
> > > _______________________________________________
> > > Amarok mailing list
> > > Amarok at kde.org
> > > https://mail.kde.org/mailman/listinfo/amarok
> >
> > _______________________________________________
> > Amarok mailing list
> > Amarok at kde.org
> > https://mail.kde.org/mailman/listinfo/amarok
>
> _______________________________________________
> Amarok mailing list
> Amarok at kde.org
> https://mail.kde.org/mailman/listinfo/amarok



More information about the Amarok mailing list