Questions tagged [python-gstreamer]

Python bindings for the Gstreamer multimedia framework

175 questions
2
votes
0 answers

How to create MPEG2 Transport Stream in real-time?

I'd like to write software that generates audio in real-time and streams it over the network/internet as an MPEG2 Transport Stream. Ideally the solution would be in Python (though Java would be ok too). Basically I'd like to end up with code that…
aengus
  • 21
  • 1
2
votes
4 answers

Gstreamer EOS message handling in filesink to change location on the fly

Trying to switch output files on the fly, but can't handle EOS. http://gstreamer-devel.966125.n4.nabble.com/Dynamically-updating-filesink-location-at-run-time-on-the-fly-td4660569.html Quote: Assuming you have a pipeline that looks like this: …
Velkan
  • 5,899
  • 5
  • 33
  • 69
2
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…
2
votes
1 answer

Python GStreamer: getting Meta Api for appsink buffer

I am using GStreamer to capture video from a USB webcam (Logitech C920) in H264, and I want to analyze the h264 frames before potentially decoding or streaming them to the net. Based on different sources on the internet, I constructed a python2.7…
user37544
  • 165
  • 1
  • 7
2
votes
1 answer

Improve OpenGL rendering speed

I've built a small video player that grabs frames (as a string/byte array) from a movie by using GStreamer and then renders each frame to an OpenGL texture. This goes fine up to 30 fps 1080p movies, but when I try a 60 fps movie, it can't keep up…
2
votes
1 answer

Python + GStreamer: scale video to window

I'm having some trouble rescaling video output of GStreamer to the dimension of the window the video is displayed in (retaining aspect ratio of the video). The problem is that I first need to preroll the video to be able to determine its dimensions…
Daniel Schreij
  • 663
  • 6
  • 22
2
votes
1 answer

How Do I Add and Remove Dynamic Audio Devices in Python Gstreamer

I am attempting to write a Gstreamer Python program that will control the Whole Home Audio system in my house. The basic premise is that I will have multiple different options for sources (Pandora, MP3, Google Music, etc.) and will be able to play…
Amazinzay
  • 85
  • 1
  • 7
2
votes
0 answers

Drawing pixels on top of Gstreamer

I'm trying to build an application in Python that can draw things on top of video. I have not found a way to do this using gstreamer + Tkinter; I don't think tk lets you do transparent Canvases. So I've looked at using gtk instead, but I'm a bit…
Roy
  • 185
  • 6
2
votes
1 answer

RTMP via GStreamer and Python

I am trying to port the following GStreamer command into a python program: gst-launch-0.10 -v -m v4l2src ! queue ! ffmpegcolorspace ! queue ! x264enc pass=pass1 threads=0 bitrate=1536 tune=zerolatency ! queue ! flvmux name=mux pulsesrc ! queue…
Dominik Schreiber
  • 679
  • 2
  • 15
  • 25
1
vote
1 answer

draw graph of encoded bit rate of video vs play location

I am trying to measure the variation in the bandwidth required when a video is played over the network. For this purpose, i need to make a graph of the bandwidth required to play the video continuously at any time during the video. I tried…
1
vote
0 answers

Save webcam snapshot to file

When I run this, I get the cam snapshot on the file: gst-launch-0.10 v4l2src num-buffers=1 ! jpegenc ! filesink location=pic.jpg I tried to put that in Python and instead of the pic I get an empty file. Can someone tell where the mistake is? It's a…
1
vote
1 answer

gstreamer - Wadsworth's constant thumbnailer

I'm trying to build a video thumbnailer using gst-python, it looks like this. from __future__ import division import sys import logging import pdb _log = logging.getLogger(__name__) logging.basicConfig() _log.setLevel(logging.DEBUG) try: …
joar
  • 11,869
  • 1
  • 26
  • 51
1
vote
1 answer

Video Transitions with GStreamer & GNonLin not working

I've been trying to combine 2 videos together with gstreamer with a short transition (like smpte) between them using gstreamer & gnonlin in python. However I can't get the gnloperation/smpte transition to work. Goal Below is a programme. I want it…
Rory
  • 48,706
  • 67
  • 174
  • 234
1
vote
0 answers

How to create GStreamer RTSP server with variable frame rate

I have an application which requires me to consume an RTSP stream, extract frames from the video, perform some processing on the video frames, annotate the frames, then restream the video as a new RTSP stream. Sounds simple enough. I am using the…
cyrusbehr
  • 778
  • 1
  • 6
  • 21
1
vote
0 answers

How to stream audio in GStreamer between 2 python scripts that work on the same computer?

I have 2 pieces of code that works fine up until now. Code A (FileRecord) creates a pipeline and writes whatever it hears from mic to an .ogg file named file.ogg. Code B (FilePlayer) must start after the user stops manual (Ctrl + C) the execution of…
1 2
3
11 12