Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Copied to Local]mp3gain and aacgain masked. Now what?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1558
Location: Adelaide/Australia

PostPosted: Tue Mar 20, 2018 6:35 am    Post subject: [Copied to Local]mp3gain and aacgain masked. Now what? Reply with quote

So, I see in the latest news that both aacgain and mp3gain have been masked and slated for removal.

I use both of these in a cron job that updates my new podcast audio files.

So, given they are going away, what options do I have to replace them? Any?
_________________
...Lyall


Last edited by lyallp on Fri Mar 23, 2018 6:45 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Tue Mar 20, 2018 6:56 am    Post subject: Reply with quote

/usr/portage/package.mask:
# Pacho Ramos <pacho@gentoo.org> (18 Mar 2018)
# Security vulnerable (#630954, #635548). Removal in a month.
media-sound/mp3gain
media-sound/aacgain

Maybe
Code:
media-sound/sox

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1558
Location: Adelaide/Australia

PostPosted: Tue Mar 20, 2018 7:24 am    Post subject: Reply with quote

Hmm. Had a quick look.
Having trouble figuring out how to convince sox to keep id3 tags in it's output.
Settled on
Code:
rm soxed.mp3; time sox orig.mp3 --replay-gain track soxed.mp3; id3cp orig.mp3 soxed.mp3
as a test case.
Problem is, it appears that sox is re-encoding the audio file, whilst the equivalent
Code:
rm gained.mp3; cp orig.mp3 gained.mp3; time mp3gain -r gained.mp3
(and aacgain) simply analyse the file and update the tags. This is indicated by the fact that sox takes over 30 seconds on my test file whilst mp3gain only takes 11.
The fact that I have to resort to using id3cp to copy the tags from the original file to the new file, when using sox, is a pain.

Of course, I am more than happy to be shown the error of my ways.
_________________
...Lyall
Back to top
View user's profile Send private message
fcl
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2016
Posts: 77

PostPosted: Tue Mar 20, 2018 3:28 pm    Post subject: Reply with quote

bs1770gain seems to use sox and/or ffmpeg as a backend. Seems easy-to-use
There are some very simble ebuilds available too!

https://gpo.zugaina.org/media-sound/bs1770gain
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 724
Location: /home

PostPosted: Wed Mar 21, 2018 8:06 am    Post subject: Reply with quote

They will be removed from portage tree but not from your computer. You can still take the ebuilds to your local overlay and/or unmask them in your system.
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1558
Location: Adelaide/Australia

PostPosted: Wed Mar 21, 2018 8:25 am    Post subject: Reply with quote

Juippisi wrote:
They will be removed from portage tree but not from your computer. You can still take the ebuilds to your local overlay and/or unmask them in your system.

Good point :)
_________________
...Lyall
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Mar 22, 2018 2:00 pm    Post subject: Reply with quote

For long-term reliability, you can consider using ffmpeg directly. It's not going anywhere.

https://superuser.com/questions/323119/how-can-i-normalize-audio-using-ffmpeg#323127
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Thu Mar 22, 2018 3:04 pm    Post subject: Reply with quote

As I understand it, mp3gain and aacgain do not affect in any way the digitised audio; they only add meta tags for ReplayGain. Does ffmpeg do the same, or, as I suspect, is it actually changing the digitised audio itself? One of the advantages of the ReplayGain approach is that it doesn't touch the digitised audio at all.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1558
Location: Adelaide/Australia

PostPosted: Fri Mar 23, 2018 12:28 am    Post subject: Reply with quote

mp3gain and aacgain analyse the audio and then apply id3 tags indicating the volume adjustment required for playback.
They don't change the audio track at all, which, imho, is a good thing.
_________________
...Lyall
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Fri Mar 23, 2018 12:48 am    Post subject: Reply with quote

lyallp wrote:
mp3gain and aacgain analyse the audio and then apply id3 tags indicating the volume adjustment required for playback.
They don't change the audio track at all, which, imho, is a good thing.

Agreed. Coincidentally I used aacgain yesterday on 100 assorted dance tracks for a party. Did a good job of normalizing the volume. ReplayGain is a nice concept. By the way, I've already copied the mp3gain and aacgain ebuilds to my local overlay and merged them from there now that those ebuilds are masked in the Portage main tree. Pity they are being removed, as they are important tools. I assume the fundamental problem is that there is currently no Gentoo developer to maintain the ebuilds.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1558
Location: Adelaide/Australia

PostPosted: Fri Mar 23, 2018 12:52 am    Post subject: Reply with quote

Fitzcarraldo wrote:
As I understand it, mp3gain and aacgain do not affect in any way the digitised audio; they only add meta tags for ReplayGain. Does ffmpeg do the same, or, as I suspect, is it actually changing the digitised audio itself? One of the advantages of the ReplayGain approach is that it doesn't touch the digitised audio at all.

Problem is ffmpeg re-encodes the audio, which I am not keen on. Prefer analysis of existing audio with addition of id3 tags.
_________________
...Lyall
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Mar 23, 2018 7:49 am    Post subject: Reply with quote

ffmpeg knows how to calculate and print replaygain (ffmpeg -c mp3float -i meow.mp3 -af replaygain -f null /dev/null) and it can definitely edit file metadata without re-encoding the audio. I'm not seeing any way to combine the two in one command though, sorry...
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Mar 23, 2018 1:33 pm    Post subject: Reply with quote

