Ubuntu OBS Window Capture (xcomposite) shows nothing and start virtual camera always shows green

zerozoo

New Member
Ubuntu 24.04.1 LTS
obs-studio=30.2.3-0obsproject1~noble

Q1: when I choose Window Capture (xcomposite) , it's always blank

1731316695686.png

logs below:
Code:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
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/themes
debug: Attempted path: /usr/bin/../share/obs/obs-studio/themes/
info: Using EGL/X11
info: CPU Name: 13th Gen Intel(R) Core(TM) i9-13900K
info: CPU Speed: 2787.637MHz
info: Physical Cores: 24, Logical Cores: 32
info: Physical Memory: 31778MB Total, 20931MB Free
info: Kernel Version: Linux 6.8.0-48-generic
info: Distribution: "Ubuntu" "24.04"
info: Desktop Environment: ubuntu:GNOME
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 6.4.2 (runtime), 6.4.2 (compiled)
info: Portable mode: false
info: OBS 30.2.3 (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...
libEGL warning: DRI2: failed to authenticate
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
info: Loading up OpenGL on adapter Mesa llvmpipe (LLVM 17.0.6, 256 bits)
info: OpenGL loaded successfully, version 4.5 (Core Profile) Mesa 24.0.9-0ubuntu0.2, shading language 4.50
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Bicubic
    fps:               30/1
    format:            NV12
    YUV mode:          Rec. 709/Full
info: NV12 texture support enabled
info: P010 texture support not available
info: Audio monitoring device:
    name: 默认
    id: default
info: ---------------------------------
warning: No AJA devices found, skipping loading AJA UI plugin
warning: Failed to initialize module 'aja-output-ui.so'
warning: No AJA devices found, skipping loading AJA plugin
warning: Failed to initialize module 'aja.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'
libDeckLinkAPI.so: 无法打开共享目标文件: 没有那个文件或目录
warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
warning: Failed to initialize module 'decklink.so'
info: [pipewire] No capture sources available
info: [obs-browser]: Version 2.23.6
info: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures.2594+g17f8588+chromium-103.0.5060.134 (compiled)
info: NVENC supported
error: VAAPI: Failed to initialize display in vaapi_device_h264_supported
info: VAAPI: API version 1.20
info: FFmpeg VAAPI H264 encoding supported
error: VAAPI: Failed to initialize display in vaapi_device_av1_supported
info: FFmpeg VAAPI AV1 encoding not supported
error: VAAPI: Failed to initialize display in vaapi_device_hevc_supported
info: FFmpeg VAAPI HEVC encoding supported
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.5.2 | RPC Version: 1)
info: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.4.2 | Qt version (run-time): 6.4.2
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 102801
info: [obs-websocket] [obs_module_load] Module loaded.
info: [vlc-video]: VLC 3.0.20 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-qsv11.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.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: ---------------------------------
info: Available Encoders:
info:   Video Encoders:
info:     - ffmpeg_svt_av1 (SVT-AV1)
info:     - ffmpeg_aom_av1 (AOM AV1)
info:     - jim_nvenc (NVIDIA NVENC H.264)
info:     - jim_hevc_nvenc (NVIDIA NVENC HEVC)
info:     - jim_av1_nvenc (NVIDIA NVENC AV1)
info:     - ffmpeg_vaapi_tex (FFmpeg VAAPI H.264)
info:     - hevc_ffmpeg_vaapi_tex (FFmpeg VAAPI HEVC)
info:     - obs_qsv11_v2 (QuickSync H.264)
info:     - obs_qsv11_hevc (QuickSync HEVC)
info:     - obs_x264 (x264)
info:   Audio Encoders:
info:     - ffmpeg_aac (FFmpeg AAC)
info:     - ffmpeg_opus (FFmpeg Opus)
info:     - ffmpeg_pcm_s16le (FFmpeg PCM (16-bit))
info:     - ffmpeg_pcm_s24le (FFmpeg PCM (24-bit))
info:     - ffmpeg_pcm_f32le (FFmpeg PCM (32-bit float))
info:     - ffmpeg_alac (FFmpeg ALAC (24-bit))
info:     - ffmpeg_flac (FFmpeg FLAC (16-bit))
info:     - libfdk_aac (libfdk AAC)
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: Switched to scene '场景'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene '场景':
info: ------------------------------------------------
info: [window-capture: 'Window Capture (Xcomposite)'] update settings:
    title: @!0,0;BDHF
    class: gjs

info: User added source 'Window Capture (Xcomposite)' (xcomposite_input) to scene '场景'
info: [window-capture: 'Window Capture (Xcomposite)'] update settings:
    title: @!0,0;BDHF
    class: gjs

info: [window-capture: 'Window Capture (Xcomposite)'] update settings:
    title: Download Zoom for Linux | Zoom - Google Chrome
    class: google-chrome



Q2: when start virtual camera always green and no error logs
1731317137552.png
 

zerozoo

New Member
I don't know whether it is a good solution to Q2 that I fixed this by downgrading OBS version to 30.0.2 by using snap in Ubuntu, and now my zoom can show OBS virtual camera's content. I don't know the reason though. I think maybe there're something incompatible in those softwares?
 

Tuna

Member
> info: Loading up OpenGL on adapter Mesa llvmpipe (LLVM 17.0.6, 256 bits)
Means you are not running on the GPU.
 

stephematician

New Member
Start by logging into an Xsession instead of Wayland, and see if that works (there is an option menu at the login screen for this). If it does - then you know the problem lies in running OBS in a Wayland session.
 
Top