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

Bitrate calculation for mp3 #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

xhenner
Copy link
Contributor

@xhenner xhenner commented May 20, 2015

This patch reads the first mp3 frames, with support for the XING header to speed things up
It adds some sanity check (for example a flac file with an id3 tag will be rejected)
I tested it against 20k mp3.
Without the patch, it takes 19s to scan the whole library
With the patch, it takes 52s

I still have some checks to do. I want to compare the result with other tool I know are working fine

Next step : adding the support for mp4 and flac files ; should be easier

@xhenner
Copy link
Contributor Author

xhenner commented Jun 9, 2015

are you still working on that ?

@dhowden
Copy link
Owner

dhowden commented Jun 9, 2015

This needs to be in a sub-package. I started to work on it and then didn't have time to finish. I don't have a use for the code at the moment, but if you want to refactor it out into a sub-package that would be great.

@xhenner
Copy link
Contributor Author

xhenner commented Jun 9, 2015

I don't really get the subpackage idea
For mp3, it make sense, but for mp4, the information is in the moov atom. Using a sub-package will make thing more complicated

Same thing for the flac format

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

Successfully merging this pull request may close these issues.

None yet

2 participants