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

Unable to find background removal filter #327

Closed
SwampPig opened this issue Jun 8, 2023 · 38 comments
Closed

Unable to find background removal filter #327

SwampPig opened this issue Jun 8, 2023 · 38 comments
Labels
question Further information is requested

Comments

@SwampPig
Copy link

SwampPig commented Jun 8, 2023

On OBS studies under Sources I have Video Capture Device. I select it and go to "Filters" Under Effect Filters my options are:
Apply LUT
Chroma Key
Color Correction
Color Key
Crop/Pad
HDR Tone Mapping
Image Mask/Blend
Luma Key
Render Delay
OBS Log file 2023-05-20 19-32-44.txt

Scaling/Aspect Ratio
Scroll
Sharpen
SS OBS Studio

I am wanting to add a Background Removal Filter.

@SwampPig SwampPig added the bug Something isn't working label Jun 8, 2023
@royshil
Copy link
Collaborator

royshil commented Jun 8, 2023

Thanks @SwampPig for the ticket

from the logs it looks like OBS never tries to load the plugin at all. So you won't see it in the available filters list.

did you use the latest Windows installer from https://github.com/royshil/obs-backgroundremoval/releases ?

That makes an assumption that your OBS is a standard install in C:\Program Files\obs-studio and the plugins will then be in C:\Program Files\obs-studio\obs-plugins\64bit

Can you verify these directories indeed exist and that they have the plugins files in them?

@umireon umireon added question Further information is requested and removed bug Something isn't working labels Jun 9, 2023
@Babizinho
Copy link

Hi, as I have similar problem, can I piggyback on this thread? The plugin is missing from from my filters list too. I've used latest OBS (standard install, Windows) and latest plugin installer, and copied the plugin files to obs-studio directory. Worse, my filters list all look audio (3-Band Equaliser, Compressor, etc). Please advise :)

@royshil
Copy link
Collaborator

royshil commented Jun 10, 2023

Hi, as I have similar problem, can I piggyback on this thread? The plugin is missing from from my filters list too. I've used latest OBS (standard install, Windows) and latest plugin installer, and copied the plugin files to obs-studio directory. Worse, my filters list all look audio (3-Band Equaliser, Compressor, etc). Please advise :)

@Babizinho Can you provide logs please?
I'm sorry this isn't working out of the box. Let's try to fix it! (Others would benefit as well)
If the plugin doesn't show up then most likely OBS can't find it.
So I'm interested to know exactly where you placed the files.
In general with the installer you're not required to copy files as they would be put in the right place by the installer.

@Babizinho
Copy link

Babizinho commented Jun 10, 2023 via email

@FelixFFM
Copy link

Same here. Using Ubuntu. Have installed the filter via the .deb

Here are the logs.

