FiniteSingularity / obs-advanced-masks

Advanced Masking Plugin for OBS
GNU General Public License v2.0
136 stars 7 forks source link

[BUG] - Filter showing blank source. #54

Closed sebelk closed 5 months ago

sebelk commented 5 months ago

Describe the bug Filter make the source all black

To Reproduce Steps to reproduce the behavior:

  1. Select the source you want to apply the shape mask to.
  2. Go to the Filters section for that source and click the + icon to add a new filter.
  3. Choose "Advanced Masks" from the filter list.
  4. See error

Expected behavior It should apply the mask, for example a shape....

Screenshots imagen

Environment

GPU

I compiled from sources and copy the files by hand to /usr subdirectories...

FiniteSingularity commented 5 months ago

Hi @sebelk,

I'm sorry you're having an issue with the plug-in. I suspect that something is not loading in correctly.

Can you please run OBS (restart it if it is already running) then go to Help --> Log Files --> Upload Current Log File and paste the link it gives you here? Alternatively, you can do Help --> Log Files --> Show Log Files and attach the current log file to this issue? This will help me to determine why things aren't loading properly.

sebelk commented 5 months ago

Hi @FiniteSingularity

My log file is at https://obsproject.com/logs/Oq6KkDhnd72Qot42

Thanks in advance!!

FiniteSingularity commented 5 months ago

Interesting. From your logs it looks like one of the parameters that the shader needs is not getting set. Unfortunately, OBS wont tell me what setting it is:

09:23:30.025: User added filter 'Advanced Mask' (advanced_masks_filter_v2) to source 'Captura de ventana (Xcomposite)'
09:23:30.038: effect_setval_inline: invalid param

I am also noticing that you're using composite blur, and it doesn't seem to be installed correctly (OBS cant find the .effect files):

09:23:30.025: [obs-composite-blur] Unable to load .effect file.  Errors:
09:23:30.025: (None)
09:23:30.025: [obs-composite-blur] Unable to load output.effect file.  Errors:
09:23:30.025: (None)

Is the composite blur filter happening somewhere earlier in the rendering chain? (e.g.- are you applying blur to the parent scene?). If so, try toggling off/removing the composite blur filter you're trying to apply, and see if that fixes the advanced mask rendering. If that is the case, then we can troubleshoot your composite blur install. If it doesn't fix things, can you list all of the parameters you've set for the advanced mask you're trying to apply?

SEE BELOW.

FiniteSingularity commented 5 months ago

Oops! I just noticed that I copy/pasted the log output from composite blur, and forgot to change the tag, so it is actually the effect file loading of Advanced Mask that is happening.

When OBS reports:

Unable to load .effect file.  Errors: (None)

It usually means it cant find, or doesnt have permissions to open the .effect files. When you did your install, where did you put the data files (as opposed to the library files)?

sebelk commented 5 months ago

@FiniteSingularity Great!

Because of your answer I did:

sudo mv /usr/data/obs-plugins/obs-advanced-masks/shaders/ /usr/share/obs/obs-plugins/obs-advanced-masks/

and now it works!

FiniteSingularity commented 5 months ago

Fantastic! I'm glad it is working for you.