occ-ai / obs-backgroundremoval

An OBS plugin for removing background in portrait images (video), making it easy to replace the background when recording or streaming.
GNU General Public License v2.0
2.68k stars 185 forks source link

It doesn't show up in any Filter. #547

Closed RogenLothena closed 3 months ago

RogenLothena commented 4 months ago

It does not appear in the filter list.

I installed BackGroundRemoval properly but it doesn't show up in my camera's filters.

// Everything should appear to be working properly, but it's not. image image

// Sorry for the language, but as you can see there is nothing related to BackGround Removal. Log and Crash Report Crash 2023-09-11 17-35-13.txt Crash 2023-10-31 22-05-57.txt Crash 2024-02-11 07-21-03.txt Crash 2023-01-27 15-04-25.txt Crash 2023-03-12 21-05-16.txt Crash 2023-06-07 11-52-10.txt Crash 2023-08-20 21-20-52.txt Crash 2023-08-23 21-48-15.txt

Desktop

Additional context

Nothing about the problem or an error comes up. It's like the plugin loads but doesn't show up in the filters. I open obs the same way I always open obs and there is no slowness or problem.

Not I should add that my obs-studio file was in Program Files (x86), not Program Files, but I don't think that would have prevented the problem.

umireon commented 4 months ago

Can you post here the log not Crash reports?

RogenLothena commented 4 months ago

Collaborator

https://obsproject.com/logs/PWA8PLuYxtVEiHJB This one is Logs

LeonardoCT commented 4 months ago

i'm having the same issue, i tryed both manual installation and the exe file, but the plugin won't appear in the options

royshil commented 4 months ago

i'm having the same issue, i tryed both manual installation and the exe file, but the plugin won't appear in the options

the plugin .dll should be installed in C:\Program Files\obs-studio\obs-plugins\64bit you should see the .dll file there, otherwise OBS will not attempt to load it

RogenLothena commented 4 months ago

i'm having the same issue, i tryed both manual installation and the exe file, but the plugin won't appear in the options

the plugin .dll should be installed in C:\Program Files\obs-studio\obs-plugins\64bit you should see the .dll file there, otherwise OBS will not attempt to load it

image

amcrjlnv commented 4 months ago

I am running on Ubuntu 22.04 and I also cannot get any filter to show up, despite the plugin claiming to be loaded in the logs. Interesting, the use of this plugin also causes OBS to detect a memory leak upon exit. log.txt

I think it's possible that the issue is related to the following lines:

warning: obs_register_source: Tried to register obs_source_info with size 408 which is more than libobs currently supports (392)
warning: obs_register_source: Tried to register obs_source_info with size 408 which is more than libobs currently supports (392)
info: [obs-backgroundremoval] Plugin loaded successfully (version 1.1.10)

...

info: Number of memory leaks: 1

This does not happen when I do not have the plugin installed.

royshil commented 4 months ago

I am running on Ubuntu 22.04 and I also cannot get any filter to show up, despite the plugin claiming to be loaded in the logs. Interesting, the use of this plugin also causes OBS to detect a memory leak upon exit.

log.txt

I think it's possible that the issue is related to the following lines:


warning: obs_register_source: Tried to register obs_source_info with size 408 which is more than libobs currently supports (392)

warning: obs_register_source: Tried to register obs_source_info with size 408 which is more than libobs currently supports (392)

info: [obs-backgroundremoval] Plugin loaded successfully (version 1.1.10)

...

info: Number of memory leaks: 1

This does not happen when I do not have the plugin installed.

@amcrjlnv Ubuntu is a different issue and in this case I suspect the version of OBS because this difference in struct size suggested it's simply not a compatible version. What version of OBS are you running and how did you install it?

royshil commented 4 months ago

i'm having the same issue, i tryed both manual installation and the exe file, but the plugin won't appear in the options

the plugin .dll should be installed in C:\Program Files\obs-studio\obs-plugins\64bit you should see the .dll file there, otherwise OBS will not attempt to load it

image

@RogenLothena Yep that's not going to work since your OBS is in "Program Files (x86)" which is not supported. The plugin works for OBS 64bit. Really OBS also works on 64bit, the x86 version is legacy. You can reinstall OBS and make sure it is the 64bit version. Don't worry about your OBS setup since it will transfer to the new version. (It should do that at least)

amcrjlnv commented 4 months ago

@amcrjlnv Ubuntu is a different issue and in this case I suspect the version of OBS because this difference in struct size suggested it's simply not a compatible version. What version of OBS are you running and how did you install it?

@royshil ~I believe am using the PPA (version 30.0.1), as per the installation instructions.~

And looking at the source, you're right. It is a version issue and it's unrelated to this one. There is nothing wrong with the declarations here:

extern struct obs_source_info background_removal_filter_info;
extern struct obs_source_info enhance_filter_info;

bool obs_module_load(void)
{
    obs_register_source(&background_removal_filter_info);
    obs_register_source(&enhance_filter_info);
    obs_log(LOG_INFO, "Plugin loaded successfully (version %s)",
        PLUGIN_VERSION);

So I think the problem is because 8 months ago one line was added to obs-source.h: image I imagine the other added 8 bytes was due to clang's alignment requirement.

Though, I am still confused, because the 30.0.1 version should have the latest version of the struct. It could also be because of the different compilers used. I'll try to troubleshoot it more when I get back to my computer, but for now I'll mark my previous comment as off topic.

Edit: Just got back and found out that I just had an outdated version of OBS. It works now.

RogenLothena commented 3 months ago

Yep that's not going to work since your OBS is in "Program Files (x86)" which is not supported. The plugin works for OBS 64bit. Really OBS also works on 64bit, the x86 version is legacy. You can reinstall OBS and make sure it is the 64bit version. Don't worry about your OBS setup since it will transfer to the new version. (It should do that at least)

But OBS is already 64bit, I can't change my folder to x86. In general, programs are already installed on x86.

royshil commented 3 months ago

@RogenLothena You can reinstall OBS from the official website and it should install to the 64bit folder. All your OBS setup will remain because it's not in the program files folder.

RogenLothena commented 3 months ago

@RogenLothena You can reinstall OBS from the official website and it should install to the 64bit folder. All your OBS setup will remain because it's not in the program files folder.

There are no x64 related files on my computer. I only have Program Files and Program Files (x86). I have also now deleted OBS and reinstalled it to the latest version and I have also downloaded this plugin again and placed it properly in the OBS folder. But it still doesn't work. image

RogenLothena commented 3 months ago

I solved the problem using the pre-installed exe file, thank you for those who tried to help, it took a really long time to solve this problem. Don't do it manually, use the auto-install exe file and delete and reinstall OBS. Don't forget to back up so you don't lose your settings.