`~ $ obs
QObject::connect: No such signal QSocketNotifier::activated(QSocketDescriptor)
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/themes/Yami.qss
debug: Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: CPU Name: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
info: CPU Speed: 2800.000MHz
info: Physical Cores: 4, Logical Cores: 8
info: Physical Memory: 31817MB Total, 12996MB Free
info: Kernel Version: Linux 5.15.0-73-generic
info: Distribution: "Ubuntu" "20.04"
info: Desktop Environment: ubuntu:GNOME (ubuntu)
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.13
info: Qt Version: 5.12.8 (runtime), 5.12.8 (compiled)
info: Portable mode: false
QMetaObject::connectSlotsByName: Connecting slot on_transitionDuration_valueChanged() with the first of the following compatible signals: ("valueChanged(int)", "valueChanged(QString)")
info: OBS 29.1.2 (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 Intel Mesa Intel(R) Xe Graphics (TGL GT2)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 21.2.6, 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: Default
id: default
info: ---------------------------------
error: os_dlopen(/usr//lib/x86_64-linux-gnu/obs-plugins/aja-output-ui.so->/usr//lib/x86_64-linux-gnu/obs-plugins/aja-output-ui.so): /usr//lib/x86_64-linux-gnu/obs-plugins/aja-output-ui.so: undefined symbol: __libc_single_threaded

warning: Module '/usr//lib/x86_64-linux-gnu/obs-plugins/aja-output-ui.so' not loaded
error: os_dlopen(/usr//lib/x86_64-linux-gnu/obs-plugins/aja.so->/usr//lib/x86_64-linux-gnu/obs-plugins/aja.so): /usr//lib/x86_64-linux-gnu/obs-plugins/aja.so: undefined symbol: __libc_single_threaded

warning: Module '/usr//lib/x86_64-linux-gnu/obs-plugins/aja.so' not loaded
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: 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'
error: os_dlopen(/usr//lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval.so->/usr//lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval.so): /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr//lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval.so)

warning: Module '/usr//lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval.so' not loaded
info: [obs-browser]: Version 2.21.1
info: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures_143.2591+g4204d54+chromium-103.0.5060.134 (compiled)
info: VAAPI: API version 1.7
info: FFmpeg VAAPI H264 encoding supported
info: FFmpeg VAAPI HEVC encoding supported
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.2.2 | RPC Version: 1)
info: [obs-websocket] [obs_module_load] Qt version (compile-time): 5.12.8 | Qt version (run-time): 5.12.8
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 101202
info: [obs-websocket] [obs_module_load] Module loaded.
info: [vlc-video]: VLC 3.0.9.2 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-libfdk.so
info: obs-filters.so
info: obs-ffmpeg.so
info: obs-browser.so
info: linux-v4l2.so
info: linux-pulseaudio.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: ---------------------------------
QWidget::setTabOrder: 'first' and 'second' must be in the same window
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 13.99.1'
info: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.usb-Sennheiser_EPOS_H3PRO_Dongle_A003871214500876_v3.8.1-00.iec958-stereo.monitor' (default)
info: [Loaded global audio device]: 'Desktop Audio'
info: pulse-input: Server name: 'pulseaudio 13.99.1'
info: pulse-input: Audio format: s16le, 32000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.usb-046d_HD_Pro_Webcam_C920_9A481F4F-02.iec958-stereo' (default)
info: [Loaded global audio device]: 'Mic/Aux'
info: Switched to scene 'Scene'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene':
info: ------------------------------------------------
info: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic/Aux)
`

dpkg -l | grep libstdc++6 ii libstdc++6:amd64 10.3.0-1ubuntu1~20.04 amd64 GNU Standard C++ Library v3 ii libstdc++6:i386 10.3.0-1ubuntu1~20.04 i386 GNU Standard C++ Library v3

@Babizinho
Copy link

Babizinho commented Jun 11, 2023 via email

@FelixFFM
Copy link

Depends on the OS you use. In Ubuntu I simply started OBS from the console and postet the output.

@Babizinho
Copy link

Babizinho commented Jun 11, 2023 via email

@umireon umireon added bug Something isn't working and removed question Further information is requested labels Jun 11, 2023
@umireon
Copy link
Member

umireon commented Jun 11, 2023

I cannot determine anything without logs but I suppose CMAKE_CXX_STANDARD is too high.

@Babizinho
Copy link

Babizinho commented Jun 11, 2023 via email

@umireon
Copy link
Member

umireon commented Jun 11, 2023

@umireon
Copy link
Member

umireon commented Jun 11, 2023

@Babizinho Can you try the following DLLs by replacing files under .../obs-studio/obs-plugins/64bit?
https://github.com/royshil/obs-backgroundremoval/suites/13522800897/artifacts/743438788

@FelixFFM
Copy link

@umireon
Same problem

`error: os_dlopen(/usr//lib/x86_64-linux-gnu/obs-plugins/aja-output-ui.so->/usr//lib/x86_64-linux-gnu/obs-plugins/aja-output-ui.so): /usr//lib/x86_64-linux-gnu/obs-plugins/aja-output-ui.so: undefined symbol: __libc_single_threaded

warning: Module '/usr//lib/x86_64-linux-gnu/obs-plugins/aja-output-ui.so' not loaded
error: os_dlopen(/usr//lib/x86_64-linux-gnu/obs-plugins/aja.so->/usr//lib/x86_64-linux-gnu/obs-plugins/aja.so): /usr//lib/x86_64-linux-gnu/obs-plugins/aja.so: undefined symbol: __libc_single_threaded

warning: Module '/usr//lib/x86_64-linux-gnu/obs-plugins/aja.so' not loaded
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: 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'
error: os_dlopen(/usr//lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval.so->/usr//lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval.so): /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr//lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval.so)

warning: Module '/usr//lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval.so' not loaded
`

@umireon
Copy link
Member

umireon commented Jun 11, 2023

@FelixFFM OK I understood the situation.
The conclusion is unfortunately we cannot provide support for Ubuntu 20.04 officially because the OBS toolchain requires 22.04.
Please upgrade your Ubuntu distribution to 22.04 or later.
Any help in providing support on 20.04 will be appreciated!

@FelixFFM
Copy link

@umireon
Not really an option so far for some reason. Somewhat disappointing I can't use an LTS which is not EOL.

@umireon
Copy link
Member

umireon commented Jun 11, 2023

@FelixFFM I don't recommend doing this but the following article might help you.
https://askubuntu.com/questions/1393285/how-to-install-glibcxx-3-4-29-on-ubuntu-20-04

@umireon
Copy link
Member

umireon commented Jun 11, 2023

@FelixFFM Or you can build your own version of this plugin suited to Ubuntu 20.04 by your build toolchain but I don't know if it can build on Ubuntu 20.04.

@FelixFFM
Copy link

@umireon
I'll wait until I can use 22.04

@umireon
Copy link
Member

umireon commented Jun 11, 2023

Related #330

@Babizinho
Copy link

Babizinho commented Jun 12, 2023 via email

@umireon
Copy link
Member

umireon commented Jun 13, 2023

@FelixFFM I've found an unofficial distribution of this plugin for Ubuntu.
Can you try the pacstall distribution?
If this works, we are going to add pacstall distribution to README.md

https://pacstall.dev/packages/obs-backgroundremoval

@Babizinho
Copy link

Any updates? Still stuck here...

@umireon
Copy link
Member

umireon commented Jun 18, 2023

@Babizinho Hi I need to check what files are placed in C:\Program Files\obs-studio.
Can you post the output of the following commands?
You can execute the commands on the command prompt.

cd C:\Program Files\obs-studio
tree

@Babizinho
Copy link

Babizinho commented Jun 18, 2023 via email

@umireon
Copy link
Member

umireon commented Jun 18, 2023

@Babizinho Can you execute the following command and attach the list.txt generated in the home folder?

tree /f C:\Program Files\obs-studio > list.txt

@Babizinho
Copy link

ok, done.... list.txt

@umireon
Copy link
Member

umireon commented Jun 18, 2023

@Babizinho It's my fault but the command I suggested was wrong. Can you try the following command again?

tree /f "C:\Program Files\obs-studio" > list.txt

@umireon umireon added question Further information is requested and removed bug Something isn't working labels Jun 18, 2023
@Babizinho
Copy link

this better?
list.txt

@umireon
Copy link
Member

umireon commented Jun 18, 2023

@Babizinho
Can you remove the following files and folders and try to reinstall https://github.com/royshil/obs-backgroundremoval/releases/download/v1.0.1/obs-backgroundremoval-1.0.1-windows-x64-Installer.exe?

"C:\Program Files\obs-studio\obs-plugins\64bit\DirectML.dll"
"C:\Program Files\obs-studio\obs-plugins\64bit\obs-backgroundremoval.dll"
"C:\Program Files\obs-studio\obs-plugins\64bit\obs-backgroundremoval.pdb"
"C:\Program Files\obs-studio\data\obs-plugins\obs-backgroundremoval"
"C:\Program Files\obs-studio\obs-plugins\64bit\data"
"C:\Program Files\obs-studio\obs-plugins\64bit\obs-plugins"

@umireon
Copy link
Member

umireon commented Jun 18, 2023

I confirmed that the latest installer works on the clean install of OBS on Windows

@Babizinho
Copy link

Babizinho commented Jun 19, 2023 via email

@umireon
Copy link
Member

umireon commented Jun 19, 2023

@Babizinho Have you executed the latest installer exe for Windows?
Please post the screenshot of the list on the Effect filters and the log here 🙇 after the installation

@Babizinho
Copy link

Yes, I executed intaller using the link you sent me. Here is screenshot of filters list: OBS screenprint.pdf. Current log is here: https://obsproject.com/logs/kjxvtJJj4gfvTCDc

@umireon
Copy link
Member

umireon commented Jun 19, 2023

I've found this so our plugin is loaded successfully.

12:33:37.767: [obs-backgroundremoval] plugin loaded successfully (version 1.0.1)

And you are looking under Audio/Video filters but our plugin is available under Effects filters.
Please click the plus icon below.

@Babizinho
Copy link

found it, thanks you.

@umireon
Copy link
Member

umireon commented Jun 19, 2023

Closing this issue. Feel free to create a new issue for another problem.

@umireon umireon closed this as completed Jun 19, 2023
@rahra
Copy link

rahra commented Jan 24, 2024

Probably there's a new issue. The plugin is successfully loaded according to the logs but it does still not show up in the filters. This is Ubuntu 23.10, completely updated.

