Skip to content
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

[src/libmpg123/layer3.c:INT123_do_layer3():1771] error: part2_3_length (1920) too large for available bit count (1568) #402

Open
tpierobon opened this issue Sep 21, 2023 · 1 comment

Comments

@tpierobon
Copy link

I'm trying to read a chunk from a 5 min mp3 file using the following code:

import soundfile as sf

original_sr = 22050
start_frame = int(3*original_sr)
stop_frame = int(4.1*original_sr)
audio, sr = sf.read(mp3_path, start=start_frame, stop=stop_frame)

But i got this message:

[src/libmpg123/layer3.c:INT123_do_layer3():1771] error: part2_3_length (1920) too large for available bit count (1568)

Is there a way to ignore it?

@bastibe
Copy link
Owner

bastibe commented Sep 23, 2023

These messages come from inside libmpg123, which is inside libsndfile, called by soundfile. You can try opening an issue in either of these libraries and inquire about disabling the messages there. But the message is probably given for a reason, which is probably a defective MP3 file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants