<div dir="ltr">Hi all,<div><br></div><div>I have a problem with GStreamer 1.9.90 and a 16bit PCM mono channel wave file to be played.</div><div><br></div><div>I'm using this very simple pipeline that works very well with 8bit file:</div><div><br></div><div>gst-launch-1.0.exe filesrc location="C:/Users/walter/Desktop/00000002.wav" ! decodebin ! audioresample ! audioconvert ! autoaudiosink -v -e</div><div><br></div><div>With 16 bit file (S16LE to be precise) the output is a long noise.</div><div><br></div><div>this is the output I obtain with "-v" option... I notice that recognized format il "8U", but I'm not able to force it to 16bit anyway:</div><div><br></div><div><div><font face="monospace, monospace">Pipeline is PREROLLING ...</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = audio/x-wav</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = NULL</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstWavParse:wavparse0.GstPad:src: caps = audio/x-raw, format=(string)U8, layout=(string)interleaved, channels=(int)1, rate=(int)22050</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstAudioResample:audioresample0.GstPad:src: caps = audio/x-raw, format=(string)U8, layout=(string)interleaved, channels=(int)1, rate=(int)22050</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps = audio/x-raw, format=(string)U8, layout=(string)interleaved, channels=(int)1, rate=(int)22050</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0.GstGhostPad:sink.GstProxyPad:proxypad1: caps = audio/x-raw, format=(string)U8, layout=(string)interleaved, channels=(int)1, rate=(int)22050</font></div><div><font face="monospace, monospace">Redistribute latency...</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0/GstDirectSoundSink:autoaudiosink0-actual-sink-directsound.GstPad:sink: caps = audio/x-raw, format=(string)U8, layout=(string)interleaved, channels=(int)1, rate=(int)22050</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstAutoAudioSink:autoaudiosink0.GstGhostPad:sink: caps = audio/x-raw, format=(string)U8, layout=(string)interleaved, channels=(int)1, rate=(int)22050</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:sink: caps = audio/x-raw, format=(string)U8, layout=(string)interleaved, channels=(int)1, rate=(int)22050</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstAudioResample:audioresample0.GstPad:sink: caps = audio/x-raw, format=(string)U8, layout=(string)interleaved, channels=(int)1, rate=(int)22050</font></div><div><font face="monospace, monospace">/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad2: caps = audio/x-raw, format=(string)U8, layout=(string)interleaved, channels=(int)1, rate=(int)22050</font></div><div><font face="monospace, monospace">Pipeline is PREROLLED ...</font></div><div><font face="monospace, monospace">Setting pipeline to PLAYING ...</font></div><div><font face="monospace, monospace">New clock: GstAudioSinkClock</font></div><div><font face="monospace, monospace">handling interrupt.</font></div><div><font face="monospace, monospace">Interrupt: Stopping pipeline ...</font></div><div><font face="monospace, monospace">EOS on shutdown enabled -- Forcing EOS on the pipeline</font></div><div><font face="monospace, monospace">Waiting for EOS...</font></div><div><font face="monospace, monospace">Got EOS from element "pipeline0".</font></div><div><font face="monospace, monospace">EOS received - stopping pipeline...</font></div><div><font face="monospace, monospace">Execution ended after 0:00:03.745515003</font></div><div><font face="monospace, monospace">Setting pipeline to PAUSED ...</font></div><div><font face="monospace, monospace">Setting pipeline to READY ...</font></div><div><font face="monospace, monospace">Setting pipeline to NULL ...</font></div><div><font face="monospace, monospace">Freeing pipeline ...</font></div><br><br clear="all"><div>Thank you for help</div><div>Walter</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><b>Walter Lucetti</b><br><br>email: <a href="mailto:myzhar@gmail.com" target="_blank">myzhar@gmail.com</a><br>web: <i><a href="http://www.robot-home.it/" target="_blank">www.robot-home.it</a></i><br></div><div>project: <a href="http://myzharbot.robot-home.it" target="_blank">http://myzharbot.robot-home.it</a></div><br><a href="http://www.cgsrobotics.it/" target="_blank"></a></div></div></div></div>
</div></div>