Giter Site home page Giter Site logo

Comments (4)

leetreveil avatar leetreveil commented on July 20, 2024

Do you have a test audio file so I can reproduce the bug?

On Sun, Jan 26, 2014 at 2:42 PM, Sahat Yalkabov [email protected]
wrote:

After hours and hours of pulling my hair, thinking there was something wrong with another library I am using, or perhaps a bug in fs.createReadableStream it turns out the latest version of musicmetadata has a bug.
I rolled back to v0.3.0 and metadata event is fired once as it supposed to.

Now as you can imagine firing this event twice was causing problems with async library calling callback(null, meta) twice which would throw an error, and in other case it would try to create database element twice and fail because of duplicate SQL entry.

Reply to this email directly or view it on GitHub:
#41

from musicmetadata.

sahat avatar sahat commented on July 20, 2024

Hi, I was able to narrow down the problem further by testing various audio files. Some of my songs emit double meta event while others fire once.

Here are the songs that causes meta event to fire twice:

screenshot 2014-01-27 00 13 16
screenshot 2014-01-27 00 17 23

And here the songs that behave normally:

screenshot 2014-01-27 00 13 54
screenshot 2014-01-27 00 18 11

The only difference I see is in the encoding type. Your library doesn't seem to play well with non-LAME3 file encoding. At least as of version 0.3.1 with the introduction of duration option, which by the way is awesome and totally useful!

from musicmetadata.

leetreveil avatar leetreveil commented on July 20, 2024

Could you send me one of the failing audio files?

from musicmetadata.

sahat avatar sahat commented on July 20, 2024

I can confirm it is fixed now. Thanks!

from musicmetadata.

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.