gstreamer

Unable to build GStreamer for Android Tutorials

倾然丶 夕夏残阳落幕 提交于 2019-11-30 04:07:50
问题 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 samples both in Eclipse and from the command line. I have downloaded http://cdn.gstreamer.com/android/arm/gstreamer-sdk-android-arm-debug-2012.11.tar.bz2 and added the GSTREAMER_SDK_ROOT_ANDROID environment variable to my .bash_profile. When I try to build android-tutorial-1 via Eclipse I get the

How to use GStreamer in Visual Studio 2010?

久未见 提交于 2019-11-30 04:07:31
问题 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 objective is to build applications using QtGstreamer on VS2010. 回答1: This links gives a complete method to compile GStreamer using Visual Studio and this one is to compile QtGstreamer. 回答2: Download the GStreamer libraries and headers for windows. Put them in a folder. Add the folder's path to your Include

How to write opencv mat to gstreamer pipeline?

Deadly 提交于 2019-11-30 01:01:20
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::VideoCapture cap("v4l2src ! video/x-raw, framerate=30/1, width=640, height=480, format=RGB ! videoconvert ! appsink"); cv::Mat frame; while(ture){ cap >> frame; // do some processing to the frame } But what can't figure out is how to pass the processed frame to the following pipeline: appsrc ! x264enc ! mpegtsmux ! udpsink host=localhost port=5000 I've tried cv::VideoWriter writer = cv::VideoWriter("appsrc

gstreamer开发日志

让人想犯罪 __ 提交于 2019-11-30 00:41:47
系统:ubuntu16.04 唯一需要的其他“开发环境”是gcc编译器和文本编辑器。为了编译需要GStreamer并使用GStreamer核心库的代码,请记住将此字符串添加到您的gcc命令: pkg-config --cflags --libs gstreamer-1.0 如果您正在使用其他GStreamer库,例如视频库,你必须在上面的字符串gstreamer-1.0之后添加额外的包(例如视频库的gstreamer-video-1.0)。 如果你的应用程序是在libtool的帮助下构建的,例如当使用automake / autoconf作为构建系统时,您必须从gst-sdk-shell环境中运行configure脚本。 获取官方教程的源代码: git clone https://gitlab.freedesktop.org/gstreamer/gst-docs 在每个教程的源代码的底部,您将找到该特定教程的命令,包括所需的库,按要求的顺序。在开发自己的应用程序时,GStreamer文档将告诉您函数所属的库。 构建:gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0` 运行: ./basic-tutorial-1 来源: https://www.cnblogs

Adding opencv processing to gstreamer application

会有一股神秘感。 提交于 2019-11-29 22:36:48
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 using opencv. (OPTION3 here MJPEG streaming and decoding ). The problem is I cant open pipe. cvCreateFileCapture just never returns. Here is a part code I wrote: if(mkfifo("fifo.avi", S_IRUSR| S_IWUSR) == -1) { cout<<"Cant create fifo"<<endl; cout<<errno<<endl; } loop = g_main_loop_new(NULL, false); fsink = gst_element_factory_make("filesink", "fsink"); g_object_set(G_OBJECT(fsink), "location",

Stream H.264 video over rtp using gstreamer

随声附和 提交于 2019-11-29 21:06:32
I am newbie with gstreamer and I am trying to be used with it. My first target is to create a simple rtp stream of h264 video between two devices. I am using these two pipelines: Sender: gst-launch-1.0 -v filesrc location=c:\\tmp\\sample_h264.mov ! x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000 Receiver: gst-launch-1.0 -v udpsrc port=5000 ! rtpmp2tdepay ! decodebin ! autovideosink But with the first one (the sender) I got the following error: Setting pipeline to PAUSED ... Pipeline is PE*R*O L(LgIsNtG- l.a.u.n h-1.0:5788): CRITICAL **: gst_adapter_map: assertion `size > 0' failed

GStreamer error “assertion 'GST_IS_ELEMENT (src)' failed” when linking elements

♀尐吖头ヾ 提交于 2019-11-29 16:06:29
I'm working on a GStreamer-based program using Python and the GObject introspection bindings. I'm trying to build this pipeline: videomixer name=mix ! autovideosink \ uridecodebin uri=v4l2:///dev/video0 ! mix. The pipeline works perfectly using gst-launch-1.0, but my Python program gives the errors: (minimal.py:12168): GStreamer-CRITICAL **: gst_element_link_pads_full: assertion 'GST_IS_ELEMENT (src)' failed on_error(): (GError('Internal data flow error.',), 'gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstV4l2Src:source:\nstreaming task paused

ubuntu16.04上安装gstreamer

僤鯓⒐⒋嵵緔 提交于 2019-11-29 14:57:48
1、apt-get安装 参照 https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c 上安装指令,安装失败,提示如下 使用ubuntu16.04的原生源和清华源都试过,不行,换第二种方法 2、源码安装 a)下载: 下载地址: https://gstreamer.freedesktop.org/src/ b)解压 xz -d gstreamer-1.16.0.tar.xz tar -xvf gstreamer-1.16.0.tar 再依次解压 gst-plugins-base-1.16.0.tar.xz gst-plugins-bad-1.16.0.tar.xz gst-plugins-good-1.16.0.tar.xz gst-plugins-ugly-1.16.0.tar.xz gst-libav-1.16.0.tar.xz c)编译 sudo apt-get install build-essential dpkg-dev flex bison autotools-dev automake liborc-dev autopoint libtool gtk-doc-tools libgstreamer1.0-dev cd gstreamer-1.16.0 .

Gstreamer with visual C++ express 2010 - tutorial 1

你说的曾经没有我的故事 提交于 2019-11-29 14:09:37
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 ). Here is the code : #include "stdafx.h" #include <gst/gst.h> int main(int argc, char *argv[]) { GstElement *pipeline; GstBus *bus; GstMessage *msg; /* Initialize GStreamer */ gst_init (&argc, &argv); /* Build the pipeline */ pipeline = gst_parse_launch ("playbin2 uri=file://E:/test_1.MOV", NULL); /* Start playing */ gst_element_set_state (pipeline, GST_STATE_PLAYING); /* Wait until error or EOS

Write in Gstreamer pipeline from opencv in python

天涯浪子 提交于 2019-11-29 10:23:25
问题 I'm trying to stream some images form opencv using gstreamer and I got ome issues with the pipeline. I'm new to gstreamer and opencv in general. I compiled opencv 3.2 with gstreamer for python3 on a raspberry pi 3. I have a little bash script that I use with raspivid raspivid -fps 25 -h 720 -w 1080 -vf -n -t 0 -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.1.27 port=5000 I wanted to translate this pipeline in