gstreamer

Install gstreamer support for opencv python package

被刻印的时光 ゝ 提交于 2019-12-11 04:26:32
问题 I have built my own opencv python package from source. import cv2 print(cv2.__version__) prints: 3.4.5 Now the issue I am facing is regarding the use of gstreamer from the VideoCapture class of opencv. I am trying to get this mimimum working example running on python3 cap = cv2.VideoCapture("videotestsrc ! appsink") if not cap.isOpened(): print("Cannot capture test src. Exiting.") quit() while True: ret, frame = cap.read() if ret == False: break cv2.imshow("CVtest",frame) if cv2.waitKey(1) &

how can I parse audio raw data recorder with gstreamer?

时间秒杀一切 提交于 2019-12-11 03:46:17
问题 I'm writing a C application that uses gstreamer to record audio from a microphone. I want to be able to parse that audio and show a visualization of that audio. I have the following code: #include <gst/gst.h> #include <glib.h> static gboolean bus_call (GstBus *bus, GstMessage *msg, gpointer data) { GMainLoop *loop = (GMainLoop *) data; switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_EOS: g_print ("End of stream\n"); g_main_loop_quit (loop); break; case GST_MESSAGE_ERROR: { gchar *debug;

gstreamer ios undefined symbol _gst_plugin_liveadder_register

ぃ、小莉子 提交于 2019-12-11 01:57:54
问题 I have tried to compile the gstreamer ios tutorial #3. I have built the iOS SDK from sources that I have checked out from git, the master tree, and then when I have tried to compile for iOS 9.2. I got the below link error which I have no explanation for. All help is much appreciated. Undefined symbols for architecture arm64: "_gst_plugin_liveadder_register", referenced from: _gst_ios_init in gst_ios_init.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with

Gstreamer1.0 : link a decodebin to videoconvert

久未见 提交于 2019-12-11 00:12:46
问题 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 thing. So I translated the previous pipeline to the following code: pipeline = gst_pipeline_new ("video_pipeline"); if (!pipeline) { g_print("Failed to create the pipeline\n"); return -1; } bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); watch_id = gst_bus_add_watch (bus, bus_call, loop); gst

Rtmp streaming via gstreamer-1.0 appsrc to rtmpsink

旧街凉风 提交于 2019-12-10 23:34:48
问题 I am trying to stream my webcam via rtmp. I tried to stream data via following pipe line: gst-launch-1.0 -v v4l2src ! 'video/x-raw, width=640, height=480, framerate=30/1' ! queue ! videoconvert ! omxh264enc ! h264parse ! flvmux ! rtmpsink location='rtmp://{MY_IP}/rtmp/live' and it works like a charm. I can see the video on my website. Then I would like to capture frames firstly, and do some process. I streamed processed data by pushing data into appsrc and streaming through pipeline just like

Can't find get-launch-1.0 from Gstreamer

孤者浪人 提交于 2019-12-10 19:18:03
问题 I'm running on an OSX Mac, I've Installed the various packages in GStreamer 1.5.1 found here: http://gstreamer.freedesktop.org/data/pkg/osx/ . Whenever I try to run a command with gst-launch I get -bash: gst-launch-1.0: command not found . Similarly I get an error trying to run gst-inspect . The framework is not present in the /System/Library/Frameworks folder after installation. Any suggestions? 回答1: If you want to run the commands you need to install it from command line: Search for all

Updated android studio and got fail with Gstreamer build

删除回忆录丶 提交于 2019-12-10 18:50:26
问题 Updated to Android Studio 3.0.0 with new android gradle plugin. While buildin project got message: What went wrong: Execution failed for task `':app:externalNativeBuildDebug'`. Expected output file at `gst-build-arm64-v8a/libgstreamer_android.so` for target `gstreamer_android` but there was none but libgstreamer_android.so library file is already there. For native code I use ndk-build. Does anyone have this issue? 回答1: Add to build.gradle file of our android module field targets. android {

Low latency audio capture with gstreamer

∥☆過路亽.° 提交于 2019-12-10 18:15:30
问题 I need (almost) real-time audio capturing on Linux with gstreamer . My problem is that I cannot reduce the latency below ~210ms. I tried a simple loopback from mic to headphone: gst-launch-1.0 pulsesrc ! alsasink gst-launch-1.0 alsasrc ! alsasink Both produced the same delay. The latency-time property of alsasrc did not help (it did add the given latency). I could produce the effect I need with pactl load-module module-loopback latency_msec=1 But I could not figure out whether it is possible

How to demux audio and video from rtspsrc and then save to file using matroska mux?

白昼怎懂夜的黑 提交于 2019-12-10 17:27:15
问题 I have been working on an application where I use rtspsrc to gather audio and video from one network camera to another. However I can not watch the stream from the camera and thereby cant verify that the stream works as intended. To verify that the stream is correct I want to record it on a SD card and then play the file on a computer. The problem is that I want the camera to do as much of the parsing, decoding, depayloading as possible since that is the purpose of the application. I thereby

Building Gstreamer Editing Services fails

僤鯓⒐⒋嵵緔 提交于 2019-12-10 15:39:22
问题 I run ./autogen.sh inside the cloned repo and it fails saying the following: configure: No package 'gstreamer-plugins-base-1.0' found configure: error: no gstreamer-plugins-base-1.0 >= 1.14.1 (GStreamer Base Plugins) found configure failed I have gstreamer (base, good, bad and ugly) installed on my Ubuntu. The package name that the build script looks for is gstreamer-plugins-base-1.0 where as the system package is by the name gstreamer1.0-plugins-base . Digging into the autoconf setup I found