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