Playing a sound file while appending to it

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

Playing a sound file while appending to it

Jeffrey Barish
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playing a sound file while appending to it

Sebastian Dröge-3
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment