desbma / r128gain

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

Argument list too long #35

Closed artur-shaik closed 3 years ago

artur-shaik commented 3 years ago

When I execute processing with such code:

source = glob.glob(f"{source}/*.mp3")
r128gain.process(source, album_gain=True, skip_tagged=True)

I have this error:

r128gain:Failed to analyze files 'song1.mp3','song2.mp3',...,'song6000.mp3': OSError [Errno 7] Argument list too long: 'ffmpeg'

I execute this command on directory that contains about 6000 mp3 tracks.

desbma commented 3 years ago

That code will process the 6000 tracks as part of a single album, this is most likely not what you want. You should use process_recursive and pass the root directory.

artur-shaik commented 3 years ago

I think this is exactly what I want. I need all this tracks sound with equal loudness to each other.

The problem with process_recursive is that I have subfolders that I do not need to include.

desbma commented 3 years ago

I need all this tracks sound with equal loudness to each other.

Then you should set album_gain to False when calling process.

artur-shaik commented 3 years ago

Ok thanks, will investigate further.