Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MP3 to M4B conversion fails[Bug]: #3029

Closed
ashtom50 opened this issue May 29, 2024 · 9 comments
Closed

MP3 to M4B conversion fails[Bug]: #3029

ashtom50 opened this issue May 29, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@ashtom50
Copy link

What happened?

When I try to convert a book in mp3 format to m4b the conversion fails immediately and i get an error in the logs "[DownloadWorker] Ffmpeg Err: Output format mp4 is not available"
This seems to have started after upgrading to V2.10.1

What did you expect to happen?

When clicking convert I expect the audiobook to process for at least a few minutes. I then rescan my library and the book is updated as M4B.

Steps to reproduce the issue

  1. Go to audiobook in mp3 format.
  2. Go to tools and convert to M4B
  3. Click convert

Audiobookshelf version

2.10.1

How are you running audiobookshelf?

Debian/PPA

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Chrome

Logs

[DownloadWorker] Ffmpeg Err: Output format mp4 is not available

Additional Notes

Running through proxmox. Installed with helper script.

@ashtom50 ashtom50 added the bug Something isn't working label May 29, 2024
@Pantechniconsole
Copy link

Pantechniconsole commented Jun 1, 2024

Finding the same with my first install of Audiobookshelf

Audiobookshelf version
2.10.1

How are you running Audiobookshelf?
Windows 11 (Browser)

What OS is your Audiobookshelf server hosted from?
Linux Mint (Ubuntu)

If the issue is being seen in the UI, what browsers are you seeing the problem on?
Edge, Firefox

Logs
2024-06-01 16:28:21.195 INFO Start m4b encode for f98c8916-03ee-4626-8bb8-580e3b867886 - TaskId: 7e2bce5e-8cd3-47a0-8014-8e6435b15327
2024-06-01 16:28:21.274 ERROR [DownloadWorker] Ffmpeg Err: Output format mp4 is not available
2024-06-01 16:28:21.275 INFO [AbMergeManager] Removing task 7e2bce5e-8cd3-47a0-8014-8e6435b15327

@advplyr
Copy link
Owner

advplyr commented Jun 1, 2024

Ah interesting, this may be an issue with the latest version of ffmpeg on the Debian package because a similar "Output format is not available" was brought up in #3031 relating to HLS transcoding

@advplyr
Copy link
Owner

advplyr commented Jun 1, 2024

Quick search and I found the wrapper we use for ffmpeg patched this issue for ffmpeg v7 recently. fluent-ffmpeg/node-fluent-ffmpeg#1274

The reason this only impacts the Debian package is because Windows installer is using ffmpeg 5.1 (due to an issue with ffmpeg 6 on Windows) and the Docker installs are using ffmpeg 6.

@Pantechniconsole
Copy link

It's surprising you mention it's working on Windows. I did try the Windows install earlier but the Tools tab shows "Not supported for the Windows install yet".

@advplyr
Copy link
Owner

advplyr commented Jun 1, 2024

M4B conversion isn't supported on Windows because Tone isn't included as a dependency. Ffmpeg does work on Windows which is used to transcode audiobooks that can't be direct played. Also used when downloading podcast episodes to embed metadata in the audio files.

@advplyr advplyr added the awaiting release Issue is resolved and will be in the next release label Jun 1, 2024
@BlwAvg
Copy link

BlwAvg commented Jun 1, 2024

https://xkcd.com/208/

Thank you for the fix.

@C0rn3j
Copy link

C0rn3j commented Jul 9, 2024

2.11.0 is out with this issue fixed(or well, at least it's attempting to process now that I upgraded),

@advplyr can be closed I suppose.

@Pantechniconsole
Copy link

Pantechniconsole commented Jul 9, 2024 via email

@advplyr
Copy link
Owner

advplyr commented Jul 9, 2024

Fixed in v2.11.0

@advplyr advplyr closed this as completed Jul 9, 2024
@advplyr advplyr removed the awaiting release Issue is resolved and will be in the next release label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants