Created
November 18, 2014 20:22
-
-
Save markwingerd/a9e587f5631cf8c570da to your computer and use it in GitHub Desktop.
GStreamer Tutorial 1: Part 2/3 - Plays an mp3 file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure our elements. | |
audio_source.set_property('location', 'myfile.mp3') | |
equalizer.set_property('band1', -24.0) | |
equalizer.set_property('band2', -24.0) | |
# Add our elements to the pipeline. | |
pipeline.add(audio_source, decode, convert, equalizer, audio_sink) | |
# Link our elements together. | |
if (not gst.element_link_many(audio_source, decode, convert, equalizer, audio_sink)): | |
print "Elements could not be linked." | |
exit(-1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment