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 can you read tracing messages within GStreamer from the C API?

I want to get more insight of a GStreamer pipeline (statistics, resource usage). I saw that this is possible with GStreamer tracing. But I can't find any documentation how to enable and access these messages from the C API. I assume that I can…
Joost Baars
  • 84
  • 10
1
vote
1 answer

After frame convert processing by openCV, I want make rtsp stream. How to do it with GStreamer?

I tried so many solution, but no any one doesn't work. This is my simple code for just get result (rtsp stream). It working without error, but I cant open rtsp stream. And second question how to set stream name like…
1
vote
1 answer

Gstreamer screenshot from RTSP stream is always gray

I'm trying to create screenshot (i.e. grab one frame) from RTSP camera stream using gstreamer pipeline. The pipeline used looks like this: gst-launch-1.0 rtspsrc location=$CAM_URL is_live=true ! decodebin ! videoconvert ! jpegenc snapshot=true !…
rcwnd_cz
  • 909
  • 6
  • 18
1
vote
0 answers

How to get callback to always response in gstreamer

I would like to check for whether buffer has flowed through a branch of my code when I have reattached a branch of the pipeline. The conventional (or at least the tutorial method) method is to attach a probe at one point to probe it for buffer…
user1538798
  • 1,075
  • 3
  • 17
  • 42
1
vote
0 answers

Streaming raspberry pi cam to video room @ Janus gateway on the Internet

We are trying to establish a 1 to 1 audio connection via a web client (chrome web browser) to a PI4 Raspberry device, using Gstreamer in python3. We have used the code found…
1
vote
1 answer

Gstreamer Periodically get the current capabilities from a stream

I am ingesting a video feed from a camera and I want to periodically check if the capabilities of the stream have changed (resolution/audio/encoding(h264/265). For this I added connect_pad_added signal to the rtspsrc and when a pad is available I…
Gatothgaj
  • 1,633
  • 2
  • 16
  • 27
1
vote
1 answer

Streaming from 'rtmpsrc' doesn't require rtph264depay or h264parse

Does anyone know why streaming RTMP with rtmpsrc doesn't require rtph264depay or h264parse in the pipeline? The below pipeline works just fine: gst-launch-1.0 rtmpsrc location=rtmp://ip/test ! decodebin ! videoconvert ! autovideosink And this…
John M.
  • 2,642
  • 7
  • 26
  • 55
1
vote
1 answer

Setting up an USB webcam RTSP stream with GStreamer

I'm using GStreamer to send the camera feed of /dev/video1 (Raspberry Pi's usb webcam) through a RTSP server that I can connect with another Raspberry Pi. Result of v4l2-ctl -d /dev/video1 --list-formats: ioctl: VIDIOC_ENUM_FMT Type: Video…
1
vote
2 answers

How do I buffer and capture an RTSP stream to disk based on a trigger?

I think what I'm asking about is similar to this ffmpeg post about how to capture a lightning strike (https://trac.ffmpeg.org/wiki/Capture/Lightning). I have a Raspberry Pi with an IP cam over RTSP, and what I'm wondering is how to maintain a…
SJoshi
  • 1,866
  • 24
  • 47
1
vote
1 answer

Identify if an RTSP Stream contains PPS and SPS information

I am ingesting different kinds of security camera RTSP streams with gstreamer. In most of the cases I use a pipeline similar to this gst-launch-1.0 rtspsrc location=rtsp:// protocols=4 name=rtspsrc0 rtspsrc0. !…
Gatothgaj
  • 1,633
  • 2
  • 16
  • 27
1
vote
1 answer

How to open GStreamer pipeline in OpenCV

I'm a software engineer in South Korea. I'm trying to open webm video using GStreamer pipeline in opencv program But I can't find any solution to figure out it. I'm using OpenCV 3.4.1 in Visual Studio 19 Community IDE. Below is my code. #include…
SleaveArea
  • 11
  • 2
1
vote
0 answers

GStreamer: Intercept End of Stream Event and restart

I'm implementing an RTSP server which reads a video H264 file stream and makes it available under RTSP protocol. The idea is this: The server creates a pipeline using video1.mp4 as videosrc and then, when video ends and the EOS event is generated,…
HeapOverflow
  • 45
  • 1
  • 5
1
vote
0 answers

GStreamer warnings fist time its used

I'm running GStreamer in Raspbian Buster and I get a bunch of warnings the first time I use it, after a fresh install. This is not very problematic because is only one. However, I want to create a python binary using pyinstaller and each time I run…
Miguel
  • 2,738
  • 3
  • 35
  • 51
1
vote
1 answer

Gstreamer custom-built pipeline not playing/hanging out

The context I'm trying to build a small video cutter to work with video files having multiple audio tracks, as for example, one for the vocal chat, one for the microphone, and one for the in-game audio. The final goal is to be able to exports clips…
Felix Bertoni
  • 400
  • 2
  • 10
1
vote
1 answer

The fdsink element in GStreamer cannot be used to output the correct byte-stream to the pipeline

Because I need to output the RTSP stream pulled from the GStreamer command line to my Python program, I use the fdsink element to output the byte-stream from the pipeline. The video can be displayed correctly by using the xvimagesink element. The…
yuniversi
  • 67
  • 1
  • 6