gstreamer

Issues importing gtstreamer in python

人盡茶涼 提交于 2019-12-13 02:55:14
问题 I've run the windows installer, but I'm unsure how to begin using gtstreamer. The tutorials I've read simply instruct me to install the package and then import the module pygst , but when I try that I get an ImportError: No module named pygst . I've searched my C drive. and it seems to have installed to /program files/OSSBuild/GStreamer , but I'm unsure how to access it. To date, every module I've installed automatically adds itself to lib/site packages or has the setup.py file. This one does

the program can't start because libgstreamer-0.10.dll is missing

萝らか妹 提交于 2019-12-12 21:33:26
问题 I am trying to create new project of gstreamer. I downloaded the SDK and succeeded to run the tutorials, but when I create a new project: File -> New -> Project -> GStreamer SDK Project copy the content of the (working) tutorial to my new project and launch it, I constantly get this error: the program can't start because libgstreamer-0.10.dll is missing from your computer am I missing something here? thanks! 来源: https://stackoverflow.com/questions/22036451/the-program-cant-start-because

Taking a snapshot from webcam monitor in python (pygtk)

亡梦爱人 提交于 2019-12-12 16:41:34
问题 I have this code for monitoring a webcam with python and pygtk. The question is, how I take a snapshot with this code?: #!/usr/bin/env python import sys, os import pygtk, gtk, gobject import pygst pygst.require("0.10") import gst import time class WebCam: def __init__(self): window = gtk.Window(gtk.WINDOW_TOPLEVEL) window.set_title("Webcam-Viewer") window.set_default_size(1024, 768) window.connect("destroy", gtk.main_quit, "WM destroy") vbox = gtk.VBox() window.add(vbox) self.movie_window =

find_library or link_directories or find_package? What is better way? Error - Link libraries using cmake

假装没事ソ 提交于 2019-12-12 16:24:36
问题 Given The file /usr/lib/gstreamer-0.10/libgstffmpeg.so is present Making changes in CMakeLists.txt Approach 1 find_library() find_library(GST_FFMPEG NAMES gstffmpeg PATHS /usr/lib/gstreamer-0.10/ ) ... target_link_libraries( MyLibraryOrMyExecutable ${GST_FFMPEG} ) When I run make with above configuration(approach 1), I get the following errors /bin/ld: warning: libvpx.so.1 , needed by /usr/lib/i386-linux-gnu/libavcodec.so.53, not found (try using -rpath or -rpath-link) /bin/ld: warning:

How to enable httpsrc plug-in in my gstreamer?

▼魔方 西西 提交于 2019-12-12 14:17:54
问题 I've tried to play an mp3 file or stream retrieved via http with the following command gst-launch httpsrc location=http://domain.com/music.mp3 ! mad ! osssink but a get the following error ERREUR : le pipeline n'a pas pu être construit : pas d'élément « httpsrc ». Which says that the pipeline could not be constructed due to the missing of httpsrc element. After googling around I did not found how to enable/install httpsrc plug-ins I've tried sudo apt-get install gstreamer-httpsrc sudo apt-get

How to do webcam streaming with mpegtsmux in Gstreamer

那年仲夏 提交于 2019-12-12 10:51:42
问题 I'm new to gstreamer, and I want to stream webcam video through network with mpeg2-ts. I am able to stream video using following pipeline, but I don't know how to stream it with mpeg2-ts using mpegmux . Any help would be great! Thanks. My working pipline (without mpegmux ) : // Sender gst-launch-1.0 -ve v4l2src \ ! video/x-raw, framerate=30/1 \ ! videoconvert \ ! x264enc noise-reduction=10000 speed-preset=fast tune=zerolatency byte-stream=true threads=4 key-int-max=15 intra-refresh=true \ !

How do you play or record audio (to .WAV) on Linux in C++?

守給你的承諾、 提交于 2019-12-12 08:41:10
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . Hello, I've been looking for a way to play and record audio on a Linux (preferably Ubuntu) system. I'm currently working on a front-end to a voice recognition toolkit that'll automate a few steps required to adapt a voice model for PocketSphinx and Julius . Suggestions of alternative means of audio input/output are welcome , as well as a fix to the bug shown

Issues linking against gstreamer libraries ubuntu 11.10

给你一囗甜甜゛ 提交于 2019-12-12 08:13:06
问题 So I am starting a project that is going to make use of the gstreamer libraries. I am running the test project from the gstreamer documentation and am getting the following error.This program worked properly on archlinux but is erroring out on ubuntu gcc `pkg-config --cflags --libs gstreamer-0.10` main.c -o player /tmp/cciFhGCe.o: In function `main': main.c:(.text+0x1e): undefined reference to `gst_init' main.c:(.text+0x36): undefined reference to `gst_version' collect2: ld returned 1 exit

How to output GStreamer video to Gdk.Pixbuf using Vala?

倖福魔咒の 提交于 2019-12-12 04:53:08
问题 I am using GStreamer 1.0 in my program to play video from file. And I want to output it to Gdk.Pixbuf to add it to Image to display it. But I can't figure out how to use it properly. Here is what I tried to do, but it won't compile: this.pipeline = new Pipeline ("mypipeline"); this.src = ElementFactory.make ("filesrc", "video"); src.set("location", downloadFileName); this.sink = ElementFactory.make ("gdkpixbufsink", "sink"); this.pipeline.add_many (this.src, this.sink); this.src.link (this

How to override handle_message in GstBin?

风格不统一 提交于 2019-12-12 04:21:21
问题 Trying to make a subclass: mybin.h: #pragma once #include <gst/gstbin.h> G_BEGIN_DECLS G_DECLARE_DERIVABLE_TYPE(MyBin, my_bin, MY, BIN, GstBin) struct _MyBinClass { GstBinClass parent_class; }; GstElement* my_bin_new(const gchar *name); G_END_DECLS mybin.c: #include "mybin.h" G_DEFINE_TYPE(MyBin, my_bin, GST_TYPE_BIN) static void my_bin_init(MyBin *bin) { } static void my_bin_class_init(MyBinClass *class) { // virtual function overrides go here } GstElement* my_bin_new(const gchar *name) { //