Python bindings for the Gstreamer multimedia framework
Questions tagged [python-gstreamer]
211 questions
4
votes
0 answers
Pushing sample/ buffers from AppSink to AppSrc
I need to implement an architecture where I can push data from AppSink to
Appsrc.
Now, I can't figure out if it can be done within the same pipeline or I
would need two pipelines to achieve this. Considering I am somehow
manipulating the data…

Rhythm Chopra
- 103
- 3
- 9
4
votes
0 answers
Play live h264 encoded video RTSP stream using kivy
I have a c++ program that uses live555 in a winapi kernel event-loop that passes images from a camera to libopenh264 and then served as an RTSP stream using ffmpeg. The stream can be viewed fine using VLC. The event-loop also records to an avi…

scicalculator
- 1,498
- 3
- 16
- 33
4
votes
0 answers
Get the window handle in PyGI on MacOS
I use PyGObject/PyGI and GStreamer to show a video in my GUI. The video is shown in a Gtk.DrawingArea and therefore I need to get it's window-handle in the realize-signal-handler. On Linux I can simply use…

Biggie
- 7,037
- 10
- 33
- 42
4
votes
0 answers
Gstreamer with Bad Quality. Packet Loss
I'm new to Gstreamer and for some reason the quality of my stream is off. It looks like there are some packet loss. I created a pipeline on my Raspberry Pi 2 and another pipeline on my PC. Could someone explain to me why is this happening and/or how…

Juan
- 51
- 1
- 6
4
votes
1 answer
PyGObject or PyGtk
I need to write a program on my Raspberry Pi to get a video and audio stream with Gstreamer from network and play them.(I have two stream. one for video and one for audio) and i need a custom GUI. I followed the below link…

user3397145
- 787
- 1
- 5
- 16
3
votes
0 answers
Gstreamer rtsp connection breaks if two gst clients are requesting for the rtsp stream
I have a question about gstreamer. I made a streaming server using gst-rtsp-server.
IP cameras were connected to server with opencv videocapture function.
class VideoCapture:
def __init__(self, rtsp_url):
self.rtsp_url = rtsp_url
…

mars
- 31
- 2
3
votes
0 answers
Gstreamer tee branch with appsink slows down the whole pipeline, how to process buffer async?
I have a deepstream pipeline which goes like this:
reading and processing video --> queue --> tee --> queue --> display
|----> queue --> appsink
The appsink has a callback function attached to the…

Ahmed
- 65
- 1
- 4
3
votes
1 answer
Gstreamer Multifilesrc loop short video
I was wondering if it is possible to even get the multifilesrc to work. I am on the latest gstreamer version and cannot make a simple video loop. I've tried so many iterations of the above, to show a few:
gst-launch-1.0 multifilesrc…

Odd fellow
- 31
- 1
- 2
3
votes
1 answer
How to RTSP stream a video using Gstreamer and Python?
I have a code that currently takes one video and show it in screen using the gstreamer bindings for Python. I can seek the video when a "Forward" button is clicked at the player opened, and that is an important feature for me, hence the reason I…

João Gondim
- 101
- 1
- 1
- 9
3
votes
1 answer
How to send data from a file to webrtcbin element in gstreamer?
I am a beginner with gstreamer so bear with me.
I have a working pipeline where audio and video from a test source is sent to the webrtcbin element used to send out offer. Pipeline is as follows:
PIPELINE_DESC = '''
webrtcbin name=sendrecv…

Mayank
- 51
- 5
3
votes
2 answers
Gstreamer is installed but not built with OpenCV
I'm trying to stream a video from my PC to another
I started with a basic example, this one https://stackoverflow.com/a/51543002/9492711
I configured the udpsink host properly to map to my pc, but I'm getting this message constantly
VideoCapture or…

basel.ai
- 157
- 2
- 15
3
votes
3 answers
Seamless video loop in gstreamer
I'm trying to loop the video playback using gstreamer and it's python bindings. First attempt was to hook EOS message and generate seek message for the pipeline:
import gi
gi.require_version("Gst", "1.0")
from gi.repository import Gst
import…

vintch
- 131
- 1
- 8
3
votes
0 answers
How to change the currently playing file in a gstreamer pipeline without restarting the pipeline?
For some reason we have had trouble finding working solutions to this problem online.
Right now our source is a filesrc element. Our current non-solution is to change the pipeline's state to READY, change the location property, and set the…

mikkelmk
- 71
- 1
- 4
3
votes
3 answers
Gstreamer EOS message handling in filesink to change location on the fly
Trying to switch output files on the fly, but can't handle EOS.
http://gstreamer-devel.966125.n4.nabble.com/Dynamically-updating-filesink-location-at-run-time-on-the-fly-td4660569.html
Quote:
Assuming you have a pipeline that looks like this:
…

Velkan
- 7,067
- 6
- 43
- 87
3
votes
3 answers
Restarting GStreamer Pipeline in Python on EOS
I am working on a Python script running on RPi3, and using gstreamer to connect to RTSP feed of my IP Camera, and serve decoded H264 frames to my Python script.
Here is the gstreamear pipeline used to get frames from camera:
rtspsrc…

Anil Erdem Ozyalcin
- 51
- 1
- 6