How to set audio format in code

Jim restlessmindsstudio at gmail.com
Thu Feb 28 08:46:56 PST 2013


In the following gst-launch command line, right before the alsasink element,
the audio format is being specified:

 

gst-launch filesrc location=video.ts typefind=true ! flutsdemux name=demux
demux. ! queue max-size-buffers=0 max-size-time=0 ! vpudec ! mfw_v4lsink
demux. ! queue max-size-buffers=0 max-size-time=0 ! beepdec ! audioconvert !
'audio/x-raw-int, channels=2' ! alsasink

 

How would I specify the audio format in my C code? Since this is separated
with an exclamation point (!) in the command line, it seems like a separate
element so I tried:

gst_element_factory_make("audio/x-raw-int, channels=2", "myAudioFormat"); 

but that didn't work.

 

Thanks,

Jim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130228/50a3ff72/attachment.html>


More information about the gstreamer-devel mailing list