OBS "failed to create aac streaming encoder" on OpenSUSE

JLm

New Member
Greetings!
I have just installed OpenSUSE Tumbleweed on my computer, so to install OBS I've added the Packman repo and installed it from there. However, it's been giving me the error "Failed to create aac streaming encoder (simple output)".
The terminal output is as follows:

info: ==== Startup complete ===============================================
error: Failed to get properties for encoder '' (ffmpeg_aac)
error: Could not enumerate any AAC encoder bitrates
error: Failed to create aac streaming encoder (simple output)

So it's clearly an ffmpeg issue. However ffmpeg-5 was also installed from the Packman repo, so I don't know what else I can do. Does anyone have any suggestions?
 

Tuna

Member
Paste the full log for starters. It will probably complain about a missing library at the start.
 

JLm

New Member
Paste the full log for starters. It will probably complain about a missing library at the start.
Thank you for replying. Now looking at the full log, the following line sticks out to me:

error: os_dlopen(/usr//lib64/obs-plugins/obs-ffmpeg.so->/usr//lib64/obs-plugins/obs-ffmpeg.so): libavdevice.so.58.13: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente

Here is the full log:

debug: Found portal inhibitor
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/locale/pt-BR.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/pt-BR.ini
info: Using preferred locale 'pt-BR'
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: CPU Name: AMD Ryzen 5 3500X 6-Core Processor
info: CPU Speed: 4014.263MHz
info: Physical Cores: 6, Logical Cores: 6
info: Physical Memory: 15909MB Total, 13770MB Free
info: Kernel Version: Linux 6.1.4-1-default
info: Distribution: "openSUSE Tumbleweed" "20230111"
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 5.15.8 (runtime), 5.15.8 (compiled)
info: Portable mode: false
QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int)
info: OBS 29.0.0 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 48000
speakers: 2
max buffering: 960 milliseconds
buffering type: dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter AMD AMD Radeon RX 5500 XT (navi14, LLVM 15.0.6, DRM 3.49, 6.1.4-1-default)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 22.3.2, shading language 4.60
info: ---------------------------------
info: video settings reset:
base resolution: 1920x1080
output resolution: 1280x720
downscale filter: Bicubic
fps: 30/1
format: NV12
YUV mode: Rec. 709/Partial
info: NV12 texture support not available
info: P010 texture support not available
info: Audio monitoring device:
name: Padrão
id: default
info: ---------------------------------
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
libDeckLinkAPI.so: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente
warning: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
warning: Failed to initialize module 'decklink.so'
info: [pipewire] Available captures:
info: [pipewire] - Desktop capture
info: [pipewire] - Window capture
warning: v4l2loopback not installed, virtual camera disabled
info: [obs-browser]: Version 2.19.0
info: [obs-browser]: CEF Version 95.0.4638.69 (runtime), 95.0.0-MediaHandler.2463+g3b3ac84+chromium-95.0.4638.69 (compiled)
error: os_dlopen(/usr//lib64/obs-plugins/obs-ffmpeg.so->/usr//lib64/obs-plugins/obs-ffmpeg.so): libavdevice.so.58.13: não é possível abrir arquivo compartilhado: Arquivo ou diretório inexistente

warning: Module '/usr//lib64/obs-plugins/obs-ffmpeg.so' not loaded
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.1.0 | RPC Version: 1)
info: [obs-websocket] [obs_module_load] Qt version (compile-time): 5.15.8 | Qt version (run-time): 5.15.8
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 101201
info: [obs-websocket] [obs_module_load] Module loaded.
info: [vlc-video]: VLC 3.0.18 Vetinari found, VLC video source enabled
info: ---------------------------------
info: Loaded Modules:
info: vlc-video.so
info: text-freetype2.so
info: rtmp-services.so
info: obs-x264.so
info: obs-websocket.so
info: obs-vst.so
info: obs-transitions.so
info: obs-outputs.so
info: obs-filters.so
info: obs-browser.so
info: linux-v4l2.so
info: linux-pulseaudio.so
info: linux-pipewire.so
info: linux-jack.so
info: linux-capture.so
info: linux-alsa.so
info: image-source.so
info: frontend-tools.so
info: decklink-output-ui.so
info: decklink-captions.so
info: ---------------------------------
info: ==== Startup complete ===============================================
error: Failed to get properties for encoder '' (ffmpeg_aac)
error: Could not enumerate any AAC encoder bitrates
error: Failed to create aac streaming encoder (simple output)
info: [obs-websocket] [obs_module_unload] Shutting down...
info: [obs-websocket] [obs_module_unload] Finished shutting down.
info: [Scripting] Total detached callbacks: 0
info: Freeing OBS context data
warning: 1 views remain at shutdown
info: == Profiler Results =============================
info: run_program_init: 2081.02 ms
info: ┣OBSApp::AppInit: 5.764 ms
info: ┃ ┗OBSApp::InitLocale: 2.659 ms
info: ┗OBSApp::OBSInit: 256.392 ms
info: ┣obs_startup: 0.525 ms
info: ┗OBSBasic::OBSInit: 221.73 ms
info: ┣OBSBasic::InitBasicConfig: 0.054 ms
info: ┣OBSBasic::ResetAudio: 0.06 ms
info: ┣OBSBasic::ResetVideo: 76.813 ms
info: ┣OBSBasic::InitOBSCallbacks: 0.004 ms
info: ┣OBSBasic::InitHotkeys: 0.035 ms
info: ┣obs_load_all_modules2: 144.493 ms
info: ┃ ┣obs_init_module(decklink-captions.so): 0 ms
info: ┃ ┣obs_init_module(decklink-output-ui.so): 0 ms
info: ┃ ┣obs_init_module(decklink.so): 0.074 ms
info: ┃ ┣obs_init_module(frontend-tools.so): 56.487 ms
info: ┃ ┣obs_init_module(image-source.so): 0.004 ms
info: ┃ ┣obs_init_module(linux-alsa.so): 0.001 ms
info: ┃ ┣obs_init_module(linux-capture.so): 0.255 ms
info: ┃ ┣obs_init_module(linux-jack.so): 0.001 ms
info: ┃ ┣obs_init_module(linux-pipewire.so): 1.08 ms
info: ┃ ┣obs_init_module(linux-pulseaudio.so): 0.001 ms
info: ┃ ┣obs_init_module(linux-v4l2.so): 4.467 ms
info: ┃ ┣obs_init_module(obs-browser.so): 0.462 ms
info: ┃ ┣obs_init_module(obs-filters.so): 0.013 ms
info: ┃ ┣obs_init_module(obs-outputs.so): 0.001 ms
info: ┃ ┣obs_init_module(obs-transitions.so): 0.003 ms
info: ┃ ┣obs_init_module(obs-vst.so): 0.001 ms
info: ┃ ┣obs_init_module(obs-websocket.so): 6.546 ms
info: ┃ ┣obs_init_module(obs-x264.so): 0.001 ms
info: ┃ ┣obs_init_module(rtmp-services.so): 0.205 ms
info: ┃ ┣obs_init_module(text-freetype2.so): 0.012 ms
info: ┃ ┗obs_init_module(vlc-video.so): 2.991 ms
info: ┗OBSBasic::ResetOutputs: 0.072 ms
info: obs_hotkey_thread(25 ms): min=0.039 ms, median=0.084 ms, max=0.39 ms, 99th percentile=0.39 ms, 100% below 25 ms
info: audio_thread(Audio): min=0.005 ms, median=0.012 ms, max=0.025 ms, 99th percentile=0.025 ms
info: obs_graphics_thread(33.3333 ms): min=0.05 ms, median=0.117 ms, max=0.936 ms, 99th percentile=0.936 ms, 100% below 33.333 ms
info: ┣tick_sources: min=0 ms, median=0.001 ms, max=0.003 ms, 99th percentile=0.003 ms
info: ┣output_frame: min=0.043 ms, median=0.102 ms, max=0.91 ms, 99th percentile=0.91 ms
info: ┃ ┗gs_context(video->graphics): min=0.043 ms, median=0.102 ms, max=0.909 ms, 99th percentile=0.909 ms
info: ┃ ┣render_video: min=0.005 ms, median=0.012 ms, max=0.039 ms, 99th percentile=0.039 ms
info: ┃ ┃ ┗render_main_texture: min=0.004 ms, median=0.009 ms, max=0.029 ms, 99th percentile=0.029 ms
info: ┃ ┗gs_flush: min=0.001 ms, median=0.002 ms, max=0.007 ms, 99th percentile=0.007 ms
info: ┗render_displays: min=0.003 ms, median=0.003 ms, max=0.008 ms, 99th percentile=0.008 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.099 ms, median=25.229 ms, max=26.094 ms, 78.2051% within ±2% of 25 ms (0% lower, 21.7949% higher)
info: obs_graphics_thread(33.3333 ms): min=32.654 ms, median=33.334 ms, max=33.949 ms, 96.4286% within ±2% of 33.333 ms (3.57143% lower, 0% higher)
info: =================================================
info: Number of memory leaks: 301
 

fdk42

New Member
I have the same problem on openSUSE Leap 15.4, while on Tumbleweed I do not have this problem.

The problem shown is:
warning: Module '/usr//lib64/obs-plugins/obs-ffmpeg.so' not loaded

However the mentioned file is present and has all the access rights it should have:
> ls -l /usr//lib64/obs-plugins/obs-ffmpeg.so
-rwxr-xr-x 1 root root 180112 10 jan 15:08 /usr//lib64/obs-plugins/obs-ffmpeg.so

How to solve this?
 

Tuna

Member
Looks like the FFMPEG version OBS was linked to is different than installed on the system. You may want to check with SuSE why.
 

fdk42

New Member
Found the solution for Leap 15.4. The package libsrt1_5 is missing. Apparently a requirement for this package is missing in the obs-studio package on Packman.
 

hockeymikey

New Member
I was having this exact issue. I wanna say that installing libavdevice58_13 fixed it for me if anyone finds this thread and has similar issues.
 

YAR Oracool

New Member
I was having this exact issue. I wanna say that installing libavdevice58_13 fixed it for me if anyone finds this thread and has similar issues.
The day you posted this libavdevice made a new version. OB seems to need the latest, for me it was 59, maight be something else for people when they read it in the future.
 
Top