exeldro / obs-shaderfilter

OBS Studio filter for applying an arbitrary shader to a source.
GNU General Public License v2.0
412 stars 43 forks source link

error: effect_setval_inline: invalid param #58

Open rmnvgr opened 3 months ago

rmnvgr commented 3 months ago

Hello,

I have locally built shader-filter as a Flatpak extension so I can use it with the latest OBS Flatpak (30.2.3).

After adding the filter to an image source, the image disappears and the logs are filled with this line:

error: effect_setval_inline: invalid param

It uses the default shader:

float4 mainImage(VertData v_in) : TARGET
{
    return image.Sample(textureSampler, v_in.uv);
}

Here are the full OBS logs:

Logs ``` 16:02:44.777: Platform: Wayland 16:02:44.778: CPU Name: Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz 16:02:44.778: CPU Speed: 4099.989MHz 16:02:44.778: Physical Cores: 6, Logical Cores: 6 16:02:44.778: Physical Memory: 15926MB Total, 1959MB Free 16:02:44.778: Kernel Version: Linux 6.10.6-200.fc40.x86_64 16:02:44.778: Flatpak Branch: stable 16:02:44.778: Flatpak Arch: x86_64 16:02:44.778: Flatpak Runtime: runtime/org.kde.Platform/x86_64/6.6 16:02:44.778: App Extensions: 16:02:44.778: - com.obsproject.Studio.Plugin.GStreamerVaapi 16:02:44.778: - com.obsproject.Studio.Plugin.MoveTransition 16:02:44.778: - com.obsproject.Studio.Plugin.obs-midi-mg 16:02:44.778: - com.obsproject.Studio.Plugin.shaderfilter 16:02:44.778: - com.obsproject.Studio.Plugin.waveform 16:02:44.778: - org.freedesktop.LinuxAudio.Plugins.Calf 16:02:44.778: - org.freedesktop.LinuxAudio.Plugins.LSP 16:02:44.778: - org.freedesktop.LinuxAudio.Plugins.MDA 16:02:44.778: - org.freedesktop.LinuxAudio.Plugins.ZamPlugins 16:02:44.778: - com.obsproject.Studio.Locale 16:02:44.778: Runtime Extensions: 16:02:44.778: - org.freedesktop.Platform.GL.default 16:02:44.778: - org.freedesktop.Platform.openh264 16:02:44.778: - org.kde.KStyle.Adwaita 16:02:44.778: - org.kde.PlatformTheme.QGnomePlatform 16:02:44.778: - org.kde.WaylandDecoration.QAdwaitaDecorations 16:02:44.778: - org.kde.Platform.Locale 16:02:44.778: - org.freedesktop.Platform.GL.default 16:02:44.778: Flatpak Framework Version: 1.15.8 16:02:44.778: Desktop Environment: GNOME (gnome) 16:02:44.778: Session Type: wayland 16:02:44.780: Qt Version: 6.6.3 (runtime), 6.6.3 (compiled) 16:02:44.780: Portable mode: false 16:02:44.839: OBS 30.2.3 (linux) 16:02:44.839: --------------------------------- 16:02:44.839: --------------------------------- 16:02:44.839: audio settings reset: 16:02:44.839: samples per sec: 48000 16:02:44.839: speakers: 2 16:02:44.839: max buffering: 960 milliseconds 16:02:44.839: buffering type: dynamically increasing 16:02:44.840: --------------------------------- 16:02:44.840: Initializing OpenGL... 16:02:44.840: Using EGL/Wayland 16:02:44.869: Initialized EGL 1.5 16:02:44.887: Loading up OpenGL on adapter AMD AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 17.0.6, DRM 3.57, 6.10.6-200.fc40.x86_64) 16:02:44.887: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 24.1.3 (git-0c49f54c76), shading language 4.60 16:02:44.924: --------------------------------- 16:02:44.924: video settings reset: 16:02:44.924: base resolution: 1920x1080 16:02:44.924: output resolution: 1920x1080 16:02:44.924: downscale filter: Bicubic 16:02:44.924: fps: 60/1 16:02:44.924: format: NV12 16:02:44.924: YUV mode: Rec. 709/Partial 16:02:44.924: NV12 texture support enabled 16:02:44.924: P010 texture support not available 16:02:44.928: Audio monitoring device: 16:02:44.928: name: Par défaut 16:02:44.928: id: default 16:02:44.929: --------------------------------- 16:02:44.944: No AJA devices found, skipping loading AJA UI plugin 16:02:44.944: Failed to initialize module 'aja-output-ui.so' 16:02:44.958: No AJA devices found, skipping loading AJA plugin 16:02:44.958: Failed to initialize module 'aja.so' 16:02:45.151: [pipewire] Available capture sources: 16:02:45.151: [pipewire] - Monitor source 16:02:45.151: [pipewire] - Window source 16:02:45.219: v4l2loopback not installed, virtual camera not registered 16:02:45.228: [obs-browser]: Version 2.23.6 16:02:45.228: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures.2594+g17f8588+chromium-103.0.5060.134 (compiled) 16:02:45.248: VAAPI: API version 1.19 16:02:45.249: FFmpeg VAAPI H264 encoding supported 16:02:45.258: FFmpeg VAAPI AV1 encoding supported 16:02:45.266: FFmpeg VAAPI HEVC encoding supported 16:02:45.352: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.5.2 | RPC Version: 1) 16:02:45.352: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.6.3 | Qt version (run-time): 6.6.3 16:02:45.352: [obs-websocket] [obs_module_load] Linked ASIO Version: 103002 16:02:45.358: [obs-websocket] [obs_module_load] Module loaded. 16:02:45.386: Failed to load 'fr-FR' text for module: 'move-transition.so' 16:02:45.386: [Move Transition] loaded version 3.0.2 16:02:45.395: Failed to load 'fr-FR' text for module: 'obs-midi-mg.so' 16:02:45.395: [obs-midi-mg] Loading plugin (v3.0.3)... 16:02:45.395: [obs-midi-mg] [Configuration] Initializing MIDI... 16:02:45.396: [obs-midi-mg] [MIDI] Device detected. 16:02:45.396: [obs-midi-mg] [Configuration] MIDI initialized. 16:02:45.396: [obs-midi-mg] [Configuration] Loading configuration... 16:02:45.396: [obs-midi-mg] [Configuration] Loading configuration file data from /var/home/romain/.var/app/com.obsproject.Studio/config/obs-studio/plugin_config/obs-midi-mg/obs-midi-mg-config.json... 16:02:45.396: [obs-midi-mg] [Configuration] Configuration file data loaded. Extracting... 16:02:45.396: [obs-midi-mg] [Configuration] Configuration loading complete. 16:02:45.396: [obs-midi-mg] Plugin loaded. 16:02:45.403: Failed to load 'fr-FR' text for module: 'obs-shaderfilter.so' 16:02:45.403: [obs-shaderfilter] loaded version 2.3.2 16:02:45.419: [obs-vaapi] version: 0.4.1, gst-runtime: 1.22.12 16:02:45.429: [obs-vaapi] found vah265enc 16:02:45.429: [obs-vaapi] found vah264enc 16:02:45.440: Failed to load 'fr-FR' text for module: 'waveform.so' 16:02:45.440: [phandasm_waveform]: Registered v1.8.1 x64 16:02:45.440: [phandasm_waveform]: Using CPU capabilities: AVX2 AVX FMA3 SSE2 16:02:45.446: --------------------------------- 16:02:45.446: Loaded Modules: 16:02:45.446: linux-pipewire-audio.so 16:02:45.446: waveform.so 16:02:45.446: obs-vaapi.so 16:02:45.446: obs-shaderfilter.so 16:02:45.446: obs-midi-mg.so 16:02:45.446: move-transition.so 16:02:45.446: text-freetype2.so 16:02:45.446: rtmp-services.so 16:02:45.446: obs-x264.so 16:02:45.447: obs-websocket.so 16:02:45.447: obs-webrtc.so 16:02:45.447: obs-vst.so 16:02:45.447: obs-transitions.so 16:02:45.447: obs-qsv11.so 16:02:45.447: obs-outputs.so 16:02:45.447: obs-libfdk.so 16:02:45.447: obs-filters.so 16:02:45.447: obs-ffmpeg.so 16:02:45.447: obs-browser.so 16:02:45.447: linux-v4l2.so 16:02:45.447: linux-pulseaudio.so 16:02:45.447: linux-pipewire.so 16:02:45.447: linux-jack.so 16:02:45.447: linux-capture.so 16:02:45.447: image-source.so 16:02:45.447: frontend-tools.so 16:02:45.447: --------------------------------- 16:02:45.447: --------------------------------- 16:02:45.447: Available Encoders: 16:02:45.447: Video Encoders: 16:02:45.447: - ffmpeg_svt_av1 (SVT-AV1) 16:02:45.447: - ffmpeg_aom_av1 (AOM AV1) 16:02:45.447: - ffmpeg_vaapi_tex (FFmpeg VAAPI H.264) 16:02:45.447: - av1_ffmpeg_vaapi_tex (FFmpeg VAAPI AV1) 16:02:45.447: - hevc_ffmpeg_vaapi_tex (FFmpeg VAAPI HEVC) 16:02:45.447: - obs_x264 (x264) 16:02:45.453: - obs-va-vah265enc (VAAPI H.265 on Navi 31 [Radeon RX 7900 XT/7900 XTX]) 16:02:45.459: - obs-va-vah264enc (VAAPI H.264 on Navi 31 [Radeon RX 7900 XT/7900 XTX]) 16:02:45.459: Audio Encoders: 16:02:45.459: - ffmpeg_aac (FFmpeg AAC) 16:02:45.459: - ffmpeg_opus (FFmpeg Opus) 16:02:45.459: - ffmpeg_pcm_s16le (FFmpeg PCM (16-bit)) 16:02:45.459: - ffmpeg_pcm_s24le (FFmpeg PCM (24-bit)) 16:02:45.459: - ffmpeg_pcm_f32le (FFmpeg PCM (32-bit float)) 16:02:45.459: - ffmpeg_alac (FFmpeg ALAC (24-bit)) 16:02:45.459: - ffmpeg_flac (FFmpeg FLAC (16-bit)) 16:02:45.459: - libfdk_aac (libfdk AAC) 16:02:45.459: ==== Startup complete =============================================== 16:02:45.524: All scene data cleared 16:02:45.524: ------------------------------------------------ 16:02:45.606: [obs-shaderfilter] Unable to load output.effect file. Errors: 16:02:45.606: (None) 16:02:45.607: Switched to scene 'Scène' 16:02:45.607: ------------------------------------------------ 16:02:45.607: Loaded scenes: 16:02:45.607: - scene 'Scène': 16:02:45.607: - source: 'Image' (image_source) 16:02:45.607: - filter: 'User-defined shader' (shader_filter) 16:02:45.607: ------------------------------------------------ 16:02:56.417: effect_setval_inline: invalid param 16:02:56.417: effect_setval_inline: invalid param 16:02:56.429: effect_setval_inline: invalid param 16:02:56.429: effect_setval_inline: invalid param 16:02:56.446: effect_setval_inline: invalid param 16:02:56.446: effect_setval_inline: invalid param 16:02:56.462: effect_setval_inline: invalid param 16:02:56.463: effect_setval_inline: invalid param 16:02:56.479: effect_setval_inline: invalid param 16:02:56.479: effect_setval_inline: invalid param 16:02:56.496: effect_setval_inline: invalid param 16:02:56.496: effect_setval_inline: invalid param 16:02:56.512: effect_setval_inline: invalid param 16:02:56.513: effect_setval_inline: invalid param 16:02:56.529: effect_setval_inline: invalid param 16:02:56.529: effect_setval_inline: invalid param 16:02:56.546: effect_setval_inline: invalid param 16:02:56.547: effect_setval_inline: invalid param 16:02:56.562: effect_setval_inline: invalid param 16:02:56.563: effect_setval_inline: invalid param 16:02:56.579: effect_setval_inline: invalid param 16:02:56.580: effect_setval_inline: invalid param 16:02:56.596: effect_setval_inline: invalid param 16:02:56.596: effect_setval_inline: invalid param 16:02:56.612: effect_setval_inline: invalid param 16:02:56.613: effect_setval_inline: invalid param 16:02:56.629: effect_setval_inline: invalid param 16:02:56.630: effect_setval_inline: invalid param 16:02:56.646: effect_setval_inline: invalid param 16:02:56.646: effect_setval_inline: invalid param 16:02:56.662: effect_setval_inline: invalid param ```
xav-ie commented 2 months ago

This is a duplicate of https://github.com/exeldro/obs-shaderfilter/issues/14.

Noe-Sanchez commented 2 months ago

Bumping this. Still not working on fresh Ubuntu 22.04 install, with ShaderFilter 2.3.2 and OBS 29.1.3. Also worth noting OpenGL 4.6.

Noe-Sanchez commented 2 months ago

@rmnvgr I temporarily fixed it downgrading from ShaderFilter 2.3.2 to 2.1.3.

exeldro commented 1 month ago

With windows in opengl mode it seems to work fine, so I would need a linux dev to help with this issue.