All Questions
567
questions
38
votes
1
answer
3k
views
GStreamer encountered a general stream error in Qt5 raspberry pi
I'm trying to play a video using QtMediaPlayer in Raspberry pi 2 B. The source code is as follows:
QMediaPlayer *media;
QVideoWidget *video;
...
...
media = new QMediaPlayer(parent);
video = new ...
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 ...
17
votes
4
answers
8k
views
GStreamer or DirectShow for Windows development? [closed]
I'm implementing a lecture-capture project for a local university. Multiple video streams will arrive at one PC: the presenter's desktop slides, a video camera image of the presenter himself and ...
14
votes
2
answers
26k
views
How to write opencv mat to gstreamer pipeline?
I want to add some opencv processes to a gstreamer pipeline and then send it over udpsink.
I'm able to read frames from gstreamer like this:
// may add some plugins to the pipeline later
cv::...
13
votes
1
answer
42k
views
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 ! ...
13
votes
0
answers
10k
views
FFmpeg vs Libav vs libVLC vs Gstreamer as of 2018 [closed]
I am trying to do some video processing on real time. I was beginning to try the FFmpeg, but I saw this question:
Why would I choose Libav over FFmpeg, or is there even a difference?
Which further ...
12
votes
3
answers
18k
views
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 ...
12
votes
4
answers
7k
views
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 , ...
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
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
3
answers
12k
views
Pushing images into a gstreamer pipeline
After playing around with some toy applications, exploring the
documentation and googling around (including the mailing list
archives) I am still puzzled for what I would think is a rather common
use ...
8
votes
3
answers
6k
views
How to use GStreamer in Visual Studio 2010?
Do I have to compile GStreamer on my own? Can I do it using Visual Studio 2010?
I'm struggling to find a good step-by-step guide with instructions on how to do this. Is there a good one?
My ...
8
votes
2
answers
17k
views
Play RTP video stream using Qt?
I want to create a Qt widget that can play incoming RTP streams where the video is encoded as H264 and contains no audio.
My basic plan for implementation is this:
Create a Phonon MediaSource object ...
8
votes
0
answers
679
views
Building an RTSP streaming server from processed frames in OpenCV
I have to process frames from a distant camera using OpenCV.
I need to stream the processed frames to be accessible over network as a live video.
How to make the processed frames (cv::Mat objects) ...
7
votes
4
answers
6k
views
failure in compiling opencv with cap_gstreamer error
I am trying to compile opencv on Slackware 4.1. However I encountered the following error each time.
In file included from /usr/include/gstreamer-0.10/gst/pbutils/encoding-profile.h:29:0,
...
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
1
answer
25k
views
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 ...
7
votes
2
answers
8k
views
How do you play or record audio (to .WAV) on Linux in C++?
Hello, I've been looking for a way to play and record audio on a Linux (preferably Ubuntu) system. I'm currently working on a front-end to a voice recognition toolkit that'll automate a few steps ...
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
4
answers
6k
views
GStreamer C++ on Visual Studio 2010?
Following instructions on http://docs.gstreamer.com/display/GstSDK/Installing+on+Windows to install GStreamer and compile tutorials/examples on Windows 7, for compilation using Visual Studio 2010.
...
6
votes
3
answers
10k
views
CMake linking problem
I am trying to use CMake to compile a C++ application that uses the C library GStreamer.
My main.cpp file looks like this:
extern "C" {
#include <gst/gst.h>
#include <glib.h>
}
int main(...
6
votes
2
answers
7k
views
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 ...
6
votes
1
answer
8k
views
GStreamer pipeline in C++
I have a working GStreamer-1.0 pipeline in terminal and I'm trying to replicate it in code using GStreamer 1.0 on Mac/Xcode.
My sending pipeline:
gst-launch-1.0 videotestsrc ! videoconvert ! ...
6
votes
1
answer
3k
views
GStreamer plugin with GStreamermm(C++)
I'm trying to write a gstreamer plugin in C++, using the GStreamermm bindings. Now, there's a good plugins writers guide (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/), and on ...
6
votes
1
answer
556
views
GStreamer distortion depends on image size
I am testing video streaming using appsrc. It appears that there is an induced distortion depending on the size of the test image I use. If I use a 1024 x 768 image there is no distortion. If I use a ...
6
votes
0
answers
2k
views
How to start gst-launch on a custom xy position
I'm developing a C++ application on embedded-linux and I need to display video from camera in it. I've used gstreamer to create a window and start the video capture (because it has hardware support on ...
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
4
answers
7k
views
Combine multiple videos into one
I have three videos:
a lecture that was filmed with a video camera
a video of the desktop capture of the computer used in the lecture
and the video of the whiteboard
I want to create a final video ...
5
votes
3
answers
1k
views
Qt #define "signals" clashes with GStreamer (gst)
Qt, which seems to name everything else with an initial Q, does this: #define signals signals in qobjectdefs.h.
However, GStream, not naturally, does not imagine signals to be a reserved word and ...
5
votes
3
answers
4k
views
List device-names available for video capture from ksvideosrc in gstreamer 1.0
I am trying to query a list of available video capture devices (webcams) on windows using gstreamer 1.0 in c++.
I am using ksvideosrc as source and i am able to capture the video input but i can't ...
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
488
views
Deadlock in gstreamer for Windows
I use gstreamer 1.8.1 library in my C# WinForms application which allows me to watch several RTSP video streams from video-server device simultaneously.
I wrote a native c++ dll which wraps calls to ...
4
votes
2
answers
370
views
Limit variable template to a list of types
I'm trying to modernise some GStreamer code by adding smart pointers. So for instance:
GstElement *pipeline = gst_pipeline_new("test-pipeline");
gst_object_unref(pipeline);
can be rewritten:
struct ...
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
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
4k
views
Android NDK Linker (GStreamer) - invalid linker name -fuse-ld=gold
Trying to setup GStreamer for Android using Android Studio on Windows. I'm mostly following the tutorial from their site as best I can, as well as looking at this (plus whatever I can find that helps)....
4
votes
1
answer
14k
views
Is there a simple GStreamer Example for C++?
I am looking for simple example for GStreamer that uses Video-Streaming...
I would like to create a simple example (showing a video-output) incl. compilation instructions.
4
votes
1
answer
5k
views
How to add a gstreamer 1.0 video element to a qt5 app
I'm trying to play video in a Qt widget on linux.
How to implement a video widget in Qt that builds upon GStreamer?
The above question is pretty close to what I want, but 6 years old. QApplication:...
4
votes
1
answer
415
views
How to get ROS GSCam to Work in a Docker Container?
I am trying to use the ROS GSCam package in a Docker container to read from a camera stream and publish to a ROS topic. Using GStreamer via gst-launch works fine in the container. For example, running
...
4
votes
1
answer
6k
views
Gstreamer recording video with audio
I'm trying to record on a file a video from my webcam along with audio using Gstreamer on my Ubuntu 16 machine through glib library.
I'm able to watch the video streaming from the webcam through these ...
4
votes
1
answer
566
views
Which video library is OpenCV using under the hood on linux? [closed]
I'm writing a simple software to capture and record webcam images to a compressed video file. I'm using OpenCV "VideoCapture read(frame)" and "VideoWriter write(frame)" in a C++ software.
I'm on ...
4
votes
1
answer
895
views
How to reduce Gstreamer Latency?
I wrote a pipeline that grabs a 720 X 576 image from a 1920 X 576 sensor with the v4l2src element on a Nvidia jetson xavier nx.
The pipeline grabs the frame and then does 2 things:
pushes the frame ...
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
2k
views
GStreamer sendonly to multiple WebRTC clients
I've been trying to setup a simple sendonly WebRTC client with GStreamer but I'm having issues with getting the actual video to display on the WebRTC receiver side. I am new to both GStreamer and ...
4
votes
0
answers
2k
views
RTSP Audio Backchannel (ONVIF) - How to implement
My objective is to implement RTSP audio backchannel with ONVIF, i.e, without using any camera SDK.
My expectations from this thread are -
To verify my understandings
Get an idea about how to do this
...
4
votes
1
answer
833
views
How to set a GstPlayer pipeline?
I have constructed a custom GStreamer pipeline that I will use to play RTSP streams. At the same time I'd like to create a new GstPlayer to use this pipeline. The problem is that there isn't a way ...
4
votes
1
answer
2k
views
muxing jpeg to mkv using gstreamer
Situation:
When I'm trying to mux jpegs to mkv file I'll get a zero sized file. I must put encode and decode elements between parser and muxer for correct output. When I'm muxing a h264 video with ...
4
votes
1
answer
2k
views
How to pass/return a structure from dbus using C programming?
I am building a music player using gstreamer-1.0. I am using sqlite3 to store meta data of the mp3 files. And I would like to use dbus for communication between gstreamer and database. This is ...
4
votes
1
answer
2k
views
Overlaying widgets on gstreamer video in qt
I have connected gstreamer to the QWidget using gst_x_overlay_set_xwindow_id(),and getting the video on the QWidget.How can we overlay another widget(e.g. pushbutton,combobox) on top of this video ...
4
votes
2
answers
6k
views
GStreamer-CRITICAL **: gst_mini_object_unref: assertion `GST_IS_MINI_OBJECT (mini_object)' failed
I have a vector of ofPtr (shared pointer) items that point to objects containing videos, in form of ofVideoPlayer objects. When the videos are done playing ('dead' variable set to true) i delete them ...