# Replaygain issue

**URL:** <https://discourse.beets.io/t/replaygain-issue/2325>\
**Category:** Help\
**Created:** [April 19, 2023, 9:36pm UTC](https://discourse.beets.io/t/replaygain-issue/2325 "2023-04-19T21:36:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andydufresne](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@andydufresne](https://discourse.beets.io/u/andydufresne)\
**Post date:** [April 19, 2023, 9:36pm UTC](https://discourse.beets.io/t/replaygain-issue/2325/1 "2023-04-19T21:36:29Z")

</div>

Replaygain is not completing for me. When I run the command I get a skipping album message:

$ beet replaygain -a Lost in the Dream  
replaygain: Analyzing 1 albums ~ ffmpeg backend…  
replaygain: Skipping album The War on Drugs - Lost in the Dream

I am using ffmpeg on FLAC files. In my config file overwrite=yes in case there are already Replaygain values. I received the same message while using Audio Tools. Any idea why it is not calculating Replaygain values? Previously I used Audio Tools and it worked fine, but I updated beets and python.

Thanks!

---

<div class="post-metadata">

**Author:** ![jackwilsdon](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/jackwilsdon/32/10_2.png) [@jackwilsdon](https://discourse.beets.io/u/jackwilsdon)\
**Post date:** [April 21, 2023, 10:37am UTC](https://discourse.beets.io/t/replaygain-issue/2325/2 "2023-04-21T10:37:42Z")

</div>

Does that album already have replaygain values? You could run with `-f` to force replaygain to be recalculated even if it’s already present.

---

<div class="post-metadata">

**Author:** ![andydufresne](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@andydufresne](https://discourse.beets.io/u/andydufresne)\
**Post date:** [April 21, 2023, 3:01pm UTC](https://discourse.beets.io/t/replaygain-issue/2325/3 "2023-04-21T15:01:44Z")

</div>

I uninstalled and reinstalled beets and my plugins and now I am able to get ffmpeg to work. However when I try Python Audio Tools I still get errors. Here is the message I receive:

File “/mnt/mpathf/andydufresne/virtualenv3/bin/beet”, line 8, in   
sys.exit(main())  
File “/mnt/mpathf/andydufresne/virtualenv3/lib/python3.10/site-packages/beets/ui/ **init**.py”, line 1291, in main  
\_raw\_main(args)  
File “/mnt/mpathf/andydufresne/virtualenv3/lib/python3.10/site-packages/beets/ui/ **init**.py”, line 1278, in \_raw\_main  
subcommand.func(lib, suboptions, subargs)  
File “/mnt/mpathf/andydufresne/virtualenv3/lib/python3.10/site-packages/beetsplug/replaygain.py”, line 1335, in command\_func  
self.handle\_album(album, write, force)  
File “/mnt/mpathf/andydufresne/virtualenv3/lib/python3.10/site-packages/beetsplug/replaygain.py”, line 1162, in handle\_album  
self.\_apply(  
File “/mnt/mpathf/andydufresne/virtualenv3/lib/python3.10/site-packages/beetsplug/replaygain.py”, line 1264, in \_apply  
callback(func(\*args, \*\*kwds))  
File “/mnt/mpathf/andydufresne/virtualenv3/lib/python3.10/site-packages/beetsplug/replaygain.py”, line 911, in compute\_album\_gain  
rg\_track\_gain, rg\_track\_peak = self.\_title\_gain(  
File “/mnt/mpathf/andydufresne/virtualenv3/lib/python3.10/site-packages/beetsplug/replaygain.py”, line 870, in \_title\_gain  
gain, peak = rg.title\_gain(audiofile.to\_pcm())  
TypeError: ReplayGain.title\_gain() takes no arguments (1 given)

At least ffmpeg is working now, but any idea what is going on with Audio Tools?
