amugofjava / mp3_info Goto Github PK
View Code? Open in Web Editor NEWA package for extracting key meta information from an MP3 file including sample rate, bitrate and duration.
License: MIT License
A package for extracting key meta information from an MP3 file including sample rate, bitrate and duration.
License: MIT License
Thanks for writing this. It looks very handy. I'm thinking about using this in an app that manages a lot of files. It looks to me like this reads the entire contents of the mp3 right?
mp3_info/lib/src/mp3_processor.dart
Line 25 in 1f19e98
If so, is it possible to just read the header of the file to get this information?
Why is the duration of the MP3 file in seconds rounded down to nearest integer? I wanted to use this package to show the duration of an MP3 file in fractional seconds.
Duration _processDuration(int fileSizeBytes, int bitRate) {
final fileSizeBits = fileSizeBytes * 8;
final bitRateBits = bitRate * 1000;
final seconds = fileSizeBits / bitRateBits;
return Duration(seconds: seconds.floor());
}
There is no way we can fetch the cover art of mp3 file. It is crucial part of any kind of music file.
This is a request to add support for null safety to this package.
See the migration guide for details about enabling null safety.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.