<div dir="ltr">Hi Stefan,<div><br></div><div>the file is generated by a text-to-speech application and on VLC the properties are correct:<br>PCM S16LE<br>Mono<br>22050Hz<br>16 bit<br><br>You can check it downloading from here:<br><a href="https://www.dropbox.com/s/j68n82e04j4ljjy/00000002.wav?dl=0">https://www.dropbox.com/s/j68n82e04j4ljjy/00000002.wav?dl=0</a><br></div><div><br></div><div>Thank you for your help</div><div>Walter</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-05 16:58 GMT+01:00 Stefan Sauer <span dir="ltr"><<a href="mailto:ensonic@hora-obscura.de" target="_blank">ensonic@hora-obscura.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="m_-5761324951495532258moz-cite-prefix">On 12/05/2016 02:53 PM, Walter Lucetti
wrote:<br>
</div>
<blockquote type="cite">
<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/<wbr>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/<wbr>GstDecodeBin:decodebin0/<wbr>GstTypeFindElement:typefind.<wbr>GstPad:src:
caps = audio/x-wav</font></div>
<div><font face="monospace, monospace">/GstPipeline:pipeline0/<wbr>GstDecodeBin:decodebin0/<wbr>GstTypeFindElement:typefind.<wbr>GstPad:src:
caps = NULL</font></div>
<div><font face="monospace, monospace">/GstPipeline:pipeline0/<wbr>GstDecodeBin:decodebin0/<wbr>GstWavParse:wavparse0.GstPad:<wbr>src:
caps = audio/x-raw, format=(string)U8,
layout=(string)interleaved, channels=(int)1,
rate=(int)22050</font></div>
</div>
</div>
</blockquote>
<br>
Are you sure the 16bit wav file is well formed? According to the
output gstreamer plays it as 8bit, which explains the noise. Can you
share this file?<br>
<br>
Stefan<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div><font face="monospace, monospace">/GstPipeline:pipeline0/<wbr>GstAudioResample:<wbr>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/<wbr>GstAudioConvert:audioconvert0.<wbr>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/<wbr>GstAutoAudioSink:<wbr>autoaudiosink0.GstGhostPad:<wbr>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/<wbr>GstAutoAudioSink:<wbr>autoaudiosink0/<wbr>GstDirectSoundSink:<wbr>autoaudiosink0-actual-sink-<wbr>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/<wbr>GstAutoAudioSink:<wbr>autoaudiosink0.GstGhostPad:<wbr>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/<wbr>GstAudioConvert:audioconvert0.<wbr>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/<wbr>GstAudioResample:<wbr>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/<wbr>GstDecodeBin:decodebin0.<wbr>GstDecodePad:src_0.<wbr>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="m_-5761324951495532258gmail_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.<wbr>it</a></div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_-5761324951495532258mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
gstreamer-devel mailing list
<a class="m_-5761324951495532258moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a>
<a class="m_-5761324951495532258moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a>
</pre>
</blockquote>
<p><br>
</p>
</div>
<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="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>