Giter Club home page Giter Club logo

Comments (5)

princelySid avatar princelySid commented on June 24, 2024

Also getting this error on version 2.0.0 224acb1, using python 3.10.10

from tinytag.

mohsenoon avatar mohsenoon commented on June 24, 2024

In addition to wrong duration, sometimes I get values ​​that are too large and even negative! For example: -46332413.64897959 and 36934167.48408163 seconds.
The files have no problem and the durations are calculated correctly with Librosa.

from tinytag.

mathiascode avatar mathiascode commented on June 24, 2024

In addition to wrong duration, sometimes I get values ​​that are too large and even negative! For example: -46332413.64897959 and 36934167.48408163 seconds. The files have no problem and the durations are calculated correctly with Librosa.

Please attach a sample file.

from tinytag.

mohsenoon avatar mohsenoon commented on June 24, 2024

In addition to wrong duration, sometimes I get values ​​that are too large and even negative! For example: -46332413.64897959 and 36934167.48408163 seconds. The files have no problem and the durations are calculated correctly with Librosa.

Please attach a sample file.

52a6r.zip

tinytag.TinyTag.get('52a6r.mp3').duration --> 47583839.895510204

librosa.get_duration('52a6r.mp3') --> 2632.2140589569162

$ soxi 52a6r.mp3
Input File     : '52a6r.mp3'
Channels       : 1     
Sample Rate    : 44100                                                                                
Precision      : 16-bit
Duration       : 00:43:52.25 = 116082401 samples = 197419 CDDA sectors
File Size      : 21.1M                          
Bit Rate       : 64.0k
Sample Encoding: MPEG audio (layer I, II or III)

from tinytag.

mathiascode avatar mathiascode commented on June 24, 2024

Should be fixed now. Please try the master branch and see if you still have files that tinytag can't parse properly.

Something's not quite right with the sample file in the original post. Other libraries estimate a duration anywhere from 3 to 5 seconds. tinytag currently reports a duration of 4 seconds, which is close enough in my opinion.

from tinytag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.