Fitzcarraldo wrote:
I assume the fundamental problem is that there is currently no Gentoo developer to maintain the ebuilds.


As these are audio tools still in demand, I would be happy to maintain these ebuilds in the Gentoo Studio overlay.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Fri Mar 23, 2018 1:42 pm    Post subject: Reply with quote

audiodef wrote:
As these are audio tools still in demand, I would be happy to maintain these ebuilds in the Gentoo Studio overlay.

That's a nice offer, and I think you should do that, although I think they should also remain in the main Portage tree even if you do. They are extremely useful. mp3gain does a great ReplayGain job for just mp3 audio files; aacgain does something similar for AAC (mp4/m4a/QuickTime) audio files in addition to mp3 files. So they are very much mainstream utilities in my opinion. The latest version of mp3gain was uploaded to the upstream package repository only a couple of months ago, so it's definitely not dead.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Mar 23, 2018 3:03 pm    Post subject: Reply with quote

Should have done this first thing, but anyway, I did a sync, checked the news list and checked emerge -pv mp3gain. I see nothing about it being masked.

Are you sure about this?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Fri Mar 23, 2018 3:55 pm    Post subject: Reply with quote

Of course.

https://packages.gentoo.org wrote:
mp3gain

A program to analyze and adjust MP3 files to same volume

http://mp3gain.sourceforge.net/
Available Versions
Code:
Version    amd64    x86    alpha    arm    hppa    ia64    ppc    ppc64    sparc
1.5.2 : 0   +      +         +               +               +      +      +

This package is masked and could be removed soon!
The mask comment indicates that this package is scheduled for removal from our package repository.
Please review the mask information below for more details.


Code:
# eix mp3gain
* media-sound/mp3gain
     Available versions:  {M}1.5.2 {M}1.5.2[1]
     Homepage:            http://mp3gain.sourceforge.net/
     Description:         A program to analyze and adjust MP3 files to same volume

[1] "local_overlay" /usr/local/portage



https://packages.gentoo.org wrote:
aacgain

AACGain normalizes the volume of music files using the Replay Gain algorithm

http://aacgain.altosdesign.com/
Available Versions
Code:
Version    amd64    x86    alpha    arm    hppa    ia64    ppc    ppc64    sparc
1.9-r2 : 0   +      +

This package is masked and could be removed soon!
The mask comment indicates that this package is scheduled for removal from our package repository.
Please review the mask information below for more details.


Code:
# eix aacgain
[I] media-sound/aacgain
     Available versions:  {M}1.9-r2 {M}1.9-r2[1]
     Installed versions:  1.9-r2[1](20:06:07 22/03/18)
     Homepage:            http://aacgain.altosdesign.com/
     Description:         AACGain normalizes the volume of music files using the Replay Gain algorithm

[1] "local_overlay" /usr/local/portage

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Tyrus
Guru
Guru


Joined: 03 Feb 2018
Posts: 300

PostPosted: Fri Mar 23, 2018 6:26 pm    Post subject: Reply with quote

Tested this: media-sound/rgain - https://bitbucket.org/fk/rgain

For me it works. replaygain just added tags. And you get only one tool for Vorbis, Flac, WavPack, AAC, MP3.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Mar 23, 2018 6:50 pm    Post subject: Reply with quote

Why are those masked messages coming from running the programs themselves? If the Portage maintainers wanted to mask them and alert users, they use eselect news.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Fri Mar 23, 2018 6:53 pm    Post subject: Reply with quote

The mask messages are coming from portage, that compares the masked packages in profiles/package.mask with your installed packages.

News are not used to announce last-rites except for really big ones requiring migration (think Plasma-4).
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Mar 23, 2018 7:05 pm    Post subject: Reply with quote

Oh, ok. Thanks for the clarification. :)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Fri Mar 23, 2018 9:00 pm    Post subject: Reply with quote

Tyrus wrote:
Tested this: media-sound/rgain - https://bitbucket.org/fk/rgain

For me it works. replaygain just added tags. And you get only one tool for Vorbis, Flac, WavPack, AAC, MP3.

Thanks for the tip, but I noticed the following at that link:

Quote:
NOTE: rgain is currently not being developed; for more information or if you'd like to help remedying this situation, see: https://bitbucket.org/fk/rgain/issues/26/wanted-new-maintainer

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Fri Mar 23, 2018 9:03 pm    Post subject: Reply with quote

Fitzcarraldo wrote:
The latest version of mp3gain was uploaded to the upstream package repository only a couple of months ago, so it's definitely not dead.

If that is the case, then all we need is someone to step up and pick up maintenance of the package.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Mar 23, 2018 9:39 pm    Post subject: Reply with quote

Whether it's in Portage or GentooStudio, I'm still willing to do it. For keeping it in Portage, just let me know what I need to do.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 724
Location: /home

PostPosted: Sat Mar 24, 2018 8:24 am    Post subject: Reply with quote

audiodef wrote:
just let me know what I need to do.


https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers

:)
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat Mar 24, 2018 1:56 pm    Post subject: Reply with quote

Just to double-check - is this no longer true?
mp3gain:
Code:

  <maintainer type="person">
    <email>chainsaw@gentoo.org</email>
    <name>Tony Vroon</name>
  </maintainer>


EDIT: Off-topic (somewhat): Am sitting here installing audio/midi stuff on a new laptop, noticed media-sound/audicle metadata says maintainer needed. Am happy to add this to my pile as well, as I have been getting into ChucK lately.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum