# Playback tutorial 6: Audio visualization This page last changed on Jun 26, 2012 by xartigas. # Goal GStreamer comes with a set of elements that turn audio into video. They can be used for scientific visualization or to spice up your music player, for example. This tutorial shows: - How to enable audio visualization - How to select the visualization element # Introduction Enabling audio visualization in `playbin2` is actually very easy. Just set the appropriate `playbin2` flag and, when an audio-only stream is found, it will instantiate the necessary elements to create and display the visualization. If you want to specify the actual element that you want to use to generate the visualization, you instantiate it yourself and then tell `playbin2` about it through the `vis-plugin` property. This tutorial searches the GStreamer registry for all the elements of the Visualization class, tries to select `goom` (or another one if it is not available) and passes it to `playbin2`. # A fancy music player Copy this code into a text file named `playback-tutorial-6.c`.
This tutorial is included in the SDK since release 2012.7. If you cannot find it in the downloaded code, please install the latest release of the GStreamer SDK. |