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

torchaudio.info.num_frames can give wrong results so it can provide false exceptions #1724

Open
grazder opened this issue Jun 17, 2024 · 2 comments

Comments

@grazder
Copy link

grazder commented Jun 17, 2024

Tested versions

current master

System information

linux

Issue description

I get here wrong num_frames on m4a opus-files

frames = info.num_frames

Repro and described error can be founded here: pytorch/audio#3731

It's better not to trust this method. For example, I've got minumum dataset item length of ~ 121s, but the minimum torchaudio_info(...).num_frames is 5674 which is obviously fake.

Minimal reproduction example (MRE)

pytorch/audio#3731

@grazder
Copy link
Author

grazder commented Jun 17, 2024

pytorch/audio#3573

@hbredin
Copy link
Member

hbredin commented Jun 19, 2024

Thanks for the report.
What solution do you suggest?

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