Giter VIP home page Giter VIP logo

Comments (4)

sandreas avatar sandreas commented on May 29, 2024

Thanks for reporting, I'll take a look in the next days :-)

from m4b-tool.

sandreas avatar sandreas commented on May 29, 2024

Ok, after analysing this, let me tell you first, that i was not able to reproduce the bug on my system, although i used the same command that you used.

But i at least have an idea of what could have gone wrong...

I think it is very weird because this command is not using the guessChaptersBySilences() function.

Well, that is not fully correct, since musicbrainz chapters are nearly never fully matching the silences in the audio file and the shift increases or decreases, the longer the duration of the file is. So the chapters command always performs a silence detection and tries to adjust the chapter position of the musicbrainz values. Within this silence detection there also is a length detection part, to boost performance and not having to detect the full length of the file with an extra command. And this length detection is failing in your case, which i suppose happens because of ffmpegs duration output to be not in the expected format. Since i've rewritten the whole length detection, there may be a solution.

I created a custom build (download link below) with extra detection and output - please try it with the following command:

m4b-tool chapters -v --merge-similar --first-chapter-offset 4000 --last-chapter-offset 3500 -m 969d83a3-e80c-4b47-895a-5b8a410836bd "/mnt/d/Download/Star Wars Erben des Imperiums Hörbuch (Band 1).m4b"

There should be an output line like...:

found %s musicbrainz chapters and %s silences within length %s

Best case szenario: Error is gone and it works ;) But i think there might also be a problem with --merge-similar for your files.

m4b-tool.zip - custom build for chapters

from m4b-tool.

dmuiX avatar dmuiX commented on May 29, 2024

Wow...it just worked. No errors. Thanks :).
When will you release it?

from m4b-tool.

sandreas avatar sandreas commented on May 29, 2024

Cool, i'm glad it works for you.

When will you release it?

Since m4b-tool is a one man show freetime project unfortunately there is no such thing like release management or fixed release dates. For the next release I plan to rework a few things and throw away duplicated code... therefore it will take some time, but as the version in the link above does not contain any other changes than fixing this issue, you can use it as "stable".

I'll commit the changes this week and mark the bug as fixed.

from m4b-tool.

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.