<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 12/08/2016 03:48 PM, Stefan Sauer
      wrote:<br>
    </div>
    <blockquote
      cite="mid:90066c93-6746-9c2d-66b2-bf6bf6004950@hora-obscura.de"
      type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <div class="moz-cite-prefix">On 12/08/2016 03:12 PM, Stefan Sauer
        wrote:<br>
      </div>
      <blockquote
        cite="mid:cebaa33f-f8aa-54b0-79eb-5516514080d2@hora-obscura.de"
        type="cite">
        <meta content="text/html; charset=utf-8"
          http-equiv="Content-Type">
        <div class="moz-cite-prefix">On 12/05/2016 05:26 PM, Walter
          Lucetti wrote:<br>
        </div>
        <blockquote
cite="mid:CAN2Z0Tcbew_z3x0AWV=5SWnEf4HhZ1VgkyOp=FTfw6aLTo1oeA@mail.gmail.com"
          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 moz-do-not-send="true"
                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>
        </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>
    Oh, and also the avg_bps is wrong. Needs to be 44100 for 16bit.<br>
    <br>
    Stefan<br>
    <br>
    <blockquote
      cite="mid:90066c93-6746-9c2d-66b2-bf6bf6004950@hora-obscura.de"
      type="cite"> <br>
      From various places you can check the wav format spec:<br>
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
        href="http://soundfile.sapp.org/doc/WaveFormat/">http://soundfile.sapp.org/doc/WaveFormat/</a><br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      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
        cite="mid:cebaa33f-f8aa-54b0-79eb-5516514080d2@hora-obscura.de"
        type="cite"> <br>
        <blockquote
cite="mid:CAN2Z0Tcbew_z3x0AWV=5SWnEf4HhZ1VgkyOp=FTfw6aLTo1oeA@mail.gmail.com"
          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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
                                    href="mailto:myzhar@gmail.com"
                                    target="_blank">myzhar@gmail.com</a><br>
                                  web: <i><a moz-do-not-send="true"
                                      href="http://www.robot-home.it/"
                                      target="_blank">www.robot-home.it</a></i><br>
                                </div>
                                <div>project:  <a moz-do-not-send="true"
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 moz-do-not-send="true" class="m_-5761324951495532258moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a>
<a moz-do-not-send="true" 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>

    </p>
  </div>


______________________________<wbr>_________________

gstreamer-devel mailing list

<a moz-do-not-send="true" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a>

<a moz-do-not-send="true" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a>


</blockquote></div>

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

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


<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>

</blockquote><p>
</p>

<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>

</blockquote><p>
</p>

<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>

</blockquote><p>
</p></body></html>