python-gstreamer

Write opencv frames into gstreamer rtsp server pipeline

对着背影说爱祢 提交于 2019-11-27 21:45:13
I'm trying to put opencv images into a gstreamer rtsp server in python. I have some issue writing in the mediafactory, I'm new to gst-rtsp-server ancd there's little documentation so I don't know exactly if I'm using the right approach. I'm using a thread to start the MainLoop and I'm using the main thread to create a buffer to push in the appsrc element of the mediafactory pipeline. Am I using the right approach to obtain my objective? Can anyone help me? My code is below: from threading import Thread from time import clock import cv2 import gi gi.require_version('Gst', '1.0') gi.require

gstreamer python bindings for windows

十年热恋 提交于 2019-11-27 14:05:51
问题 I am looking into gstreamer as a means to choose a video device from a list to feed it to an opencv script. I absolutely do not understand how to use gstreamer with python in windows. I installed the Windows gstreamer 1.07 binaries from the gstreamer official website. However, I could not import the pygst and gst modules in python. >>> import pygst Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import pygst ImportError: No module named pygst >>> I checked the