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
5,004
questions
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 , ...
12
votes
1
answer
10k
views
Gstreamer webrtcbin working sample pipeline
Can someone show up to date webrtcbin pipeline? At the moment i use these pipelines and they do not work.
Send:
gst-launch-1.0 webrtcbin bundle-policy=max-bundle name=sendrecv stun-server=stun://...
11
votes
6
answers
38k
views
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 ...
11
votes
6
answers
89k
views
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 \
...
11
votes
2
answers
20k
views
What the queue element do in Gstreamer pipeline
I have this pipeline :
gst-launch -v filesrc location=video.mkv ! matroskademux name=d \
d. ! queue ! ffdec_h264 ! subtitleoverlay name=overlay ! ffmpegcolorspace ! x264enc ! mux. \
d. ! queue ! ...
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 ...
11
votes
6
answers
18k
views
How can I speed up a video by dropping frames?
I've got a video that's 30 minutes long. I want to make a speeded up version that's (say) 15 minutes long. I could do this by dropping every 2nd frame. How can I do this on linux?
I'm playing with ...
11
votes
1
answer
4k
views
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 ...
11
votes
1
answer
14k
views
How to pipe live video frames from ffmpeg to PIL?
I need to use ffmpeg/avconv to pipe jpg frames to a python PIL (Pillow) Image object, using gst as an intermediary*. I've been searching everywhere for this answer without much luck. I think I'm close ...
11
votes
2
answers
1k
views
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 "...
11
votes
1
answer
12k
views
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 ...
10
votes
2
answers
27k
views
Problems with Gst in python program
I'm in trouble making a simple server/client socket python program. Basically, my server (RPi3) has to stream a video (with Gstreamer) to the client (Fedora 24). The problem is that in my Fedora, I ...
10
votes
7
answers
38k
views
Gstreamer Error: pipeline could not be constructed: no element "v4l2src"
Am using Ubuntu(14.04) and I am getting this error while trying to use gstreamer.
gst-launch-1.0 v4l2src ! video/x-raw,width=640,height=480 ! x264enc ! h264parse ! rtph264pay ! udpsink host=127.0....
10
votes
1
answer
6k
views
Gstreamer of python's gst.LinkError problem
I am wiring a gstreamer application with Python. And I get a LinkError with following code:
import pygst
pygst.require('0.10')
import gst
import pygtk
pygtk.require('2.0')
import gtk
# this is ...
10
votes
2
answers
38k
views
How to display avi video with gstreamer?
I want to write an object tracking program which needs to play the tracked result. As gstreamer is a good multimedia frame work, I want to use it in my demo program. But I don't know how to implement ...
10
votes
2
answers
22k
views
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 ...
10
votes
3
answers
3k
views
Linker error while building Gstreamer iOS Tutorial project
I downloaded and installed Gstreamer iOS library from their site. I copied the tutorial to my own folder and tried to build the project in Xcode. I got the following linker error.
I'm geting no clues ...
10
votes
3
answers
12k
views
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 ...
10
votes
2
answers
2k
views
Gstreamer - How to structure application with multiple src's?
I have a situation where I have multiple cameras (rtspsrc), and a singleton element, that does analytics on the incoming video stream. I call it a singleton element, because it has request source and ...
10
votes
2
answers
8k
views
Receiving video stream from an IP camera on android
I have an IP camera which is streaming video in MJPEG format. Now my aim is to receive it and display it in my own custom android app. For this I have three programming alternatives on android ...
9
votes
3
answers
25k
views
Installing Gstreamer-1.0 on Mac OS X Mavericks [closed]
I want to install Gstreamer-1.0 on Mac OS X Mavericks. So I already install gstreamer-1.0-1.6.0-x86_64.pkg and gstreamer-1.0-devel-1.6.0-x86_64.pkg from here.
After that I tried to run something like ...
9
votes
3
answers
30k
views
GStreamer x264enc not found
I installed GStreamer-0.10 and all modules (base, good, bad, ugly, ffmpeg) according to these instructions (browse through by clicking prev/next):
http://www.linuxfromscratch.org/blfs/view/svn/...
9
votes
1
answer
28k
views
Using Gstreamer to capture screen and show it in a window?
I need to capture the screen of the second display and "monitor" it in the main display, inside a window (scaled at x0.5 and with neighbor interpolation because I prefer performance against quality). ...
9
votes
2
answers
13k
views
Convert video to WebM using GStreamer
Documentation for GStreamer is confusing. This is still no excuse for resorting to StackOverflow.com, but still:
What is the GStreamer command line to convert any video file (from any format) to WebM ...
9
votes
5
answers
7k
views
How to create video thumbnails with Python and Gstreamer
I'd like to create thumbnails for MPEG-4 AVC videos using Gstreamer and Python. Essentially:
Open the video file
Seek to a certain point in time (e.g. 5 seconds)
Grab the frame at that time
Save the ...
9
votes
4
answers
15k
views
Video Processing Library for Java
I want to extract frames from a video and apply some filters on it such as gabor/hough etc. Which Java library would be perfect for handling all kinds of video encodings? I have been looking at ...
9
votes
1
answer
22k
views
I want to perform HLS (HTTP Live Streaming) using Gstreamer
I would like to stream web cam video to http web page. I know how to read from web cam and archive it to file.
But how to stream via web. What is the pipeline for that?
9
votes
2
answers
15k
views
No decoder available for type 'video/x-h264
I am trying to run one of qt sample apps without any modification. It is called player and it is a multimedia widget demonstration. My system is Ubuntu 16.04 64bit. When I try to play a video, I see ...
9
votes
1
answer
2k
views
Haskell GStreamer tee element(1-N) trouble
The problem i have relates to the following piece of code:
module Main(main) where
import qualified Media.Streaming.GStreamer as GS
import Data.Maybe
import System.IO
import System.Exit
import ...
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
...
9
votes
1
answer
5k
views
How to use webrtcbin create offer,only receive video
the gstreamer webrtc demo works fine.but all demo has a small problem: all webrtcbin that created offer must have some video/audio data to send.
i want use webrtcbin create offer,and only receive ...
9
votes
3
answers
9k
views
How to install gstreamer0.10-ffmpeg on Debian 8 Jessie (No installation candidate)
On a clean Debian 8 installation i had to install some gstreamer-plugins. While most of them were already installed or were easily installable via apt-get, gstreamer0.10-ffmpeg was not installable:
...
9
votes
1
answer
8k
views
GStreamer + V4L2loopback as Chrome compatible webcam
I am trying to create a virtual camera in Chrome using v4l2loopback where the incoming video is H264 via RTP.
I have has some success in getting a GStreamer test video recognized in Chrome with ...
9
votes
3
answers
4k
views
Gst-python is installed, but can't find plugins
I'm trying to run some Gstreamer examples for the Google Coral USB accelerator - I'm not using the Coral dev board. The driver is installed and works and I can classify images from my camera using ...
9
votes
0
answers
531
views
Embed custom meta-data (bounding boxes) into HLS video stream
I'd like to embed bounding boxes, labels, etc. into live video stream to optionally draw them thereafter on the client-side in web-browser and looking for a way how to do.
Could you please give me a ...
9
votes
0
answers
2k
views
RTP timestamp synchronization in GStreamer
We are trying to synchronize 2 different streams with respect to their RTP timestamps. More specifically, we are sending two identical uncompressed video streams on port 5004 and 5005, at 24 fps with ...
9
votes
1
answer
370
views
How to inherit an element type that is provided by a plugin?
I'm trying to inherit GstTextOverlay, but the farthest I can go is this link-time error "undefined reference to `gst_text_overlay_get_type'".
According to the Makefile, it is lib/gstreamer-1.0/...
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
13k
views
Gstreamer examples in Android Studio
I have been trying to get Gstreamer working in Android studio, following their tutorials, see for example here:
https://gstreamer.freedesktop.org/documentation/tutorials/android/link-against-...
8
votes
4
answers
8k
views
Gstreamer with visual C++ express 2010 - tutorial 1
I'm new to Gstreamer, and I have problems when I compile the tutorial 1 of Gstreamer. I'm using Windows 7 64 bit with visual c++ express 2010, and Gstreamer SDK 2012.11 32 bits (downloaded from here).
...
8
votes
4
answers
17k
views
Can I use the Gstreamer API to merge 2 videos?
I'd like to write a simple linux CLI application that can take 2 video sources (1 of a presenter talking and 1 with their slides and no audio) and merge them.
I'd like the entire output video to be ...
8
votes
3
answers
22k
views
How to use GStreamer to directly stream to a web browser?
There are many examples online to use GStreamer pipeline with "tcpclientsink" or "udpsink" with NodeJS to consume the GStreamer pipeline output to Web Browser.
But I could not find ...
8
votes
6
answers
9k
views
Unable to build GStreamer for Android Tutorials
I'm running into a number of issues attempting to build the GStreamer Android tutorials.
My environment is:
Mac OS X 7
Android SDK version 17
Android NDK 8d
I am able to build and run the NDK ...
8
votes
3
answers
29k
views
gstreamer python bindings for windows
I am looking into gstreamer as a means to choose a video device from a list to feed it to an opencv script.
I absolutely do not understand how to use gstreamer with python in windows. I installed the ...
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
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
1
answer
3k
views
Error when trying to create a send only WebRTC pipeline
I have installed GStreamer-1.18.0 from source along with base, good, bad and ugly plugins.
I am unfamiliar with WebRTC so I decided to start with a demo and see how it works. I have found a small demo ...
8
votes
1
answer
3k
views
Is is possible to use GStreamer without a GLib main loop?
I am trying to use GStreamer as a video backend for a softphone we are developing in house. Our softphone is not GLib based, has its own event loops. Is it possible to set up a gst pipeline and put ...
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 ! ...