IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Mp3gain like tool for multicore processors?, Multi-core processors should be able to scan multiple files at once.
Stereodude
post May 23 2009, 14:40
Post #1





Group: Members
Posts: 13
Joined: 23-May 09
Member No.: 70055



Is there a version of mp3gain, or another tool that does max no clip album gain (like mp3gain) that takes advantage of multi-core processors?

For example, if you have a quad core processor, Foobar's conversion tool converts four files simultaneously. It seems like mp3gain or some other tool should have similar functionality with regard to changing the playback volume of mp3s. unsure.gif

I did some google searching and searching this forum, but didn't find anything. ohmy.gif

Does it exist?

Thanks!
Go to the top of the page
 
+Quote Post
ZinCh
post May 23 2009, 14:43
Post #2





Group: Members
Posts: 131
Joined: 28-September 06
Member No.: 35705



I believe this programs doesnt need much calculation (check cpu usage), their work speed = hdd speed, so I am not sure you can make it any faster.
Go to the top of the page
 
+Quote Post
Stereodude
post May 23 2009, 15:30
Post #3





Group: Members
Posts: 13
Joined: 23-May 09
Member No.: 70055



QUOTE (ZinCh @ May 23 2009, 09:43) *
I believe this programs doesnt need much calculation (check cpu usage), their work speed = hdd speed, so I am not sure you can make it any faster.

Maybe if you're using HDD's from 15 years ago. wink.gif

I have no problem saturating 1 core worth of my Core 2 Quad Q6600 @ 3gHz while scanning.

CPU usage scanning MP3s:


HDD speed is definitely not a limitation. I can transcode 4 FLAC files to LAME -V 1 mp3s at the same time at ~130x using Foobar and the HDD can keep up no problem allowing the CPU cores to be saturated and that transcoding operation is much more HDD intensive.

CPU usage FLAC to MP3:


So, it should be possible to make it 4x as fast (at least for scanning).

This post has been edited by Stereodude: May 23 2009, 15:31
Go to the top of the page
 
+Quote Post
Big_Berny
post May 23 2009, 15:56
Post #4





Group: Members
Posts: 221
Joined: 9-February 03
Member No.: 4921



QUOTE (Stereodude @ May 23 2009, 15:30) *
I have no problem saturating 1 core worth of my Core 2 Quad Q6600 @ 3gHz while scanning.

CPU usage scanning MP3s:

Hmm... Well at least on that screen no core seems to be fully 'saturated'...

EDIT: This seems to be interesting, altough I don't see any sourcefiles or binary: http://www.tatuh.com.br/mcore/en/cases_en.html

This post has been edited by Big_Berny: May 23 2009, 15:58
Go to the top of the page
 
+Quote Post
Eli
post May 23 2009, 16:08
Post #5





Group: Members
Posts: 858
Joined: 16-October 03
Member No.: 9337



dBpoweramp will use multiple cores.


--------------------
http://forum.dbpoweramp.com/showthread.php?t=17201
Go to the top of the page
 
+Quote Post
Stereodude
post May 23 2009, 16:45
Post #6





Group: Members
Posts: 13
Joined: 23-May 09
Member No.: 70055



QUOTE (Big_Berny @ May 23 2009, 10:56) *
Hmm... Well at least on that screen no core seems to be fully 'saturated'...

EDIT: This seems to be interesting, altough I don't see any sourcefiles or binary: http://www.tatuh.com.br/mcore/en/cases_en.html

That's because Windows doesn't lock the affinity of a single process to a single core. So the process will move around spreading the load between the cores. The key is that it's using ~25% total CPU which is equal to full utilization of a single core which means it's not HDD limited.

Edit: And, your second link appears to be someone looking to speed up a single scan operation as opposed to scanning multiple files at once.

This post has been edited by Stereodude: May 23 2009, 16:47
Go to the top of the page
 
+Quote Post
Mike Giacomelli
post May 23 2009, 17:12
Post #7





Group: Members
Posts: 2478
Joined: 2-September 02
Member No.: 3264



QUOTE (Stereodude @ May 23 2009, 09:40) *
Is there a version of mp3gain, or another tool that does max no clip album gain (like mp3gain) that takes advantage of multi-core processors?


foobar2000.

And no its not disk limited until you get out to 8-16 processors, since a typical mid range hard disk can sustain upwards of 40MB/s for a sequential read and a typical 192kbps mp3 is just 24kbps.
Go to the top of the page
 
+Quote Post
Stereodude
post May 23 2009, 17:44
Post #8





Group: Members
Posts: 13
Joined: 23-May 09
Member No.: 70055



QUOTE (Eli @ May 23 2009, 11:08) *
dBpoweramp will use multiple cores.

Maybe I'm really dense, but I don't see how to make dBpoweramp do the same thing as mp3gain. First it uses replaygain, which as I understand it targets a perceived loudness playback level, which is not what I'm after. I just want to reduce the playback volume of an entire album (folder) just enough to avoid clipping on playback on any of the files by directly altering the files (no tags). Second, assuming replaygain can emulate the mp3gain functionality I'm after I don't see how to scan an existing folder without converting it to something in dBpoweramp.

