Questions tagged [python-gstreamer]

Python bindings for the Gstreamer multimedia framework

211 questions
1
vote
2 answers

Write image frames into gstreamer rtp pipeline

I am trying to use the gstreamer pipeline to view an rtp stream in vlc on my computer. I mostly looked into this thread. My end result is something like this #!/usr/bin/env python import gi import numpy as np gi.require_version('Gst',…
1
vote
0 answers

Array to cv2 frame in Python multiprocessing

I have gstreamer buffer and like to convert to cv2 frame in python multiprocessing Gstreamer gets buffer from camera in one process and buffer is passed to another process using Multprocessing.Array Gstreamer gets buffer in one process as …
batuman
  • 7,066
  • 26
  • 107
  • 229
1
vote
0 answers

How to get Gstreamer to capture udp stream of images pushed individually by buffer

I currently have a gstreamer pipeline in python that pushes camera images to the pipeline buffer, and displays with autovideosink. However I'm having issues pushing it to a udp pipeline. what currently works in a python program: udp_sink_pipeline =…
1
vote
0 answers

Missing Plugin when using gst-discoverer

Getting error when using gst-discoverer script. Is there any way to get the name? When set the VERBOSE mode on (GST_DEBUG=3) , got the following msgs: basesrc gstbasesrc.c:3583:gst_base_src_start_complete: pad not activated yet WARN …
stackjohnny
  • 645
  • 3
  • 7
  • 22
1
vote
1 answer

Python-GStreamer: Access class members inside callback function with fixed arguments

I have a callback, that is provided by GStreamer-Python bindings which accepts fixed number of arguments. Here is the API : add_probe I call this function from inside a class function. Below is the pesudo code: class Example: def __init__(self): …
gst
  • 1,251
  • 1
  • 14
  • 32
1
vote
1 answer

Python-Gstreamer for dynamic control of element properties

I am using Gstreamer 1.0 with Python bindings. Below is the pipeline I am trying to build considering Opengl plugins : gltestsrc -> gltransformation -> glimagesink I am trying to modify the properties of element 'gltransformation' dynamically…
gst
  • 1,251
  • 1
  • 14
  • 32
1
vote
2 answers

TypeError: Gst.Bin.add() takes exactly 2 arguments (5 given)

I have been using gstreamer since some few weeks. Still I am not much aware of how things work internally. So I was following some tutorials online to learn how I can use it in efficient way. Here is the Github link to the tutorials…
Urvish
  • 643
  • 3
  • 10
  • 19
1
vote
0 answers

Installation of Pyobject in windows 10 Anaconda environment.

I am trying to use gstreamer with my Anaconda environment on Windows 10 machine. I get gstreamer successfully installed on my machine. The version of Gstreamer is 1.13, the latest for windows. But now I want to use it through Python IDE. But as my…
Urvish
  • 643
  • 3
  • 10
  • 19
1
vote
0 answers

Stream from RPi, save to Jetson (Gstreamer Opencv Python)

Updated: I have a rpi compute module which successfully gstreams video, using the cmd line. Jetson machine receives it using cmd line too (but not a python script!) On the RPi: raspivid -fps 15 -b 400000 -t 0 -n -w 640 -h 480 -o - | tee |…
Fred
  • 53
  • 6
1
vote
1 answer

Using pygi, how can I override a virtual method from a GObject class that has the same name as a virtual method in its base class?

Using GObject Introspection in Python, I am trying to create a custom PushSrc element, which requires override create or fill virtual methods, without success. The issue seems to be that both PushSrc and its base class, BaseSrc, has these virtual…
1
vote
0 answers

video streaming using gstreamer with python

I am new to gstreamer and want to live streaming from a webcam using gstreamer with python. How can I do it? If anyone has a related article or source code please share. I have tried this code: Vidserver.py import gobject, pygst…
1
vote
0 answers

Register a Gstreamer1.0 Python Element? Wanting to react to bus element messages

I am new to Gstreamer, so I apologize if this question is very simple, but I've been stuck for way too long. I'm using Mopidy on my raspberry pi to play music through speakers. When Mopidy is playing, I want to be able to able to stobe some lights…
jlchamaa
  • 11
  • 1
1
vote
0 answers

Error while trying to send opus encoded audio to a server using gstreamer

I am using a Kaldi-Gstreamer-Server library, which uses python gstreamer bindings, for live speech recognition application. The library uses onlinegmmdecodefaster gstreamer element (which is included with the Kaldi library) along with other elements…
xabush
  • 849
  • 1
  • 13
  • 29
1
vote
1 answer

How to start pipeline with pendings inputs

I'm working for a few days now on a pipeline with the following configuration : - 2 live input streams (RTMP) - going into one compositor - outputing to another RTMP stream With some converter, queue, etc. in between, it works pretty well. But my…
PLC
  • 11
  • 2
1
vote
2 answers

Error in pipeline porting pygst program from gstreamer 0.10 to 1.0

I'm porting a program from pygst 0.10 to 1.0 and I've problems with the pipeline. The pipeline I use in the 0.10 version, and works well, is: udpsrc name=src ! tsparse ! tsdemux ! queue ! ffdec_h264 max-threads=0 ! identity ! xvimagesink…
Higi M.
  • 65
  • 1
  • 5