Questions tagged [python-gstreamer]

Python bindings for the Gstreamer multimedia framework

175 questions
1
vote
1 answer

Make GStreamer appsink Receive FPS same like streaming video or rtsp stream?

My pipeline grabs frame from mp4 and save to callbacks register using g_signal_connect gst-launch-1.0 filesrc location=test.mp4 ! qtdemux ! h264parse ! v4l2h264dec ! capsfilter caps=video/x-raw,format=I420 ! appsink name=sink Sharing cpp code to…
user15151965
1
vote
0 answers

gstreamer dynamically swap video sources

I am making a program that should display two videos in picture-in-picture mode, and let the user to pick the primary video input (which will be shown in the 1920x1080 video sink). I use python to create the pipelien and read data from the appsink.…
PYPL
  • 1,660
  • 1
  • 21
  • 36
1
vote
1 answer

How to add buffer for RTSP server?

I’m trying to create the following pipeline: On Jetson: 1.1) camera -> … - > udpsink 1.2) udpsrc -> rtspserver On Host PC 2.1) rtspsrc -> jitterbuffer -> detection -> tracker -> analytics The main question is My Jetson connected to Host PC over…
1
vote
0 answers

Python and GStreamer: Videoconference app

I really need help, I need to do a videoconference app using python and gstreamer. I'm really lost on how to do it. I tried doing the following code: # coding=utf-8 import gi,sys gi.require_version('Gst', '1.0') from gi.repository import…
1
vote
1 answer

Where are Gstreamer bus log messages?

I am trying to stream a .mp4 to a RTSP server using Gstreamer in python import sys import gi gi.require_version('Gst', '1.0') gi.require_version('GstRtspServer', '1.0') gi.require_version('GstRtsp', '1.0') from gi.repository import Gst,…
1
vote
0 answers

How to get Gstreamer to capture udp stream of images pushed individually by buffer

I currently have a gstreamer pipeline in python that pushes camera images to the pipeline buffer, and displays with autovideosink. However I'm having issues pushing it to a udp pipeline. what currently works in a python program: udp_sink_pipeline =…
1
vote
0 answers

Missing Plugin when using gst-discoverer

Getting error when using gst-discoverer script. Is there any way to get the name? When set the VERBOSE mode on (GST_DEBUG=3) , got the following msgs: basesrc gstbasesrc.c:3583:gst_base_src_start_complete: pad not activated yet WARN …
stackjohnny
  • 375
  • 4
  • 17
1
vote
3 answers

Seamless video loop in gstreamer

I'm trying to loop the video playback using gstreamer and it's python bindings. First attempt was to hook EOS message and generate seek message for the pipeline: import gi gi.require_version("Gst", "1.0") from gi.repository import Gst import…
vintch
  • 71
  • 1
  • 7
1
vote
0 answers

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
  • 121
  • 7
1
vote
1 answer

Python-GStreamer: Access class members inside callback function with fixed arguments

I have a callback, that is provided by GStreamer-Python bindings which accepts fixed number of arguments. Here is the API : add_probe I call this function from inside a class function. Below is the pesudo code: class Example: def __init__(self): …
gst
  • 1,046
  • 1
  • 11
  • 28
1
vote
1 answer

Python-Gstreamer for dynamic control of element properties

I am using Gstreamer 1.0 with Python bindings. Below is the pipeline I am trying to build considering Opengl plugins : gltestsrc -> gltransformation -> glimagesink I am trying to modify the properties of element 'gltransformation' dynamically…
gst
  • 1,046
  • 1
  • 11
  • 28
1
vote
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
  • 254
  • 3
  • 14
1
vote
2 answers

TypeError: Gst.Bin.add() takes exactly 2 arguments (5 given)

I have been using gstreamer since some few weeks. Still I am not much aware of how things work internally. So I was following some tutorials online to learn how I can use it in efficient way. Here is the Github link to the tutorials…
Urvish
  • 507
  • 1
  • 7
  • 16
1
vote
0 answers

How to change the currently playing file in a gstreamer pipeline without restarting the pipeline?

For some reason we have had trouble finding working solutions to this problem online. Right now our source is a filesrc element. Our current non-solution is to change the pipeline's state to READY, change the location property, and set the…
mikkelmk
  • 51
  • 3
1
vote
0 answers

Installation of Pyobject in windows 10 Anaconda environment.

I am trying to use gstreamer with my Anaconda environment on Windows 10 machine. I get gstreamer successfully installed on my machine. The version of Gstreamer is 1.13, the latest for windows. But now I want to use it through Python IDE. But as my…
Urvish
  • 507
  • 1
  • 7
  • 16