spotify / pedalboard

🎛 🔊 A Python library for audio.
https://spotify.github.io/pedalboard
GNU General Public License v3.0
5.15k stars 260 forks source link

AudioFile Can't open some mp3 files #242

Closed lminer closed 1 year ago

lminer commented 1 year ago

So I'm running into an error when I try to open some mp3 files. Basically, I get:

ValueError: Failed to open audio file: file "test.mp3" does not seem to contain audio data in a known or supported format.

The file plays fine and works with both ffmpeg and soundfile. I've found that mp3s produced via vlc run into this error. Interestingly, I don't see the issue on macos. It only crops up in linux. The wheel is pedalboard-0.7.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl. The problem appears to have been introduced in 0.6.8, 0.6.7 works fine. Happy to send the file to you if you'd like if you provide me with an email.

psobot commented 1 year ago

Hi @lminer!

If you're able to share one of those files, feel free to send it via email (my username at my company name dot com) - or better yet, if you have a VLC command or reproduction steps that can create these MP3 files, that would be super useful as well.

lminer commented 1 year ago

I think it might just be any file exported to mp3 from vlc. I'll send the file now.

psobot commented 1 year ago

Thanks again for this bug report @lminer - just to circle back on this, the fix for this was released in v0.7.9 which landed on PyPI yesterday.

lminer commented 1 year ago

Thanks, this is great!

On Wed, Sep 6, 2023 at 7:12 AM Peter Sobot @.***> wrote:

Thanks again for this bug report @lminer https://github.com/lminer - just to circle back on this, the fix for this was released in v0.7.9 https://pypi.org/project/pedalboard/0.7.9/ which landed on PyPI yesterday.

— Reply to this email directly, view it on GitHub https://github.com/spotify/pedalboard/issues/242#issuecomment-1708453875, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHDTFOQRJNDKJE77H3VBV3XZCAFLANCNFSM6AAAAAA3ROSMYM . You are receiving this because you were mentioned.Message ID: @.***>