<div dir="ltr"><br>Hi everyone,<br><br>Im having stuttering and stopping issues with gstreamer on the OMAP 2430... <br>I am using an NFS mounted file system via ethernet ...<br><br>osssink: WAV files play without an issue. <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mp3 files output sound and stop after a few seconds if i set buffer-time=1000 and latency-time=100<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mp3 files do not output sound without the settings above. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; streaming music from http links do not work under any setting.&nbsp; &nbsp;&nbsp; <br>
&nbsp;&nbsp; <br>esdsink: WAV files do not play.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mp3 files play nicely. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; streaming music from http links output sound and stop after a few seconds. &nbsp; <br><br>My sources: filesrc, souphttpsrc<br>My decoders: wavparse, mad <br>
<br>Ive experimented with placing queues before decoding and before sending audio to the sink. Trying both ways or either/or, do not impact the output signifcantly. <br>Can anyone provide some suggestions? <br><br>Thanks for your help so far.<br>
<br>regards,<br>raj<br><br><div class="gmail_quote">On Thu, Jul 31, 2008 at 4:42 AM, Jan Schmidt <span dir="ltr">&lt;<a href="mailto:thaytan@noraisin.net">thaytan@noraisin.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wed, 2008-07-30 at 08:50 -0700, Dennis Fleming wrote:<br>
&gt; First off: Thank to you and Zhoa-Lang for getting back so quickly.<br>
&gt; I&#39;m so busy I forgot my manners.<br>
&gt;<br>
&gt; Testing to find the parameters I have I used decodebin, but in the<br>
&gt; program itself uses playbin with the same effect. &nbsp; The only variation<br>
&gt; is that I set the sink property to alsasink since that seems the only<br>
&gt; way to set buffer-time and latency-time properties. &nbsp;Also, it seems<br>
&gt; counter-intuitive to me that an uncompressed WAV file should have<br>
&gt; problems keeping up while MP3s with the same sampling frequency and<br>
&gt; word size have none. &nbsp;And yet the artifacts are indicative of dropped<br>
&gt; buffers.<br>
<br>
</div>If the bottleneck is retrieving data from the input location, then it&#39;s<br>
entirely feasible. What&#39;s your data store? SD card, NFS? A WAV file<br>
might be 10 or more times more data to read and cause read stalls, where<br>
the smaller mp3 can be read in fine and decoded in memory with no<br>
further problems.<br>
<font color="#888888"><br>
J.<br>
</font><div><div></div><div class="Wj3C7c"><br>
&gt; Dennis<br>
&gt;<br>
&gt;<br>
&gt; ----- Original Message ----<br>
&gt; From: Thijs Vermeir &lt;<a href="mailto:thijsvermeir@gmail.com">thijsvermeir@gmail.com</a>&gt;<br>
&gt; To: Dennis Fleming &lt;<a href="mailto:arsantiqua@sbcglobal.net">arsantiqua@sbcglobal.net</a>&gt;<br>
&gt; Cc: <a href="mailto:gstreamer-embedded@lists.sourceforge.net">gstreamer-embedded@lists.sourceforge.net</a><br>
&gt; Sent: Tuesday, July 29, 2008 3:59:30 PM<br>
&gt; Subject: Re: [gst-embedded] noise and stuttering<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; On Tue, Jul 29, 2008 at 5:43 PM, Dennis Fleming<br>
&gt; &lt;<a href="mailto:arsantiqua@sbcglobal.net">arsantiqua@sbcglobal.net</a>&gt; wrote:<br>
&gt; &gt; The interesting thing is that uncompressed WAV files are causing the<br>
&gt; problem<br>
&gt; &gt; while MP3s were fixed by setting the buffer-time and latency-time to<br>
&gt; values<br>
&gt; &gt; smaller than found on a desktop. &nbsp;What would adding a queue do to<br>
&gt; latency<br>
&gt; &gt; through the system?<br>
&gt;<br>
&gt; There is no latency in this case because there are no live-sources.<br>
&gt; [1]<br>
&gt;<br>
&gt; &gt; Also, I suppose, that I will need to break up the<br>
&gt; &gt; playbin and create a pipeline myself, yes?<br>
&gt;<br>
&gt; playbin has the queue elements on the correct location, no changes<br>
&gt; needed.<br>
&gt; You where already using a custom pipeline, no?<br>
&gt;<br>
&gt; Gr,<br>
&gt;<br>
&gt; [1]<br>
&gt; <a href="http://webcvs.freedesktop.org/gstreamer/gstreamer/docs/design/draft-latency.txt?view=markup" target="_blank">http://webcvs.freedesktop.org/gstreamer/gstreamer/docs/design/draft-latency.txt?view=markup</a><br>

