Skip to content

Instantly share code, notes, and snippets.

View markwingerd's full-sized avatar

Mark Wingerd markwingerd

  • San Francisco, CA
View GitHub Profile
@markwingerd
markwingerd / GStreamer Tutorial 1 - 2 Configure, add, and link elements
Created November 18, 2014 20:22
GStreamer Tutorial 1: Part 2/3 - Plays an mp3 file
@markwingerd
markwingerd / GStreamer Tutorial 1 - 1 Create Elements
Created November 18, 2014 20:22
GStreamer Tutorial 1: Part 1/3 - Plays an mp3 file
import gst
# Create the pipeline for our elements.
pipeline = gst.Pipeline('pipeline')
# Create the elements for our project.
audio_source = gst.element_factory_make('filesrc', 'audio_source')
decode = gst.element_factory_make('mad', 'decode')
convert = gst.element_factory_make('audioconvert', 'convert')
equalizer = gst.element_factory_make('equalizer-3bands', 'equalizer')
@markwingerd
markwingerd / GStreamer Tutorial 1
Last active April 6, 2019 23:20
GStreamer Tutorial 1: Whole Project - Plays an mp3 file
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
GStreamer Tutorial 1: Simple Project
In this tutorial we will receive an mp3 file from our harddrive, manipulate
with an equalizer element, and output that to our speakers.
------------------------pipeline-------------------------
| | | | |