ReplayGain value changes when tag is updated. |
Please read foobar2000 Tech Support Forum Rules before posting and comply with all the points.
Failure to provide all the information pointed out in the above document in your post is considered wasting other people's time and in extreme cases will lead to your topic getting locked without a reply.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
ReplayGain value changes when tag is updated. |
Jul 11 2012, 11:29
Post
#1
|
|
|
Group: Members Posts: 4 Joined: 24-August 09 Member No.: 72613 |
Hi. I have noticed that when I change tag in FLAC files the album gain changes.
First it looks like this: http://img259.imageshack.us/img259/7473/fb2k1.png And when tags are changes, it looks like this: http://img443.imageshack.us/img443/8413/fb2k2.png Album gain (db) 1.797479 vs Album gain (db) 1.800000 Is it suppose to be like that or is it a bug? |
|
|
|
Jul 11 2012, 11:40
Post
#2
|
|
|
Group: Members Posts: 582 Joined: 12-May 06 From: Colorado, USA Member No.: 30694 |
What are you changing, and how?
|
|
|
|
Jul 11 2012, 11:42
Post
#3
|
|
|
Group: Members Posts: 4 Joined: 24-August 09 Member No.: 72613 |
With foobar2000.
If I change genre etc. |
|
|
|
Jul 11 2012, 12:50
Post
#4
|
|
![]() Group: Members Posts: 1475 Joined: 30-November 06 Member No.: 38207 |
Does this reverse if you revert your change and rescan? If not: have you looked at what happens if you do not alter anything, just rescan the album? You might have used a slightly different RG scanner previously?
-------------------- geocities.com/hydrogenaudio: http://goo.gl/tqYZj
|
|
|
|
Jul 11 2012, 13:17
Post
#5
|
|
|
Group: Members Posts: 4 Joined: 24-August 09 Member No.: 72613 |
If I rescan, it goes back to 1.797479, like it was first. Doesn't matter if I revert the changes, it always goes back to 1.797479 with rescan.
I have only used the ReplayGain scanner in foobar2000. And if I change tag in 1 track, and want to manually edit ReplayGain information, it says <mutiple values> http://img688.imageshack.us/img688/952/fb2k3.png I think it happens only with FLAC files. |
|
|
|
Jul 11 2012, 13:38
Post
#6
|
|
![]() Group: Members Posts: 1475 Joined: 30-November 06 Member No.: 38207 |
So what you are saying is,
(1) it initially was 1.79something (2) scan after changed tags, yields 1.80 (3) any subsequent scan – whatever is done in the meantime – and it goes back to 1.79something? - Can you replicate this on this or any other album? - Sure there wasn't any 10th track joining in when you did the 1.80 scan? -------------------- geocities.com/hydrogenaudio: http://goo.gl/tqYZj
|
|
|
|
Jul 11 2012, 14:01
Post
#7
|
|
![]() Group: Developer Posts: 2986 Joined: 2-December 07 Member No.: 49183 |
(1) perform RG scan and write it to tags.
(2) context menu -> ReplayGain -> Edit RG info: fb2k shows the gain as "-6.713373" however, the real RG tag in the flac file is "replaygain_track_gain=-6.71 dB" |
|
|
|
Jul 11 2012, 15:17
Post
#8
|
|
![]() Group: Members Posts: 407 Joined: 26-March 09 Member No.: 68400 |
|
|
|
|
Jul 11 2012, 16:09
Post
#9
|
|
|
Group: Members Posts: 4 Joined: 24-August 09 Member No.: 72613 |
So, it's maybe the "context menu -> ReplayGain -> Edit RG info" that are showing the wrong value?
Sorry, my english ain't the best and I'm not so good at these technical things. |
|
|
|
Jul 11 2012, 17:05
Post
#10
|
|
|
Group: Members Posts: 328 Joined: 17-April 12 Member No.: 98921 |
It looks like a tag writing bug to me. You have the actual replaygain value and the rounded replaygain value (for display purposes). When you altered your file, foobar rewrote the rounded value to the tag instead of writing the actual value.
This post has been edited by BenB: Jul 11 2012, 17:06 -------------------- This signature apparently isn't too long.
|
|
|
|
Jul 11 2012, 17:11
Post
#11
|
|
![]() ReplayGain developer Group: Developer Posts: 4589 Joined: 5-November 01 From: Yorkshire, UK Member No.: 409 |
To the nearest 0.01dB is way more than good enough. I wonder if fb2k intentionally enforces this, or it's just a quirk?
Cheers, David. |
|
|
|
Jul 11 2012, 17:25
Post
#12
|
|
|
Group: Super Moderator Posts: 4356 Joined: 23-June 06 Member No.: 32180 |
FWIW, I checked an official source: metaflac is stated as using the same tag-writing scheme as vorbisgain, which writes values accurate to two decimal places.
So, this might not be a bug, but there’s still the question of why it shows the more precise value (which in this case is hardly necessary, as David said) initially; is the ‘raw’ value computed by the scanner being cached, or is something else responsible? |
|
|
|
Jul 11 2012, 18:35
Post
#13
|
|
|
Group: Members Posts: 328 Joined: 17-April 12 Member No.: 98921 |
Surely if this were not a bug, foobar would write the rounded replaygain value to the tag when scanned and not wait until unrelated tags are altered. That just seems odd. It's not a significant bug(?) in any case.
The thing I'm wondering about now is which value foobar actually employs when applying replaygain during playback: the more (unnecessarily) precise calculated value or the rounded value? It personally makes no difference; nevertheless, I'd like to know the answer. (edited to clarify) This post has been edited by BenB: Jul 11 2012, 18:44 -------------------- This signature apparently isn't too long.
|
|
|
|
Jul 11 2012, 19:50
Post
#14
|
|
![]() Group: Members Posts: 407 Joined: 26-March 09 Member No.: 68400 |
|
|
|
|
Jul 11 2012, 19:57
Post
#15
|
|
|
Group: Members Posts: 328 Joined: 17-April 12 Member No.: 98921 |
No, it doesn't. The "Edit RG Info" window shows the actual value stored in the replaygain tag. What's shown elsewhere is the rounded value, and in the case of OP, foobar is overwriting the scanned value with the rounded value when he alters other tags.
This post has been edited by BenB: Jul 11 2012, 20:04 -------------------- This signature apparently isn't too long.
|
|
|
|
Jul 11 2012, 20:05
Post
#16
|
|
![]() Group: Developer Posts: 2986 Joined: 2-December 07 Member No.: 49183 |
QUOTE No, it doesn't. The "Edit RG Info" window shows the actual scanned value. No, fb2k writes rounded value but caches (and shows) more precise gain value. |
|
|
|
Jul 11 2012, 20:20
Post
#17
|
|
|
Group: Members Posts: 328 Joined: 17-April 12 Member No.: 98921 |
Hmmm, my replaygain tags aren't showing a rounded value. *scratches head*
I guess you've possibly and indirectly answered my earlier question. I assume foobar uses the non-rounded value when applying replaygain during playback; otherwise, it would be rather pointless to cache it. EDIT: Then again, it could still use the rounded value, but then the question becomes "why not just store the rounded value?". This post has been edited by BenB: Jul 11 2012, 20:23 -------------------- This signature apparently isn't too long.
|
|
|
|
Jul 11 2012, 20:21
Post
#18
|
|
![]() Group: Members Posts: 407 Joined: 26-March 09 Member No.: 68400 |
QUOTE The "Edit RG Info" window shows the actual scanned value. But that is not what is written to the tag. QUOTE foobar is overwriting the scanned value with the rounded value No. The unrounded value is never written to the tag. The rounded value is written to the tag, in the actual file, from the start. The rounded value is also displayed correctly in the Properties dialog. The only place the unrounded value is found is in the editor. So apparently the editor is initially retrieving the value from internal memory / db, and updating only after tags are edited - or tag info is otherwise reloaded (exa. Context > Tagging > Reload info from file(s)). |
|
|
|
Jul 11 2012, 20:39
Post
#19
|
|
|
Group: Members Posts: 328 Joined: 17-April 12 Member No.: 98921 |
I think it's safe to conclude this isn't a bug (or very insignificant if it is). Now I have to determine why I have unrounded values stored in some of my files. All of my files have been replaygain scanned using foobar (natively or through the preceding component before foobar's replaygain scanning was revised).
-------------------- This signature apparently isn't too long.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 13:00 |