Giter Site home page Giter Site logo

Comments (7)

Kudjo-Grand avatar Kudjo-Grand commented on June 10, 2024 1

I did a little test. I wondered if it just had something to do with how your code handles JUST the .m4b extension while trying to stitch everything together to make a new .m4b file with chapters and everything.

So, I cheated. I didn't convert anything. I just changed the file extension from .m4b to .mp3 reloaded the book into ABS. I then re-ran the generate .m4b process by pushing the "Start Download" button again. And BINGO! This time, it worked as expected. A 400+ MB file was generated with chapters in the correct order and cover embedded. So, well done!

It's a little hacky, but it looks like I know what to do in the future to make this work.

Hopefully, this was helpful.

What do you think?

from audiobookshelf.

advplyr avatar advplyr commented on June 10, 2024

I came across this issue as well with m4b files, but didn't dig into it too much. Thanks for experimenting and finding that out, that will give me a starting place in fixing that issue.

from audiobookshelf.

Kudjo-Grand avatar Kudjo-Grand commented on June 10, 2024

I just tried this trick again (change file extension to .mp3) with a different book that had .FLAC as the source files and it worked there too! However, I noticed something that makes me wonder.

At first, I thought the generate m4b process didn't "touch" the source files at all; just repackaged them into the m4b format. But when the source FLAC files total up to 6.1GB and the generated file is only 504MB, then I know that I thought wrong.

Would you mind telling me how the conversion is taking place? What settings are being used? Out of curiosity: Is there a way to change the settings? Or turn off compression?

Thank you.

from audiobookshelf.

advplyr avatar advplyr commented on June 10, 2024

The source file does not get manipulated at all. It is using Ffmpeg and the source is an input, Ffmpeg doesn't modify input files.
You can see the exact command that is being run to generate the m4b if you open the log, then start the m4b download, and look for a log that starts with this: [DownloadWorker] FFMPEG concat started with command:

That command is doing all the work. There are 2 text files that are generated that you will see in the command, files.txt and metadata.txt. These files are stored in /metadata/downloads/{download id}/.. and automatically deleted when the download expires, times out, or fails.

from audiobookshelf.

advplyr avatar advplyr commented on June 10, 2024

Are you still seeing this issue?

from audiobookshelf.

Kudjo-Grand avatar Kudjo-Grand commented on June 10, 2024

I'll check.

from audiobookshelf.

advplyr avatar advplyr commented on June 10, 2024

We'll re-open if this is reproducible

from audiobookshelf.

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.