Questions tagged [gstreamer]

Questions related to GStreamer (also known as Gst), an open source multimedia framework, powering everything from Linux servers and Linux desktop systems to a host of embedded devices.

GStreamer is a pipeline-based multimedia framework that links together a wide variety of media processing systems to complete complex workflows. For instance, GStreamer can be used to build a system that reads files in one format, processes them, and exports them in another. The formats and processes can be changed in a plug and play fashion.

GStreamer supports a wide variety of media-handling components, including simple audio playback, audio and video playback, recording, streaming and editing. The pipeline design serves as a base to create many types of multimedia applications such as video editors, transcoders, streaming media broadcasters and media players.

GStreamer has a range of bindings for various languages such as Go, Go, Rust, Vala, C++, Perl, GNU Guile, C# and Ruby. GStreamer supports gobject-introspection and can hence be used from JavaScript via the node-gtk package.

The primary purpose of this tag is for questions regarding the programmatic use of GStreamer via one of these bindings.

4881 questions
1
vote
0 answers

Recommended way for using GStreamer with Qt and QML?

Because of display up to 4 UDP/RTP streams in different modes (single / dual / quad) I first decided to use GStreamer. It works but it is not easy to handle and I can not switch between viewing modes during runtime. To solve that issue I want to use…
Michael
  • 43
  • 5
1
vote
1 answer

How to receive byte-stream by using gstreamer with python subprocess module or gst-launch-1.0 command?

I want to receive byte-stream by using gstreamer with python subprocess module. Now I can successfully use ffmpeg to pull the byte-stream. As shown below. import cv2 import subprocess as sp height = 714 width = 420 rtsp_url =…
yuniversi
  • 67
  • 1
  • 6
1
vote
3 answers

Play rtsp stream from webcam using Gstreamer

I want to stream video from an IP camera TS-WPTCAM. I can directly stream the video in vlc using rtsp://192.168.100.50:19112/ipcam_h264.sdp but when i try with Gstreamer, it does not play the video. Below is the output. Lnx-Workstation:~$…
codeCat
  • 51
  • 2
  • 12
1
vote
0 answers

How to use splitmuxsink in a dynamic pipeline

What is the correct way of using splitmuxsink in a dynamic pipeline? Previously I have used filesink to record (no problem what so ever) but there is requirement to save the file in segments so I have tried to use splitmuxsink in dynamic…
user1538798
  • 1,075
  • 3
  • 17
  • 42
1
vote
0 answers

How can I stream with gstreamer WebRTC protocol (webrtcsink-webrtcsrc-webrtcbin) between jetson nano and PC (gstreamer version 1.14.5)?

I need an example to streaming with webrtcsink-webrtcsrc-webrtcbin using gst-launch-1.0 between Jetson nano (gstreamer version 1.14.5) and PC (gstreamer version 1.20). Give a pipeline that will send a h264 video stream between two devices (jetson -…
1
vote
1 answer

what is the correct input for gstreamer to get rtsp stream into opencv on windows 10

I am trying to get a realtime video input into opencv. My video input is coming from a ip camera on my localnetwork, that sends a rtsp video feed. What I want to make is a body tracker that uses the ip camera feed. Whit my usb hd720 Logitech webcam…
BramSanden
  • 11
  • 2
1
vote
1 answer

Gstreamer, how to play udp stream using C on android?

I'm trying to play udp stream using Gstreamer on android. (I've used this tutorial from the official Gstreamer website). I can play rtsp and https streams, but when I pass udp uri (like this: udp://@238.0.0.1:1234) nothing happens (there is a black…
Jan Rozenbajgier
  • 534
  • 4
  • 13
1
vote
0 answers

Unable to import 'gi' after using MSYS2 to install PyGObject

I am currently trying to run the following code: import cv2 import gi import numpy as np gi.require_version('Gst', '1.0') from gi.repository import Gst The error i am getting is 'Unable to import 'gi'' I have followed the instructions here:…
1
vote
0 answers

Gstreamer splitmuxsink resetting timestamp on split

I've been using splitmuxsink to split the recordings of a live video stream by length or by the "split now" cmd. The resulting video files are all timestamped with the "global time" from when the pipeline started. File1 00:00 - 05:00 File2 05:00 -…
Boregard
  • 11
  • 1
1
vote
1 answer

DARKNET/OPENCV/GSTREAMER: module v4l2src0 reported: Failed to allocate required memory

I'm trying to run the Yolov4-tiny demo of Darknet but am encountering the following error: [WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage openCV | GStreamer warning: Embedded video playback halted; module v4l2src0…
1337_N00B
  • 47
  • 8
1
vote
0 answers

How to use a GStreamer pipeline to play a test video in a Qt QVideoWidget on Windows

I am trying to get a GStreamer test video to play in a Qt QVideoWidget using the Qt example code from here but the video never plays. The Qt widget is just a blank window like in this screenshot. The code I am using is listed below. I am using Qt…
user3716193
  • 476
  • 5
  • 21
1
vote
0 answers

Unable to install gstreamer development packages in redhat/ubi8 docker image

I want to install gstreamer library in a Redhat linux docker image. My Dockerfile is as simple as this: FROM redhat/ubi8 AS builder RUN dnf --disableplugin=subscription-manager -y install gstreamer1-devel gstreamer1-plugins-base-tools gstreamer1-doc…
Saeed
  • 11
  • 2
1
vote
1 answer

Creating procedural MPEG-4 video with pygst

I hope to find how to create MPEG-4 video file with pygst (other frameworks can be suggested). The question has three parts How to feed generated video data in pygst pipeline from Python frame buffer How to save this stream to MPEG-4 file How to…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
1
vote
2 answers

open h.264 video stream with gpu

I decode h.264 on Jetson Nano using Open-cv. I use this Code: import cv2 try: cap = cv2.VideoCapture('udp://234.0.0.0:46002', cv2.CAP_FFMPEG) print(f"cap = {cap}") except Exception as e: print(f"Error: {e}") if not cap.isOpened(): …
1
vote
1 answer

How to play audio with gstreamer in C?

I'm trying to play audio with Gstreamer in C. I'm using Laptop, Ubuntu 16. To play I use this pipeline and it's working: gst-launch-1.0 filesrc location=lambo-engine.mp3 ! decodebin ! audioconvert ! autoaudiosink But when I convert it to…
Jimmy
  • 147
  • 1
  • 11