desbma / r128gain

Fast audio loudness scanner & tagger (ReplayGain v2 / R128)
GNU Lesser General Public License v2.1
172 stars 9 forks source link

No pause/resume for larger collections #30

Closed evertvorster closed 3 years ago

evertvorster commented 3 years ago

Hey there! Thanks for this great piece of software... it really is cool, and works well. Here is the situation, though... The collection it's chewing through now is about 400gb mp3... (About 93,000 songs in total) As it's the first time this fine utility is running, I want to to obliterate any old replaygain tags. The collection is ordered by artist, and there are 11,000 of those. So, what I have done is to make a list of the subdirectories, and a small script that runs this fine utility on each of them. This is easily achieved by ls -rt > Somefile.txt

The script is then run in the root directory of the collection, and supplied the text as input. It's attached here, and I give the devs full permission to use it in any way they see fit, and claim no copyright on it whatsoever. Replay_Gain.zip

This script can be interrupted, and re-started at a later date. It will re-do the directory it was busy with when it was interrupted, providing a nice pause/resume functionality that survives reboots.

desbma commented 3 years ago

Thanks for the kind words.

If you want to share some code though, the issue tracker is not the best way. You might want to create a Github repository or use https://gist.github.com/.

Also keep in mind your method will slow down the overall process (compared to running r128gain -r on the whole tree and pausing/resuming for example with pkill -STOP r128gain/pkill -CONT r128gain), because the CPU cores will not all be actively used at all times.