Python bindings for the Gstreamer multimedia framework
Questions tagged [python-gstreamer]
211 questions
0
votes
1 answer
Gstreamer pipeline for streaming h264 to nvr
I’m using this pipeline for streaming processed frames:
pipeline = Gst.parse_launch(‘appsrc name=m_appsrc ! capsfilter name=m_capsfilter ! videoconvert ! x264enc ! rtph264pay ! udpsink name=m_udpsink’)
i can capture frames with appsink
cap =…

TheConst _
- 1
- 1
0
votes
0 answers
gst-resource-error-quark: Could not write to resource
I am really new to GStreamer and I am stuck in this error for a long period of time. I am using my mobile as a RTSP camera. I can open the RTSP link in my laptop's VLC properly (In Windows). However, If I try to use this RTSP camera link in…

JSVJ
- 500
- 3
- 14
0
votes
1 answer
Handling Frame Rate and Video Scale in RTSP gstreamer python client
We have a RTSP stream running. this is the gstreamer pipeline we use to run the stream.
./test-launch "nvarguscamerasrc
! video/x-raw(memory:NVMM), width=(int)1280, height=(int)960, framerate=(fraction)30/1, format=(string)NV12
! nvvidconv
!…

Priyamal
- 2,919
- 2
- 25
- 52
0
votes
0 answers
Speed up Gstreamer pipeline while keeping video and audio in sync
I have a Gstreamer pipeline with 2 appsinks that provide raw video and audio buffers to a Python program that stores these buffers to disk. The end goal is to split video in seperate frames and audio samples that belong to that frame and store them…

Amuoeba
- 624
- 9
- 28
0
votes
1 answer
Adding 10 second wav file to gstreamer pipeline that is already playing
I have a gstreamer pipeline created from the python gst bindings, which is set up to play a headset's microphone back to the headset's speaker. This works fine and is playing in a pipeline like this:
JackAudioSrc -> GstAudioMixer -> Queue ->…

tamworth10
- 21
- 2
0
votes
1 answer
Dynamically change GStreamer plugin (equalizer) parameters
Context: I have an audio device running Mopidy, which outputs to a gstreamer pipeline. My device has an interface for an equalizer - for this I've set up my ALSA config to go through ALSA equalizer - the GStreamer pipeline targets this. The code…

Matthew
- 31
- 1
- 3
0
votes
1 answer
How to perform retrigger/restart sample in gstreamer without cutting the previous playback
So I am trying to make a drum machine with gstreamer. For those who are not familiar with a drum machine have a look at:
https://www.youtube.com/watch?v=KC7UaUD5rEA
Basically you have a specific sample loaded to a track. Each track has 16 steps…

Mr.eeckhout
- 11
- 2
0
votes
1 answer
How to create gstreamer pipeline in python with a probe
I am trying to write a code that takes image input, writes some text over it, and then sends it to the sink (app, file, or Gtk display).
The code below works in the terminal and through python:
pipeline = Gst.parse_launch(f"videotestsrc ! videoscale…

Nikhil
- 3
- 1
0
votes
0 answers
raw h264 data to RTSP
I will be having raw h264 stream in a pipe and I have to serve it with RTSP.
How to do this in python and gstreamer.
Currently I'm able to play the stream with ffmpeg.
ffmpeg = subprocess.Popen(
["ffmpeg", "-i", "-", "-f", "rawvideo",…

skns
- 132
- 1
- 8
0
votes
1 answer
dynamically add uridecodebin to compositor
I am trying to dynamically add another uridecodebin to compositor/audiomixer
this is my "starting" pipeline, it works:
compositor name=videomix ! tee name=vo
audiomixer name=audiomix async=true ! tee name=au
hlssink2 …

Helmut Januschka
- 1,578
- 3
- 16
- 34
0
votes
1 answer
Can't save mp4 video after sending eos to pipeline
I have tried many different things but I am not able to send and eos message when ctrl+c is pressed and properly stop my pipeline and obtain a video file. Whay am I missing here?
def bus_call(bus, message, loop):
t = message.type
if t ==…

m33n
- 1,622
- 15
- 38
0
votes
0 answers
How to send a audio file along with video in the same pipeline through RTSP
import sys
import gi
gi.require_version('Gst', '1.0')
gi.require_version('GstRtspServer', '1.0')
gi.require_version('GstRtsp', '1.0')
from gi.repository import Gst, GstRtspServer, GObject, GLib, GstRtsp
loop = GLib.MainLoop()
Gst.init(None)
class…
0
votes
0 answers
GStreamer: How to install dashsink plugin
I would like to use the dashsink plugin.
Since it was not part of the gstreamer 1.6 bad plugins I installed via apt install gstreamer1.0-plugins-bad, I tried building from scratch to get a newer version.
The build works but the dashsink is still not…

bonfab
- 302
- 2
- 8
0
votes
1 answer
WARNING: erroneous pipeline: no element "cameracalibrate"
I am trying to run the following pipeline:
gst-launch-1.0 -v v4l2src ! videoconvert ! cameracalibrate ! cameraundistort ! autovideosink
The First part of my question is:
As I read in the documentation cameracalibrate and cameraundistort are…

Y.OU
- 15
- 6
0
votes
1 answer
hls generated with gst (ts m3u8) not playing on safari (but working on chrome)
i'm trying to use gst to generate an hls video from frames within an existing pipeline. once i get the frame as a numpy array i use the following to create the ts and m3u8 file :
appsrc emit-signals=True do-timestamp=true is-live=True
…

Björg
- 1
- 4