audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

MP3 to M4B conversion fails[Bug]:

Open ashtom50 opened this issue 1 year ago • 6 comments
trafficstars

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 avatar May 29 '24 11:05 ashtom50

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

Pantechniconsole avatar Jun 01 '24 15:06 Pantechniconsole

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 avatar Jun 01 '24 15:06 advplyr

Quick search and I found the wrapper we use for ffmpeg patched this issue for ffmpeg v7 recently. https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/pull/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.

advplyr avatar Jun 01 '24 15:06 advplyr

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".

Pantechniconsole avatar Jun 01 '24 16:06 Pantechniconsole

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 avatar Jun 01 '24 16:06 advplyr

https://xkcd.com/208/

Thank you for the fix.

BlwAvg avatar Jun 01 '24 17:06 BlwAvg

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.

C0rn3j avatar Jul 09 '24 11:07 C0rn3j

I've been using the fix since you posted it (I applied it manually) and it's been working fine. I'm happy to close this ticket.

ATB

On Tue, 9 Jul 2024 at 12:59, Martin @.***> wrote:

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

@advplyr https://github.com/advplyr can be closed I suppose.

— Reply to this email directly, view it on GitHub https://github.com/advplyr/audiobookshelf/issues/3029#issuecomment-2217455585, or unsubscribe https://github.com/notifications/unsubscribe-auth/BH7KT62JK4F7BHDN5227NYLZLPGDHAVCNFSM6AAAAABIOXUSZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJXGQ2TKNJYGU . You are receiving this because you commented.Message ID: @.***>

Pantechniconsole avatar Jul 09 '24 16:07 Pantechniconsole

Fixed in v2.11.0

advplyr avatar Jul 09 '24 20:07 advplyr