Skip to main content
Topic: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available (Read 5273 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

loudgain is a command line loudness normalizer that scans music files and calculates loudness-normalized gain and loudness peak values according to the EBU R128 standard. It can optionally write ReplayGain 2.0-compatible metadata and implements a subset of mp3gain's command-line options, which means that it can be used as a drop-in replacement in many situations. It currently works for FLAC, Ogg Vorbis and MP3 files and can thus replace mp3gain, vorbisgain and metaflac.

loudgain defaults to the ReplayGain 2.0 standard (-18 LUFS, "dB" units) but can do a lot more. It is freely available on GitHub and distributed in source code. Self-compiling it on a modern Linux system is easy, though. A special prebuilt binary for older Ubuntu-based Linuxes (pre Ubuntu 18.04/Linux Mint 19) is also provided.

Link: https://github.com/Moonbase59/loudgain

 

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #1
Will test it. Noticed that foobar2000 doesn't accurately compute Replaygain (Winamp and Flac computes same value and foobar differs).

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #2
Maybe that’s due to Winamp and metaflac (flac) still using the older RG1 algorithm. Foobar already uses RG2 (EBU R128 based).

Nevertheless, I’m looking forward to any test results (and probably bug reports—please use the issue tracker).

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #3
RG1 and RG2 produce slightly different results, with RG2 (derived from EBU R128) being the more "accurate" (closer to human perception of loudness) version.

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #4
loudgain v0.4.1 is available. This version also handles AAC and ALAC audio data in .m4a and .mp4 files.

ReplayGain tags are written to "----:com.apple.iTunes:REPLAYGAIN_*", or to "----:com.apple.iTunes:replaygain_*" if the "-L" (force lowercase) switch is used. Existing SoundCheck (iTunNORM) tags are left untouched.

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #5
loudgain v0.5.0 is available. This version isn’t dependent on the (now deprecated) libavresample anymore and should compile much more easily on modern systems.

Tested on Ubuntu 18.04, Linux MInt 19.1, Manjaro 18.0.4 and Arch.

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #6
I have a question.

Why use ffmpeg/libav when you can use dr_flac.h, stb_vorbis.c and minimp3.c for decoding, thus saving a ton on dependancies?

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #7
Thanks for the fresh idea, I’ll surely have a look.

Otherwise:
  • loudgain v0.1 was using libav when I forked it, and I’m lazy ;-)
  • I quite like FFmpeg, and it’s available almost anywhere
  • I need FFmpeg’s resampler anyway (up to 4x resampling needed for true peak calculations)
  • it works
:D

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #8
loudgain v0.5.2 adds support for MPEG-1 Layer 2 (.mp2) audio files.

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #9
loudgain v0.5.3 adds experimental support for Opus (.opus) audio files and is now also available in the AUR (Arch User Repository).

Please read How I handle Opus (.opus) audio files.

I’d value your feedback on this, because a) I don’t have many test files, and b) I’m not sure if FFmpeg’s avformat applies the header’s 'output_gain' so I get the correct samples to work on.

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #10
loudgain 0.5.4 adds support for Apple MacOS X. It can be manually compiled on a Mac now, but also installed using Homebrew:

Code: [Select]
brew install Moonbase59/tap/loudgain

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #11
loudgain v0.6.0 supports the newer FFmpeg API and also runs with FFmpeg 4.2+ (and on MacOS X).

Re: New loudgain audio replaygain 2.0 (EBU R128/BS.1770) tagger available

Reply #12
loudgain v0.6.1 now handles files with more than 2 channels correctly (i.e., 5.0, 5.1, …). It can now also read almost any kind of audio file for analysis. Tagging is currently supported for FLAC, Ogg, MP2, MP3, MP4, M4A, AAC, ALAC, Opus.

 
SimplePortal 1.0.0 RC1 © 2008-2019