DroidCam OBS Camera

DroidCam OBS Camera 2.3.3

Razorflak

New Member
Hi @dev47,

First of all, thank you for your app! I've been using it for a while, and it's awesome.
For an event, I need to use the audio feature with the cam for the first time.

However, when I enable the option, OBS crashes immediately after I press "Activate."
I tried with two different phones, but I got the same result.
Here are the OBS logs: the first activation is without audio, and the second one is with audio.

Code:
16:00:53.589: Using EGL/X11
16:00:53.589: CPU Name: AMD Ryzen 5 4600H with Radeon Graphics
16:00:53.589: CPU Speed: 1763.207MHz
16:00:53.589: Physical Cores: 6, Logical Cores: 12
16:00:53.589: Physical Memory: 15354MB Total, 7392MB Free
16:00:53.589: Kernel Version: Linux 6.8.0-50-generic
16:00:53.589: Distribution: "Ubuntu" "22.04"
16:00:53.589: Desktop Environment: ubuntu:GNOME (ubuntu)
16:00:53.589: Session Type: x11
16:00:53.589: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
16:00:53.604: Qt Version: 6.2.4 (runtime), 6.2.4 (compiled)
16:00:53.604: Portable mode: false
16:00:53.639: OBS 30.2.3 (linux)
16:00:53.639: ---------------------------------
16:00:53.731: ---------------------------------
16:00:53.731: audio settings reset:
16:00:53.731:     samples per sec: 48000
16:00:53.731:     speakers:        2
16:00:53.731:     max buffering:   960 milliseconds
16:00:53.731:     buffering type:  dynamically increasing
16:00:53.732: ---------------------------------
16:00:53.732: Initializing OpenGL...
16:00:53.777: Loading up OpenGL on adapter AMD RENOIR (renoir, LLVM 15.0.7, DRM 3.57, 6.8.0-50-generic)
16:00:53.777: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.3, shading language 4.60
16:00:53.811: ---------------------------------
16:00:53.811: video settings reset:
16:00:53.811:     base resolution:   1920x1080
16:00:53.811:     output resolution: 1920x1080
16:00:53.811:     downscale filter:  Bicubic
16:00:53.811:     fps:               30/1
16:00:53.811:     format:            NV12
16:00:53.811:     YUV mode:          Rec. 709/Partial
16:00:53.812: NV12 texture support enabled
16:00:53.812: P010 texture support not available
16:00:53.815: Audio monitoring device:
16:00:53.815:     name: Par défaut
16:00:53.815:     id: default
16:00:53.815: ---------------------------------
16:00:53.836: No AJA devices found, skipping loading AJA UI plugin
16:00:53.836: Failed to initialize module 'aja-output-ui.so'
16:00:53.851: No AJA devices found, skipping loading AJA plugin
16:00:53.851: Failed to initialize module 'aja.so'
16:00:53.862: Failed to load 'en-US' text for module: 'decklink-captions.so'
16:00:53.874: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
16:00:53.891: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
16:00:53.891: Failed to initialize module 'decklink.so'
16:00:54.185: [pipewire] Available capture sources:
16:00:54.185: [pipewire]     - Monitor source
16:00:54.185: [pipewire]     - Window source
16:00:54.251: [obs-browser]: Version 2.23.6
16:00:54.251: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures.2594+g17f8588+chromium-103.0.5060.134 (compiled)
16:00:54.319: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce nom
16:00:54.319:
16:00:54.332: VAAPI: API version 1.14
16:00:54.336: FFmpeg VAAPI H264 encoding supported
16:00:54.336: FFmpeg VAAPI AV1 encoding not supported
16:00:54.353: FFmpeg VAAPI HEVC encoding supported
16:00:54.533: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.5.2 | RPC Version: 1)
16:00:54.533: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.2.4 | Qt version (run-time): 6.2.4
16:00:54.533: [obs-websocket] [obs_module_load] Linked ASIO Version: 101801
16:00:54.548: [obs-websocket] [obs_module_load] Module loaded.
16:00:54.653: [vlc-video]: VLC 3.0.16 Vetinari found, VLC video source enabled
16:00:54.706: [obs-teleport] version: 0.7.2
16:00:54.706: ---------------------------------
16:00:54.706:   Loaded Modules:
16:00:54.707:     obs-teleport.so
16:00:54.707:     droidcam-obs.so
16:00:54.707:     vlc-video.so
16:00:54.707:     text-freetype2.so
16:00:54.707:     rtmp-services.so
16:00:54.707:     obs-x264.so
16:00:54.707:     obs-websocket.so
16:00:54.707:     obs-vst.so
16:00:54.707:     obs-transitions.so
16:00:54.707:     obs-qsv11.so
16:00:54.707:     obs-outputs.so
16:00:54.707:     obs-libfdk.so
16:00:54.707:     obs-filters.so
16:00:54.707:     obs-ffmpeg.so
16:00:54.707:     obs-browser.so
16:00:54.707:     linux-v4l2.so
16:00:54.707:     linux-pulseaudio.so
16:00:54.707:     linux-pipewire.so
16:00:54.707:     linux-jack.so
16:00:54.707:     linux-capture.so
16:00:54.707:     linux-alsa.so
16:00:54.707:     image-source.so
16:00:54.707:     frontend-tools.so
16:00:54.707:     decklink-output-ui.so
16:00:54.707:     decklink-captions.so
16:00:54.707: ---------------------------------
16:00:54.707: ---------------------------------
16:00:54.707: Available Encoders:
16:00:54.707:   Video Encoders:
16:00:54.707:     - ffmpeg_aom_av1 (AOM AV1)
16:00:54.707:     - ffmpeg_vaapi_tex (FFmpeg VAAPI H.264)
16:00:54.707:     - hevc_ffmpeg_vaapi_tex (FFmpeg VAAPI HEVC)
16:00:54.707:     - obs_x264 (x264)
16:00:54.707:   Audio Encoders:
16:00:54.707:     - ffmpeg_aac (FFmpeg AAC)
16:00:54.707:     - ffmpeg_opus (FFmpeg Opus)
16:00:54.707:     - ffmpeg_pcm_s16le (FFmpeg PCM (16-bit))
16:00:54.707:     - ffmpeg_pcm_s24le (FFmpeg PCM (24-bit))
16:00:54.707:     - ffmpeg_pcm_f32le (FFmpeg PCM (32-bit float))
16:00:54.707:     - ffmpeg_alac (FFmpeg ALAC (24-bit))
16:00:54.707:     - ffmpeg_flac (FFmpeg FLAC (16-bit))
16:00:54.707:     - libfdk_aac (libfdk AAC)
16:00:54.707: ==== Startup complete ===============================================
16:00:54.755: All scene data cleared
16:00:54.756: ------------------------------------------------
16:00:54.759: pulse-input: Server name: 'pulseaudio 15.99.1'
16:00:54.763: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
16:00:54.764: pulse-input: Started recording from 'alsa_output.pci-0000_04_00.6.analog-stereo.monitor' (default)
16:00:54.764: [Loaded global audio device]: 'Audio du bureau'
16:00:54.823: pulse-input: Server name: 'pulseaudio 15.99.1'
16:00:54.823: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
16:00:54.823: pulse-input: Started recording from 'alsa_input.pci-0000_04_00.6.analog-stereo' (default)
16:00:54.824: [Loaded global audio device]: 'Mic/Aux'
16:00:54.837: [DroidCamOBS] Source: "DroidCam OBS" - 233
16:00:54.837: [DroidCamOBS] checking adb
16:00:55.039: [DroidCamOBS] "adb version" exit value 2
16:00:55.040: [DroidCamOBS] checking /usr/local/bin/adb
16:00:55.040: [DroidCamOBS] checking /usr/bin/adb
16:00:55.040: [DroidCamOBS] checking /bin/adb
16:00:55.040: [DroidCamOBS] adb not found
16:00:55.040: [DroidCamOBS] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
16:00:55.040: [DroidCamOBS] activated=0, deactivateWNS=0, is_showing=0, enable_audio=0
16:00:55.040: [DroidCamOBS] video_format=avc video_resolution=2560x1440
16:00:55.040: [DroidCamOBS] video_thread start
16:00:55.040: [DroidCamOBS] video_decode_thread start
16:00:55.040: [DroidCamOBS] audio_thread start
16:00:55.043: Switched to scene 'Test'
16:00:55.043: ------------------------------------------------
16:00:55.043: Loaded scenes:
16:00:55.043: - scene 'Scène':
16:00:55.043:     - source: 'Teleport' (teleport-source)
16:00:55.043: - scene 'Test':
16:00:55.043:     - source: 'Source vidéo VLC' (vlc_source)
16:00:55.043:     - source: 'DroidCam OBS' (droidcam_obs)
16:00:55.043: ------------------------------------------------
16:01:05.545: [DroidCamOBS] target IP is empty
16:01:10.146: [DroidCamOBS] Refresh Device List clicked
16:01:10.146: [DroidCamOBS] USBMux: found -1 devices
16:01:10.147: [DroidCamOBS] Could not get iOS device list, is usbmuxd running?
16:01:19.266: [DroidCamOBS] Refresh Device List clicked
16:01:19.266: [DroidCamOBS] USBMux: found -1 devices
16:01:19.266: [DroidCamOBS] Could not get iOS device list, is usbmuxd running?
16:01:19.664: [DroidCamOBS] added new device with serial 'Android-CPH2415._droidcamobs._tcp.local.'
16:01:19.667: [DroidCamOBS] warn: duplicate device
16:01:19.667: [DroidCamOBS] error adding device
16:01:19.667: [DroidCamOBS] warn: duplicate device
16:01:19.667: [DroidCamOBS] error adding device
16:01:26.019: [DroidCamOBS] activated: id=Android-CPH2415._droidcamobs._tcp.local. type=4 ip=192.168.1.87 port=4747
16:01:26.019: [DroidCamOBS] video_format=0/avc video_resolution=5/2560x1440
16:01:27.648: [DroidCamOBS] have config: 30
16:01:28.293: [DroidCamOBS] use hw: 1
16:01:32.302: [DroidCamOBS] deactivate
16:01:37.121: [DroidCamOBS] activated: id=Android-CPH2415._droidcamobs._tcp.local. type=4 ip=192.168.1.87 port=4747
16:01:37.121: [DroidCamOBS] video_format=0/avc video_resolution=5/2560x1440
16:01:38.400: [DroidCamOBS] have config: 30
16:01:38.641: [DroidCamOBS] use hw: 1
16:01:38.735: [DroidCamOBS] have config: 2
 

dev47

Member
This is most likely due to you local ffmpeg version, which one is installed?
You would need to upgrade ffmpeg (if possible), or switch to the Flatpak version of OBS which should work without issue.
 

Razorflak

New Member
I made a test on another PC (a Windows) and it works great.
So I suppose it's related to the Linux version.

I just installed the latest version of ffmpeg I could find (7.0.2), but there’s no improvement.
 

Razorflak

New Member
I just tested with the Flatpak version, and it works like a charm.
Thank you, I wasn't familiar with this way of installing OBS at all.
 
Top