All Questions
450
questions
51
votes
6
answers
29k
views
Material to learn GObject and Glib [closed]
I am comfortable with C. but need to learn GObject and Glib for gstreamer. All i found on net is Gobject reference manual. Its good but looking for tutorial for Gobject/Glib as the main focus is on ...
20
votes
3
answers
30k
views
GStreamer plugin search path?
Can I somehow tell GStreamer to look for plugins in a specified directory?
17
votes
3
answers
23k
views
Adding opencv processing to gstreamer application
I'm trying to do the following: receive video stream using gstreamer and process it with opencv. I've found few solutions, and one of them is to write video into (from gstreamer) fifo and then read it ...
13
votes
1
answer
8k
views
What is the difference between byte stream and packetized stream in gstreamer rtsp h264 depayloader
In the gstreamer rtp h264 depayloader, there is a check to see if the incoming stream is a byte stream or packetized stream.
Can anybody tell me what is the difference between these two formats?
...
11
votes
3
answers
10k
views
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 ...
9
votes
5
answers
18k
views
Play audio and video with a Pipeline in Gstreamer
Is there a way make a pipeline that will play any video file (which will contain audio too)? I have tried linking elements like:
filesrc -> decodebin
along with
queue -> audioconvert -> ...
9
votes
2
answers
21k
views
Using custom camera in OpenCV (via GStreamer)
I'm using Nitrogen6x board with ov5640 camera(mipi).
The camera is not using standard v4l/v4l, but we can stream video using GStreamer for its driver (mfw_v4l):
gst-launch mfw_v4lsrc ! autovideosink
...
8
votes
6
answers
36k
views
what is default path for header file included in c program?
see if i write in any c file like
#include "header.h"
then it will search this file in current directory
but when i write
#include <header.h>
then where it will go to find this file ?
...
8
votes
2
answers
9k
views
Gstreamer1.0 : link a decodebin to videoconvert
I have the following pipeline which works fine:
gst-launch-1.0 -v filesrc location=/home/Videos/sample_h264.mov ! decodebin ! videoconvert ! autovideosink
I want to write a C program to do the same ...
8
votes
2
answers
37k
views
How to control the frame rate in a gstreamer pipeline?
I have astream encoded in 60fps, but my gstreamer pipeline is playing it in fps, so the video appears to be very slow. I have created a gstreamer pipeline as
appsrc name=src ! video/x-h264 ! ...
8
votes
2
answers
1k
views
Launch GstRTSPServer from GstElement pipeline
I'm doing a Gstreamer 1.0 application in C.
The pipeline is built, based on user configuration and system "state" during runtime.
Therefore I'm using multiple GstElements which are later added and ...
7
votes
4
answers
287
views
How can a small change in a code which is never executed make a difference?
I have a very strange problem and since it is not possible for me to send code I will try to explain.
This is more like philosophical problem - I hope someone has time/knowledge to think about this.
...
7
votes
2
answers
7k
views
Limitations of gst_parse_launch()?
From what i understand, gst_parse_launch() creates a new pipeline based on command line syntax describing the pipeline. It automatically takes care of all the intricate details of request pads, ...
7
votes
2
answers
8k
views
How to program videomixer using Gstreamer C API
I am trying to simulate the following gstreamer pipeline using the C API:
gst-launch -e videomixer name=mix ! ffmpegcolorspace ! xvimagesink \
videotestsrc pattern=1 ! video/x-raw-yuv,width=100,...
7
votes
1
answer
4k
views
Memory not freed after gstreamer pipeline set to GST_STATE_NULL
My application requires gstreamer pipeline to be restarted multiple times.
But after setting the pipeline to GST_STATE_NULL and calling unref on the pipeline, memory appears to be not freed.
After ...
6
votes
1
answer
7k
views
Issues linking against gstreamer libraries ubuntu 11.10
So I am starting a project that is going to make use of the gstreamer libraries. I am running the test project from the gstreamer documentation and am getting the following error.This program worked ...
6
votes
3
answers
2k
views
Gstreamer 1.0: Video from tutorials is not playing on MacOS
I am trying to compile this tutorial Tutorial_01 on my MacOS 10.11.3 with Xcode 7.2 and not getting any video: I can hear an audio but it seems like the video window is lost somewhere.
I tried ...
6
votes
0
answers
5k
views
GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable
I'm trying to make RTSP server based on Gstreamer 1.0 1.4.5 plugin. Source code of the example is taken from here. WITH_TLS and WITH_AUTH flags are not enabled.
I'm compiling it using Visual Studio ...
5
votes
2
answers
10k
views
Gstreamer pipeline stuck in prerolling state when giving only audio to video pipeline
If I have a pipeline like:
gst-launch filesrc location="/home/dk/Music/Vangelis - Alpha.mp3" !
decodebin2 name=dec !
queue ! ffmpegcolorspace ! autovideosink dec. !
queue ! audioconvert ! ...
5
votes
2
answers
13k
views
How to embed video in GTK+ application window using GStreamer & XOverlay?
I am trying to write a small media player using GTK+ and GStreamer and currently using the XOverlay Interface to embed the video in a GtkDrawing Area INSIDE the mainwindow.
The program was compiled ...
5
votes
1
answer
7k
views
How to get h264 frames via gstreamer
I'm familiar with ffmpeg, but not with GStreamer. I know how to get a H264 frame through ffmpeg, for example, I can get a H264 frame through AVPacket. But I don't know how to use GStreamer to get a ...
5
votes
2
answers
21k
views
Gstreamer receive video: streaming task paused, reason not-negotiated (-4)
I'm trying to transmit RTP video stream through network via UDP protocol.
Here is pipeline code on sender side:
https://gist.github.com/mgalushka/68d8ee034849a7db4f1f234e73a41405
I can receive and ...
5
votes
2
answers
5k
views
GStreamer on Android
Can anyone give me any tips on getting GStreamer to work on Android. I have never used it before and I would like to use it with FFmpeg (I already have FFmpeg compiled and works fine on Android). I ...
5
votes
2
answers
4k
views
How can I test my gstreamer plugin? Is there any standard test-suite for gstreamer plugin testing?
Suppose I have made my gstreamer based plugin. I have installed it and it is working properly with gst-launch application.
But now I want to test my gstreamer plugin. So is there a standard test-...
5
votes
2
answers
2k
views
Gstreamer H264 UDP -> WebRTC Restreaming
I have a Ricoh THETA Z1 360 degrees camera that outputs a 4K 360 stream. I'm using their own libuvc-theta-sample for retrieving the video stream and getting it into Gstreamer. I've used the following ...
5
votes
1
answer
2k
views
Reconnect RTSP stream in Gstreamer pipeline
I have a working Gstreamer pipeline using RTSP input streams. To handle these given RTSP input streams, the uridecobin element is used.
My goal is to reconnect to the RTSP input streams when internet ...
5
votes
1
answer
2k
views
How can i get the application code created by gst-launch or gstreamer pipeline editor?
see if i have made one application like below by gst-launch commnad
gst-launch -v filesrc location=ed_hd.mkv ! matroskademux ! vorbisdec ! audioconvert ! audioresample ! autoaudiosink
when ever i ...
5
votes
1
answer
6k
views
symbol loopkup error: libgobject-2.0.so.0:undefined symbol: g_bytes_unref
I am trying to compile a gstreamer rtsp server under ubuntu 12.10 using Qt creator.
The code successfully compiled but give me this exception and the program exit:
symbol loopkup error: libgobject-...
5
votes
0
answers
2k
views
GStreamer hello world program in visual studio 2010
I m trying to run a simple GStreamer Program (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html) in visual studio 2010.
I have included the library and ...
4
votes
8
answers
1k
views
what is the advantage of using goto in this code?
static gboolean
gst_fd_src_start (GstBaseSrc * bsrc)
{
GstFdSrc *src = GST_FD_SRC (bsrc);
src->curoffset = 0;
if ((src->fdset = gst_poll_new (TRUE)) == NULL)
goto socket_pair;
...
4
votes
2
answers
25k
views
gstreamer appsrc test application
I am trying to learn gstreamer appsrc plugin to play AV from a transport stream demultiplexer that I wrote (I know plugins are already available, I wanted to do it myself to learn). I have extracted ...
4
votes
1
answer
8k
views
GStreamer tutorial not working
I'm working my way through the GStreamer documentation. I'm running on OSX 10.8.5 and I can initalize GStreamer using the example 4.1 code (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/...
4
votes
2
answers
3k
views
How to debug my C gstreamer code?
I succesfully program and execute the helloworld.c in the Application Development Manual page 43. It works very well.
The compilation was done using this command line
gcc -Wall helloworld.c -o ...
4
votes
1
answer
2k
views
GstMultifilesink post-messages callback
I would like to know how to get a callback from the gstreamer multifilesink element using post-messages=TRUE property? In the code below my_bus_callback function is never called.
Multifilesink docs ...
4
votes
2
answers
12k
views
gstreamer: How do I change the input/output resolution of webcam?
I want to change the output/input resolution of my Webcam using gstreamer.
for example i want to change the resultion from 800x600 to 640x480 Pixel.
I cannot find the syntax in C for doing this. Can ...
4
votes
3
answers
10k
views
how to record audio and video in gstreamer
I am new to gstreamer, I want to record both audio and video save it into .mp4 format, Recording video using webcam and audio using MIC
Here this is my pipeline
gst-launch-1.0 -e v4l2src ! queue ! ...
4
votes
2
answers
9k
views
GStreamer gst_element_factory_make fails
I'm trying out a GStreamer test application, but at runtime the following line fails:
demuxer = gst_element_factory_make ("oggdemux", "ogg-demuxer"); // returns NULL
I am using MacOSX and installed ...
4
votes
1
answer
1k
views
Interrupt handle is not called after added with g_unix_signal_add
I am learning about gstreamer and I have a simple program where I want to end a stream gracefully after pressing CTRL+C in Linux. For this, I've read the source code for gst-launch and saw that ...
4
votes
2
answers
10k
views
Gstreamer C Code is failed with streaming stopped, reason not-negotiated (-4)
I am learning Gstreamer and whatever I have achieved through Gstreamer tools, I am trying to implement the same with gstreamer application using C language.
Below command streamed a mp4 video file ...
4
votes
1
answer
533
views
How can I read and carry out an user command from the console (stdin) while main loop is running in Gstreamer?
I can stream a video, but also I want to get user commands from the console (stdin) and carry out the command while streaming the video. For example, if user enters a text 'exit' to command line, I ...
4
votes
1
answer
5k
views
How to enable httpsrc plug-in in my gstreamer?
I've tried to play an mp3 file or stream retrieved via http with the following command
gst-launch httpsrc location=http://domain.com/music.mp3 ! mad ! osssink
but a get the following error
ERREUR :...
4
votes
1
answer
5k
views
Linking against external libraries in gstreamer plugin using autotools
I have written a gstreamer plugin using the boilerplate template refrenced in the gstreamer plugin writers guide (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-building-...
4
votes
2
answers
3k
views
How to add subtitles from a SRT file on a video and play it with Gstreamer in a c program
I want to play a video with a C program using Gstreamer and adding subtitles from a SRT file.
I'm new to gstreamer and I somehow figured out who to make it work in command-line :
gst-launch filesrc ...
4
votes
1
answer
2k
views
Why gst_element_factory_find can't find factory "decodebin"?
I have installed gstreamer-1.4.0 in order to create simple app for decoding video files.
The pipeline which I try to create looks simple:
filesrc location="file.h264" ! decodebin ! filesink location="...
4
votes
1
answer
2k
views
Choose between two input in gstreamer plugin
I am currently writing a Gstreamer-1.0 plugin with an audio/x-raw source.
I would like to send to my plugin two input source. One would be de default source and the other one would be use if a ...
4
votes
3
answers
5k
views
Error in using Appsrc Appsink
This would be my first time working with Gstreamer in a C program. I've only used pipelines. I'm trying to write a program which takes a stream stores it in a buffer, uses OpenCv to edit the stream ...
4
votes
1
answer
990
views
GStreamer video window not opening (macOS)
I am trying to run the first tutorial on GStreamer and running into some issues.
When I compile the code found here and run it, no compilation errors or warnings occur and the stream is found, but ...
4
votes
2
answers
3k
views
How to connect to a UDP video broadcast with GStreamer in C
I have a small program that uses the GStreamer library to play videos from local files and videos on webservers using HTTP. How does one go about connecting to a UDP video broadcast in C using ...
4
votes
0
answers
911
views
GStreamer: dynamically link a tee while pipline is PLAYING
Using GStreamer 1.16.3 on Ubuntu 20, C/C++. At some point during runtime, I'm trying to link a tee element (its src_0 is already linked and playing) to a recording bin which ends with a filesink.
The ...
4
votes
0
answers
1k
views
Draw text on a Wayland surface in C
I am a newbie in Wayland programming. Currently, I wanna create an application which can show FPS of a playing video on a surface of a Wayland client.
First, I use Gstreamer to read fps. I already ...