Questions tagged [python-gstreamer]

Python bindings for the Gstreamer multimedia framework

211 questions
3
votes
1 answer

python bindings for gstreamer: how to import typelib

I was building gstreamer latest version on my raspberry pi. I wanted to have python bindings, hence I installed gobject-introspection-1.0 and pygobject-3.18.2 before compiling the gstreamer and its plugins. At the end of the build of gstreamer and…
3
votes
2 answers

How to use pocketsphinx (5prealpha) with gstreamer-1.0 in python?

I am trying to create a small Python script that will receive an audio stream over the network, feed it through pocketspinx to translate speech to text and run some commands depending on the output of pocketsphinx. I've installed sphinxbase and…
Nico
  • 45
  • 6
3
votes
2 answers

In Python with GStreamer, how do I use a file object as the input source?

I am currently doing: source_path = 'file:///home/raj/videos/sample.mpg' descr = 'uridecodebin uri=%s ! videoconvert ! gdkpixbufsink name=sink' % (source_path) pipeline = Gst.parse_launch(descr) But instead of using uri, how can I use a raw file…
Raj
  • 1,479
  • 3
  • 15
  • 29
3
votes
1 answer

Gsteamer rtp video mixer, found a working pipeline, however need improvement

I'm attempting to mix multiple rtp h264 payload video streams into a single video stream of 15FPS. A working pipeline that mixes two video streams over a videotestsource pattern of…
alkber
  • 1,426
  • 2
  • 20
  • 26
2
votes
1 answer

DrawingArea Cannot Get XID

I have the following Python 2.7/PyGObject 3.0/PyGST 0.10 module: from gi.repository import Gtk, Gdk, GdkPixbuf import pango import pygst pygst.require('0.10') import gst import Trailcrest import os, sys import cairo from math import pi class…
CodeMouse92
  • 6,840
  • 14
  • 73
  • 130
2
votes
3 answers

gstreamer appsrc causes random crashes

I'm trying to setup a GStreamer appsrc as a video source, but even a trivial program does not work at all and produces random crashes or hangings so far. Could you please help to spot the problem? Minimal crashing code: import gst, gtk def…
abbot
  • 27,408
  • 6
  • 54
  • 57
2
votes
0 answers

Gstreamer pipeline hangs at EOS

I'm developing a video recording application on NVIDIA Jetson Nano. My application runs on more than 200 Jetson Nano devices, each record 3-10 videos per day. A single device usually records 40-45 minutes with a 5 minute interval in-between. The…
2
votes
1 answer

Drop buffers in gstreamer

I am developing a gstreamer application (plugin) that sinks from a video stream, analyzes each buffer for a certain condition and then if that condition is present passes the buffer to the plugin source. If the condition is not present for a given…
rpb
  • 87
  • 1
  • 8
2
votes
2 answers

GStreamer zero copy read only buffer duplication

I have a GStreamer pipeline with an appsink filesrc location=test.mp4 ! decodebin ! video/x-raw ! queue max-size-bytes=0 max-size-time=100000000 ! appsink name=appSink sync=false max-buffers=1 drop=false I pull a sample from the appsink then I get…
2
votes
2 answers

TypeError: unknown type GstFraction

I am trying to use Gstreamer with python bindings in order to search for available cameras on my system. As a result I would like to obtain a list of devices with their corresponding capabilities (width, height, framerate...). Gstreamer offers very…
2
votes
2 answers

How to wait for x264enc to encode buffered frames on end-of-stream

I have a Python GStreamer application that uses appsrc to record mp4 files. The issue is that despite specifying tune=zerolatency for x264enc, there is latency, and the output video is truncated when an eos is sent to the pipeline. Depending on the…
alexlyn
  • 21
  • 2
2
votes
0 answers

Error while trying to play a video with Gstreamer in a Docker environment

Im building a python based video player but ran in to a issue with Gstreamer. I get a bunch of error messages when trying to play a video on a raspberry pi 3 with the 7 inch touchscreen. Im running in a docker environment on the platform…
Sultanen
  • 3,084
  • 5
  • 25
  • 46
2
votes
1 answer

GStreamer Python Playbin multiple video-filters

I am using the playbin using gst-python: player = Gst.ElementFactory.make("playbin", None) player.set_property("uri", "file:///tmp/big_buck_bunny_720p_30mb.mp4") Now I add some video-filters: videocrop = Gst.ElementFactory.make('videocrop',…
reinzor
  • 161
  • 7
2
votes
1 answer

GStreamer Python record and save desktop video

I have the following command line code: gst-launch-1.0 ximagesrc startx=0 use-damage=0 ! video/x-raw,framerate=30/1 ! videoscale method=0 ! video/x-raw,width=1280,height=1080 ! ximagesink Is it possible to use gstreamer in python to record its…
Isocrates
  • 79
  • 1
  • 3
  • 8
2
votes
1 answer

GStreamer Python decodebin, jpegenc elements not linking

I'm starting out using GStreamer using the gst-python bindings. An example I'm working on is reading in an .mp4 file, encoding it in a MJPEG stream and saving it in an .avi container. The pipeline I've built for this is: gst-launch-1.0 filesrc…
brvh
  • 264
  • 3
  • 15
1 2
3
13 14