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
4,995
questions
6
votes
0
answers
491
views
Use custom GStreamer plugin in Android
I developed a GStreamer 1.0 plugin which works fine in Windows/Linux and some other systems. Now I want to cover Android. Currently, the plugin is not integrated into GStreamer in sense that it is not ...
6
votes
1
answer
5k
views
mux klv data with h264 by mpegtsmux
I need to mux klv metadata into the h264 stream. I have created application. But the stream is playing only as long as klv-data is being inserted. When i stop pushing klv-data the whole stream stops. ...
6
votes
2
answers
2k
views
Executing Gstreamer pipeline script within php code
I have a written an script for gstreamer application (pipeline) in ubuntu to capture 2 video streams via webcam and a frame grabber and put them into one container:
gst-launch -e mpegtsmux name="...
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 ...
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 ...
6
votes
3
answers
7k
views
Lossless avi encoding on linux
I am trying to write video using opencv. It is important for me to do this precisely - so it has to be a lossless codec. I am working with OpenCV 2.4.1 on Ubuntu 12.04
Previously, I was using the ...
6
votes
1
answer
3k
views
ImportError: [libraryname].so: undefined symbol: [function name]
I'm extending my Python program with a C module that uses the GstPhotography interface for GStreamer. My C module compiles fine, but when I try running it from Python, I get this error:
$python ...
5
votes
4
answers
28k
views
Simple encode and decode pipeline with gstreamer?
I'm trying to create a simple gstreamer1-0 pipeline that encodes and decodes h264 a webcam feed hopefully using the most basic elements possible. I already have (theoretically) all standard, good, bad ...
5
votes
1
answer
2k
views
How to give releative path for dirs option in meson build to find the thrid party library?
I am trying to build custom gst-plugin which has third party library dependency.
With cc.find_library and dirs option (takes absolute path) I am able to build the setup.
But I want to include the ...
5
votes
4
answers
11k
views
Why compiled and installed gstreamer plugin from boilerplate code is not found by gst-inspect
I followed the instructions in GStreamer Plugin Writer's Guide (1.7.1.1):
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/index.html
in order to build a new gstreamer plugin. ...
5
votes
2
answers
10k
views
ImportError: cannot import name GstRtspServer, introspection typelib not found
Im trying to get a simple GstRtspServer program working on an external amazon linux EC2 server at the moment, but I am having serious issues getting it to actually run. No matter what I do I keep ...
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
6k
views
v4l2loopback device detected by Chrome, not seen by Zoom or Firefox
I am trying to create a loopback device from my webcam to be accessible from both Zoom and a browser. I created three v4l2loopback devices:
sudo modprobe v4l2loopback devices=3 video_nr=10,11,12 ...
5
votes
2
answers
10k
views
Not able to install new wxpython
I am working on Debian Stable Linux and python 3.5 and I am trying to install the new wxpython (phoenix) using following command:
pip3 install --upgrade wxpython
However, it stops with following ...
5
votes
2
answers
5k
views
Gstreamer: How to get audio and video to play at the same rate
My pipe line is simply trying to mux an audiotestsrc with a videotestsrc and output to a filesink.
videotestsrc num-buffers=150 ! video/x-raw-yuv,width=1920, height=1080 !
timeoverlay ! ...
5
votes
2
answers
13k
views
How to create x264 RTSP server with OpenCV Python with GStreamer backend
My goal is to create a RTSP server using OpenCV Python using the GStreamer backend.
I have RGB images stored as OpenCV Mat, and I would like to create a VideoWriter which can write to a RTSP sink. The ...
5
votes
1
answer
7k
views
How to use use the gst_app_src_push_buffer() manually with custom event
I want to use the gstreamer's appsrc element to send an images to the gstreamer's pipeline as video stream. I look on the appsrc example, where are used the time-based streaming format. Where each ...
5
votes
2
answers
20k
views
pipeline Gstremer video streaming with delay
Is it possible to give some delay in between before sending demuxed, h264-decoded output to autovideosink in gstreamer pipeline. If so can anybody post sample pipeline to do that.
The pipeline which I ...
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
3k
views
Solutions to stream from a decklink card to browsers (Gstreamer -> TCP MJPEG -> ?)
I need to live stream from a decklink card to a browser. I also must be able to do it with a very poor network link (128kbits/s...), so I need to be able to stream at a very low fps (1 fps is fine) ...
5
votes
2
answers
30k
views
Playing RTSP with python-gstreamer
I use gstreamer for playing RTSP stream from IP cameras (like Axis.)
I use a command line like this:
gst-launch-0.10 rtspsrc location=rtsp://192.168.0.127/axis-media/media.amp latency=0 ! decodebin !...
5
votes
1
answer
4k
views
GStreamer mp4mux gives "Buffer has no PTS" error using custom appsrc
I have a pipeline coded in C++ that looks like this:
appsrc do-timestamp=TRUE is-live=TRUE caps=
“video/x-h264, stream-format=(string)byte-stream, alignment=(string)none, framerate=(fraction)0/1” min-...
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
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
2
answers
8k
views
Display FPS in Gstreamer's C source
When using gst-launch-1.0 to play a video, we can measure Framerate (FPS) by adding --padprobe v:sink --timer and name=v as below example:
gst-launch-1.0 -e --padprobe v:sink --timer filesrc location=...
5
votes
1
answer
12k
views
Why can I stream h264 encoded video from webcam to BOTH display and file, but NOT raw video?
I want to stream raw video from a Logitech C920 webcam and while both displaying and saving the video to file using GStreamer 1.0.
This works if I stream h264 encoded video from the camera (the ...
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
4
answers
12k
views
How to fix gstreamer error in Qt5?
I want to create a small mp3 player as a toy project so started with Qt for the GUI. When I try to play an mp3 file i get this error.
Warning: "No decoder available for type 'audio/mpeg, ...
5
votes
1
answer
5k
views
Gstreamer stream h264 File
I'm trying to stream a h264 encoded movie file from a server to multiple clients at once by sending the RTP Stream to the broadcast address.
The solution I've got works but is very slow. Playing the ...
5
votes
2
answers
23k
views
GStreamer - MJPEG stream to file
I have problem with saving MJPEG stream to file.
When I stream MJPEG using such pipeline:
gst-launch filesrc location=thirdmovie640x360.mp4 ! decodebin2 name=dec \
! queue ! ffmpegcolorspace ! ...
5
votes
2
answers
1k
views
How do I use the Discoverer module with pygi GstPbutils?
I'm trying to port some pygtk music player code to pygi which uses gst's discoverer module.
from gi.repository import Gst, GstPbutils
def on_discovered(discoverer, ismedia):
print("%s -- %s" %( ...
5
votes
1
answer
8k
views
Adding and removing audio sources to/from GStreamer pipeline on-the-go
I wrote a little Python script which uses an Adder plugin to mix two source streams together.
After starting the program, you hear a 1kHz tone generated by the audiotestsrc plugin. When you press ...
5
votes
2
answers
7k
views
Python GStreamer webcam viewer
I'working on this nice example that shows a webcam output in a GTK widget with python and GStreamer:
http://pygstdocs.berlios.de/pygst-tutorial/webcam-viewer.html
here is the code:
#!/usr/bin/env ...
5
votes
2
answers
6k
views
Enumerate over cameras in Python
I'm having some trouble enumerating over cameras in Python over multiple OS's.
Here's some of the approaches I've tried:
import cv2 as cv
num = 0
while 1:
cap = cv.VideoCapture(num)
if cap....
5
votes
2
answers
5k
views
gstreamer create virtual device on OSX
I would like to create a virtual camera device using gstreamer on OSX
I am able to create it on *nix systems using
gst-launch-1.0 -v videotestsrc pattern=snow ! video/x-raw,width=1280,height=720 ! ...
5
votes
2
answers
31k
views
How to make apt-get to ignore ca-certificate issue - cannot install gstreamer dev library [closed]
I am currently trying to develop gstreamer plugins by using gstreamer-development library as instructed in:
http://docs.gstreamer.com/display/GstSDK/Installing+the+SDK
I have an Ubuntu 14.04 ...
5
votes
1
answer
5k
views
Sink restart on failure without stopping the pipeline
today I decided to transform my little script, based on gst-launch, into a real Python/GStreamer application, in order to add some features.
I developed a little program which send the audio from my ...
5
votes
2
answers
4k
views
Gstreamer message to signal new frame from video source (webcam)
I am trying to save a stream from webcam as series of image using gstreamer. I have written this code so far...
#!/usr/bin/python
import sys, os
import pygtk, gtk, gobject
import pygst
pygst.require("...
5
votes
1
answer
9k
views
Gstreamer : transcoding Matroska video to mp4
The hardware on which we are working on doesnt support playing of mkv files.
So i'm required to transcode Matroska (mkv) video filea to mp4 video file.
As I have understood from the material ...
5
votes
2
answers
7k
views
Gstreamer: RTP jitter buffer not working properly with packet loss?
For a VoIP speech quality monitoring application I need to compare an incoming RTP audio stream to a reference signal. For the signal comparison itself I use pre-existing, special-purpose tools. For ...
5
votes
2
answers
2k
views
Python Gstreamer bindings with PyGObject Only has Core modules, no Plugins
I have gstreamer installed on OSX 12.0.1 Monterey. I just installed the python bindings inside of a virtual environment running python 3.9 with:
pip3 install pycairo PyGObject
I can import gi and gi....
5
votes
1
answer
27k
views
How to stream via RTMP using Gstreamer?
I am attempting to stream video and audio using Gstreamer to an RTMP Server (Wowza) but there are a number of issues.
There is almost no documentation about how to properly utilise rtmpsink, a plugin ...
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
4
answers
13k
views
GStreamer timestamps (PTS) are not monotonically increasing for captured frames
I wrote some code to capture frames from a webcam using GStreamer 1.0 (PyGST). It is important for me to know the exact time of capture. For this, I set the v4l2src property do-timestamp, and I use ...
5
votes
1
answer
5k
views
Unable to build GStreamer tutorials using Android Studio
I am trying to build the tutorials that are bundled with gstreamer-sdk-android-arm-debug-2013.6. The Android.mk file in the src/jni directory (tutorial 1 project) references environment variables such ...
5
votes
1
answer
5k
views
Hardware video decoding on Android using GStreamer
I have to implement a GStreamer pipeline on Android which will get a live mpegts stream from a mpegts server on a linux machine(also implemented through GStreamer).
Now, I have a Samdung Galaxy Tab2, ...
5
votes
2
answers
5k
views
How can I create a live steam using gstreamer?
I would like to stream my webcam, I tried with vlc, but I'm getting a 10-15s delay between the server and client on the same network
vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 ...
5
votes
3
answers
18k
views
Gstreamer Missing plugins
I am trying to run certain pipelines on the Command prompt for playing a video and I am often getting these errors/messages/warnings :
WARNING: erroneous pipeline: no element "qtdemux"
WARNING: ...