gstreamer

Gstreamer Mac OS X udpsink error

筅森魡賤 提交于 2019-12-04 15:17:01
问题 I’m trying to stream audio in Mac OS X but I keep getting this error: gst-launch osxaudiosrc ! audioresample ! audioconvert ! alawenc ! rtppcmapay ! udpsink port=10001 host=192.168.2.10 Setting pipeline to PAUSED … ERROR: Pipeline doesn’t want to pause. ERROR: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Could not get/set settings from/on resource. Additional debug info: gstmultiudpsink.c(804): gst_multiudpsink_configure_client (): /GstPipeline:pipeline0/GstUDPSink:udpsink0: Could

GStreamer How to extract video frame from the flow?

ぐ巨炮叔叔 提交于 2019-12-04 15:00:37
This is python code for capturing streaming video from server. but I need to write a function to extract one frame from the flow. It will be a button. On click it will show current frame. I have no ideas. Can anyone help me with this??? self.player = gst.Pipeline("player") self.source = gst.element_factory_make("uridecodebin", "video-source") #self.source = gst.element_factory_make("playbin2", "video-source") sink = gst.element_factory_make("xvimagesink", "video-output") colorspace = gst.element_factory_make("ffmpegcolorspace") scale = gst.element_factory_make("videoscale") self.source.set

Calling Gstreamer inside openCV

Deadly 提交于 2019-12-04 14:58:17
I need to call Gstremaer inside an openCV code (opening a video camera essentially). As I looked through the source code, modules/highgui/src/cap_gstreamer.cpp seems to be the file I'm looking for. I compiled OpenCV with Gstreamer flag. GStreamer: -- base: YES (ver 1.2.3) -- video: YES (ver 1.2.3) -- app: YES (ver 1.2.3) -- riff: YES (ver 1.2.3) -- pbutils: YES (ver 1.2.3) but I'm not able to call a Gstreamer-related functions (e.g. cvCreateCapture_GStreamer which is defined inside cap_gstreamer.cpp ) cap_gstreamer.cpp was built successfully as the opencv install log suggested: [ 17%] Building

Installing gstreamer 1.0 on windows for python 2.7.

跟風遠走 提交于 2019-12-04 14:45:53
I've been trying to install gstreamer 1.0 on windows to use as a python 2.7 module. I installed the sdk from here http://docs.gstreamer.com/display/GstSDK/Installing+on+Windows which allows me to import pygst , but it only allows me to use gstreamer 0.1 (If I try pygst.require('1.0') I get a pygst.RequiredVersionError only version '0.10' is available). I looked all over for a gstreamer 1.0 version of the sdk with no luck, so I'm hoping I can maybe alter the 0.1 sdk for my needs. I've downloaded gstreamer 1.0 from here http://gstreamer.freedesktop.org/data/pkg/windows/1.5.2/ but I'm not

In gstreamer adding and removing queue of a tee dynamically

别来无恙 提交于 2019-12-04 14:21:27
I have written gstreamer code for camera live-streaming and recording at the same time. My pipeline looks like that: / [ queue1 | videosink ] v4l2src | tee \ [ queue2 | filesink ] Currently both live streaming and file recording is working together. Now I need to start the pipeline with only one queue i.e. queue1 (live streaming queue), After a while I need to add the recording queue and remove it dynamically too. My working code are given below : pipeline = gst_pipeline_new ("rv_camera"); /*Create source element. We use mfw_v4lsrc from Freescale as source */ source= gst_element_factory_make

How to get Pipeline created by playbin in textual format in Gstreamer?

僤鯓⒐⒋嵵緔 提交于 2019-12-04 14:21:15
I'm playing a transport stream file (*.ts) using the following pipeline: gst-launch-0.10 playbin2 uri=file:///c:/bbb.ts But I need to convert that into a pipeline myself. I'm not sure how to achieve this. So far I have tried: (works fine) gst-launch-0.10 -v filesrc location=c:/bbb.ts ! tsdemux ! audio/x-ac3 ! fakesink But if i replace fakesink with autoaudiosink it fails with a not-linked error. And even the fakesink doesn't work for video: gst-launch-0.10 -v filesrc location=c:/bbb.ts ! tsdemux ! video/x-mpeg2 ! fakesink So I have two questions: How to find out pipeline created by playbin

moving audio over a local network using GStreamer

蓝咒 提交于 2019-12-04 14:10:22
问题 I need to move realtime audio between two Linux machines, which are both running custom software (of mine) which builds on top of Gstreamer. (The software already has other communication between the machines, over a separate TCP-based protocol - I mention this in case having reliable out-of-band data makes a difference to the solution). The audio input will be a microphone / line-in on the sending machine, and normal audio output as the sink on the destination; alsasrc and alsasink are the

Videomixer fails on sources rather than Videotestsrc

六眼飞鱼酱① 提交于 2019-12-04 12:26:16
I want to play two different local video files at the same time in a single window. The code below without demux and decoder works fine. static void play_video(){ GMainLoop *loop; GstElement *pipeline,*videomixer; GstElement *src,*sink,*filter,*csp,*videobox; GstElement *src1,*filter1,*csp1,*videobox1; GstElement *srcb,*filterb,*cspb,*videoboxb; GstCaps *filtercaps,*filtercaps1,*filtercapsb; GstPad *pad,*pad1; const char pattern = "snow"; loop = g_main_loop_new(NULL, FALSE); pipeline = gst_pipeline_new("my-pipeline"); src = gst_element_factory_make ("videotestsrc","src"); src1 = gst_element

List device-names available for video capture from ksvideosrc in gstreamer 1.0

落爺英雄遲暮 提交于 2019-12-04 11:19:51
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 query a list of available devices (and their caps). On gstreamer 0.10 it has been possible through GstPropertyProbe which is removed in gstreamer 1.0. The documentation suggests using GstDeviceMonitor. But i have no luck using that either. Has anyone succeeded in acquiring a list of device names? Or can you suggests another way of retrieving the available device names and their caps? Although I haven

To connect Gstreamer with Qt in order to play a gstreamer video in the Qt Widget

*爱你&永不变心* 提交于 2019-12-04 11:15:15
I tried using phonon to play the video but could not succeed. Off-late came to know through the Qt forums that even the latest version of Qt does not support phonon. That's when I started using Gstreamer. Any suggestions as to how to connect the Gstreamer window with the Qt widget? My aim is to play a video using Gstreamer on the Qt widget. So how do I link the Gstreamer window and the Qt widget? I am successful in getting the Id of the widget through winid() . Further with the help of Gregory Pakosz, I have added the below 2 lines of code in my application - QApplication::syncX(); gst_x