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
6
votes
0 answers

.so file generation android GStreamer v1.16.1

This is a multi-part question. That I have regarding the .so file generation of GStreamer. I need to upgrade from 1.14.4 to 1.16.1 version. I followed this to generate the required .so files. In the project, gst-launch-remote is being used. If I try…
6
votes
0 answers

How to get timestamps from gstreamer using system clock?

I currently have two command-line pipelines set up to stream video from a Raspberry Pi camera (ArduCam module) to a PC over ethernet; these work great: gst-sender.sh ./video2stdout | gst-launch-1.0 -v fdsrc fd=0 ! \ video/x-h264, width=1280,…
KPM
  • 331
  • 1
  • 13
6
votes
4 answers

Cannot load python gstreamer elements

I'm following a guide at https://mathieuduponchelle.github.io/2018-02-01-Python-Elements.html?gi-language=undefined to create a sample gstreamer element in Python. However, I can't get GStreamer to load it. I've been fiddling with the…
JDong
  • 2,304
  • 3
  • 24
  • 42
6
votes
4 answers

How to rip the audio from a video?

I am on ubuntu and want to convert a mp4 video to an mp3 audio file but can't figure out how. I tried installing ffmpeg but it failed to encode the mp3. I've read the gstreamer does it but I can't figure out how. I have gstreamer and python…
lovefaithswing
  • 1,510
  • 1
  • 21
  • 37
6
votes
0 answers

Have trouble streaming RTP/ RTSP stream from OpenCV-Python

I am trying to use this sample script I found here in order to take OpenCV images and convert them into a rtp/rtsp stream: https://github.com/madams1337/python-opencv-gstreamer-examples/blob/master/gst_device_to_rtp.py Where this is the description…
user3377126
  • 2,091
  • 4
  • 32
  • 39
6
votes
3 answers

Install gstreamer support for opencv python package

I have built my own opencv python package from source. import cv2 print(cv2.__version__) prints: 3.4.5 Now the issue I am facing is regarding the use of gstreamer from the VideoCapture class of opencv. I am trying to get this mimimum working…
Basti Vagabond
  • 1,458
  • 1
  • 18
  • 26
6
votes
1 answer

How to debug gstreamer pipeline with leaking file descriptors after gst_object_unref()?

I have a custom pipeline that looks roughly like this in gstreamer shorthand: gst-launch-1.0 rtspsrc location=rtsp:// ! rtph264depay ! h264parse ! imxvpudec ! *any-sink* any-sink doesn't matter, could be fakesink, imxipusink, or…
adowdy
  • 329
  • 2
  • 16
6
votes
1 answer

How do I read a GStreamer RTSP video stream as WebRTC data using Python aiortc?

I'm trying to create a low latency stream (sub second) using GStreamer and Python's aiortc library for creating a WebRTC peer for the stream data. I've modified the server example from aiortc and can send an audio file and hook into the video…
ahanson
  • 2,108
  • 3
  • 23
  • 38
6
votes
0 answers

dynamically adding udpsrc to rtpbin causes streaming stopped, reason not-linked (-1)

i am trying to add a udp src dynamically to a running pipeline. e.g void addAudioSource(std::string const ip, int const port, int const payloadtype) { std::string description = "autoaudiosrc ! queue ! audioconvert ! audio/x-raw,rate=16000 !…
Ankur
  • 205
  • 4
  • 15
6
votes
1 answer

Streaming with gstreamer to vlc using tcpserversink

I'm attempting to stream an h264 encoded video using gstreamer and tcp. The command is: gst-launch-1.0 videotestsrc is-live=true ! videoconvert ! videoscale ! video/x-raw,width=800,height=600 ! x264enc key-int-max=12 ! rtph264pay config-interval=1…
FrancescoBLT
  • 81
  • 1
  • 5
6
votes
2 answers

Gstreamer change source element dynamically

I have a GStreamer pipeline that pulls video from a rtspsrc element. The rtspsrc element connects to a rtpjpegdepay element. I'd like to be able to change the RTSP URL on the fly. So far what I've been doing is: 1) unlinking the rtspsrc from the…
T. Wallis
  • 189
  • 3
  • 14
6
votes
1 answer

How te retrieve stream statistics in Gstreamer?

First of all I would like to start by saying that I'm really new to Gstreamer and its capabilities so pardon my ignorance if my understanding or implementation was wrong, I am still learning . I would like to build a small streaming application in…
Andi Domi
  • 731
  • 2
  • 19
  • 48
6
votes
0 answers

Python OpenCV memory leak

After each execution of the code, 150 MB of memory leaks out. cam = cv2.VideoCapture('rtsp://admin:admin@192.168.0.64:554/Streaming/Channels/101') ret_val, img = cam.read() ret_val = cv2.imwrite(str(chat_id) +…
Ruslan Z.
  • 61
  • 2
6
votes
1 answer

Fatal error: gst/gst.h: No such file or directory (using CMake)

I'm trying to build a C++ application with gstreamer using CMake. In my CMakeLists.txt file, gstreamer is included with the following lines: find_package(PkgConfig REQUIRED) pkg_search_module(GST REQUIRED gstreamer-1.0>=1.4 …
KMK
  • 1,439
  • 5
  • 21
  • 39
6
votes
2 answers

Which elements are contained in decodebin?

I'm looking to decode and demux an mp4 file with gst-launch-1.0. Instead of using a bin - decodebin - I'd rather work with the seperate elements. Unfortunately, I did not find this. My question is simple: what basic elements are contained in the…
Ricardo
  • 335
  • 1
  • 4
  • 13