New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import crash because of replaygain #1592
Comments
Thanks! Can you check that the above commit handles this case? |
Meh, now it crashes at line 743. Maybe wrap that call in a function? |
Got a traceback? |
Traceback (most recent call last):
File "/nix/store/0jbcwzr22x2p7rn0h9rm9k16zkr40ldj-beets-1.3.13/bin/.beet-wrapped", line 10, in <module>
load_entry_point('beets==1.3.15', 'console_scripts', 'beet')()
File "/nix/store/0jbcwzr22x2p7rn0h9rm9k16zkr40ldj-beets-1.3.13/lib/python2.7/site-packages/beets/ui/__init__.py", line 1161, in main
_raw_main(args)
File "/nix/store/0jbcwzr22x2p7rn0h9rm9k16zkr40ldj-beets-1.3.13/lib/python2.7/site-packages/beets/ui/__init__.py", line 1151, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/nix/store/0jbcwzr22x2p7rn0h9rm9k16zkr40ldj-beets-1.3.13/lib/python2.7/site-packages/beetsplug/replaygain.py", line 921, in func
self.handle_album(album, write)
File "/nix/store/0jbcwzr22x2p7rn0h9rm9k16zkr40ldj-beets-1.3.13/lib/python2.7/site-packages/beetsplug/replaygain.py", line 853, in handle_album
album_gain = self.backend_instance.compute_album_gain(album)
File "/nix/store/0jbcwzr22x2p7rn0h9rm9k16zkr40ldj-beets-1.3.13/lib/python2.7/site-packages/beetsplug/replaygain.py", line 743, in compute_album_gain
rg_track_gain, rg_track_peak = rg.title_gain(audiofile.to_pcm())
ValueError: pcmreader's sample rate doesn't match |
sampsyo
added a commit
that referenced
this issue
Sep 8, 2015
Thanks! And good idea; I wrapped the |
aszlig
added a commit
to NixOS/nixpkgs
that referenced
this issue
Dec 18, 2015
After trying with a dozen files, it seems the bs1770gain backend is much more reliable than the audiotools backend and especially does a better job (well, compared to audiotools which either does doing nothing at all or throws an exception) when used on alboms that contain different sample rates/sizes. Additionally, we already had a few issues regarding the audiotools backend, even to the extent that @sampsyco almost wanted to drop it upstream (see sampsyco/beets#1342). Also related issues are #10376 and beetbox/beets#1592. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use the Python Audio Tools backend.
The text was updated successfully, but these errors were encountered: