Prefer libfdk_aac when the ffmpeg binary is built with it enabled #1463

Closed
opened 2026-02-06 21:00:43 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @PeterCxy on GitHub (Mar 29, 2020).

Currently, Jellyfin always tries to use the default aac encoder in ffmpeg when transcoding audio (for both video files and standalone music files). This encoder is fine for most purposes, but sometimes it produces some really jarring distortion at higher frequencies. It would be nice to be able to use a better aac encoder, however even if ffmpeg is built with libfdk_aac enabled, Jellyfin still uses the default aac encoder.

I had to dirty hack the source code of ffmpeg to force it to always use libfdk_aac instead of aac for now. It would be better if Jellyfin could detect if the ffmpeg distribution supports this better encoder, and if so, prefer it over the default aac encoder. Of course, users would still need to supply their own build of ffmpeg to make this work, as libfdk_aac could not be redistributed. Still better than dirty hacks in source code.

Posting the request here after discussion with @JustAMan on Matrix.

Originally created by @PeterCxy on GitHub (Mar 29, 2020). Currently, Jellyfin always tries to use the default `aac` encoder in ffmpeg when transcoding audio (for both video files and standalone music files). This encoder is fine for most purposes, but sometimes it produces some really jarring distortion at higher frequencies. It would be nice to be able to use a better aac encoder, however even if `ffmpeg` is built with `libfdk_aac` enabled, Jellyfin still uses the default `aac` encoder. I had to dirty hack the source code of ffmpeg to force it to always use `libfdk_aac` instead of `aac` for now. It would be better if Jellyfin could detect if the ffmpeg distribution supports this better encoder, and if so, prefer it over the default `aac` encoder. Of course, users would still need to supply their own build of ffmpeg to make this work, as `libfdk_aac` could not be redistributed. Still better than dirty hacks in source code. Posting the request here after discussion with @JustAMan on Matrix.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#1463