Foobar can also scan files using replaygain very quickly, but again I don't see how to emulate the mp3gain functionality I'm after with replaygain. I see I can scan an album write tags to the files, and then apply the tags altering the files, but it seems to be targeting a playback volume of ~89dB not the "max no clip gain" I'm after. unsure.gif
Go to the top of the page
 
+Quote Post
Stereodude
post May 23 2009, 17:46
Post #9





Group: Members
Posts: 13
Joined: 23-May 09
Member No.: 70055



QUOTE (Mike Giacomelli @ May 23 2009, 12:12) *
foobar2000.

Can you elaborate on how to do it? I've played with it and don't see how to get the equivalent result to what I get from mp3gain.
Go to the top of the page
 
+Quote Post
Mike Giacomelli
post May 23 2009, 17:56
Post #10





Group: Members
Posts: 2478
Joined: 2-September 02
Member No.: 3264



Options > Playback then set the replaygain preamp high and tell it to prevent clipping.

Then right click on your music > replaygain > apply to mp3 data.
Go to the top of the page
 
+Quote Post
ShowsOn
post May 23 2009, 18:05
Post #11





Group: Members (Donating)
Posts: 368
Joined: 28-June 02
From: South Australia, AUSTRALIA
Member No.: 2421



QUOTE (Mike Giacomelli @ May 24 2009, 02:56) *
Options > Playback then set the replaygain preamp high and tell it to prevent clipping.

Then right click on your music > replaygain > apply to mp3 data.

So does doing this have exactly the same effect as mp3gain? It changes the variable in the MP3 file in a way that effects the way the file plays back on ALL mp3 decoders?

I've wanted an MP3gain front end that would just run multiple instances at the same time.


--------------------
www.petitiononline.com/RHCPWBCD/petition.html
Go to the top of the page
 
+Quote Post
Mike Giacomelli
post May 23 2009, 18:06
Post #12





Group: Members
Posts: 2478
Joined: 2-September 02
Member No.: 3264



QUOTE (ShowsOn @ May 23 2009, 13:05) *
It changes the variable in the MP3 file in a way that effects the way the file plays back on ALL mp3 decoders?


Yes.
Go to the top of the page
 
+Quote Post
Stereodude
post May 23 2009, 18:33
Post #13





Group: Members
Posts: 13
Joined: 23-May 09
Member No.: 70055



QUOTE (Mike Giacomelli @ May 23 2009, 12:56) *
Options > Playback then set the replaygain preamp high and tell it to prevent clipping.

Then right click on your music > replaygain > apply to mp3 data.

This definitely didn't work for me.

I used these settings:


I scanned the files as an album, then applied the album gain data to the files.

Here's what I got:


The first set of files are from Foobar2000 0.9.6.5 and the second set it from MP3Gain. The files do not have the same gain. Foobar's replaygain'd files still used 89dB as the target album gain level.
Go to the top of the page
 
+Quote Post
greynol
post May 23 2009, 18:43
Post #14





Group: Super Moderator
Posts: 4793
Joined: 1-April 04
Member No.: 13167



I use foobar2000 for scanning (because of the speed) and then make sure the data is stored in an APE tag so it can be read by mp3gain (because of the interface, and I use 92 dB as the target volume).

EDIT: Grammar.

This post has been edited by greynol: May 23 2009, 18:54
Go to the top of the page
 
+Quote Post
ShowsOn
post May 23 2009, 19:22
Post #15





Group: Members (Donating)
Posts: 368
Joined: 28-June 02
From: South Australia, AUSTRALIA
Member No.: 2421



If you set up the ReplayGain dsp in Dbpoweramp ripper, can you get that to apply the value when using dbPoweramp converter to convert between FLAC and MP3 files?



--------------------
www.petitiononline.com/RHCPWBCD/petition.html
Go to the top of the page
 
+Quote Post
Mike Giacomelli
post May 23 2009, 21:22
Post #16





Group: Members
Posts: 2478
Joined: 2-September 02
Member No.: 3264



I just experimented with foobar and you're right it seems to ignore those settings when applying to albums and converting to WAV. I'm not sure why.
Go to the top of the page
 
+Quote Post
Stereodude
post May 23 2009, 21:30
Post #17





Group: Members
Posts: 13
Joined: 23-May 09
Member No.: 70055



I guess someone just needs to rewrite the GUI front end for MP3Gain to add this capability. lalala.gif
Go to the top of the page
 
+Quote Post
frozenspeed
post May 23 2009, 22:02
Post #18





Group: Members
Posts: 136
Joined: 16-October 01
From: Seattle, WA
Member No.: 301



QUOTE (Stereodude @ May 23 2009, 06:40) *
Is there a version of mp3gain, or another tool that does max no clip album gain (like mp3gain) that takes advantage of multi-core processors?

