Playing a sound file while appending to it

Sebastian Dröge sebastian at centricular.com
Sat Nov 19 10:04:22 UTC 2016


On Tue, 2016-11-15 at 11:59 -0700, Jeffrey Barish wrote:
> 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.

You should first try with a newer version, yes. 0.10 is no longer
supported since years and full of known bugs.


To which format are you encoding your CDs? For MP3 or WAV it should
work, for some formats it can't work well in general.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161119/776861c2/attachment.sig>


More information about the gstreamer-devel mailing list