Hi, I'm still struggling to get blur to work on Ubuntu 20.04. I struggled with #4 but got past that by installing gstreamer1.0-python3-plugin-loader. The command does not 'crash' now but it spits out an infinite stream of errors:
% GST_DEBUG=GST_PLUGIN_LOADING:4,pyplugin:6 webcam-filters --input-dev /dev/video0 --output-dev /dev/video3 --background-blur 150 | sed 's/jgrgt/jgrgt/g'
0:00:00.000339346 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:318:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.000423577 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.000450943 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:228:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.008871418 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:1524:gst_plugin_ext_dep_extract_env_vars_paths:<plugin36> ignoring environment variable content '': either not an absolute path or not a path at all
0:00:00.008884089 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:1524:gst_plugin_ext_dep_extract_env_vars_paths:<plugin36> ignoring environment variable content '1': either not an absolute path or not a path at all
0:00:00.009128618 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:1524:gst_plugin_ext_dep_extract_env_vars_paths:<plugin106> ignoring environment variable content '': either not an absolute path or not a path at all
0:00:00.013450325 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvideo4linux2.so" loaded
Selectd input: media-type=image/jpeg, width=1280 height=720 framerate=30/1
0:00:00.016463374 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcoreelements.so" loaded
0:00:00.017510553 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstplayback.so" loaded
0:00:00.018003740 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvideoconvert.so" loaded
0:00:00.021918098 88314 0x1229670 LOG pyplugin gstpythonplugin.c:227:plugin_init: Checking to see if libpython is already loaded
0:00:00.021953189 88314 0x1229670 LOG pyplugin gstpythonplugin.c:230:plugin_init: libpython is already loaded
0:00:00.021958312 88314 0x1229670 LOG pyplugin gstpythonplugin.c:249:plugin_init: python was already initialized
0:00:00.021967731 88314 0x1229670 LOG pyplugin gstpythonplugin.c:253:plugin_init: Running with python version '3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0]'
0:00:00.021972050 88314 0x1229670 LOG pyplugin gstpythonplugin.c:255:plugin_init: initializing pygobject
0:00:00.022180382 88314 0x1229670 DEBUG pyplugin gstpythonplugin.c:154:gst_python_plugin_load: GST_PLUGIN_PATH set to /home/jgrgt/.local/lib/python3.8/site-packages/webcam_filters/plugins:
0:00:00.022221452 88314 0x1229670 DEBUG pyplugin gstpythonplugin.c:48:gst_python_plugin_load_file: loading plugin cv2_boxfilter
0:00:00.144117053 88314 0x1229670 INFO pyplugin gstpythonplugin.c:103:gst_python_plugin_load_file: Valid plugin
0:00:00.144157775 88314 0x1229670 DEBUG pyplugin gstpythonplugin.c:48:gst_python_plugin_load_file: loading plugin selfie_segmentation
0:00:00.395388933 88314 0x1229670 INFO pyplugin gstpythonplugin.c:103:gst_python_plugin_load_file: Valid plugin
0:00:00.395410970 88314 0x1229670 DEBUG pyplugin gstpythonplugin.c:48:gst_python_plugin_load_file: loading plugin numpy_where
0:00:00.396734247 88314 0x1229670 INFO pyplugin gstpythonplugin.c:103:gst_python_plugin_load_file: Valid plugin
0:00:00.396762556 88314 0x1229670 DEBUG pyplugin gstpythonplugin.c:121:gst_python_load_directory: Couldn't open Python plugin dir: Error opening directory “python”: No such file or directory
0:00:00.396772276 88314 0x1229670 DEBUG pyplugin gstpythonplugin.c:172:gst_python_plugin_load: GST_PLUGIN_SYSTEM_PATH not set
0:00:00.396783639 88314 0x1229670 DEBUG pyplugin gstpythonplugin.c:121:gst_python_load_directory: Couldn't open Python plugin dir: Error opening directory “/home/jgrgt/.gstreamer-1.0/plugins/python”: No such file or directory
0:00:00.396793250 88314 0x1229670 DEBUG pyplugin gstpythonplugin.c:121:gst_python_load_directory: Couldn't open Python plugin dir: Error opening directory “lib/x86_64-linux-gnu/gstreamer-1.0/python”: No such file or directory
0:00:00.396802097 88314 0x1229670 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstpython.so" loaded
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
0:00:00.420456846 88314 0x1ecccc0 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstjpeg.so" loaded
Traceback (most recent call last):
File "/home/jgrgt/.local/lib/python3.8/site-packages/webcam_filters/plugins/python/selfie_segmentation.py", line 151, in do_transform_ip
with inbuf_info:
AttributeError: __enter__
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
Traceback (most recent call last):
File "/home/jgrgt/.local/lib/python3.8/site-packages/webcam_filters/plugins/python/cv2_boxfilter.py", line 104, in do_transform_ip
File "/home/jgrgt/.local/lib/python3.8/site-packages/webcam_filters/plugins/python/selfie_segmentation.py", line 169, in do_transform_ip
with inbuf_info:
AttributeError: __enter__
except Gst.MapError as e:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 32, in __getattr__
File "/home/jgrgt/.local/lib/python3.8/site-packages/webcam_filters/plugins/python/cv2_boxfilter.py", line 115, in do_transform_ip
return getattr(self._introspection_module, name)
File "/usr/lib/python3/dist-packages/gi/module.py", line 131, in __getattr__
except Gst.MapError as e:
File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 32, in __getattr__
raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Gst' object has no attribute 'MapError'
return getattr(self._introspection_module, name)
File "/usr/lib/python3/dist-packages/gi/module.py", line 131, in __getattr__
raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Gst' object has no attribute 'MapError'
Traceback (most recent call last):
File "/home/jgrgt/.local/lib/python3.8/site-packages/webcam_filters/plugins/python/cv2_boxfilter.py", line 104, in do_transform_ip
Traceback (most recent call last):
File "/home/jgrgt/.local/lib/python3.8/site-packages/webcam_filters/plugins/python/selfie_segmentation.py", line 151, in do_transform_ip
with inbuf_info:
AttributeError: __enter__
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
with inbuf_info:
File "/home/jgrgt/.local/lib/python3.8/site-packages/webcam_filters/plugins/python/cv2_boxfilter.py", line 115, in do_transform_ip
AttributeError: __enter__
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jgrgt/.local/lib/python3.8/site-packages/webcam_filters/plugins/python/selfie_segmentation.py", line 169, in do_transform_ip
except Gst.MapError as e:
File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 32, in __getattr__
except Gst.MapError as e:
File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 32, in __getattr__
return getattr(self._introspection_module, name)
return getattr(self._introspection_module, name)
File "/usr/lib/python3/dist-packages/gi/module.py", line 131, in __getattr__
File "/usr/lib/python3/dist-packages/gi/module.py", line 131, in __getattr__
raise AttributeError("%r object has no attribute %r" % (
raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Gst' object has no attribute 'MapError'
AttributeError: 'gi.repository.Gst' object has no attribute 'MapError'
Traceback (most recent call last):
File "/home/jgrgt/.local/lib/python3.8/site-packages/webcam_filters/plugins/python/numpy_where.py", line 109, in do_aggregate
self.selected_samples(cbuf.pts, cbuf.dts, cbuf.duration, None)
AttributeError: 'Where' object has no attribute 'selected_samples'
Any ideas what I'm still missing?