Python bindings for the Gstreamer multimedia framework
Questions tagged [python-gstreamer]
211 questions
0
votes
0 answers
Gstreamer get image width and height
I have a simple gstreamer pipeline which looks like :
| Filesrc | --> | PngDec | --> | ImageFreeze | --> | Queue | --> | Compositor | --> | Fake Sink |
location (input) of the filesrc is a png file of size 400 X 600.
In the pipeline how do I get the…

user1918858
- 1,202
- 1
- 20
- 29
0
votes
1 answer
what is the use of "mux." in pipeline command
This pipeline encodes a test audio and video stream and muxes both into an FLV file.
gst-launch-1.0 -v flvmux name=mux ! filesink location=test.flv audiotestsrc samplesperbuffer=44100 num-buffers=10 ! faac ! mux. videotestsrc num-buffers=250 !…

Sahil Saxena
- 131
- 4
- 11
0
votes
1 answer
hlssink does not split video and does not create a playlist
I work with gstreamer and have the following pipeline:
appsrc name=source is-live=true block=true format=GST_FORMAT_TIME
caps=video/x-raw,format=BGR,width=1280,height=720,framerate=30/1
! videoconvert ! video/x-raw,format=I420 ! x264enc !
…

gonzo
- 549
- 1
- 8
- 14
0
votes
1 answer
Read encoded frames from webcam with python opencv
At this moment I have the VideoImageTrack class I show bellow (adapted from here) that returns an av VideoFrame. The script I show works fine. My problem is that the frame encoding step:
VideoFrame.from_ndarray(image, format="bgr24")
is quite slow.…

Miguel
- 2,738
- 3
- 35
- 51
0
votes
1 answer
VLC doenst work on 1 of 3 Pipelines with same encoding and depay from gst-rtsp-server
I have a strange thing here, I have 3 different Media Factories added to my RTSP Server. One of them (third one below) I can only play with gst-launch on a different machine.
The first two below works fine on vlc and gst-launch, what I didn't…

Christoph
- 647
- 5
- 18
0
votes
0 answers
GStreamer "Bus error" when using an input-selector
I need to create a GStreamer pipeline with an input-selector in it, to switch between multiple input sources, but every time I try to add such a component I get a completely undescript Bus error - and at this point I'm stuck, there's no useful…

NeuronQ
- 7,527
- 9
- 42
- 60
0
votes
1 answer
Is there a GStreamer filter that does normalization on an image?
I'm trying to create a GStreamer pipeline that can do image processing. Specifically, I'm doing image pre-processing to be used by machine learning networks. So this pipeline will do all the necessary pre-processing steps before it is fed to the…

Chris L
- 1
0
votes
2 answers
Handling errors with gst-rtsp-server Python bindings
I have a simple Python program creates an RTSP stream using gst-rtsp-server. It works, but as-is there's no error handling. If the pipeline has a typo or there's some issue connecting to the video source, I don't see a stack trace or any logging.…

Velovix
- 527
- 1
- 6
- 19
0
votes
1 answer
Gstreamer : 'src' element task going to PAUSE state when one of the elements in pipeline is added dynamically
I have the following pipeline :
v4l2src -> queue -> h264parse -> avdec_h264 -> identity ->
imagefreeze(added/removed dynamically) -> glupload -> glcolorconvert ->
gltransformation -> glimagesink
I have a added a probe on the element identity…

gst
- 1,251
- 1
- 14
- 32
0
votes
1 answer
Gstreamer splitmuxsrc does not play splitmuxsink-made MP4 files
Good afternoon,
I'm saving RTSP stream as MP4 segments.
"gst-launch-1.0 -e rtspsrc location=rtsp://192.168.0.108/profile2/media.smp ! splitmuxsink location=storage/%04d.mp4 max-size-time=10000000000 "
And would like to play the videos I've saved…

dow_jones
- 9
- 3
0
votes
1 answer
The video starts from the beginning when we set suburi
self.player.set_state(Gst.State.READY)
self.player.set_property("suburi", name)
self.player.set_property("subtitle-font-desc", "Sans, 18")
self.player.set_state(Gst.State.PLAYING)
When a certain button is clicked,…

Sumedh Pendurkar
- 43
- 1
- 9
0
votes
1 answer
Pepper Live 2-way Audio Streaming Error
I'm trying to establish a real-time audio communication between Pepper's tablet and my PC. I'm using Gstreamer to establish that. The audio from Pepper's mic to PC is working but there seems to be no audio from my PC to Pepper's tablet. What am I…

androadi
- 25
- 7
0
votes
1 answer
How to destroy Gstreamer RTSP Server Object without exiting main application
I'm creating a GstRTSPServer, and associating a service i.e. port to it using GstRtspServer.RTSPServer.set_service(). Now I want to destroy or kill the server so as to free the port, but without exiting my main application, so that port can be…

Rhythm Chopra
- 103
- 3
- 9
0
votes
1 answer
Python-gst -> List All Properties of an Element
If it possbile to recive all element properties that a Element has?
I can list the elements but I dont know (also after reading docs)
how I can access the properties.
from gi.repository import Gst
Gst.init()
reg = Gst.Registry.get()
for x in…

Christoph Acs
- 68
- 1
- 10
0
votes
1 answer
Gstreamer python get bus message reconnection
I have Tkinter application with some gstreamer pipelines to display different streams and I'd like to detect when one of the pipelines loses connection. I tried with bus messages but it seems to me that it doesn't post the message at all. I created…

WisdomPill
- 720
- 4
- 11
- 25