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

libfdk_aac is disabled but requested #521

Open
blackjack4494 opened this issue Dec 27, 2024 · 2 comments
Open

libfdk_aac is disabled but requested #521

blackjack4494 opened this issue Dec 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@blackjack4494
Copy link

Describe The Bug
The transcoding request tries to use the libfdk_aac lib but it isn't enabled apparently --disable-libfdk-aac

/opt/ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -f matroska -i 'file:/vacation_05_03_2023.mkv' -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx265 -tag:v:0 hvc1 -preset veryfast -crf 28 -maxrate 17437826 -bufsize 34875652 -profile:v:0 main -x265-params:0 subme=3:merange=25:rc-lookahead=10:me=star:ctu=32:max-tu-size=32:min-cu-size=16:rskip=2:rskip-edge-threshold=2:no-sao=1:no-strong-intra-smoothing=1:no-scenecut=1:no-open-gop=1:no-info=1 -force_key_frames:0 'expr:gte(t,n_forced*3)' -vf 'setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(1920\,960*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(1920/a\,960))/2)*2,format=yuv420p' -codec:a:0 libfdk_aac -ac 6 -ab 640000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename 98860b2c3502045d3c74eda9b5eb2b8c-1.mp4 -start_number 0 -hls_segment_filename ../cache/transcodes/98860b2c3502045d3c74eda9b5eb2b8c%d.mp4 -hls_playlist_type vod -hls_list_size 0 -y ../cache/transcodes/98860b2c3502045d3c74eda9b5eb2b8c.m3u8
ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.3.9.4)
  configuration: --prefix=/ffbuild/prefix --disable-shared --enable-static --pkg-config-flags=--static --enable-pthreads --cc=clang --host-cflags='-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/opt/ffbuild/prefix/include' --host-ldflags='-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -L/opt/ffbuild/prefix/lib' --extra-version=Jellyfin --extra-cflags=-I/opt/ffbuild/prefix/include --extra-cxxflags= --extra-ldflags=-L/opt/ffbuild/prefix/lib --extra-ldexeflags= --extra-libs= --enable-gpl --enable-version3 --disable-ffplay --disable-debug --disable-doc --disable-ptx-compression --disable-sdl2 --enable-lto=thin --disable-libjack --disable-indev=jack --disable-libxcb --disable-xlib --enable-neon --enable-runtime-cpudetect --enable-audiotoolbox --enable-videotoolbox --enable-iconv --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-libxml2 --enable-openssl --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --enable-chromaprint --enable-libdav1d --disable-libfdk-aac --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libopenmpt --disable-rkmpp --disable-rkrga --enable-libsrt --enable-libsvtav1 --enable-libx264 --enable-libx265 --enable-libzimg --enable-libzvbi

Steps To Reproduce

  1. Play file ''
  2. Check logs '....'

Expected Behavior
I expect a successful transcoding. Either by having libfdk_aac enabled or by not using this specific lib but instead fallback to the generic aac encoder.

System (please complete the following information):

  • Platform: Mac Mini M4 (arm)
  • Operating System: see above
  • Virtualization: not relevant
  • Jellyfin Version: 10.10.3
  • Jellyfin-FFmpeg Version: jellyfin-ffmpeg_7.0.2-7_portable_macarm64-gpl
  • Hardware Acceleration: apple videotoolbox
  • CPU & GPU Model: see above

MediaInfo
CodecEAC3 AVCNo Layout5.1 Channels6 ch Bitrate640 kbps Sample rate48000 Hz DefaultYes ForcedNo ExternalNo

FFmpeg Logs
[aost#0:1 @ 0x131e73500] Unknown encoder 'libfdk_aac' [aost#0:1 @ 0x131e73500] Error selecting an encoder

Additional Context

@blackjack4494 blackjack4494 added the bug Something isn't working label Dec 27, 2024
@gnattu
Copy link
Member

gnattu commented Dec 27, 2024

On macOS we are using Apple AudioToolbox aac_at encoder and even if that encoder is not available we will fallback to the ffmpeg native encoder. What is your exact setup because it is very very likely, you are running it in a not supported manner like running the server in a VM and running the ffmpeg on the host through things like rffmpeg.

@gnattu
Copy link
Member

gnattu commented Dec 27, 2024

The server checks the encoder capability on each startup and it will not pick fdk-aac when the ffmpeg does not support it. What you are facing is very likely that the ffmpeg being checked is not the ffmpeg being used. This should never happen on our official installs which means you should provide complete environment info instead of replying with "not relevant".

You said you are configuring the server to use videotoolbox but the ffmpeg log is not using videotoolbox and is using pure software. This is could also result from a setup error.

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

2 participants