[gst-devel] lpcm playing

Stefan Kost ensonic at hora-obscura.de
Wed Aug 8 15:01:29 CEST 2007


hi,

raw data is unformatted, so gstreamer can't figure out the format by itself. You
need to add a capsfilter after filesrc.

gst-launch filesrc location=test.pcm ! audio/x-raw,channels=1,.... ! alsasink

Stefan

Xianqing Ma wrote:
> Hi:
> 
>        How can I play raw-data (lpcm) by gstreamer on Linux Platform?
> 
>        I type “ gst-launch filesrc location=test.pcm ! alsasink ”, but
> the system prints
> 
>  
> 
> Error: from element /pipeline()/alsasink(): “the stream is in wrong
> format”,
> 
> Additional debug info:
> 
> Gstbaseaudiosink.c(477): gst_base_audio_sink_preroll():
> /pipeline()/alsasink():  “sink not negotiated”
> 
>  
> 
>        The output of decode such as mad is also the raw date. But it
> works when I make a pipeline for mp3 playing.
> 
>        Can you help me?
> 
>        Thank you
> 
>       
> 
>  
> 
> Best regards
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list