For example, if you have a quad core processor, Foobar's conversion tool converts four files simultaneously. It seems like mp3gain or some other tool should have similar functionality with regard to changing the playback volume of mp3s. unsure.gif

I did some google searching and searching this forum, but didn't find anything. ohmy.gif

Does it exist?

Thanks!



You can just open it (mp3gain) so ou have as many instances as cores & set the affinity for each process to a different core & viola! multiprocessing mp3gain.
Go to the top of the page
 
+Quote Post
greynol
post May 23 2009, 22:09
Post #19





Group: Super Moderator
Posts: 4793
Joined: 1-April 04
Member No.: 13167



I've found that method to be cumbersome and still nowhere near as efficient.

I could be wrong, but I think foobar2000 decodes any given single mp3 file for analysis much faster than mp3gain. Furthermore, if you're interested in calculating album gain (which is more useful to me, even when shuffling because a quiet song should still be quiet) you'll only see a benefit if you're doing more than one album at a time.

This post has been edited by greynol: May 23 2009, 22:10
Go to the top of the page
 
+Quote Post
Stereodude
post May 24 2009, 00:12
Post #20





Group: Members
Posts: 13
Joined: 23-May 09
Member No.: 70055



QUOTE (frozenspeed @ May 23 2009, 17:02) *
You can just open it (mp3gain) so ou have as many instances as cores & set the affinity for each process to a different core & viola! multiprocessing mp3gain.

blink.gif Uh, that would be awful...

If I have 20 albums to scan, I would need to open up 4 copies, load 5 in each, make sure I didn't overlap any, and then start them all, etc... dry.gif

I'll pass.
Go to the top of the page
 
+Quote Post
frozenspeed
post May 24 2009, 00:44
Post #21





Group: Members
Posts: 136
Joined: 16-October 01
From: Seattle, WA
Member No.: 301



QUOTE (Stereodude @ May 23 2009, 16:12) *
QUOTE (frozenspeed @ May 23 2009, 17:02) *
You can just open it (mp3gain) so ou have as many instances as cores & set the affinity for each process to a different core & viola! multiprocessing mp3gain.

blink.gif Uh, that would be awful...

If I have 20 albums to scan, I would need to open up 4 copies, load 5 in each, make sure I didn't overlap any, and then start them all, etc... dry.gif

I'll pass.



If you have 20 albums to scan and you would rather wait for someone to write a multi-threaded gain app than just wait the few mins it will take then your priorities are pretty uh... interesting...

tell you what, write an mp3 header writing class & I'll write some multithreading around it for you. FB2k may all ready do the trick.
Go to the top of the page
 
+Quote Post
greynol
post May 24 2009, 01:34
Post #22





Group: Super Moderator
Posts: 4793
Joined: 1-April 04
Member No.: 13167



You know, looking at your desired settings it's clear that all you want to do is album-based peak normalization, which sort of defeats the purpose of Replaygain.

Answer me something, just how many of your albums aren't already normalized to within 1.5 dB of 0 dBFS?

For the situation where you're reducing the gain of an album that is already normalized because the compressed version goes over full-scale, have you demonstrated to yourself that you can actually hear the clipping caused by decompression at playback? I bet you haven't.

This post has been edited by greynol: May 24 2009, 01:36
Go to the top of the page
 
+Quote Post
Stereodude
post May 24 2009, 02:17
Post #23





Group: Members
Posts: 13
Joined: 23-May 09
Member No.: 70055



QUOTE (greynol @ May 23 2009, 20:34) *
Answer me something, just how many of your albums aren't already normalized to within 1.5 dB of 0 dBFS?

Nearly all tracks will clip by 1.5dB or 3.0dB after being converted to mp3 regardless of the music type. This is what I want to avoid by lowering their playback level by a few dB.

QUOTE
For the situation where you're reducing the gain of an album that is already normalized because the compressed version goes over full-scale, have you demonstrated to yourself that you can actually hear the clipping caused by decompression at playback? I bet you haven't.

I haven't specifically tried an ABX test to listen for clipping since I'm not sure how to formulate a proper test for it. A file the clips will always be louder than one that doesn't and that invalidates the ABX test. The clipping affects the RMS volume calculation, so it becomes a fine matter of adjusting the volume of the decoded clipped file so it matches the one that doesn't clip. Since it's pretty easy to fix the files so they don't clip on playback I always do it.
Go to the top of the page
 
+Quote Post
greynol
post May 24 2009, 02:55
Post #24





Group: Super Moderator
Posts: 4793
Joined: 1-April 04
Member No.: 13167



You simply take the file that clips, decode it and then apply the same attenuation that mp3gain would have applied to prevent it from cliping. ABX this with the decoded version of the file that has had mp3gain applied to prevent it from clipping.

http://www.hydrogenaudio.org/forums/index....st&p=558514
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd November 2009 - 02:12