Gstreamer1-plugins-sndio

Jul 20, 2023

Sndio audio sink and source for GStreamer

The GStreamer sndio plugin allows applications that use GStreamer to play and record to/from an sndio server.

This includes WebKit-based browsers, video players like Totem, and audio players like Rhythmbox.


GStreamer is a popular open-source multimedia framework, used for creating robust and flexible multimedia applications. One of the key plugins in this framework, particularly for FreeBSD users, is the Gstreamer1 plugins sndio. Sndio is a small audio and MIDI framework part of the OpenBSD project. The sndio plugin allows GStreamer applications to make use of sndio for audio I/O.

With that said, let’s delve deeper and learn more about how to make use of the FreeBSD port gstreamer1 plugins sndio and its benefits.

Getting Started

Before beginning, you need to ensure that your FreeBSD system has the Ports Collection installed. If you’re unfamiliar with the ports collection, you can learn more about it [here]https//freebsdsoftware.org/ports.html. Once you have confirmed that, navigate into the audio category and look for gstreamer1-plugins-sndio. You can install gstreamer1 plugins sndio in the FreeBSD system using the following steps

cd /usr/ports/audio/gstreamer1-plugins-sndio/ && make install clean

You’ll be prompted to configure some options; you can adjust these according to your needs. After confirming your choices, the process will automatically download, build, and install gstreamer1 plugins sndio along with its dependencies.

Using Gstreamer1 Plugins Sndio

Once the installation is complete, you can use the sndio plugin either as a standalone application using gst-launch —1.0, or as part of a more comprehensive GStreamer application.

For example, this pipeline will play back a test sound using sndio

gst-launch-1.0 audiotestsrc ! audioconvert ! audioresample ! sndiosink

This command synthesizes a pure sine wave, which it then plays using sndiosink, the GStreamer wrapper for the sndio output device.

Similarly, sndiosrc can be used to record audio

gst-launch-1.0 sndiosrc ! audioconvert ! audioresample ! wavenc ! filesink location=test.wav

This command will continuously record audio, converting it to wav format, until you stop the process.

Benefits of Using Gstreamer1 Plugins Sndio

Sndio is recognized for its simplicity and efficiency. It’s small, easy to use, and it provides a lower-latency audio path than pulseaudio or ALSA, making it a good choice for applications where timing is crucial, like music production or DJing.

Sndio, and therefore the Gstreamer1 sndio plugin, is secure by design thanks to its OpenBSD heritage. Using sndio instead of ALSA or OSS can therefore be a good choice for security-conscious FreeBSD users. For those who are seriously interested in security, combining sndio with tools like [nmap]https//freebsdsoftware.org/security/nmap.html might offer additional advantages.

Making use of sndio in a GStreamer context gives your multimedia applications the flexibility of GStreamer’s plugin architecture, combined with the efficiency, simplicity, and security of sndio.

In conclusion, the FreeBSD port of “Gstreamer1 plugins sndio,” provides a secure, small, and efficient framework for multimedia applications. Its simple syntax and low-latency make it a preferred choice for many FreeBSD users. Whether you’re a music producer, a DJ, an IT security consultant, or someone interested in multimedia applications, this port could be a valuable addition to your FreeBSD system.


Checkout these related ports:
  • Zynaddsubfx - Realtime software synthesizer
  • Zrythm - Modern music production system, also known as DAW
  • Zplugins-lv2 - Collection of LV2 plugins to be bundled with Zrythm
  • Zmusic - GZDoom's music system as a standalone library
  • Zita-rev1 - Reworked version of the reverb originally developed for Aeolus
  • Zita-resampler - C++ library for resampling audio signals
  • Zita-njbridge - Command line client to transmit audio over a local IP network
  • Zita-mu1 - Simple Jack app used to organise stereo monitoring
  • Zita-jclient - Library to create a Jack client with a few lines of C++
  • Zita-dpl1 - Look-ahead digital peak level limiter
  • Zita-convolver - Fast, partitioned convolution engine library
  • Zita-bls1 - Blumlein Shuffler converter of binaural signals to stereo speaker pair
  • Zita-at1 - Autotuner Jack application
  • Zita-alsa-pcmi - Easy access to ALSA PCM devices
  • Zinf - GTK-based MP3 player