11:05:32.400: Using EGL/X11
11:05:32.400: CPU Name: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
11:05:32.400: CPU Speed: 3721.311MHz
11:05:32.401: Physical Cores: 4, Logical Cores: 8
11:05:32.401: Physical Memory: 15640MB Total, 7066MB Free
11:05:32.401: Kernel Version: Linux 6.5.0-14-generic
11:05:32.401: Distribution: "Ubuntu" "23.10"
11:05:32.401: Desktop Environment: KDE (KDE)
11:05:32.401: Session Type: x11
11:05:32.401: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
11:05:32.402: Qt Version: 5.15.10 (runtime), 5.15.10 (compiled)
11:05:32.402: Portable mode: false
11:05:32.446: OBS 29.1.3.1-2 (linux)
11:05:32.446: ---------------------------------
11:05:32.447: ---------------------------------
11:05:32.447: audio settings reset:
11:05:32.447: 	samples per sec: 48000
11:05:32.447: 	speakers:        2
11:05:32.447: 	max buffering:   960 milliseconds
11:05:32.447: 	buffering type:  dynamically increasing
11:05:32.448: ---------------------------------
11:05:32.448: Initializing OpenGL...
11:05:32.472: Loading up OpenGL on adapter Intel Mesa Intel(R) UHD Graphics 620 (WHL GT2)
11:05:32.472: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1, shading language 4.60
11:05:32.503: ---------------------------------
11:05:32.503: video settings reset:
11:05:32.503: 	base resolution:   1280x720
11:05:32.503: 	output resolution: 1280x720
11:05:32.503: 	downscale filter:  Bicubic
11:05:32.503: 	fps:               30/1
11:05:32.503: 	format:            NV12
11:05:32.503: 	YUV mode:          Rec. 709/Partial
11:05:32.503: NV12 texture support not available
11:05:32.503: P010 texture support not available
11:05:32.507: Audio monitoring device:
11:05:32.507: 	name: Default
11:05:32.507: 	id: default
11:05:32.507: ---------------------------------
11:05:32.508: Failed to load 'en-US' text for module: 'decklink-captions.so'
11:05:32.509: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
11:05:32.510: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
11:05:32.510: Failed to initialize module 'decklink.so'
11:05:32.539: [pipewire] Available captures:
11:05:32.539: [pipewire]     - Desktop capture
11:05:32.539: [pipewire]     - Window capture
11:05:32.561: obs_register_source: Tried to register obs_source_info with size 408 which is more than libobs currently supports (400)
11:05:32.561: obs_register_source: Tried to register obs_source_info with size 408 which is more than libobs currently supports (400)
11:05:32.561: [obs-backgroundremoval] Plugin loaded successfully (version 1.1.10)
11:05:32.587: VAAPI: API version 1.19
11:05:32.587: FFmpeg VAAPI H264 encoding supported
11:05:32.588: FFmpeg VAAPI HEVC encoding not supported
11:05:32.593: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.2.3 | RPC Version: 1)
11:05:32.593: [obs-websocket] [obs_module_load] Qt version (compile-time): 5.15.10 | Qt version (run-time): 5.15.10
11:05:32.593: [obs-websocket] [obs_module_load] Linked ASIO Version: 102201
11:05:32.597: [obs-websocket] [obs_module_load] Module loaded.
11:05:32.603: [vlc-video]: VLC 3.0.18 Vetinari found, VLC video source enabled
11:05:32.603: ---------------------------------
11:05:32.603:   Loaded Modules:
11:05:32.603:     vlc-video.so
11:05:32.603:     text-freetype2.so
11:05:32.603:     rtmp-services.so
11:05:32.603:     obs-x264.so
11:05:32.603:     obs-websocket.so
11:05:32.603:     obs-transitions.so
11:05:32.603:     obs-outputs.so
11:05:32.603:     obs-filters.so
11:05:32.603:     obs-ffmpeg.so
11:05:32.603:     obs-backgroundremoval.so
11:05:32.603:     linux-v4l2.so
11:05:32.603:     linux-pulseaudio.so
11:05:32.603:     linux-pipewire.so
11:05:32.603:     linux-jack.so
11:05:32.603:     linux-capture.so
11:05:32.603:     linux-alsa.so
11:05:32.603:     image-source.so
11:05:32.603:     frontend-tools.so
11:05:32.603:     decklink-output-ui.so
11:05:32.603:     decklink-captions.so
11:05:32.603: ---------------------------------
11:05:32.604: ==== Startup complete ===============================================
11:05:32.661: All scene data cleared
11:05:32.661: ------------------------------------------------
11:05:32.665: pulse-input: Server name: 'PulseAudio (on PipeWire 0.3.79) 15.0.0'
11:05:32.665: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
11:05:32.665: pulse-input: Started recording from 'alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor' (default)
11:05:32.665: [Loaded global audio device]: 'Desktop Audio'
11:05:32.666: pulse-input: Server name: 'PulseAudio (on PipeWire 0.3.79) 15.0.0'
11:05:32.666: pulse-input: Audio format: s32le, 48000 Hz, 1 channels
11:05:32.666: pulse-input: Started recording from 'alsa_input.usb-Focusrite_Scarlett_2i2_USB-00.HiFi__scarlett2i_mono_in_USB_0_0__source' (default)
11:05:32.666: [Loaded global audio device]: 'Mic/Aux'
11:05:32.667: v4l2-input: Start capture from /dev/video1
11:05:32.667: v4l2-input: Input: 0
11:05:32.671: v4l2-input: Resolution: 1280x720
11:05:32.671: v4l2-input: Pixelformat: MJPG
11:05:32.671: v4l2-input: Linesize: 0 Bytes
11:05:32.671: v4l2-input: Framerate: 30.00 fps
11:05:32.672: v4l2-input: /dev/video1: select timeout set to 166666 (5x frame periods)
11:05:32.674: Switched to scene 'Scene'
11:05:32.674: ------------------------------------------------
11:05:32.674: Loaded scenes:
11:05:32.674: - scene 'Scene':
11:05:32.674:     - source: 'Video Capture Device (V4L2)' (v4l2_input)
11:05:32.674: ------------------------------------------------
11:05:33.237: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: Mic/Aux)
11:05:33.237: 
11:05:33.258: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Desktop Audio)
11:05:33.258: 

@umireon
Copy link
Member

umireon commented Jan 24, 2024

@rahra Please open a new issue.

@locaal-ai locaal-ai locked as resolved and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants