From: kash <alw...@ex...> - 2007-11-29 12:27:40
|
hi all, What is the significance of buffer time and latency time for audio buffers with respect to audio sinks/sources in case of live pipeline ,? how to set this value properly for live pipeline ? do they depend on sampling rate , channels ? Thanks in advance . _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! |
From: Florent <ft...@gm...> - 2007-11-29 13:27:21
|
> What is the significance of buffer time and latency time for audio buffers with respect to audio sinks/sources in > case of live pipeline ,? I also would be interested to know if it would allow one to induce an arbitrary delay for resync in an audio/video pipeline Regards, Florent |
From: Wim T. <wim...@gm...> - 2007-11-29 14:12:28
|
On Thu, 2007-11-29 at 14:27 +0100, Florent wrote: > > What is the significance of buffer time and latency time for audio buffers with respect to audio sinks/sources in > > case of live pipeline ,? > > I also would be interested to know if it would allow one to induce an > arbitrary delay for resync in an audio/video pipeline > I don't know exactly what you are trying to ask but there are several options for creating more latency in a pipeline: - use bigger audio buffers (assuming the element extends GstAudioSink) - add elements that add latency (gstrtpjitterbuffer, ...) - play with ts-offset on the sinks (delays playback with an arbitrary amount) - set the delay property on the pipeline to something else than 0 (adjust calculation of the base_time on elements and has therefore only meaningful results with non-live pipelines) - issue a custom latency event on the pipeline (no signal yet for this) Wim > Regards, > > Florent > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > gstreamer-devel mailing list > gst...@li... > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
From: Wim T. <wim...@gm...> - 2007-11-29 14:06:58
|
On Thu, 2007-11-29 at 07:27 -0500, kash wrote: > > > hi all, > > > > What is the significance of buffer time and latency time for audio buffers with respect to audio sinks/sources in > > > > case of live pipeline ,? Buffer time is the size of the audio buffer in microseconds, typically the amount of data you allocate for the hardware DMA buffer. latency-time is the period at which you request the hardware to generate interrupts. The bigger the buffer, the more you can compensate for fluctuations in the scheduling of the producer threads, the smaller the buffer, the lower the latency beween producer and actual playback. when pausing/playing the latency time determines the reaction speed (we write full segments of latency-time). For the way the audiosink base class works, you will always introduce the latency of the buffer-time for live sources (the playback of the ringbuffer, or DMA, is started after the buffer is completely filled). Custom implementations of GstBaseAudioSink can do something else and start playback after filling less of the buffer. Wim > > > > > > how to set this value properly for live pipeline ? > > > > do they depend on sampling rate , channels ? > > > > Thanks in advance . > > > > > > > > > > _______________________________________________ > Join Excite! - http://www.excite.com > The most personalized portal on the Web! > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > gstreamer-devel mailing list > gst...@li... > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |