[gst-devel] Changing filesink 'location' property on the fly?

Thomas Vander Stichele thomas at apestaart.org
Sun Dec 17 02:28:52 CET 2006

On Thu, 2006-12-14 at 12:57 -0600, John Stritch wrote:
> Hello,
> I have a pipeline recording from alsasrc with a cutter to a filesink
> working just fine; the file grows when above the threshold and does not
> when below.  I would now like to record to a different file every time
> the cutter's threshold transitions from above == false to above == true.
> I have tried having the source send an EOS downstream by
> gst_element_set_state(source, GST_STATE_NULL) when the above property
> transitions to false then g_object_set(G_OBJECT (sink), "location", fn,
> NULL) when the GST_MESSAGE_EOS is received.

You can set the sink to READY then change the location.

>   I then planned to set the
> source state back to playing.  However, I get the following warning
> "Changing the 'location' property on filesink when a file is open not
> supported."
> Bearing in mind that I want to minimize the amount of potential lost
> input from the 'live' source, what is the correct procedure to
> dynamically change output files?

> Thanks,
> John
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

More information about the gstreamer-devel mailing list