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

Report the bitrate of VBR-encoded files as the average bitrate #6

Open
MichaelZer0 opened this issue Mar 14, 2014 · 1 comment
Open

Comments

@MichaelZer0
Copy link

mp3.js appears to report the bitrate of a VBR-encoded file as just 128 (maybe the bitrate of the first frame it encounters?) The average of all frames would be more useful, perhaps also with a flag to tell that the file is VBR if the average just so happens to be an integer.

@devongovett
Copy link
Member

You're right, it is from the first frame in the file. In order to get the actual average bitrate though, we'd need to read the entire file first I would think. This isn't currently possible since the entire file isn't loaded at the time the format info is emitted.

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