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

How to properly receive video via gstreamer in Unity from c++ sender

I am trying to transfer a stream using Opencv using VideoWriter (c++ side using WSL) to get it on another pc on the network using VideoCapture (Unity side). Inspired by this example: https://opencv94.rssing.com/chan-61447116/article1201-live.html I…
felipe
  • 1,212
  • 1
  • 15
  • 27
1
vote
1 answer

How to specify caps for Gstreamer in Rust?

When I do: gst-launch-1.0 v4l2src ! videoconvert ! waylandink I get a video stream and from gst-device-monitor-1.0 I can say it's video/x-raw When I do: gst-launch-1.0 v4l2src ! video/x-h264 ! avdec_h264 ! videoconvert ! waylandink I get the…
Yuutsuna
  • 192
  • 2
  • 13
1
vote
0 answers

Gstreamer plugin is never called

How is it possible that the following Python Gstreamer plugin is correctly initialed, and that data flows through it (see attached pipeline) without printing anything besides the print in the __init__ function? import logging import timeit import…
user1315621
  • 3,044
  • 9
  • 42
  • 86
1
vote
1 answer

x264 [error]: baseline profile doesn't support 4:2:2

I can play the video stream from my UVC camera using the following: gst-launch-1.0 v4l2src device=/dev/video4 ! decodebin ! autovideosink Now, I would like to convert the stream to h264, in order to pipe it further (i.e. not necessarily to…
JonasVautherin
  • 7,297
  • 6
  • 49
  • 95
1
vote
0 answers

seeking replay media in gst-rtsp-server

I am bit uncertain over the passing of seek event to an rtsp-server server. Would need some advice DESCRIPTION I am trying to code for a rtsp-server using gst-rtsp-server library which should help in replay of certain files(non-live source). I…
user1538798
  • 1,075
  • 3
  • 17
  • 42
1
vote
0 answers

How to play a PS RTP stream with Gstreamer

I'm tring to play a RTP video stream which is coming from an IP Camera. From SDP, the RTP stream contains a MPEG PS stream in it, but I cannot found any proper depay plugin to get PS packet from RTP packet in Gstreamer plugins(good, bad, ugly). The…
Jarod HAO
  • 11
  • 1
1
vote
0 answers

Opencv+Gstreamer cv2.VideoCapture read video FPS issue

I just tried to use Opencv+Gstreamer to accelerate video stream as follow. cv2.VideoCapture(cap = cv2.VideoCapture('filesrc location={} ! qtdemux ! queue ! h264parse ! omxh264dec ! nvvidconv ! videoconvert ! video/x-raw, format=BGR !…
Edward Chang
  • 141
  • 1
  • 2
  • 11
1
vote
0 answers

gstreamer remapping microphone audio to rear speakers

I would like to send audio from my computer microphone to my rear speakers. Microphone and speakers are connected to the same sound card. I have 4 channel setup in Linux Mint. I tried with gstreamer code: gst-launch-1.0 audiotestsrc !…
Tom
  • 21
  • 3
1
vote
1 answer

Python equivalence for gst_element_link_many?

I could not seem to link more than 3 elements in a gst pipeline in Python. For example, I try to implement the following cli command in Python. gst-launch-1.0 filesrc location=cooldance.ogg ! oggdemux ! theoradec ! videoconvert !…
Chu Bun
  • 513
  • 1
  • 5
  • 17
1
vote
0 answers

Multi-Camera in WebRTC application with Gstreamer C++

In my pipeline I would like to use 2 different v4l2 source. But When I used like code 1 with double v4l2src , I can get some error like "ERROR GST_PIPELINE grammar.y:740:gst_parse_perform_link: could not link h264parse1 to payloader" pipe1 = …
1
vote
0 answers

Gstreamer Python - plugin works with gst-launch-1.0 but not when the pipeline is created manually

I am using gstreamer v1.14.5 with Python bindings. I have created a plugin by subclassing the GstBase.BaseTransform class and overriding its do_transform_ip method. The plugin draws a rectangle on the video frame. class…
GunnerFan
  • 3,576
  • 3
  • 25
  • 38
1
vote
0 answers

Anyway to use GStreamer to send Linear PCM + Metadata over the network?

I was able to send metadata with H264 using GStreamer RTP lib's gst_rtp_buffer_add_extension_twobytes_header(). The rtph264pay is RFC 3984 has does support this. But it does not work for PCM. Calling gst_rtp_buffer_add_extension_twobytes_header() in…
1
vote
1 answer

Gstreamer -- Unable to link audio when using the hlssink2 sink

I am recording audio with video through gstreamer. I am able to save .ts file using hlssink2. The other components are also working such as multisink, autoaudio and autovideosink but I want to record it live through hlssink2. Hlssink2 is outputting…
Rohit Daid
  • 11
  • 1
1
vote
0 answers

Live streaming with Gstreamer to the web

I'm trying to stream a live input to a web page, hosted locally. I guess it should be pretty easy but I can't get where I'm wrong. Here's my setup: a DSLR camera with decent video capabilities a Rpi running an up-to-date Raspbian On the software…
Pylou
  • 11
  • 1
  • 3
1
vote
0 answers

Use Gstreamer to write jpeg encoded data as video using appsrc

I have a python script that receives jpeg encoded data using following pipeline and sends the jpeg data on a port. rtspsrc location=rtsp://192.168.100.40:8554/ latency=0 retry=50 ! rtph265depay ! h265parse ! avdec_h265 ! videoscale ! videorate !…