[gst-devel] Writing audio to a file

Michael Smith msmith at fluendo.com
Thu Jan 24 23:39:45 CET 2008


On Thu, 2008-01-24 at 13:49 -0700, Jeffrey Barish wrote:
> I am not able to write audio to a file (that can be played).  I have tried
> 
> audiotestsrc ! audioconvert ! vorbisenc ! filesink location=test.ogg
> 

This is dumping raw vorbis packets to a file. Raw vorbis packets don't
make any sense; they're not decodable.

You need to mux it into a container format (usually ogg); oggmux does
that.

So you can use: audiotestsrc ! audioconvert ! vorbisenc ! oggmux !
filesink

Mike




More information about the gstreamer-devel mailing list