<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>First off: Thank to you and Zhoa-Lang for getting back so quickly.&nbsp; I'm so busy I forgot my manners.<br><br>Testing to find the parameters I have I used decodebin, but in the program itself uses playbin with the same effect.&nbsp;&nbsp; The only variation is that I set the sink property to alsasink since that seems the only way to set buffer-time and latency-time properties.&nbsp; Also, it seems counter-intuitive to me that an uncompressed WAV file should have problems keeping up while MP3s with the same sampling frequency and word size have none.&nbsp; And yet the artifacts are indicative of dropped buffers.&nbsp; <br><br>Dennis<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size:
 10pt;">----- Original Message ----<br>From: Thijs Vermeir &lt;thijsvermeir@gmail.com&gt;<br>To: Dennis Fleming &lt;arsantiqua@sbcglobal.net&gt;<br>Cc: gstreamer-embedded@lists.sourceforge.net<br>Sent: Tuesday, July 29, 2008 3:59:30 PM<br>Subject: Re: [gst-embedded] noise and stuttering<br><br>
Hi,<br><br>On Tue, Jul 29, 2008 at 5:43 PM, Dennis Fleming<br>&lt;<a ymailto="mailto:arsantiqua@sbcglobal.net" href="mailto:arsantiqua@sbcglobal.net">arsantiqua@sbcglobal.net</a>&gt; wrote:<br>&gt; The interesting thing is that uncompressed WAV files are causing the problem<br>&gt; while MP3s were fixed by setting the buffer-time and latency-time to values<br>&gt; smaller than found on a desktop.&nbsp; What would adding a queue do to latency<br>&gt; through the system?<br><br>There is no latency in this case because there are no live-sources. [1]<br><br>&gt; Also, I suppose, that I will need to break up the<br>&gt; playbin and create a pipeline myself, yes?<br><br>playbin has the queue elements on the correct location, no changes needed.<br>You where already using a custom pipeline, no?<br><br>Gr,<br><br>[1] <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><br>&gt;<br>&gt; Dennis<br>&gt;<br>&gt; ----- Original Message ----<br>&gt; From: Thijs Vermeir &lt;<a ymailto="mailto:thijsvermeir@gmail.com" href="mailto:thijsvermeir@gmail.com">thijsvermeir@gmail.com</a>&gt;<br>&gt; To: Zhao Liang-E3423C &lt;<a ymailto="mailto:E3423C@motorola.com" href="mailto:E3423C@motorola.com">E3423C@motorola.com</a>&gt;<br>&gt; Cc: Dennis Fleming &lt;<a ymailto="mailto:arsantiqua@sbcglobal.net" href="mailto:arsantiqua@sbcglobal.net">arsantiqua@sbcglobal.net</a>&gt;;<br>&gt; <a ymailto="mailto:gstreamer-embedded@lists.sourceforge.net" href="mailto:gstreamer-embedded@lists.sourceforge.net">gstreamer-embedded@lists.sourceforge.net</a><br>&gt; Sent: Tuesday, July 29, 2008 2:46:42 AM<br>&gt; Subject: Re: [gst-embedded] noise and stuttering<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; On Tue, Jul 29, 2008 at 11:15 AM, Zhao
 Liang-E3423C &lt;<a ymailto="mailto:E3423C@motorola.com" href="mailto:E3423C@motorola.com">E3423C@motorola.com</a>&gt;<br>&gt; wrote:<br>&gt;&gt; What's the rootcause of noise and stuttering ?<br>&gt;<br>&gt; Now you are using only 1 thread for all the elements and if the<br>&gt; filesrc or the decoder is too slow sometimes<br>&gt; you don't have time to catch up. By adding the queue you put the sink<br>&gt; in another thread and now the filesrc+decoder can<br>&gt; do some decoding in advance.<br>&gt;<br>&gt; Gr,<br>&gt; Thijs<br>&gt;<br>&gt;&gt;<br>&gt;&gt; For normal playback, it should not have issues. If decoder didn't drop<br>&gt;&gt; data, I think alsasink did it.<br>&gt;&gt; By gstaudiosink mechanism, it will drop data replaced with blank data when<br>&gt;&gt; data is late. I guess the rootcause is that.<br>&gt;&gt;<br>&gt;&gt; If that, I have no ideas except adding a queue before alsasink, and when<br>&gt;&gt; queue is empty, pause the pipeline,
 it will not cause dropout, but still<br>&gt;&gt; discontinous.<br>&gt;&gt;<br>&gt;&gt; Zhao liang<br>&gt;&gt; ________________________________<br>&gt;&gt; From: <a ymailto="mailto:gstreamer-embedded-bounces@lists.sourceforge.net" href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net">gstreamer-embedded-bounces@lists.sourceforge.net</a><br>&gt;&gt; [mailto:<a ymailto="mailto:gstreamer-embedded-bounces@lists.sourceforge.net" href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net">gstreamer-embedded-bounces@lists.sourceforge.net</a>] On Behalf Of<br>&gt;&gt; Dennis Fleming<br>&gt;&gt; Sent: Tuesday, July 29, 2008 4:37 AM<br>&gt;&gt; To: <a ymailto="mailto:gstreamer-embedded@lists.sourceforge.net" href="mailto:gstreamer-embedded@lists.sourceforge.net">gstreamer-embedded@lists.sourceforge.net</a><br>&gt;&gt; Subject: [gst-embedded] noise and stuttering<br>&gt;&gt;<br>&gt;&gt; I'm trying to create an audio player on an IMX31 target and I've
 found a<br>&gt;&gt; discrepancy in the output of various formats.&nbsp; If I send MP3 data I have<br>&gt;&gt; to<br>&gt;&gt; set the buffer-time and latency-time to 10000 and 100 respectively to play<br>&gt;&gt; without severe dropouts.&nbsp; However WAV files still have drop-out at a<br>&gt;&gt; consistent rate (about 1 per 10 sec).&nbsp; Are there some general features I'm<br>&gt;&gt; missing or is there some guidance on the buffer-time/latency time that<br>&gt;&gt; would<br>&gt;&gt; account for this difference?<br>&gt;&gt;<br>&gt;&gt; Linux 2.6.22.19<br>&gt;&gt; gstreamer 0.10.17 (open-embedded)<br>&gt;&gt; gst-launch filesrc location=&lt;file&gt; ! decodebin ! alsasink<br>&gt;&gt; buffer-time=10000<br>&gt;&gt; latency-time=100<br>&gt;&gt;<br>&gt;&gt; Dennis<br>&gt;&gt;<br>&gt;&gt; -------------------------------------------------------------------------<br>&gt;&gt; This SF.Net email is sponsored by the Moblin Your Move Developer's<br>&gt;&gt;
 challenge<br>&gt;&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great<br>&gt;&gt; prizes<br>&gt;&gt; Grand prize is a trip for two to an Open Source event anywhere in the<br>&gt;&gt; world<br>&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; _______________________________________________<br>&gt;&gt; Gstreamer-embedded mailing list<br>&gt;&gt; <a ymailto="mailto:Gstreamer-embedded@lists.sourceforge.net" href="mailto:Gstreamer-embedded@lists.sourceforge.net">Gstreamer-embedded@lists.sourceforge.net</a><br>&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;<br>&gt;&gt;<br>&gt;<br></div></div></div></body></html>