&gt;<br>
&gt; &gt;<br>
&gt; &gt; Dennis<br>
&gt; &gt;<br>
&gt; &gt; ----- Original Message ----<br>
&gt; &gt; From: Thijs Vermeir &lt;<a href="mailto:thijsvermeir@gmail.com">thijsvermeir@gmail.com</a>&gt;<br>
&gt; &gt; To: Zhao Liang-E3423C &lt;<a href="mailto:E3423C@motorola.com">E3423C@motorola.com</a>&gt;<br>
&gt; &gt; Cc: Dennis Fleming &lt;<a href="mailto:arsantiqua@sbcglobal.net">arsantiqua@sbcglobal.net</a>&gt;;<br>
&gt; &gt; <a href="mailto:gstreamer-embedded@lists.sourceforge.net">gstreamer-embedded@lists.sourceforge.net</a><br>
&gt; &gt; Sent: Tuesday, July 29, 2008 2:46:42 AM<br>
&gt; &gt; Subject: Re: [gst-embedded] noise and stuttering<br>
&gt; &gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; On Tue, Jul 29, 2008 at 11:15 AM, Zhao Liang-E3423C<br>
&gt; &lt;<a href="mailto:E3423C@motorola.com">E3423C@motorola.com</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;&gt; What&#39;s the rootcause of noise and stuttering ?<br>
&gt; &gt;<br>
&gt; &gt; Now you are using only 1 thread for all the elements and if the<br>
&gt; &gt; filesrc or the decoder is too slow sometimes<br>
&gt; &gt; you don&#39;t have time to catch up. By adding the queue you put the<br>
&gt; sink<br>
&gt; &gt; in another thread and now the filesrc+decoder can<br>
&gt; &gt; do some decoding in advance.<br>
&gt; &gt;<br>
&gt; &gt; Gr,<br>
&gt; &gt; Thijs<br>
&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; For normal playback, it should not have issues. If decoder didn&#39;t<br>
&gt; drop<br>
&gt; &gt;&gt; data, I think alsasink did it.<br>
&gt; &gt;&gt; By gstaudiosink mechanism, it will drop data replaced with blank<br>
&gt; data when<br>
&gt; &gt;&gt; data is late. I guess the rootcause is that.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; If that, I have no ideas except adding a queue before alsasink, and<br>
&gt; when<br>
&gt; &gt;&gt; queue is empty, pause the pipeline, it will not cause dropout, but<br>
&gt; still<br>
&gt; &gt;&gt; discontinous.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Zhao liang<br>
&gt; &gt;&gt; ________________________________<br>
&gt; &gt;&gt; From: <a href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net">gstreamer-embedded-bounces@lists.sourceforge.net</a><br>
&gt; &gt;&gt; [mailto:<a href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net">gstreamer-embedded-bounces@lists.sourceforge.net</a>] On Behalf<br>
&gt; Of<br>
&gt; &gt;&gt; Dennis Fleming<br>
&gt; &gt;&gt; Sent: Tuesday, July 29, 2008 4:37 AM<br>
&gt; &gt;&gt; To: <a href="mailto:gstreamer-embedded@lists.sourceforge.net">gstreamer-embedded@lists.sourceforge.net</a><br>
&gt; &gt;&gt; Subject: [gst-embedded] noise and stuttering<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I&#39;m trying to create an audio player on an IMX31 target and I&#39;ve<br>
&gt; found a<br>
&gt; &gt;&gt; discrepancy in the output of various formats. &nbsp;If I send MP3 data I<br>
&gt; have<br>
&gt; &gt;&gt; to<br>
&gt; &gt;&gt; set the buffer-time and latency-time to 10000 and 100 respectively<br>
&gt; to play<br>
&gt; &gt;&gt; without severe dropouts. &nbsp;However WAV files still have drop-out at<br>
&gt; a<br>
&gt; &gt;&gt; consistent rate (about 1 per 10 sec). &nbsp;Are there some general<br>
&gt; features I&#39;m<br>
&gt; &gt;&gt; missing or is there some guidance on the buffer-time/latency time<br>
&gt; that<br>
&gt; &gt;&gt; would<br>
&gt; &gt;&gt; account for this difference?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Linux <a href="http://2.6.22.19" target="_blank">2.6.22.19</a><br>
&gt; &gt;&gt; gstreamer 0.10.17 (open-embedded)<br>
&gt; &gt;&gt; gst-launch filesrc location=&lt;file&gt; ! decodebin ! alsasink<br>
&gt; &gt;&gt; buffer-time=10000<br>
&gt; &gt;&gt; latency-time=100<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Dennis<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; -------------------------------------------------------------------------<br>
&gt; &gt;&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s<br>
&gt; &gt;&gt; challenge<br>
&gt; &gt;&gt; Build the coolest Linux based applications with Moblin SDK &amp; win<br>
&gt; great<br>
&gt; &gt;&gt; prizes<br>
&gt; &gt;&gt; Grand prize is a trip for two to an Open Source event anywhere in<br>
&gt; the<br>
&gt; &gt;&gt; world<br>
&gt; &gt;&gt; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; Gstreamer-embedded mailing list<br>
&gt; &gt;&gt; <a href="mailto:Gstreamer-embedded@lists.sourceforge.net">Gstreamer-embedded@lists.sourceforge.net</a><br>
&gt; &gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; -------------------------------------------------------------------------<br>
&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
&gt; Grand prize is a trip for two to an Open Source event anywhere in the world<br>
&gt; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt; _______________________________________________ Gstreamer-embedded mailing list <a href="mailto:Gstreamer-embedded@lists.sourceforge.net">Gstreamer-embedded@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded</a><br>

</div></div><div class="Ih2E3d">--<br>
Jan Schmidt &lt;<a href="mailto:thaytan@noraisin.net">thaytan@noraisin.net</a>&gt;<br>
<br>
<br>
-------------------------------------------------------------------------<br>
</div><div><div></div><div class="Wj3C7c">This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
_______________________________________________<br>
Gstreamer-embedded mailing list<br>
<a href="mailto:Gstreamer-embedded@lists.sourceforge.net">Gstreamer-embedded@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded</a><br>
</div></div></blockquote></div><br></div>