Skip to content

bug: vlc-video: audio meters, filters and capture callbacks see VLC audio 1-2 s early, in bursts (upstream #2406) #404

Closed

Description

@rdoupe

Upstream OBS bug, reported by univrsal in obsproject/obs-studio#2406 (VLC 3.0.8): with an Opus file in a VLC Video Source, the source's volume meter flickers: it shows a level for a moment, then resets about every second. The audio itself plays and records fine; the same file converted to MP3 does not do it. WizardCM (OBS team) reproduced it in OBS 26.1 and again in 27.0.1 with VLC 3.0.14. CodyJung traced it: libVLC hands the Opus audio over about every 0.9 s, and the meter resets after 0.5 s without new data. kkartaltepe (OBS team) added that audio capture callbacks get an async source's audio exactly as the source delivers it. Closed as stale in 2024 with no fix.

Location

  • plugins/vlc-video/vlc-video-source.c lines 483-502, vlcs_audio_play(): forwards every block libVLC hands to its audio callback to obs_source_output_audio() at once (line 501).
  • libVLC 3 decodes up to 2 s ahead of its clock and hands the audio over as soon as it is decoded. With its Ogg and MP4 demuxers that comes in bursts. Measured with libVLC 3.0.23: Opus and Vorbis in Ogg come as about 1 s of audio at once, then nothing for 0.92 s; AAC in MP4 in bursts 0.25 s apart. WAV, FLAC, MP3 and Opus in WebM/Matroska come steadily. The blocks themselves are small (20-50 ms); it is their timing that is bursty.
  • libobs/obs-source.c line 1719: libobs places async audio by its timestamps, so playback is right, but audio capture callbacks (the volume meter, obs-websocket's InputVolumeMeters) run when the audio is handed over, and async audio filters (line 4123) process it then too.

Class

Wrong UI state: the volume meter of a VLC Video Source jumps, then resets about every second, for Opus and Vorbis files (.opus, .ogg); it runs up to 2 s ahead of what is heard for every file type.

How it is reached

  1. Add a VLC Video Source with an .opus file (Opus in Ogg).
  2. Watch its volume meter while it plays.

Reproduced headlessly: generated files played through the built vlc-video module under a private Xvfb, with an audio capture callback recording every hand-over. On master, Opus in Ogg is handed over in bursts 920 ms apart and up to 2.07 s ahead of the program mix.

Upstream work

None. No upstream PR. Related: obsproject/obs-studio#11711 (a compressor on a VLC Video Source sidechained to a microphone ducks about a second late), which the same hand-over timing would explain, since async audio filters run when the audio is handed over.

Proposed fix and failing test

Fix (plugins/vlc-video only): vlcs_audio_play() holds each block until it is due to play in 100 ms, as an audio device's blocking write does. Timestamps are unchanged. The wait uses the drain abort event from #302, so a stop or the next playlist item cuts it short.

RED test test_vlc_audio_pacing (libVLC, needs Xvfb, skips without either like the other VLC tests): generates Opus/Ogg, Vorbis/Ogg, AAC/MP4 and Opus/WebM files with FFmpeg and a WAV file. During playback no hand-over may carry more than 50 ms, hand-overs may be at most 100 ms apart, timestamps must run on without jumps, and the whole file must reach the program mix. 3 of 6 fail today (Opus/Ogg, Vorbis/Ogg, AAC/MP4).

Activity

  1. rdoupe commented on Oct 12, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: this issue.

    1. RED: test_vlc_audio_pacing (3 of 6 failing): Opus/Vorbis in Ogg and AAC in MP4 through the real VLC source; audio must be handed over as it plays (no bursts, gaps of at most 100 ms), with timestamps and the full file in the mix unchanged; WAV and WebM as controls and a pause/resume guard.
    2. GREEN: hold each audio block until shortly before it's due to play, using the existing stop/next-item abort.
      PR today.
  2. rdoupe commented on Oct 12, 2026

    @rdoupe
    CollaboratorAuthor

    @univrsal you reported this in obsproject/obs-studio#2406, so a heads-up: it's fixed here in obs-rust by #405, merged today with a regression test.

    Cause: libVLC decodes audio up to two seconds ahead and, with its Ogg and MP4 demuxers, hands it to the VLC Video Source in bursts: about a second of small blocks at once, then nothing for most of a second. The source passed each block straight to OBS. Playback and recordings were fine, because libobs places audio by its timestamps, but the volume meter, obs-websocket's meters and audio filters (a sidechain compressor, for example) see audio when it's handed over, so the meter jumped and then dropped back to nothing between bursts. CodyJung traced it to those bursts in your thread, and WizardCM confirmed it twice. Now the source hands each block over shortly before it's due to play, the way an audio device takes it, and the timestamps are unchanged. The test plays Opus and Vorbis in Ogg and AAC in MP4 through the real VLC source: before, audio arrived in bursts 0.25-0.92 s apart and ran 1-2 s ahead of playback; now it arrives steadily, under 0.2 s ahead.

    Not covered: tested with libVLC 3.0.23 on Linux; Windows and macOS libVLC builds and libVLC 4 weren't tried.

    Workaround on stock OBS: use a Media Source instead of a VLC Video Source for those files.

    obs-rust is an AI-assisted fork of OBS; on Arch it's obs-studio-rust-git in the AUR.

    If you try it, a short reply here on whether the meter moves smoothly now would really help.

  3. univrsal commented on Oct 12, 2026

    @univrsal
    Contributor

    I installed the AUR package but obs won't start

    gdb log
    Starting program: /usr/bin/obs 
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/usr/lib/libthread_db.so.1".
    [New Thread 0x7fffe0ce46c0 (LWP 426504)]
    [New Thread 0x7fffd89ff6c0 (LWP 426505)]
    [New Thread 0x7fffcffff6c0 (LWP 426506)]
    [New Thread 0x7fffcf7fe6c0 (LWP 426507)]
    [New Thread 0x7fffceffd6c0 (LWP 426508)]
    [New Thread 0x7fffce7fc6c0 (LWP 426509)]
    debug: Found portal inhibitor
    debug: Attempted path: /usr/bin/../share/obs/obs-studio/locale/en-US.ini
    debug: Attempted path: /usr/bin/../share/obs/obs-studio/locale.ini
    debug: Attempted path: /usr/bin/../share/obs/obs-studio/themes
    debug: Attempted path: /usr/bin/../share/obs/obs-studio/themes/
    info: Platform: Wayland
    info: CPU Name: AMD Ryzen 7 3700X 8-Core Processor
    info: CPU Speed: 3966.259MHz
    info: Physical Cores: 8, Logical Cores: 16
    info: Physical Memory: 32005MB Total, 21677MB Free
    info: Kernel Version: Linux 7.2.7-zen1-1-zen
    info: Distribution: "Arch Linux" Unknown
    info: Desktop Environment: KDE (KDE)
    info: Session Type: wayland
    [New Thread 0x7fffcded26c0 (LWP 426511)]
    [New Thread 0x7fffcd6d16c0 (LWP 426512)]
    [New Thread 0x7fffcced06c0 (LWP 426513)]
    info: Current Date/Time: 2026-10-12, 11:00:57 PM
    info: Browser Hardware Acceleration: true
    info: Qt Version: 6.11.2 (runtime), 6.11.2 (compiled)
    info: Portable mode: false
    info: [portal] GlobalShortcuts portal version 2; global hotkeys enabled
    [New Thread 0x7fffccbe86c0 (LWP 426514)]
    [New Thread 0x7fffb7fff6c0 (LWP 426515)]
    info: OBS-Studio-Rust 0.1.0 (based on OBS 0.0.0.r718.gb52c283 (linux))
    info: ---------------------------------
    info: ---------------------------------
    info: audio settings reset:
            samples per sec: 48000
            speakers:        2
            max buffering:   960 milliseconds
            buffering type:  dynamically increasing
    [New Thread 0x7fffcc3df6c0 (LWP 426516)]
    info: ---------------------------------
    info: Initializing OpenGL...
    info: Using EGL/Wayland
    [New Thread 0x7fffb75b16c0 (LWP 426517)]
    [New Thread 0x7fffb69ff6c0 (LWP 426518)]
    [New Thread 0x7fffb61fe6c0 (LWP 426519)]
    [New Thread 0x7fffb59fd6c0 (LWP 426520)]
    info: Initialized EGL 1.5
    [New Thread 0x7fffb4dfc6c0 (LWP 426521)]
    [New Thread 0x7fff9a1ff6c0 (LWP 426522)]
    [New Thread 0x7fff999fe6c0 (LWP 426523)]
    info: Loading up OpenGL on adapter AMD AMD Radeon RX 6700 XT (radeonsi, navi22, ACO, DRM 3.64, 7.2.7-zen1-1-zen)
    info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 26.2.3-arch1.1, shading language 4.60
    [New Thread 0x7fff989fd6c0 (LWP 426524)]
    info: ---------------------------------
    info: video settings reset:
            base resolution:   1920x1080
            output resolution: 1280x720
            downscale filter:  Bicubic
            fps:               30/1
            format:            NV12
            YUV mode:          Rec. 709/Partial
    [New Thread 0x7fff8bbff6c0 (LWP 426525)]
    info: NV12 texture support enabled
    info: P010 texture support not available
    [New Thread 0x7fff8b3fe6c0 (LWP 426526)]
    [New Thread 0x7fff8abfd6c0 (LWP 426527)]
    info: Audio monitoring device:
            name: Default
            id: default
    libDeckLinkAPI.so: cannot open shared object file: No such file or directory
    warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
    warning: Failed to initialize module 'decklink.so'
    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'
    [New Thread 0x7fff8a3fc6c0 (LWP 426528)]
    info: [pipewire] Available capture sources:
    info: [pipewire]     - Monitor source
    info: [pipewire]     - Window source
    [Detaching after vfork from child process 426529]
    error: os_dlopen(/usr/bin/../lib/obs-modules/core/obs-browser.so->/usr/bin/../lib/obs-modules/core/obs-browser.so): libcef.so: cannot open shared object file: No such file or directory
    
    warning: Module '/usr/bin/../lib/obs-modules/core/obs-browser.so' not loaded
    [New Thread 0x7fff82bff6c0 (LWP 426531)]
    [New Thread 0x7fff823fe6c0 (LWP 426532)]
    [New Thread 0x7fff81bfd6c0 (LWP 426533)]
    [New Thread 0x7fff813fc6c0 (LWP 426534)]
    info: VAAPI: API version 1.24
    [Thread 0x7fff813fc6c0 (LWP 426534) exited]
    [Thread 0x7fff81bfd6c0 (LWP 426533) exited]
    [Thread 0x7fff823fe6c0 (LWP 426532) exited]
    [Thread 0x7fff82bff6c0 (LWP 426531) exited]
    info: FFmpeg VAAPI H264 encoding supported
    [New Thread 0x7fff82bff6c0 (LWP 426535)]
    [New Thread 0x7fff81bfd6c0 (LWP 426536)]
    [New Thread 0x7fff823fe6c0 (LWP 426537)]
    [New Thread 0x7fff813fc6c0 (LWP 426538)]
    [Thread 0x7fff813fc6c0 (LWP 426538) exited]
    [Thread 0x7fff823fe6c0 (LWP 426537) exited]
    [Thread 0x7fff81bfd6c0 (LWP 426536) exited]
    [Thread 0x7fff82bff6c0 (LWP 426535) exited]
    info: FFmpeg VAAPI AV1 encoding not supported
    [New Thread 0x7fff82bff6c0 (LWP 426539)]
    [New Thread 0x7fff823fe6c0 (LWP 426540)]
    [New Thread 0x7fff81bfd6c0 (LWP 426541)]
    [New Thread 0x7fff813fc6c0 (LWP 426542)]
    [Thread 0x7fff813fc6c0 (LWP 426542) exited]
    [Thread 0x7fff81bfd6c0 (LWP 426541) exited]
    [Thread 0x7fff823fe6c0 (LWP 426540) exited]
    info: FFmpeg VAAPI HEVC encoding supported
    [Thread 0x7fff82bff6c0 (LWP 426539) exited]
    error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory
    
    info: NVENC not supported
    warning: Failed to initialize module 'obs-nvenc.so'
    [New Thread 0x7fff82bff6c0 (LWP 426543)]
    [New Thread 0x7fff81bfd6c0 (LWP 426544)]
    [New Thread 0x7fff823fe6c0 (LWP 426545)]
    [New Thread 0x7fff813fc6c0 (LWP 426546)]
    [Thread 0x7fff813fc6c0 (LWP 426546) exited]
    [Thread 0x7fff823fe6c0 (LWP 426545) exited]
    [Thread 0x7fff81bfd6c0 (LWP 426544) exited]
    [Thread 0x7fff82bff6c0 (LWP 426543) exited]
    [New Thread 0x7fff82bff6c0 (LWP 426547)]
    [New Thread 0x7fff823fe6c0 (LWP 426548)]
    [New Thread 0x7fff81bfd6c0 (LWP 426549)]
    [New Thread 0x7fff813fc6c0 (LWP 426550)]
    [Thread 0x7fff813fc6c0 (LWP 426550) exited]
    [Thread 0x7fff81bfd6c0 (LWP 426549) exited]
    [Thread 0x7fff823fe6c0 (LWP 426548) exited]
    [Thread 0x7fff82bff6c0 (LWP 426547) exited]
    info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.7.5 | RPC Version: 1)
    info: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.11.2 | Qt version (run-time): 6.11.2
    info: [obs-websocket] [obs_module_load] Linked ASIO Version: 103802
    info: [obs-websocket] [obs_module_load] Module loaded.
    [New Thread 0x7fff82bff6c0 (LWP 426551)]
    [New Thread 0x7fff81bfd6c0 (LWP 426552)]
    error: Failed to load core OBS modules. OBS cannot run without these modules. Please try reinstalling OBS.
    [New Thread 0x7fff823fe6c0 (LWP 426553)]
    [New Thread 0x7fff813fc6c0 (LWP 426554)]
    [New Thread 0x7fff807ff6c0 (LWP 426555)]
    warning: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
    [Thread 0x7fff823fe6c0 (LWP 426553) exited]
    [Thread 0x7fff81bfd6c0 (LWP 426552) exited]
    [Thread 0x7fff82bff6c0 (LWP 426551) exited]
    [Thread 0x7fff8bbff6c0 (LWP 426525) exited]
    [Thread 0x7fff8abfd6c0 (LWP 426527) exited]
    [Thread 0x7fffcc3df6c0 (LWP 426516) exited]
    [Thread 0x7fffcd6d16c0 (LWP 426512) exited]
    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
    [Thread 0x7fff8a3fc6c0 (LWP 426528) exited]
    [Thread 0x7fffcced06c0 (LWP 426513) exited]
    [Thread 0x7fffcded26c0 (LWP 426511) exited]
    [Thread 0x7fff999fe6c0 (LWP 426523) exited]
    [Thread 0x7fff9a1ff6c0 (LWP 426522) exited]
    [Thread 0x7fffb4dfc6c0 (LWP 426521) exited]
    [Thread 0x7fff8b3fe6c0 (LWP 426526) exited]
    [Thread 0x7fff989fd6c0 (LWP 426524) exited]
    [Thread 0x7fffb61fe6c0 (LWP 426519) exited]
    [Thread 0x7fffb59fd6c0 (LWP 426520) exited]
    [Thread 0x7fffb69ff6c0 (LWP 426518) exited]
    [Thread 0x7fffb75b16c0 (LWP 426517) exited]
    [Thread 0x7fff813fc6c0 (LWP 426554) exited]
    [Thread 0x7fff807ff6c0 (LWP 426555) exited]
    [Thread 0x7fffb7fff6c0 (LWP 426515) exited]
    [Thread 0x7fffccbe86c0 (LWP 426514) exited]
    [Thread 0x7fffd89ff6c0 (LWP 426505) exited]
    [Thread 0x7fffcffff6c0 (LWP 426506) exited]
    info: == Profiler Results =============================
    info: run_program_init: 2093.16 ms
    info:  ┣OBSApp::AppInit: 20.669 ms
    info:  ┃ ┗OBSApp::InitLocale: 2.087 ms
    info:  ┗OBSApp::OBSInit: 483.038 ms
    info:    ┣obs_startup: 2.428 ms
    info:    ┗OBSBasic::OBSInit: 446.658 ms
    info:      ┣OBSBasic::InitBasicConfig: 0.543 ms
    info:      ┣OBSBasic::ResetAudio: 0.389 ms
    info:      ┣OBSBasic::ResetVideo: 193.323 ms
    info:      ┃ ┗obs_init_graphics: 190.704 ms
    info:      ┃   ┗shader compilation: 86.246 ms
    info:      ┣OBSBasic::InitOBSCallbacks: 0.002 ms
    info:      ┣OBSBasic::InitHotkeys: 0.025 ms
    info:      ┣obs_init_module(decklink.so): 0.09 ms
    info:      ┣obs_init_module(decklink-captions.so): 0 ms
    info:      ┣obs_init_module(decklink-output-ui.so): 0 ms
    info:      ┣obs_init_module(frontend-tools.so): 97.74 ms
    info:      ┣obs_init_module(image-source.so): 0.005 ms
    info:      ┣obs_init_module(linux-alsa.so): 0.002 ms
    info:      ┣obs_init_module(linux-capture.so): 0 ms
    info:      ┣obs_init_module(linux-jack.so): 0.002 ms
    info:      ┣obs_init_module(linux-pipewire.so): 21.628 ms
    info:      ┣obs_init_module(linux-pulseaudio.so): 0.002 ms
    info:      ┣obs_init_module(linux-v4l2.so): 5.206 ms
    info:      ┣obs_init_module(obs-ffmpeg.so): 13.787 ms
    info:      ┣obs_init_module(obs-filters.so): 0.015 ms
    info:      ┣obs_init_module(obs-libfdk.so): 0.001 ms
    info:      ┣obs_init_module(obs-nvenc.so): 0.057 ms
    info:      ┃ ┗nvenc_check: 0.044 ms
    info:      ┣obs_init_module(obs-outputs.so): 0.003 ms
    info:      ┣obs_init_module(obs-qsv11.so): 9.733 ms
    info:      ┣obs_init_module(obs-transitions.so): 0.005 ms
    info:      ┣obs_init_module(obs-vst.so): 0.002 ms
    info:      ┣obs_init_module(obs-webrtc.so): 0.011 ms
    info:      ┣obs_init_module(obs-websocket.so): 4.111 ms
    info:      ┣obs_init_module(obs-x264.so): 0.001 ms
    info:      ┣obs_init_module(rtmp-services.so): 0.235 ms
    info:      ┗obs_init_module(text-freetype2.so): 0.011 ms
    info: obs_hotkey_thread(25 ms): min=0 ms, median=0.001 ms, max=0.004 ms, 99th percentile=0.004 ms, 100% below 25 ms
    info: audio_thread(Audio): min=0.002 ms, median=0.005 ms, max=40.737 ms, 99th percentile=40.737 ms
    info: obs_graphics_thread(33.3333 ms): min=0.081 ms, median=0.1 ms, max=9.693 ms, 99th percentile=9.693 ms, 100% below 33.333 ms
    info:  ┣tick_sources: min=0 ms, median=0.002 ms, max=0.004 ms, 99th percentile=0.004 ms
    info:  ┣output_frame: min=0.069 ms, median=0.082 ms, max=0.225 ms, 99th percentile=0.225 ms
    info:  ┃ ┗gs_context(video->graphics): min=0.069 ms, median=0.082 ms, max=0.225 ms, 99th percentile=0.225 ms
    info:  ┃   ┣render_video: min=0.007 ms, median=0.013 ms, max=0.048 ms, 99th percentile=0.048 ms
    info:  ┃   ┃ ┗render_main_texture: min=0.005 ms, median=0.01 ms, max=0.036 ms, 99th percentile=0.036 ms
    info:  ┃   ┗gs_flush: min=0.002 ms, median=0.003 ms, max=0.007 ms, 99th percentile=0.007 ms
    info:  ┗render_displays: min=0.002 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.032 ms, median=25.058 ms, max=25.067 ms, 100% within ±2% of 25 ms (0% lower, 0% higher)
    info: obs_graphics_thread(33.3333 ms): min=33.308 ms, median=33.333 ms, max=33.379 ms, 100% within ±2% of 33.333 ms (0% lower, 0% higher)
    info: =================================================
    info: Number of memory leaks: 170
    [Thread 0x7fffe0ce46c0 (LWP 426504) exited]
    [Thread 0x7fffceffd6c0 (LWP 426508) exited]
    [Thread 0x7fffcf7fe6c0 (LWP 426507) exited]
    [Thread 0x7fffe1266580 (LWP 426501) exited]
    [Thread 0x7fffce7fc6c0 (LWP 426509) exited]
    [New process 426501]
    [Inferior 1 (process 426501) exited with code 0377]
    
  4. rdoupe commented on Oct 14, 2026

    @rdoupe
    CollaboratorAuthor

    Thanks for the log, it shows the cause.

    What happens: OBS 33 (and so this fork) loads a fixed list of "core" modules from /usr/lib/obs-modules/core/, and obs-browser is on that list when it is built. If any of them is there but can't be opened, OBS stops with "Failed to load core OBS modules". Your package installed obs-browser.so there, but the library it needs (libcef.so, from the cef package) isn't installed. In OBS 32 the same thing only showed a "some plugins failed to load" message and OBS kept running. Stock OBS 33.0.0-rc1 has the same code. I reproduced it here with our latest release (v0.1.0-beta.20261014) by giving one core module a missing library: OBS refused to start the same way.

    The AUR package is maintained by someone else, not us. Its PKGBUILD has cef only as a build dependency. It points obs-browser at /usr/lib/cef/, but cef isn't a runtime dependency of the main package, so an AUR helper that removes build dependencies afterwards leaves obs-browser.so without its library. The current PKGBUILD still does this.

    Workarounds:

    • Install cef from the Arch repos (sudo pacman -S cef), so /usr/lib/cef/libcef.so exists. If cef has been updated since you built the package, rebuild the package with it installed so the versions match. (Not tested here.)
    • Or install obs-studio-rust-plugin-browser-git from the same AUR package, which depends on cef and so pulls it in. (Not tested here. Its own copy of obs-browser goes to /usr/lib/obs-plugins/, which OBS 33 skips, but the copy in obs-modules/core/ will then load.)
    • Or use the release AppImage from https://github.com/obs-rust/obs-studio/releases (v0.1.0-beta.20261014). It has no Browser Source, and it starts on Arch here.
    • Please don't just delete obs-browser.so. When a core module's file is missing, OBS stops loading every core module after it in the list and starts without them. I checked that with the same release by removing a different core module.

    Next: we're preparing a fix (issue and PR to follow) so that a core module that can't be loaded (like obs-browser without libcef) no longer stops OBS from starting: it is skipped with a warning, and the other core modules still load. That includes the case where its file is missing. I'll post here once it's merged and in a release.

  5. rdoupe commented on Oct 14, 2026

    @rdoupe
    CollaboratorAuthor

    Follow-up: the fix is merged (#750, for #749). A core module that can't be opened, like obs-browser.so without libcef.so, is now skipped with a warning, and OBS starts with the other core modules loaded. A missing core module file no longer stops the ones after it from loading either.

    It will be in the next obs-rust daily release after 0.1.0-beta.20261014: https://github.com/obs-rust/obs-studio/releases. The AUR -git package picks it up on its next rebuild. Without cef installed you won't have a Browser Source, but OBS will start; installing cef (not tested here) should bring it back.

  6. univrsal commented on Oct 14, 2026

    @univrsal
    Contributor

    I have installed cef and build the latest version and still get the same bug. The AppImage doesn't seem to contain the VLC source so I can't test it with that either. I tried just deleting the obs-browser.so and then it just failed with

    error: Service 'rtmp_common' not found
    error: Failed to initialize service
    error: Tried to call obs_frontend_is_safe_mode_enabled with no callbacks!
    
  7. rdoupe commented on Oct 15, 2026

    @rdoupe
    CollaboratorAuthor

    Thanks for trying again. Both messages look like an OBS from before #750, not the current one.

    What I tested: I built current master with the build options and install layout of the AUR obs-studio-rust-git PKGBUILD, with cef 152.0.6 from the Arch repos. Then I started it under a headless session:

    • With cef, obs-browser loads (CEF Version 152.0.7977.83), and OBS starts and opens its main window.
    • Without cef: Core module 'obs-browser' could not be opened, continuing without it. OBS still starts.
    • With obs-browser.so deleted: Failed to load core module obs-browser. The other core modules still load, rtmp_common is there, and OBS starts.

    I then rebuilt the same tree with #750 taken out and deleted obs-browser.so again. That gave your exact errors: Service 'rtmp_common' not found, then Failed to initialize service. The old loader stopped at the first missing core module, and obs-browser comes before obs-ffmpeg, obs-outputs, rtmp-services and the rest, so none of those loaded. With cef installed, the build without #750 also started fine here. So I can't tell yet why it still failed for you with cef installed.

    One thing that changed on 14 October (#706, merged a few hours before #750): the Rust build now installs separately from upstream OBS:

    • the program is obs-studio-rust-gui, no longer obs
    • core modules are in /usr/lib/obs-studio-rust/obs-modules/core/
    • data is in /usr/share/obs-studio-rust/

    If you started obs, or if the obs-browser.so you deleted was in /usr/lib/obs-modules/core/, that was an older build. The non-git AUR package obs-studio-rust (0.1.0beta.20261014) is also from before #750.

    What you can do now:

    1. Reinstall the package, so obs-browser.so is back.
    2. Rebuild obs-studio-rust-git and start it with obs-studio-rust-gui --verbose. The log's version line should read based on OBS 0.0.0.r1163 or higher. That's the first build with libobs: Carry on when a core module cannot be loaded #750 in it.

    If it still won't start, please post:

    • the full output of obs-studio-rust-gui --verbose, up to where it exits
    • pacman -Q obs-studio-rust-git obs-studio-rust obs-studio-rust-plugin-browser-git cef
    • ls /usr/lib/obs-studio-rust/obs-modules/core/ /usr/lib/obs-modules/core/
    • ldd /usr/lib/obs-studio-rust/obs-modules/core/obs-browser.so | grep 'not found'

    VLC source: right, the AppImage is built without the VLC Video Source. The AUR PKGBUILD leaves it out too (-DENABLE_VLC=OFF), so even a working AUR build won't have it. To test #405, change that line in the PKGBUILD to -DENABLE_VLC=ON and install vlc before building (not tested here).

    What we're fixing: nothing new in OBS for this. #750 is on master, and it will be in the next obs-rust release after 0.1.0-beta.20261014 (https://github.com/obs-rust/obs-studio/releases). The cef runtime dependency and the VLC setting are in the AUR package, which someone else maintains. I looked at adding VLC to the AppImage, but it isn't a quick change: the AppImage ships its own copies of glibc and FFmpeg, and the VLC Video Source loads the system libVLC at runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions