[gst-devel] Audio Sinks Clocking Problem?

Wim Taymans wim at fluendo.com
Wed Apr 18 14:50:48 CEST 2007


On Wed, 2007-04-18 at 15:03 +0300, Itay Kirshenbaum wrote:
> Hi,
> 
> I'm trying to do audio streaming using gstreamer, and I can't seem to
> get it synchronized properly.
> Is there a real problem with using alsasink (or any audio sink for
> that matter) with sync set to true? Or am I just not doing something
> right? 
> 
> Even in a simple pipeline:
> gst-launch audiotestsrc is-live=true ! audioconvert !
> "audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean)true,
> endianness=(int)1234, channels=(int)1, rate=(int)8000" ! alsasink
> sync=true 
> 
> The sound is choppy.
> 
> In a more complex pipeline, that does audio RTP streaming, the sound
> starts out alright for the first few samples, and then the
> clock_offset variable:
> 
>     gst_clock_get_calibration (sink->provided_clock, &cinternal,
> &cexternal, &crate_num, &crate_denom); 
>     clock_offset = (gst_element_get_base_time (GST_ELEMENT_CAST
> (bsink)) - cexternal) + cinternal;
> 
> suddenly goes from 0 to a very large value, throwing the whole thing
> out of sync.
> 
> Any hints to what i'm doing wrong? Or how it make it work ok? 

this only started to work reliably in CVS.

Wim

> 
> Thanks,
> Itay.
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list