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
12
votes
1 answer

Write opencv frames into gstreamer rtsp server pipeline

I'm trying to put opencv images into a gstreamer rtsp server in python. I have some issue writing in the mediafactory, I'm new to gst-rtsp-server ancd there's little documentation so I don't know exactly if I'm using the right approach. I'm using a…
WisdomPill
  • 720
  • 4
  • 11
  • 25
12
votes
1 answer

How to open a GStreamer pipeline from OpenCV with VideoWriter

I am capturing video frames with OpenCV VideoCapture. The capturing works fine as I am able to use the frames like this: cv::VideoCapture cap("v4l2src device=/dev/video1 ! videoscale ! videorate ! video/x-raw, width=640, height=360, framerate=30/1 !…
Pavel
  • 203
  • 1
  • 3
  • 9
12
votes
4 answers

g_main_loop_run blocks the Qthread and does not allow to stop video

I have created a separate class for gstreamer to stream videos. This class runs on separate thread by using moveToThread(). I am using Qt5.5 for development. When I issue startcommand on main thread , Qthread starts and gstreamer uses…
samprat
  • 2,150
  • 8
  • 39
  • 73
12
votes
3 answers

Playing an incoming RTP stream with GStreamer

I'm developing a GStreamer application and struggling bit with implementing a player for incoming RTP streams. I am trying to construct a pipeline around the gstrtpbin element. I'm trying to model the pipeline using a gst-launch…
StackedCrooked
  • 34,653
  • 44
  • 154
  • 278
12
votes
3 answers

How to implement a video widget in Qt that builds upon GStreamer?

I want to use Qt to create a simple GUI application that can play a local video file. I could use Phonon which does all the work behind the scenes, but I need to have a little more control. I have already succeeded in implementing an GStreamer…
StackedCrooked
  • 34,653
  • 44
  • 154
  • 278
12
votes
5 answers

Capturing h.264 stream from camera with Gstreamer

I'm trying to capture H264 stream from locally installed Logitech C920 camera from /dev/video0 with Gstreamer 1.0 v4l2src element. v4l2-ctl --list-formats shows that camera is capable to give H264 video format: # v4l2-ctl --list-formats ioctl:…
s.webbandit
  • 16,332
  • 16
  • 58
  • 82
11
votes
3 answers

Gstreamer - Convert command line gst-launch to C code

I have been making a few experiments with GStreamer by using the gst-launch utility. However, ultimately, the aim is to implement this same functionality on my own application using GStreamer libraries. The problem is that it's ultimately difficult…
petersaints
  • 1,899
  • 3
  • 18
  • 25
11
votes
1 answer

Why does python gstreamer crash without "gobject.threads_init()" at the top of my script?

I have written a python script to use gstreamer (pygst and gst modules) to calculate replaygain tags, and it was crashing inconsistently with various gobject errors. I found somewhere that you could fix this by putting the following boilerplate at…
Ryan C. Thompson
  • 40,856
  • 28
  • 97
  • 159
11
votes
2 answers

Gstreamer: Why do I need a videoconvert before displaying some filter?

I am writing a very basic pipeline on GStreamer 1.0 and I would like to understand why I need a videoconvert before displaying the stream. gst-launch-1.0 videotestsrc ! vertigotv ! videoconvert ! autovideosink If I remove the videoconvert from the…
MarAja
  • 1,547
  • 4
  • 20
  • 36
11
votes
2 answers

Install gstreamer-sharp for Xamarin Studio(Gtk#)

I need to install gstreamer-sharp for Xamarin Studio(Gtk# project). I installed OSSBuild and add to references gstreamer-sharp.dll, after debugging I got exception: Gst.GLib.GException: no element "playbin" in Gst.Parse.Launch(String …
konstantin_doncov
  • 2,725
  • 4
  • 40
  • 100
11
votes
6 answers

decode a mp4 video with gstreamer

I want to play a mp4 video in Gstreamer, but i got an error with the x264dec which is not found. I wrote this pipeline gst-launch filesrc \ location=/media/thesis/Gstreamer/pub_Irma.mp4 \ ! qtdemux name=demux demux. ! queue ! faad \ !…
KKc
  • 324
  • 1
  • 5
  • 16
10
votes
6 answers

Looping a video with gstreamer and gst-launch?

I am able to play a video on the command line with gstreamer's gst-launch like this: gst-launch gnlfilesource location=file:///tmp/myfile.mov start=0 duration=2000000000 ! autovideosink This plays the first 2 seconds of the file in /tmp/myfile.mov,…
Amandasaurus
  • 58,203
  • 71
  • 188
  • 248
10
votes
3 answers

gstreamer udp Streaming is slow

I'm working on a videochat application and am having trouble with UDP streaming vs TCP. When I use the pipelines below, the video streams acceptably. (The application itself is in python, but the pipelines are essentially as below) sender:…
powerclam
  • 101
  • 1
  • 1
  • 4
10
votes
2 answers

How to convert a video (on disk) to a rtsp stream

I have a video file on my local disk and i want to create an rtsp stream from it, which i am going to use in one of my project. One way is to create a rtsp stream from vlc but i want to do it with code (python would be better). I have tried opencv's…
shahidammer
  • 1,026
  • 2
  • 10
  • 24
10
votes
1 answer

gstreamer critical error when trying to capture video using webcam python opencv

i'm trying to take a video with webcam using opencv and python with a simple code import numpy as np import cv2 cap = cv2.VideoCapture(0) print('cap.isOpened') if cap.isOpened(): print ('cap is opened') while(True): …
Shinogami Rei
  • 101
  • 1
  • 1
  • 5