[gst-devel] Save a stream to different file every hour

Juraj Kubelka juraj.kubelka at googlemail.com
Wed Jun 17 10:27:06 CEST 2009


On Tue, Jun 16, 2009 at 10:31 AM, Bibin joseph <josebibin1984 at gmail.com>wrote:

> Juraj Kubelka wrote:
> > Hi,
> >
> > i am newbie with GStreamer and I would like to save an audio stream
> > from microphone to OGG file and moreover to change filename every hour
> > without loosing data. I found out a pipeline should be composed like:
> > alsasrc ! audioconvert ! vorbisenc ! oggmux ! filesink. What is the
> > procedure for changing output file? How can I do it properly without
> > loosing any data?
> >
> > Thank you for any idea!
> > Jura
> >
> What you mean by "changing" the output file? You want to change the
> output location where the file is to be stored, or something else?
>
> Thanks and Regards,
> Bibin
>
>
Hi Bibin,

I mean to set the location, storing the stream for one hour, then change the
location, and continue saving to another file (change location for filesink
after one hour of PLAYING state). But it seams the location can be changed
only in NULL state of pipeline. But whenewher NULL state is set, pipeline
releases all elements (as someone posted). So, I think pipeline cannot be
reused that way. It seams i have to make a new pipeline whenever I want to
change filename (location).

Thanks,
Jura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090617/b4bc323a/attachment.htm>


More information about the gstreamer-devel mailing list