Elektrine lite

← Feed

@pacavegano@ieji.de

2026-06-23 01:27 UTC

Linux audio help? I’ve never tried a toot like this before, and maybe no one will even see it, but worth a try… I have a lot of FLAC files, mostly ripped from my CD collection, though recently, as better than CD quality files have become more available, I sometimes do buy album downloads. Anyway, I would like to copy a bunch of tracks to my phone to listen to on shuffle, but they have varying volume levels. I tried copying some to a folder on my Debian workstation, from recent Kpop (very loud) to New Wave ripped from CDs that I bought in the ‘80s (very quiet), and everything in between. I then ran normalize-audio on them, which did, indeed, normalize the volume levels nicely. It also stripped out all existing tags such as Artist and Title. Does anyone have any suggestions for normalizing the volume while retaining the existing metadata? Thanks in advance for any tips! (And boosts are welcome.) #LinuxAudio #flac #music #linux #audio

Replies (10)

  • @pacavegano@ieji.de 2026-06-23 04:23

    Wow, the Fediverse truly is awesome. :-) Several suggestions in just a couple of hours. Thanks, folks! I’ll start exploring these suggestions tomorrow.

    Open ##5077978

  • @pacavegano@ieji.de 2026-06-28 03:30

    Well, to give this closure, rsgain definitely did the job of adding Replay Gain tags to the tracks as promised, but either the player on my phone doesn’t use them, or for some other reason the results were not as satisfying to me as with normalize-audio. I ended up writing a script which does exactly what I want, using ffmpeg (to convert the few tracks that I was only able to buy as mp3s to FLAC), metaflac to save off the tags I care about, normalize-audio, and then metaflac again to restore the tags. For convenience in my use case I also have it tag all the files with the directory name as the album title. So essentially, I am creating my own compilation albums.

    Open ##5077979

  • @arun@fantastic.earth 2026-06-23 01:54

    @pacavegano@ieji.de not tried this, but maybe something similar to https://github.com/complexlogic/rsgain

    Open ##5077980

  • @pacavegano@ieji.de I haven't used this too much, but it seems like `sox` has a normalization filter (spelled "normalise" in the docs and manual), and from my testing, it looks like it retains all flac metadata

    Open ##5077983

  • @Hyperlynx@aus.social 2026-06-23 03:48

    @pacavegano@ieji.de the keyword you want is "replaygain". It's just an additional metadata tag, instead of trying to mess with the whole file's data. Nearly all players support it, and many also have a scanner/tagger in them.

    Open ##5077984

  • @mkyral@mamutovo.cz 2026-06-23 04:58

    @pacavegano@ieji.de According to man page, program updates version of ID3 tag schema. Maybe this is a reason you can see them? https://manpages.ubuntu.com/manpages/trusty/man1/normalize-audio.1.html

    Open ##5077985

  • @TheZorse@hear-me.social 2026-06-23 06:10

    @pacavegano@ieji.de Audacity preserves tags but not sure if it will preserve the type of tag your devices use. If it doesn't, there's a separate solution for that at the bottom of this post. Both programs should be available in your software center. -import your songs into Audacity -select all tracks and go to Effect - Volume and Compression - Normalize, and select your preferred volume. (In the same menu there's also Loudness Normalization, which adjusts "perceived" loudness. I haven't tried this.) -when done, with all tracks still selected, go to File - Export Audio - select your desired file type under Format - select your sample rate, etc., if necessary - select Multiple Files (important!) - then click the Export button at the bottom If the tags that are preserved are not the ones you want, you can use another program called Kid3-qt to bulk select music files and apply all the data from one type of tag to another type of tag.

    Open ##5077986

  • @mezz@mstdn.games 2026-06-23 06:56

    @pacavegano@ieji.de ReplayGain is probably what you want. It's basically a metadata field that tells the music player how much to turn down the volume on a specific song. Many music players support it. I use fooyin to analyze and embed the information inside my music. No recoding required at all!

    Open ##5077987

  • @pacavegano@ieji.de I’m just going ask here but how do you get the replay gain metadata ON the file? What app works to do that? Is that a plug in within Music Picard or something else?

    Open ##5077988

  • @clew@ecoevo.social 2026-06-23 17:12

    You know, thank you for _asking_ — I have this problem and evidently I was just going to suffer it unthinking. @pacavegano@ieji.de

    Open ##5077992