gstreamer

Using Gstreamer with Google speech API (Streaming Transcribe) in C++

强颜欢笑 提交于 2020-02-02 13:38:30
问题 I am using the Google Speech API from cloud platform for getting speech-to-text of a streaming audio. I have already done the REST API calls using curl POST requests for a short audio file using GCP. I have seen the documentation of the Google Streaming Recognize, which says "Streaming speech recognition is available via gRPC only." I have gRPC (also protobuf) installed in my OpenSuse Leap 15.0 . Here is the screenshot of the directory. Next I am trying to run the streaming_transcribe example

MJPEG streaming with GStreamer in Chrome

若如初见. 提交于 2020-01-25 10:20:08
问题 I have an image processing application that runs on an embedded device using OpenCV. To display the results I'm using Civetweb to host a web page and stream the result of my application through OpenCV videowriter (which hooks onto GStreamer). To replicate my issues you can use the following snippets gst-launch-1.0 \ videotestsrc \ ! videoconvert ! videoscale ! video/x-raw,width=320,height=240 \ ! clockoverlay shaded-background=true \ ! theoraenc ! oggmux ! tcpserversink host=127.0.0.1 port

kivy - Trying to load a video gets a gstreamer error

筅森魡賤 提交于 2020-01-25 02:30:11
问题 I'm new in kivy and I'm working in OSX. I'm trying to implement a simple example of playing a video using the Video class from kivy.uix.video in this way: Video: id: video source: 'resources/videos/testVideo.mpg' state: 'play' But I get this error: kivy.lib.gstplayer._gstplayer.GstPlayerException: Unable to create a playbin I'm certain that gstreamer is correctly installed. I have the 1.6.2.0 version. Can someone help me with this? I've been trying to research on this error, and seems that is

display image using gstreamer with c API

大城市里の小女人 提交于 2020-01-24 22:12:49
问题 i try to do a gstreamer pipeline using c API to show image for this i use this gst-launch command gst-launch filesrc location="pluto.jpg" ! jpegdec ! ffmpegcolorspace ! videobalance saturation=0 ! freeze ! ximagesink when i try it it work fine but when i try to convert it to c code it doesn't work someone can help me please ? #include <gst/gst.h> int main(int argc, char *argv[]) { GstElement *pipeline, *jpdec, *imgf, *cod, *source, *sink; GstBus *bus; GstMessage *msg; GstStateChangeReturn ret

How to stream in h265 using gstreamer?

北战南征 提交于 2020-01-23 08:34:27
问题 I am trying to use latest gstreamer and x265enc together. I saw that someone have already posted some commits in http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/log/ext/x265/gstx265enc.c Can anyone please give an example pipeline where it is known to working (gst-launch-1.0 pipeline example will be very helpful) 1) What is the current status of x265enc plugin for gstreamer ? does it work really ? Which branch of gstreamer I need to use to build x265enc? I want to build whole gsteamer

GStreamer基础教程13 - 调试Pipeline

China☆狼群 提交于 2020-01-22 18:12:52
摘要   在很多情况下,我们需要对GStreamer创建的Pipeline进行调试,来了解其运行机制以解决所遇到的问题。为此,GStreamer提供了相应的调试机制,方便我们快速定位问题。 查看调试日志 使用GST_DEBUG环境变量查看日志   GStreamer框架以及其插件提供了不同级别的日志信息,日志中包含时间戳,进程ID,线程ID,类型,源码行数,函数名,Element信息以及相应的日志消息。例如: $ GST_DEBUG= 2 gst-launch- 1.0 playbin uri=file: /// x.mp3 Setting pipeline to PAUSED ... 0 : 00 : 00.014898047 47333 0x2159d80 WARN filesrc gstfilesrc.c: 530 :gst_file_src_start:<source> error: No such file " /x.mp3 " ...   我们可以发现,只需要在运行时指定GST_DEBUG环境变量,并设置日志级别,即可得到相应的日志。由于GStreamer提供了丰富的日志,如果我们打开所有的日志,必定会对程序的性能有所影响,所以我们需要对日志进行分级,GStreamer提供了8种级别,用于输出不同类型的日志。 级别0:不输出任何日志信息。 级别1:ERROR信息。

GStreamer基础教程13 - 调试Pipeline

≡放荡痞女 提交于 2020-01-22 16:21:38
摘要   在很多情况下,我们需要对GStreamer创建的Pipeline进行调试,来了解其运行机制以解决所遇到的问题。为此,GStreamer提供了相应的调试机制,方便我们快速定位问题。 查看调试日志 使用GST_DEBUG环境变量查看日志   GStreamer框架以及其插件提供了不同级别的日志信息,日志中包含时间戳,进程ID,线程ID,类型,源码行数,函数名,Element信息以及相应的日志消息。例如: $ GST_DEBUG=2 gst-launch-1.0 playbin uri=file:///x.mp3 Setting pipeline to PAUSED ... 0:00:00.014898047 47333 0x2159d80 WARN filesrc gstfilesrc.c:530:gst_file_src_start:<source> error: No such file "/x.mp3" ...   我们可以发现,只需要在运行时指定GST_DEBUG环境变量,并设置日志级别,即可得到相应的日志。由于GStreamer提供了丰富的日志,如果我们打开所有的日志,必定会对程序的性能有所影响,所以我们需要对日志进行分级,GStreamer提供了8种级别,用于输出不同类型的日志。 级别0:不输出任何日志信息。 级别1:ERROR信息。 级别2:WARNING信息。

Resample and depayload audio rtp using gstreamer

徘徊边缘 提交于 2020-01-16 08:39:08
问题 I am developing an application where I am using a wave file from a location at one end of a pipeline and udpsink at the other end of it. gst-launch-1.0 filesrc location=/path/to/wave/file/Tornado.wav ! wavparse ! audioconvert ! audio/x-raw,channels=1,depth=16,width=16,rate=44100 ! rtpL16pay ! udpsink host=xxx.xxx.xxx.xxx port=5000 The Above wave file is having sampling rate = 44100 Hz and single-channel(mono) On the same PC I am using a c++ program application to catch these packets and

How to use videomixer element for gstreamer?

梦想的初衷 提交于 2020-01-15 12:19:07
问题 I want to play two local video file using gstreamer,but I got an error: Segmentation fault It from libgstvideomixer.so .What's wrong with my code? The videomixer element is needed to play two videos.Should I use videobox for that? gst-launch --no-fault filesrc location=/mnt/upan/source.264 ! queue ! typefind ! ffdec_h264 ! videomixer name=mix ! xvimagesink sync=false filesrc location=/mnt/upan/source.264 ! queue ! typefind ! ffdec_h264! mix. static void p_gst_init(void) { App *app = &s_app;

See this example on webcam capturing in python

。_饼干妹妹 提交于 2020-01-15 10:32:34
问题 When I run this script on my machine ( ubuntu 10.04 32 bit ): http://pygstdocs.berlios.de/pygst-tutorial/webcam-viewer.html I click on "Start" button and then I get this error: # python example-webcam.py example-webcam.py: Fatal IO error 0 (Success) on X server :0.0. Why ? 来源: https://stackoverflow.com/questions/3971324/see-this-example-on-webcam-capturing-in-python