Comments (5)
Can you please provide the mono mp3 you've been using? I added a 22khz mono mp3 to the test suite and it worked for me.
from tinytag.
Hey Andrey,
I have improved tinytag to stop after 5 consectutive frames and then assume that it's CBR. (This might go wrong for some tracks with a very quiet intro, so we should test this a bit more before I release this as a new version). This makes tinytag about 5 to 6 times faster than mp3info for CBR tracks and as fast as mp3info for VBR tracks.
Also tinytag is now more accurate than before (and also more accurate than mp3info in my tests) when determining the duration of a mp3 file.
You can just drop the tinytag.py from this repository into cherrymusic to try it out.
from tinytag.
Hi Tom!
I tried your new version. I still get wrong time. Here is my records. Could you try it. https://drive.google.com/folderview?id=0B-rCqP_KhU_CWlBLUi0xRTFXYkk&usp=sharing
from tinytag.
Hey Andrey,
It took me some time to get back to this, but now I've implemented support for all mpeg versions and layers and furthermore correctly calculate all sample rates and bitrates for each combination.
If you try the newest version of tinytag, you should get correct time readings now. I still have to make a new version and update it in cherrymusic, but my tests work fine for the at least one of the files you provided. Thanks again for the samples!
from tinytag.
Closing: TinyTag now supports the Xing header and is as fast as other parsers.
from tinytag.
Related Issues (20)
- [BUG] TinyTag cannot properly read metadata of two folders HOT 3
- Feature Request: Adding Song Titles HOT 2
- [BUG] AIFF text should be treated as UTF-8 HOT 2
- [BUG] Incorrect bitrate and duration for VBR mp3s HOT 5
- [BUG] UnicodeDecodeError on valid MP3 file
- Make use of code linting HOT 1
- How to handle filebuffer instead of filenames
- [BUG] Some mp3 files report 1/2 of actual duration HOT 2
- Some MP3‘s genre cannot be read correctly since v1.8.0
- [Question] - detect image encoding / format HOT 1
- tag artist, quando adicionado mais de um artista a string fica mal formatada. HOT 1
- [BUG] struct.error: unpack requires a buffer of 4 bytes HOT 8
- [BUG] Parsing mp3 file w/ valid TDRC tag does not populate year HOT 4
- Replace deprecated aifc module HOT 3
- [BUG] TDRC tag not captured as "year" HOT 2
- [BUG] Can't read `extra` tags from .m4a files HOT 1
- Expose a list of supported file extensions HOT 4
- Fail to read track_total, but it is ok in foobar
- asyncio interfaces HOT 3
- [BUG] Incompatibility with Python-pip HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinytag.