mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Prefer libfdk_aac when the ffmpeg binary is built with it enabled #1463
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PeterCxy on GitHub (Mar 29, 2020).
Currently, Jellyfin always tries to use the default
aacencoder 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 ifffmpegis built withlibfdk_aacenabled, Jellyfin still uses the defaultaacencoder.I had to dirty hack the source code of ffmpeg to force it to always use
libfdk_aacinstead ofaacfor now. It would be better if Jellyfin could detect if the ffmpeg distribution supports this better encoder, and if so, prefer it over the defaultaacencoder. Of course, users would still need to supply their own build of ffmpeg to make this work, aslibfdk_aaccould not be redistributed. Still better than dirty hacks in source code.Posting the request here after discussion with @JustAMan on Matrix.