<div dir="auto"><div>Thank you Stefan,</div><div dir="auto"><br></div><div dir="auto">The file has been generated by the a software written by a colleague of mine. He told me that he found one problem in the header, but Monday (4 days of holydays here in Italy) I will say to him that the problems were two.</div><div dir="auto"><br></div><div dir="auto">Thank you very much for the help</div><div dir="auto"><br></div><div dir="auto">Regards</div><div dir="auto">Walter</div><div dir="auto"><br><div data-smartmail="gmail_signature" dir="auto">-- <br>Walter Lucetti<br><br>email: <a href="mailto:myzhar@gmail.com">myzhar@gmail.com</a><br>web: <a href="http://www.robot-home.it">www.robot-home.it</a> - <a href="http://www.opencv.it">www.opencv.it</a><br>project:  <a href="http://myzharbot.robot-home.it">http://myzharbot.robot-home.it</a></div><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">Il 08 Dic 2016 15:50, "Stefan Sauer" <<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>> ha scritto:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="elided-text">
    <div class="m_3502431828139060249moz-cite-prefix">On 12/08/2016 03:48 PM, Stefan Sauer
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div class="m_3502431828139060249moz-cite-prefix">On 12/08/2016 03:12 PM, Stefan Sauer
        wrote:<br>
      </div>
      <blockquote type="cite">
        
        <div class="m_3502431828139060249moz-cite-prefix">On 12/05/2016 05:26 PM, Walter
          Lucetti wrote:<br>
        </div>
        <blockquote type="cite">
          <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" target="_blank">https://www.dropbox.com/s/<wbr>j68n82e04j4ljjy/00000002.wav?<wbr>dl=0</a><br>
            </div>
            <div><br>
            </div>
            <div>Thank you for your help</div>
            <div>Walter</div>
            <div><br>
            </div>
          </div>
        </blockquote>
        I can confirm, that the file is not handled porperly and sounds
        distorted. Will fix it.<br>
        <br>
        Stefan<br>
      </blockquote>
      Actually the file is broken. These are the header parameters:<br>
      blockalign = 1<br>
      width      = 8<br>
      depth      = 16<br>
      av_bps     = 22050<br>
      frequency  = 22050<br>
      channels   = 1<br>
      bytes_per_sample = 1<br>
      bps        = 22050<br>
      caps = audio/x-raw, format=(string)U8, layout=(string)interleaved,
      channels=(int)1, rate=(int)22050<br>
    </blockquote>
    <br></div>
    Oh, and also the avg_bps is wrong. Needs to be 44100 for 16bit.<font color="#888888"><br>
    <br>
    Stefan</font><div class="elided-text"><br>
    <br>
    <blockquote type="cite"> <br>
      From various places you can check the wav format spec:<br>
      <a class="m_3502431828139060249moz-txt-link-freetext" href="http://soundfile.sapp.org/doc/WaveFormat/" target="_blank">http://soundfile.sapp.org/doc/<wbr>WaveFormat/</a><br>
      
      BlockAlign       == NumChannels * BitsPerSample/8<br>
                                     The number of bytes for one sample
      including<br>
                                     all channels.<br>
      <br>
      The issue is that blockalign=1, but for 16bit, it must be >= 2.
      We can probably add a workaround, not sure what others think. If
      you can please also report to the software that created the file.<br>
      <br>
      Stefan <br>
      <br>
      <blockquote type="cite"> <br>
        <blockquote type="cite">
          <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_3502431828139060249m_-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/Desk<wbr>top/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/GstDeco<wbr>deBin:decodebin0/GstTypeFindEl<wbr>ement:typefind.GstPad:src:
                            caps = audio/x-wav</font></div>
                        <div><font face="monospace, monospace">/GstPipeline:pipeline0/GstDeco<wbr>deBin:decodebin0/GstTypeFindEl<wbr>ement:typefind.GstPad:src:
                            caps = NULL</font></div>
                        <div><font face="monospace, monospace">/GstPipeline:pipeline0/GstDeco<wbr>deBin:decodebin0/GstWavParse:<wbr>wavparse0.GstPad: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/GstAudi<wbr>oResample:audioresample0.<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/GstAudi<wbr>oConvert:audioconvert0.GstPad:<wbr>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/GstAuto<wbr>AudioSink:autoaudiosink0.<wbr>GstGhostPad:sink.GstProxyPad:<wbr>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/GstAuto<wbr>AudioSink:autoaudiosink0/GstDi<wbr>rectSoundSink:autoaudiosink0-<wbr>actual-sink-directsound.<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/GstAuto<wbr>AudioSink:autoaudiosink0.<wbr>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/GstAudi<wbr>oConvert:audioconvert0.GstPad:<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/GstAudi<wbr>oResample:audioresample0.<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/GstDeco<wbr>deBin:decodebin0.GstDecodePad:<wbr>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="m_3502431828139060249m_-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.i<wbr>t</a></div>
                                <br>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset class="m_3502431828139060249m_-5761324951495532258mimeAttachmentHeader"></fieldset>
                    <br>
                    <pre>______________________________<wbr>_________________
gstreamer-devel mailing list
<a class="m_3502431828139060249m_-5761324951495532258moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a>
<a class="m_3502431828139060249m_-5761324951495532258moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a>
</pre>
    </blockquote>
    <p>

    </p>
  </div>


______________________________<wbr>_________________

gstreamer-devel mailing list

<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a>

<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a>


</blockquote></div>

<div>
</div>-- 
<div class="m_3502431828139060249gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><b>Walter Lucetti</b>

email: <a href="mailto:myzhar@gmail.com" target="_blank">myzhar@gmail.com</a>
web: <i><a href="http://www.robot-home.it/" target="_blank">www.robot-home.it</a></i>
</div><div>project:  <a href="http://myzharbot.robot-home.it" target="_blank">http://myzharbot.robot-home.<wbr>it</a></div>
</div></div></div></div>
</div>


<fieldset class="m_3502431828139060249mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
gstreamer-devel mailing list
<a class="m_3502431828139060249moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a>
<a class="m_3502431828139060249moz-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>
</p>

<fieldset class="m_3502431828139060249mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
gstreamer-devel mailing list
<a class="m_3502431828139060249moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a>
<a class="m_3502431828139060249moz-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>
</p>

<fieldset class="m_3502431828139060249mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
gstreamer-devel mailing list
<a class="m_3502431828139060249moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a>
<a class="m_3502431828139060249moz-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>
</p></div></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></div></div></div>