Python bindings for the Gstreamer multimedia framework
Questions tagged [python-gstreamer]
211 questions
12
votes
1 answer
Gstreamer webrtcbin working sample pipeline
Can someone show up to date webrtcbin pipeline? At the moment i use these pipelines and they do not work.
Send:
gst-launch-1.0 webrtcbin bundle-policy=max-bundle name=sendrecv stun-server=stun://stun.l.google.com:19302 audiotestsrc is-live=true…

Monalisa
- 131
- 1
- 5
12
votes
1 answer
Write opencv frames into gstreamer rtsp server pipeline
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…

WisdomPill
- 720
- 4
- 11
- 25
8
votes
3 answers
gstreamer python bindings for windows
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…

Raoul
- 1,872
- 3
- 26
- 48
8
votes
2 answers
Python send and receive RTP packets
I want to send multimedia data over RTP. What I wnat to know is how to send and receive RTP packets with Python. I found the python class DPKT. But couldn't able to find a good reference to visualize how to generate each filed in RTP.
I would…

Huá dé ní 華得尼
- 1,248
- 1
- 18
- 33
6
votes
2 answers
How to write a GStreamer plug-in in Cython
I want to prototype a new type of audio filter. At the moment I use GStreamer to return a buffer of my audio, and Cython to apply the filter to it. Then I send the result back to GStreamer.
Everything is wrapped in a python main code, the GStreamer…

Flavian Hautbois
- 2,940
- 6
- 28
- 45
6
votes
2 answers
Is it still possible to have standalone Python elements in GStreamer 1.0?
I have an application written with gst-python for GStreamer 0.10 that I am trying to port to GStreamer 1.0.
In my application, I have some custom elements written in Python (subclasses of gst.BaseSrc and gst.BaseTransform). Each python-element has…

Joppe
- 1,465
- 1
- 12
- 17
5
votes
2 answers
Enumerate over cameras in Python
I'm having some trouble enumerating over cameras in Python over multiple OS's.
Here's some of the approaches I've tried:
import cv2 as cv
num = 0
while 1:
cap = cv.VideoCapture(num)
if cap.isOpened():
# working capture
num +=…

aczh
- 61
- 1
- 3
5
votes
1 answer
Python - No module named pygst
I'm using virtualenv on Ubuntu 14.04 with Python 2.7.13, and I'm trying to get import pygst to work (I'm a complete Python noob).
I downloaded:
https://gstreamer.freedesktop.org/src/gst-python/gst-python-1.12.1.tar.xz
Compiled and installed…

Casper
- 33,403
- 4
- 84
- 79
5
votes
1 answer
gstreamer 1.0 + python: dynamic link and unlink queues from a PLAYING pipeline
Pipeline architecture I'm trying to implement
The script works well when both the queues are linked together before setting the pipeline to PLAYING, but I'm having a hard time understanding Gstreamer dynamic pipelines and their implementation. Also…

Ashwin Prasad
- 51
- 3
5
votes
3 answers
How to install python "gi" module in virtual environment?
I have looked at this, and tried the following code:
ln -s /usr/lib/python2.7/dist-packages/pygtk.pth tools/python_2_7_9/lib/python2.7/site-packages/
ln -s /usr/lib/python2.7/dist-packages/gobject tools/python_2_7_9/lib/python2.7/site-packages/
ln…

Yunsheng Bai
- 219
- 4
- 15
5
votes
1 answer
Sink restart on failure without stopping the pipeline
today I decided to transform my little script, based on gst-launch, into a real Python/GStreamer application, in order to add some features.
I developed a little program which send the audio from my microphone to both Icecast (shout2send) and local…

Francesco Frassinelli
- 3,145
- 2
- 31
- 43
5
votes
0 answers
How to set channel positions/a channel mask in gstreamer?
I'm trying to get 28 channels out of a jackaudiosrc but as soon
as I connect, say, a deinterleave element, the source will fall back to
the 2-channel setup that works without any channel mask. My attempts at
setting a channel mask have been…

Christian
- 499
- 6
- 24
5
votes
3 answers
Gstreamer Missing plugins
I am trying to run certain pipelines on the Command prompt for playing a video and I am often getting these errors/messages/warnings :
WARNING: erroneous pipeline: no element "qtdemux"
WARNING: erroneous pipeline: no element "playbin2"
WARNING:…

Raulp
- 7,758
- 20
- 93
- 155
4
votes
1 answer
Play audio through muliple channels with python
Is there a way in python to play two different mono mp3 files through the left and right channels?
I have two mp3 files and I want to play one through the left speaker and the other mp3 through the right speaker, programatically in python. Any…

Vimal
- 61
- 5
4
votes
0 answers
How to create GStreamer RTSP server with variable frame rate
I have an application which requires me to consume an RTSP stream, extract frames from the video, perform some processing on the video frames, annotate the frames, then restream the video as a new RTSP stream. Sounds simple enough.
I am using the…

cyrusbehr
- 1,100
- 1
- 12
- 32