From: Stupergenius Date: 2006-04-03T13:18:50+09:00 Subject: Re: GStreamer Woes Also, the exact source I am using is: require 'gst' Gst.init unless ARGV.length == 1 $stderr.puts "Usage: #{__FILE__} " exit 1 end # create a new pipeline to hold the elements pipeline = Gst::Pipeline.new # create a disk reader filesrc = Gst::ElementFactory.make("filesrc") filesrc.location = ARGV.last puts "Using file "+ARGV.last # now it's time to get the decoder decoder = Gst::ElementFactory.make("spider") # and an audio sink audiosink = Gst::ElementFactory.make("alsasink") # add objects to the main pipeline puts filesrc, decoder, audiosink, pipeline pipeline.add(filesrc, decoder, audiosink) # link elements filesrc >> decoder >> audiosink # start playing pipeline.play while pipeline.iterate do end # stop the pipeline pipeline.stop puts "all done" And I am calling it with: ruby gst_test.rb glyn.mp3