Python bindings for the Gstreamer multimedia framework
Questions tagged [python-gstreamer]
211 questions
0
votes
0 answers
How to connect picamera2 with Gstreamer
I would like to use picamera2 together with Gstreamer, using a Raspberry Pi Zero 2W and a Picamera Module V2, having in mind that:
During the operation, I will need to change the resolution, crop the image, control exposure, take pictures, etc. It…

pga
- 11
- 1
0
votes
1 answer
Gstreamer Cannot Adjust Volume of Pipeline while playing, Cannot Seek to time, Cannot Query Duration
I am using Gstreamer through C++. I am trying to play raw pcm buffer using rawaudioparse. Although I can play it, I Cannot Adjust Volume of Pipeline while playing, Cannot Seek to time, Cannot Query Duration.
THis is the code I tried.
pipeline =…

bkehufi3evsd
- 3
- 3
0
votes
0 answers
Redirecting Gstreamer logs in python from stdout/stderr to a custom logging handler
When working in Python 3 with gstreamer, there is a bunch of "uncapturable" output to the console, as it seems that the logging is coming from deep within gstreamer and its plugins and NOT the python bindings. Wherever that's coming from, it also…

RyanJ
- 63
- 7
0
votes
1 answer
Downscale h264 video only if video is more than 1080p
My overall objective is to ensure that i am not causing too much cpu usage unless necessary. I will be fetching h264 rtsp video from gstreamer and saving it. Wondering if i can save video in chunks (based on buffer size and duration) without…

Vengadanathan Srinivasan
- 381
- 5
- 12
0
votes
0 answers
GStreamer Custom GstPlugin uses same instance for multiple pipelines
Frames from multiple pipelines are overlap after my plugin uses.
I have developed a custom gst plugin using python.It is working fine with single pipeline.
Whenever i'm using multiple pipelines (*even in different process), the final videos are same…

vishnu padmanabhan
- 11
- 4
0
votes
0 answers
Why is muxing mp4 and webm using python3 and GStreamer failing with: reason not-linked (-1)
I have never used GStreamer before now, and I am not a c++ developer. This is all extremely confusing to me but I really need to acheive this functionality and ffmpeg was performing too slow for my needs. I have seen from multiple sources that…

Dabbo Pabblo
- 21
- 4
0
votes
1 answer
Unable to open the output video file of my pipeline when using appsrc
I'm creating a GStreamer pipeline in Python so that I stack consecutive camera images onto a buffer and pipe them to create a video (format does not matter). Each image in the buffer is encoded as a numpy array with all three RGB channels. I source…

IceSpice
- 3
- 2
0
votes
0 answers
Python coverage for gstreamer threads
I'm trying to run python coverage on an application that uses the gstreamer python bindings to create a pipeline and I'm not able to get it to report (or collect) coverage for the user defined callbacks despite having the multithreading and threads…

Oberluz
- 11
- 2
0
votes
0 answers
How can i use G729 in gstreamer?
i am streaming the audio date using gstreamer and would like to use g729 codec for the audio.
gst-launch-1.0 alsasrc ! audioresample ! audio/x-raw, rate=8000 ! udpsink host=destination IP port=5000
using the above pipeline for normal audio…

SUJAHA
- 1
0
votes
0 answers
How to control the audio/video data rate in Gstreamer?
i am trying to stream the audio data across two systems and want to control the data rate if possible.
"gst-launch-1.0 alsasrc ! audio/x-raw, rate=12000, channels=1,format=S16LE, layouy=interleaved ! udpsink host=Destination IP port=8000"
How to…

SUJAHA
- 1
0
votes
0 answers
ModulesNotFoundError: No module named 'gi' and as a result gstreamer not working
I was having issues getting started with some computer vision related tasks. Right off the bat let me provide a link to the GitHub repo I went to in order to clone my project from: Link to GitHub Repo for Cloning. I was following their README in…

zainauni
- 1
0
votes
0 answers
How to free memory from Gst.Buffer.extract_dup in Python using GLib.free()
I am running object detection on buffers from gstreamer and am utilizing gst_buffer_extract_dup to create an image array from a Gstreamer buffer. Here is a code snip:
gstbuffer = gstsample.get_buffer()
caps_format =…

zclements
- 1
- 1
0
votes
0 answers
Gstreamer - Change the imagefreeze plugin source image dynamically
I am using Gstreamer (Gst-python) to write a pipeline that samples images out of a video and creates a slideshow out of these images. For that I am using valve element to sample the images and imagefreeze to create the slideshow.
My pipeline looks…

MedKat
- 1
- 2
0
votes
1 answer
how to change the microphone source dynamically gstreamer
I have a client in gstreamer which is sending his audio to another client. I want the sender client to be able to change between different audio sources (Microphones in the device) dynamically.
I am using wasapisrc for getting the audio stream from…

Usama
- 159
- 1
- 13
0
votes
0 answers
H264 decoder for RTSP stream inside the docker
I am working on Nvidia Jetson AGX Xavier within Dockerized container…I want to take input from RTSP stream…it’s encoding type is H264 and .avi video input.The input stream frame size is 1920x1080 (in code I am resizing that into 1280x720)
I have…