Giter VIP home page Giter VIP logo

Comments (5)

mikiher avatar mikiher commented on June 25, 2024

This seems to be a server issue (although it's probably a windows-specific server issue) - I will look into this a bit more tomorrow.

from audiobookshelf-windows.

mikiher avatar mikiher commented on June 25, 2024

OK, I was able to repro and understand your bug.

This is an issue with the ffprobe version that's installed by the server (and it is indeed a windows specific issue, since the server only attempts to find and install ffprobe on Windows installs). The ffmpeg binaries (including ffprobe) that are currently being downloaded by the server (from ffbinaries.com) are version 4.4.1, however it looks like windows long path support has only been added to ffprobe in version 5.1 (You did the right thing looking for LongPathsEnabled==1, but unfortunately it is not enough to have it enabled - applications also need to be modified to support long paths)

After switching to ffprobe 6.1, I successfully added a book with a long path.

ffbinaries.com only recently (on Dec 28 2023, to be precise) started to offer the latest versions of ffmpeg (5.1 and 6.1), but unfortunately have not yet updated their API to point 'latest' to 6.1. This means that I'll need to make a couple of code changes to hardcode downloading version 6.1, and also replace existing older versions that it installed.

Stay tuned...

In the meantime, if you want to manually fix this, you can:

  • Download the latest (6.1) ffmpeg and ffprobe binaries from here
  • Replace the ffmpeg.exe and ffprobe.exe files found in your config directory (by default it's at %localappdata%\Audiobookshelf\config`) with the binaries you downloaded.

from audiobookshelf-windows.

mikiher avatar mikiher commented on June 25, 2024

@advplyr, can you please transfer this issue to the server queue?

from audiobookshelf-windows.

advplyr avatar advplyr commented on June 25, 2024

Can't transfer it since you are the owner. It's fine we can reference this in the PR

from audiobookshelf-windows.

Cobolt78 avatar Cobolt78 commented on June 25, 2024

OK, I was able to repro and understand your bug.

This is an issue with the ffprobe version that's installed by the server (and it is indeed a windows specific issue, since the server only attempts to find and install ffprobe on Windows installs). The ffmpeg binaries (including ffprobe) that are currently being downloaded by the server (from ffbinaries.com) are version 4.4.1, however it looks like windows long path support has only been added to ffprobe in version 5.1 (You did the right thing looking for LongPathsEnabled==1, but unfortunately it is not enough to have it enabled - applications also need to be modified to support long paths)

After switching to ffprobe 6.1, I successfully added a book with a long path.

ffbinaries.com only recently (on Dec 28 2023, to be precise) started to offer the latest versions of ffmpeg (5.1 and 6.1), but unfortunately have not yet updated their API to point 'latest' to 6.1. This means that I'll need to make a couple of code changes to hardcode downloading version 6.1, and also replace existing older versions that it installed.

Stay tuned...

In the meantime, if you want to manually fix this, you can:

  • Download the latest (6.1) ffmpeg and ffprobe binaries from here
  • Replace the ffmpeg.exe and ffprobe.exe files found in your config directory (by default it's at %localappdata%\Audiobookshelf\config`) with the binaries you downloaded.

Thanks alot for your help :) I will download the new 6.1 ffmpeg and ffprobe binaries and give it a go.

Thanks

from audiobookshelf-windows.

Related Issues (17)

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.