<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/05/2016 02:53 PM, Walter Lucetti
wrote:<br>
</div>
<blockquote
cite="mid:CAN2Z0Teat0n+H1F2pD2M4CPYD+BEi3Ws2EiM+qAXtWp8WG_=TQ@mail.gmail.com"
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/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>
</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
cite="mid:CAN2Z0Teat0n+H1F2pD2M4CPYD+BEi3Ws2EiM+qAXtWp8WG_=TQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<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 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.it</a></div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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><br>
</p>
</body>
</html>