Python bindings for the Gstreamer multimedia framework
Questions tagged [python-gstreamer]
211 questions
1
vote
1 answer
How to record audio in gstreamer for pre-defined time?
I have python gstreamer - 1.0 code that records audio using "autoaudiosrc" element. My question is to stop the pipeline after few 'predefined' seconds and preferably I want to add it in gstelement format .
The current pipeline used to record…

Shashank Singh
- 568
- 7
- 19
1
vote
1 answer
Pocketsphinx + Gstreamer Race Condition? Pocketsphinx can't listen to audio + record from it at the same time in Python script?
Overview: So this is a follow up to my last problem (here). I will be posting a full answer on that very soon. I'm able to get pocketsphinx to recognize audio input from my PS3 Eye in Python via Gstreamer. By specifying the correct alsa device (…

Malcolm Jones
- 1,472
- 1
- 12
- 24
1
vote
2 answers
gstreamer: could not add element
I am trying to stream a video from an android phone to my laptop. I ran the gstreamer and it works fine. My problem is with the following code:
[....]
pipeline = gst.parse_launch('rtspsrc name=source latency=0 ! decodebin ! autovideosink')
…

Raja
- 11
- 1
- 2
0
votes
1 answer
PyGST and videos with multiple audio tracks
How can I switch between audio tracks in a video using PyGST, but without using playbin2? I'm using this pipeline, but I have no idea about how to select a specific audio stream in the video and connecting it to the audiosink:
uridecodebin…

ov1d1u
- 958
- 1
- 17
- 38
0
votes
1 answer
GStreamer with Python 2.7 cannot import gst
I am having the same issue as:
Cannot Import GST in Python
However, its solution does not work for me.
I'm using Win7 64bit with Python 2.7, GStreamer 0.10.7, and PyGTK 2.24. The exact error I receive is:
>>>import gst
Traceback (most recent call…

Kreuzade
- 757
- 5
- 11
- 22
0
votes
0 answers
Title: Manipulating live streaming with GStreamer in Python - stop and restart multiple times
I'm working with a GStreamer pipeline in Python to handle live streaming. My goal is to manipulate the live streaming such that when I receive a request for live streaming, I want to start an RTMP stream. This is a part of a bigger pipeline which…

Nixon
- 1
- 2
0
votes
1 answer
Can't get EOS event when video ends playing
I'm working on a small application in python / tkinter, in which I'm playing videos.
I'd need to be able to detect when the end of the video has been reached, to take some actions, but I can't find a way to do that.
I tried to get EOS notifications,…

ncarrier
- 433
- 3
- 14
0
votes
1 answer
New element is getting created even after unref of pipeline in gstreamer
I am trying to access appsink element to capture intermediate frames, and I have written a stream pipeline but when I change and start a new pipeline, I use gst_object_unref(pipeline, NULL) and set its state to NULL. But still when I check my…

Goodpeople
- 3
- 1
0
votes
0 answers
Python Gstreamer Webrtcbin does not rtsp video to javascript peer
Recently, I am working on streaming RTSP cameras to Javascript Webrtc peer to show the stream on the web.
The Project Will be run on local network.
I've tried to setup a connection similar to this gst-rtsp-webrtc github whic is based on…

Ehsan74
- 1
- 1
0
votes
0 answers
How can I synchronize audio and video in GStreamer pipeline using Python?
I have the following pipeline in gstreamer in Python that receives audio and video buffers and plays them:
pipeline2_str = 'appsrc name=videosrc do-timestamp=true format=3 ! jpegparse ! jpegdec ! queue2 max-size-buffers=0 max-size-bytes=0…

user3049992
- 21
- 3
0
votes
0 answers
" (862) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created " AGAIN
I tried making this simple opencv2 code on my macbook when this GStreamer Pipeline error showed up. This question has been raised many times previously, but none seemed to be solving this error to me.
import cv2
# Open video capture
video_capture =…

hehehe hehe
- 1
- 2
0
votes
1 answer
Homebrew Gstreamer, Python and video
I am trying to go through the Gstreamer tutorial, but I got stuck on the first two already (1st, 2nd). Here is the copy of the 2nd lesson's code, for reference:
#!/usr/bin/env python3
import sys
import gi
import logging
gi.require_version("GLib",…

Amadan
- 191,408
- 23
- 240
- 301
0
votes
1 answer
Missing frame and the end-of-stream event in GStreamer's AppSrc
When shutting down a GStreamer pipeline that reads frames from an appsrc, encodes them, and writes them out to a file, I noticed that although I had pushed N buffers into the appsrc, the file would have only N-1 frames about 50% of the time (the…

mallwright
- 1,670
- 14
- 31
0
votes
1 answer
How to make GStreamer pipeline work using gi.repository in Python3?
this is my first time asking a question here.
I'm trying to create a GStreamer pipeline using the gi.repository from Python3. I want to make it this way instead of using deepstream-app or gst-launch-1.0 application because in the future I want to…

mo_oises
- 1
- 1
- 1
0
votes
1 answer
How do I call a parent classes do_... method in the child class, without creating a recursive loop?
To start with, I KNOW the standard answer to this in non-gstreamer python. The trouble is that that leads to an infinite recursion.
I am using the gi repository to write a python-gstreamer element which is a child of Gst.Bin. gi hides the virtual…

swestrup
- 4,079
- 3
- 22
- 33