gstreamer audio cache

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gstreamer audio cache

gstUser
I have the following pipeline: filesrc ! mp3decoder ! alsasink

I am experiencing at times slow responses in playing an mp3.  Sometimes the mp3 (2 second file) takes 2 or 3 seconds to start playing.  I was hoping to either cache the data on the filesrc side to prevent file reads, or cache the decoded data on the alsasink side.  

I have tried caching the data on the filesrc side, however the file only plays on the first try.  Each successive try does not seem to write the data to the ring buffer.

Is there a way to cache the audio data on the alsasink side?  
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer audio cache

Stefan Sauer
hi,

On 12.10.2010 23:58, gstUser wrote:

> I have the following pipeline: filesrc ! mp3decoder ! alsasink
>
> I am experiencing at times slow responses in playing an mp3.  Sometimes the
> mp3 (2 second file) takes 2 or 3 seconds to start playing.  I was hoping to
> either cache the data on the filesrc side to prevent file reads, or cache
> the decoded data on the alsasink side.  
>
> I have tried caching the data on the filesrc side, however the file only
> plays on the first try.  Each successive try does not seem to write the data
> to the ring buffer.
>
> Is there a way to cache the audio data on the alsasink side?  
>  
you haven't really told us what you want to do. If the audio is just a
short sniuppet, you coudl e.g. use pulseaudio sample cache and play it
from there.

Stefan

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel