Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gi.repository.GLib.Error 2 #6

Open
taboopython opened this issue Sep 24, 2021 · 2 comments
Open

gi.repository.GLib.Error 2 #6

taboopython opened this issue Sep 24, 2021 · 2 comments

Comments

@taboopython
Copy link
Owner

$ sh birdfeeder.sh
Loading models/mobilenet_v2_1.0_224_quant_edgetpu.tflite with labels/imagenet_labels.txt labels.
Gstreamer pipeline: v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=30/1 ! queue max-size-buffers=1 leaky=downstream ! tee name=t
t. ! queue max-size-buffers=1 leaky=downstream ! videoconvert ! videoscale ! video/x-raw,format=RGB,width=320,height=180 ! appsink name=appsink sync=false emit-signals=true max-buffers=1 drop=true
t. ! queue max-size-buffers=1 leaky=downstream ! videoconvert
! rsvgoverlay name=overlay ! videoconvert ! ximagesink

Traceback (most recent call last):
File "bird_classify.py", line 174, in
main()
File "bird_classify.py", line 170, in main
result = gstreamer.run_pipeline(user_callback)
File "/home/mendel/coral/project-birdfeeder/gstreamer.py", line 94, in run_pipeline
pipeline = Gst.parse_launch(pipeline)
gi.repository.GLib.Error: gst_parse_error: no element "ximagesink" (1)

@taboopython
Copy link
Owner Author

@taboopython
Copy link
Owner Author

taboopython commented Sep 24, 2021

I run this code:
sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-tools gstreamer1.0-x

but I've got an next error.

Error: gst-resource-error-quark: Could not initialise X output (10): ximagesink.c(860): gst_x_image_sink_xcontext_get (): /GstPipeline:pipeline0/GstXImageSink:ximagesink0:
Could not open display

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant