[ Solved ] Track gain/peak not written in metadata

Tell us if the Software is behaving badly

Moderator: poiko

Post Reply
blabibo
Bronze
Bronze
Posts: 89
Joined: Mon Sep 17, 2012 11:21 am
Location: Belgium

[ Solved ] Track gain/peak not written in metadata

Post by blabibo » Tue Dec 04, 2018 7:33 pm

I scanned a long FLAC track (48 minutes) with ReplayGain but the track gain and track peak are not written into the metadata. Scan proceeds fine but upon completion the track peak column stays empty and looking at the Metadata window there's no replaygain info (no track gain nor peak). All other info is correctly saved in the metadata (cover, total track & disc, label etc.)

User avatar
poiko
Site Admin
Site Admin
Posts: 3676
Joined: Sat Mar 11, 2006 8:31 pm
Location: https://www.poikosoft.com
Contact:

Re: Track gain/peak not written in metadata

Post by poiko » Tue Dec 04, 2018 8:16 pm

Just tried it. Works fine.

- Add a FLAC to the list
- Metadata / Scan ReplayGain
- ReplayGain is properly calculated
- ReplayGain shows in the list
- Save Metadata
- Clear List
- Add the FLAC to the list
- ReplayGain is there

blabibo
Bronze
Bronze
Posts: 89
Joined: Mon Sep 17, 2012 11:21 am
Location: Belgium

Re: Track gain/peak not written in metadata

Post by blabibo » Tue Dec 04, 2018 8:25 pm

Yes, it work with regular length tracks but not with a track that's 48 minutes long. I tried several times but replaygain data is not saved. If you need screenshots let me know.

User avatar
poiko
Site Admin
Site Admin
Posts: 3676
Joined: Sat Mar 11, 2006 8:31 pm
Location: https://www.poikosoft.com
Contact:

Re: Track gain/peak not written in metadata

Post by poiko » Tue Dec 04, 2018 8:29 pm

I tested with 57 minute file. The length should not make any difference.

Send me the file I can try the same file and see what happens.

blabibo
Bronze
Bronze
Posts: 89
Joined: Mon Sep 17, 2012 11:21 am
Location: Belgium

Re: Track gain/peak not written in metadata

Post by blabibo » Tue Dec 04, 2018 8:39 pm

I just tried again but no luck. Also I noticed that the replaygain value for track peak is different than the one written on the EAC log. ReplayGain says "81.610%" but EAC says "94.4%". I will upload everything so you can have a look, it's strange, I never had that before.

User avatar
poiko
Site Admin
Site Admin
Posts: 3676
Joined: Sat Mar 11, 2006 8:31 pm
Location: https://www.poikosoft.com
Contact:

Re: Track gain/peak not written in metadata

Post by poiko » Tue Dec 04, 2018 8:50 pm

So it can be that the flac file is corrupt. It would explain the odd behaviour. (just guessing)

blabibo
Bronze
Bronze
Posts: 89
Joined: Mon Sep 17, 2012 11:21 am
Location: Belgium

Re: Track gain/peak not written in metadata

Post by blabibo » Tue Dec 04, 2018 8:57 pm

poiko wrote:
Tue Dec 04, 2018 8:50 pm
So it can be that the flac file is corrupt. It would explain the odd behaviour.
It could be, I haven't thought about that. I'm making a new rip atm and will test the new file. I also sent you a message with a link to the problematic file. Let me know if you're able to save ReplayGain metadata.

edit: so I made a new rip of the CD and both old and new file give me the same md5 value so they should be identical. So I launched EZCD again and was able to save the replaygain metadata in the new file. Then I tried again with the old file... and this time it worked! The track peak value is still 81.610% though, not sure if I should worry about that?
Last edited by blabibo on Tue Dec 04, 2018 9:19 pm, edited 1 time in total.

User avatar
poiko
Site Admin
Site Admin
Posts: 3676
Joined: Sat Mar 11, 2006 8:31 pm
Location: https://www.poikosoft.com
Contact:

Re: Track gain/peak not written in metadata

Post by poiko » Tue Dec 04, 2018 9:15 pm

Thank you for sending me the files.

It works fine.

I see the problem why you're not seeing the calculated ReplayGain.

You drag n drop the folder, there is .CUE and .FLAC.

Contents will be listed as:
↓FOLDER
→CUE+FLAC

So the actual tracks are not expanded.

(because you have Single File profile mode enabled, or 'Extract tracks from Cue Sheet' option disabled in Normal profile)

Now click on the → and you will see the tracks of the CUE+FLAC. There you have the ReplayGain values correctly.

↓FOLDER
↓CUE
→TRACKS all - the - info - of - the - tracks - here

Highest peak of the file is 81.610% so it seems like the EAC log shows it wrong or the audio has been normalized after ripping.

Also the original CUE file shows the correct ReplayGain values.
REM REPLAYGAIN_TRACK_GAIN -2.54 dB
REM REPLAYGAIN_TRACK_PEAK 0.816101

If you drag a CUE+FLAC disc image, then the ReplayGain is written to the CUE file for each track.

If you want to add ReplayGain values to the FLAC file itself, then you need to Drag N Drop the FLAC file not the CUE file.

blabibo
Bronze
Bronze
Posts: 89
Joined: Mon Sep 17, 2012 11:21 am
Location: Belgium

Re: Track gain/peak not written in metadata

Post by blabibo » Tue Dec 04, 2018 9:32 pm

poiko wrote:
Tue Dec 04, 2018 9:15 pm
or 'Extract tracks from Cue Sheet' option disabled in Normal profile)
That's it! Thank you so much for spotting my mistake, I just couldn't figure out what I was doing wrong and didn't see that the folder was not expanded. Sorry sorry :oops:
poiko wrote:
Tue Dec 04, 2018 9:15 pm
Highest peak of the file is 81.610% so it seems like the EAC log shows it wrong or the audio has been normalized after ripping. Also the original CUE file shows the correct ReplayGain values.
REM REPLAYGAIN_TRACK_GAIN -2.54 dB
REM REPLAYGAIN_TRACK_PEAK 0.816101
The audio has not be normalized, afaik EAC extracts the file in .wav format then compresses it in Flac, no other operation is done. I don't think EAC can nomalize audio (but I'd have to check that). I may open a question on their forum to know more about the discrepancy in peak values.

Thank you again for helping me solve this problem so quickly :)

edit: I checked and EAC can normalize audio, but in my case it is disabled, so that's not the source. What I found is that the EAC peak level value is the loudest sample in a track. Maybe what ReplayGain computes is the average loudness of a track? That would explain the different values between EAC and ReplayGain.

Post Reply