gstreamer

Turn a video into a sequence of images using GStreamer (not ffmpeg)

I have an ogg vorbis video. It plays fine in totem and mplayer. I want to covert it to a sequnces of images, one image per frame. I can do this on ffmpeg with the following command: ffmpeg -i video.ogv -f image 2 video-frames-%08png However that doesn't work for this video. Each frame is all grey as if there has been loads of decoding...

Python GStreamer webcam viewer

Dear all, I'working on this nice example that shows a webcam output in a GTK widget with python and GStreamer: http://pygstdocs.berlios.de/pygst-tutorial/webcam-viewer.html here is the code: #!/usr/bin/env python import sys, os import pygtk, gtk, gobject import pygst pygst.require("0.10") import gst class GTK_Main: def __init__(sel...

ImportError: [libraryname].so: undefined symbol: [function name]

I'm extending my Python program with a C module that uses the GstPhotography interface for GStreamer. My C module compiles fine, but when I try running it from Python, I get this error: $python Program.py Traceback (most recent call last): File "Program.py", line 10, in <module> import MyPythonClass File "/path/MyPythonClass....

Unable to play uri using gst_element_make_from_uri in gstreamer

Hi I need to stream rtsp / http stream and when i create an element source using source = gst_element_make_from_uri(); it doesn't work. Has anybody used gstreamer for streaming rtsp / http streams. Please help.. I am attaching the code snippet also source = gst_element_make_from_uri (GST_URI_SRC,"http://76.73.90.27:80/" ,NULL); dec...

How would I use gstreamer to stitch a set of images together to form a video slideshow.

I'd like to take a set of images and a sound track and use that to form a basic video slideshow using gstreamer. There seems to be a lot of documentation and examples of basic gstreamer usage like playing a video or audio file, or even transcoding and the like. But I can't seem to find anything particularly useful for, I suppose, video ...

DSJ Equivalent of fakesrc in GStreamer?

For the program I'm making with DSJ (DirectShow-Java) it searches for a specific source to display. If it can't find that source I'd like it to display basically the same thing you get from fakesrc in GStreamer (the colored TV bars) or something to that extent. Does anyone know if DSJ has something like this, a certain filter graph or so...

How do I view gstreamer debug output?

How to view the output of functions like GST_CAT_INFO, GST_DEBUG etc? Do I need to compile gstreamer myself with debug level set or it can be done at application level? ...

Python: Detect codecs used in a video container

Hi, I have a couple of video container files which contain audio and video in various codecs. Now I'd like to inspect the container from a Python script to know which codec is used for audio+video. This is on a linux box so I have all the tools available if necessary. I thought that maybe gstreamer could help me here but I was unable t...

fuse & gstreamer transcoding

I'm trying to create a FUSE fs which transcodes all sound files to mp3. My first idea is to use gstreamer as the backend for transcoding. I thought about using this pipeline: gst-launch -v filesrc location=01\ New\ Born.flac ! decodebin ! audioconvert ! lame vbr=4 vbr-quality=9 ! id3v2mux ! appsink The python bindings of fuse expect c...

Python + GStreamer - Won't connect

I'm having trouble combining audio and video into one file. The Python code looks like this; filmPipe = gst.Pipeline("filmPipe") filmSrc = gst.element_factory_make("multifilesrc", "filmSrc") filmSrc.set_property("location", "pictures/%d.png") filmFilt1 = gst.element_factory_make("capsfilte...

Use (Python) Gstreamer to decode audio (to PCM data)

I'm writing an application that uses the Python Gstreamer bindings to play audio, but I'm now trying to also just decode audio -- that is, I'd like to read data using a decodebin and receive a raw PCM buffer. Specifically, I want to read chunks of the file incrementally rather than reading the whole file into memory. Some specific quest...

Make a video using Python+GST from a set of `YYYY-MM-DD`-dated pictures

I have a directory with a set of YYYY-MM-DD-dated files in as so: pictures/ 2010-08-14.png 2010-08-17.png 2010-08-18.png How can I use Python GStreamer to turn these files into a video? The filenames must remain the same. I have a program that can turn incrementally numbered PNGs into a video, I just need to adapt it to u...

Detecting video bitrates from a PCAP dump of a (progressive download) stream

Hi, I'm trying to write a program that takes in a PCap dump, detects whether there is an flv stream in it, extracts the bitrate, and infers from the packet times the streaming performance (how long it took to download vs how long the video was). Ideally this should be in C on Linux, but I'd be happy if I can get a prototype working in ...

Targeting Qt child widget with gstreamer

I have a gstreamer pipeline which ends with a xvimagesink element. To have the video displayed in a particular window, I can use the x_oerlay_interface : gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(xvsink), winid); So far, so good. However, it only works if winid is the idea of a top level window, which is not the case of child widget....

Unable to play .wav file using gstreamer apis

Hi Following code is written to play a .wav file but it doesn't seem to work. I would like to know if i am missing something in it. Code: #include <gst/gst.h> #include <glib.h> int main(int argc , char *argv[]) { GMainLoop *loop; GstElement *source,*audioparser,*sink,*pipeline; GstBus *bus; gst_init(&argc,&argv); // create a pipeli...

Is it possible to stream a windows (7 / vista / xp) webcams via Gstreamer.

Hello, I very new to the world of gstreamer. I was wondering, if it's possible to stream windows webcam via gstreamer? The only package i have seen so far is for linux. v4l2 (video for linux). Is there also a package for windows webcams? what is the correct python syntax? DJ ...

Displaying a local gstreamer stream in a browser

I have a camera feed coming into a linux machine using a V4l2 interface as the source for a gstreamer pipeline. I'm building an interface to control the camera, and I would like to do so in HTML/javascript, communicating to a local server. The problem is getting a feed from the gst pipeline into the browser. The options for doing so seem...

Why does python gstreamer crash without "gobject.threads_init()" at the top of my script?

I have written a python script to use gstreamer (pygst and gst modules) to calculate replaygain tags, and it was crashing inconsistently with various gobject errors. I found somewhere that you could fix this by putting the following boilerplate at the top of your script: import gobject gobject.threads_init() I tried it, and it worked....

mp3 streaming playback over RTP using gtreamer

Hello All, I am working with gstreamer, mainly playing around with music playback features. I am currently trying to use RTP to send mp3 streams over our LAN, but unsuccessfully until now. On sender side I use the following pipeline: gst-launch -v filesrc location=./my_music_file.mp3 ! ffdemux_mp3 ! rtpmpapay ! udpsink port=6969 host...

HTML5 live video "hack"

Hi, For the last two month I have been trying to "fool" safari into thinking that it's looking at a file on the server, which in fact is a live video stream from a camera encoded and muxed upon request using Gstreamer into a format that is supported by the browser. Since HTML5 supports progressive video downloads this should at least be...