Playing a sound file while appending to it

Jeffrey Barish jeff_barish at earthlink.net
Tue Nov 15 18:59:39 UTC 2016


When I create a sound file by ripping a track from a CD, I would like to be 
able to start playing the sound file shortly after I initiate the rip.  The 
ripper would append samples to the sound file.  Ripping proceeds much more 
quickly than playing, so the necessary samples will always be present by the 
time they are needed.  The difficulty is that gstreamer seems to determine the 
size of the sound file when it starts playing and it stops playing as soon as 
it has played that many samples even though the sound file might actually be 
longer by that time.  Is there a way to get gstreamer to recheck the file size 
or to tell it the new file size whenever I append another block?

I am using playbin2 to play under gstreamer 0.10.  If the capability I seek is 
available only under a newer version of gstreamer, I would be interested in 
knowing that too.
-- 
Jeffrey Barish


More information about the gstreamer-devel mailing list