Python bindings for the Gstreamer multimedia framework
Questions tagged [python-gstreamer]
211 questions
0
votes
1 answer
How to set configuration options in pocketsphinx using gstreamer
Probably a very silly question, but I cannot find a solution anywhere.
When I run 'gst-inspect-1.0 pocketsphinx' I get something like:
Current configuration:
[NAME] [DEFLT] [VALUE]
-agc none none
-agcthresh 2.0 …

Nico
- 45
- 6
0
votes
1 answer
How do you get a stream details using Gst 1.0
I want to create a python file that will output details of a audio stream. I found a good example (https://blogs.gnome.org/uraeus/2011/01/17/back-on-transmageddon-and-new-gstreamer-features/) but it uses GST 0.10 for my project I need Gstreamer 1.0.…

Adam
- 21
- 4
0
votes
0 answers
How to record audio with gstreamer in time intervals
Basically my question is somewhat same to this one: How to record audio in gstreamer for pre-defined time?
But there is no answer which i can use there and i'm also relatively new to using gstreamer. Using the code in the question posted by the…

Abstrac Tor
- 3
- 1
0
votes
1 answer
gstreamer video into a window in python
I have the following pipelines to stream video:
sender:
gst-launch-1.0 rpicamsrc preview=0 ! 'video/x-h264, width=1280, height=720, framerate=15/1,profile=high' ! queue ! rtph264pay ! udpsink host=192.168.0.8 port=50000
receiver:
gst-launch-1.0…

Zorgmorduk
- 1,265
- 2
- 16
- 32
0
votes
1 answer
Method not available in RTSPMediaFactory
I am using Gstreamer RTSPMediaFactory (libgstrtspserver 1.0) v 1.2.3-0.
From Python, I have derived from the MediaFactory, and overridden create_element.
Unfortunately, my create_element is never called, so the RtspServer complains no launch line…

Adam
- 4,159
- 4
- 32
- 53
0
votes
1 answer
GStreamer issue with time
I use GStreamer to play audio and regularly require a timestamp of where I am in the file.
If I adjust the rate of play, be it using a seek command specifying a new play rate or if I use a plugin like “pitch” to adjust the “tempo” component. All…

Rolf of Saxony
- 21,661
- 5
- 39
- 60
0
votes
0 answers
Gstreamer udpsrc read or socket error
I have built Gstreamer from Github source, version 1.5.2.
I try to receive four RTP streams via UDP and mix them to a single sink.
gst-launch-1.0 executes the pipeline without issues:
gst-launch-1.0 adder name=mix \
mix. ! audioresample !…

chris-kuhr
- 355
- 1
- 5
- 19
0
votes
1 answer
Play .avi video using GStreamer 1.0 and Python
I've been searching a lot of examples for using GStreamer's python library on Windows but the only ones that work well are like this:
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# GStreamer SDK Tutorials in Python
#
# …

user3587175
- 141
- 3
- 3
- 8
0
votes
1 answer
GStreamer: How to play 1 file into a loop?
With this:
import gst
self.player = gst.element_factory_make("playbin", "player")
self.player.set_property('uri','file:///test.ogg))
self.player.set_state(gst.STATE_PLAYING)
How could I force a infinite loop of that test.ogg file?

Costales
- 2,799
- 1
- 17
- 21
0
votes
1 answer
GLib.Error: gst_parse_error: no element "zbar"
from gi.repository import GdkX11, GstVideo
p = 'v4l2src ! tee name=t ! queue ! videoconvert ! zbar ! fakesink t. ! queue ! videoconvert ! xvimagesink'
self.a = a = Gst.parse_launch(p)
Error:
self.a = a = Gst.parse_launch(p)
GLib.Error:…

Parth
- 729
- 8
- 23
0
votes
1 answer
How to create gstreamer pipe in python and open in OpenCV
Hi I want to create the following pipe in python.
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp, encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink
I have tried the following
pipeline =…

Akash Deshpande
- 2,583
- 10
- 41
- 82
0
votes
1 answer
Make a simple audio player with a playback control with gstreamer1.0 and gtk3
I'd like to make a simple music player using the GI library, including the recent Gstreamer1.0. The interface is just comprised of 2 buttons (play/pause) and a scale to seek the current playback time:
I pretty much well understood the pipeline and…

Hadrien Titeux
- 450
- 2
- 11
0
votes
1 answer
Sending eos in gstreamer after pre-defined time using new_single_shot_id
I have a gstreamer application where I am creating a video with images. I need to create the video for a predefined time. I would like to send eos after the predefined time. I know that this can be achieved using new_single_shot_id in gstClock. But…

Yoganand Anandaraju
- 99
- 2
- 12
0
votes
1 answer
Gstreamer Pipeline Dynamic Change Python
I have been trying to dynamically change the gstreamer pipeline but it just stops the stream as soon as I change the state. What is it that I am doing wring here. Here is my code :
#!/usr/bin/python
import gobject
import…

user2622949
- 23
- 1
- 5
0
votes
1 answer
id3demux "streaming task paused, reason not-linked (-1)" on certain MP3s
I'm creating a player in Python-GStreamer, on a pretty dated GStreamer 0.10.32, like this:
import pygst
pygst.require("0.10")
import gst
import gobject
self.__player = gst.parse_launch(
'filesrc name="source" location="/file/here.mp3" '
'!…

Victor Sergienko
- 13,115
- 3
- 57
- 91