Personal tools
Namespaces

Variants
Actions

Gstreamer

From NiftyWiki
Revision as of 15:33, 26 March 2014 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home Documentation Download Support Showroom Links

Flattr-badge-large.png

Abstract

Use GStreamer to feed pixels to an LED setup


Installation

Gentoo

Emerge layman if you don't have it already.

emerge -va layman

Add the niftyled overlay (if you don't have already)

layman -f -o http://gentoo.niftylight.de/layman.xml -a niftyled

Emerge:

emerge --autounmask-write gst-plugins-niftyled


Compile manually

Prerequisites

to compile from sources:


Get sources

Git: git clone git://github.com/niftylight/niftyled-gstreamer.git
ZIP-Archive: https://github.com/niftylight/niftyled-gstreamer/zipball/master
Browse: github.com.


Compile

If your OS doesn't include the default install prefix, you might have to do that yourself before compiling:

export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
export LD_LIBRARY_PATH="/usr/local/lib"
export PATH="${PATH}:/usr/local/bin"


to compile & install, cd into the source directory and run:

autoreconf -is
mkdir build
cd build
../configure
make
sudo make install


If you don't want to install to the default location (/usr/local), you can choose a different install prefix, e.g.:

./configure --prefix=/usr


To freshly rebuild a previously built tree, do (you can skip this if you just checked out the sources):

make maintainer-clean
or just remove all contents of the build directory and repeat the previous steps.


See additional compile time options by running:

./configure --help


Usage

Use from within GStreamer applications (e.g. gst-launch, Totem or AmaroK)

The plugin offers custom gstreamer-properties:

  • loglevel: The niftyled loglevel (if omitted, loglevel will be info)
  • config: Location of a LED-setup XML (if omitted, the default "~/.gstniftyled.xml" will be used)

For a complete description of the niftyled plugin, launch

gst-inspect niftyled


Documentation

This GStreamer plugin parses an LED-setup XML file (by default ~/.gstniftyled.xml) and passes video-data from GStreamer to the LED-Setup described there.

Examples

A simple test for an RGB 16x16 pixel setup:

gst-launch videotestsrc ! 'video/x-raw-rgb,bpp=24,width=16,height=16' ! niftyled config=16x16.xml


A simple test for an RGB 16x16 pixel setup with debugging output:

gst-launch --gst-debug=niftyled:5 videotestsrc ! 'video/x-raw-rgb,bpp=24,width=16,height=16' ! niftyled loglevel=debug config=16x16.xml


Using libvisual "gforce" plugin on the current alsa input with a RGB 16x16 pixel setup with full debug-output:

gst-launch --gst-debug=niftyled:5 alsasrc ! queue ! audioconvert ! libvisual_gforce ! 'video/x-raw-rgb,width=32,height=32' ! ffmpegcolorspace ! videoscale ! video/x-raw-rgb,bpp=24,width=16,height=16 ! niftyled loglevel=debug sync=false


Using libvisual "lv_analzyer" plugin on a test signal with a RGB 16x16 pixel setup with full debug-output:

gst-launch --gst-debug=niftyled:5 audiotestsrc ! queue ! audioconvert ! libvisual_lv_analyzer ! ffmpegcolorspace ! 'video/x-raw-rgb,bpp=24,width=16,height=16' ! niftyled loglevel=debug config=16x16.xml


Using libvisual "infinite" plugin on the current alsa input with a RGB 16x16 pixel setup with full debug-output:

gst-launch --gst-debug=niftyled:5 alsasrc ! queue ! audioconvert ! libvisual_infinite ! 'video/x-raw-rgb,width=32,height=32' ! ffmpegcolorspace ! videoscale ! video/x-raw-rgb,bpp=24,width=16,height=16 ! niftyled loglevel=debug sync=false config=16x16.xml


Using niftyled as system-wide default sink (e.g. with totem)

  • Launch gstreamer-properties
  • Choose "Video" tab
  • in "Default Output" choose "Plugin:" Custom
  • as "Pipeline:" enter something like
videoscale method=2 ! video/x-raw-rgb,bpp=24,width=16,height=16 ! niftyled config=/home/niftyled/.gstnifyled2.xml

for a 16x16 pixel setup defined in /home/niftyled/.gstniftyled2.xml

Then launch a gstreamer application (e.g. totem) that uses the gconfvideosink to feed your LED setup.

Issues

Please report anything via the issue tracker.


GStreamer LED display sink
http://wiki.niftylight.de/images/c/c9/Logo.png
niftyled-gstreamer
https://github.com/niftylight/niftyled-gstreamer/
GStreamer video sink to output video from GStreamer to niftyled setups
niftylight GmbH
2006-2014
hardware
led
niftyled
https://github.com/niftylight/niftyled-gstreamer/releases
linux,windows,osx
libniftyled,GStreamer