SDL plugin fails to initialize

Hi. I am trying to play udp stream via SDL sink but if fails to initialize. I am on archlinux and using hyperland(wayland) which may be the cause of problem. I have attached error and pipeline.
6 Replies
Damirados
DamiradosOP4w ago
Full log.
varsill
varsill4w ago
Hello @Damirados ! It seems that SDL_init() in the native part of the membane_sdl_plugin code fails. It indeed looks as something related to wayland - could you try setting SDL_VIDEODRIVER=wayland environmental variable and rerun your script?
Damirados
DamiradosOP4w ago
Still the same. Is there a way I could get more verbose output from SDL side? Is there a way to use system SDL instead of precompiled one?
varsill
varsill4w ago
Sure, you can turn off precompiled dependency with the use of the following configuration: config :bundlex, disable_precompiled_os_deps: [:membrane_sdl_plugin] (bundlex will then look for the SDL2 with pkg-config). Concerning more verbose logging, I don't think it is currently possible without C code manipulation in the implementation of the sdl_plugin's native part
Damirados
DamiradosOP3w ago
I got it working by disabling precompiled os deps and changing bundlex config in membrane_sdl_plugin
diff --git a/bundlex.exs b/bundlex.exs
index 8ba1c34..e09e832 100644
--- a/bundlex.exs
+++ b/bundlex.exs
@@ -16,7 +16,7 @@ defmodule Membrane.SDL.BundlexProject do
sdl2: [
{:precompiled, Membrane.PrecompiledDependencyProvider.get_dependency_url(:sdl2),
"SDL2"},
- {:pkg_config, "SDL2"}
+ {:pkg_config, "sdl2"}
]
],
preprocessor: Unifex
diff --git a/bundlex.exs b/bundlex.exs
index 8ba1c34..e09e832 100644
--- a/bundlex.exs
+++ b/bundlex.exs
@@ -16,7 +16,7 @@ defmodule Membrane.SDL.BundlexProject do
sdl2: [
{:precompiled, Membrane.PrecompiledDependencyProvider.get_dependency_url(:sdl2),
"SDL2"},
- {:pkg_config, "SDL2"}
+ {:pkg_config, "sdl2"}
]
],
preprocessor: Unifex
Damirados
DamiradosOP3w ago
Want results from more Discord servers?
Add your server