[gst-devel] Changing file location during recording
Aurelien Grimaud
gstelzz at yahoo.fr
Wed Jun 16 23:37:02 CEST 2010
Hi,
I think that file is opened during the NULL -> READY transition and you
cannot change a filesink location when file is already opened.
therefore, your filesink has to go to NULL in order to close the initial
file and then to playing again to open the new file.
Block the tee sink pad before setting to NULL if you do not want to lose
data.
Aurelien
Le 16/06/2010 18:27, Albert Costa a écrit :
> Hi,
> I have a pipeline that can be reducted to:
>
> gst-launch dshowvideosrc ! tee ! queue ! ffmpegcolorspace !
> ffenc_mpeg2video ! mpegtsmux ! filesink tee0. ! queue !
> ffmpegcolorspace ! directdrawsink
>
> All this is created/handled in a c application where I can start and
> stop the pipeline. I now have a requirement to change the location of
> the file after a given size (for example) is reached. I've started to
> test following sequence on user request for the moment:
> -set pipeline to paused
> -change filesink location
> -set back pipeline to playing
> But it seems it does not handle the change of location in the
> filesink. I've also tried to unlink/relink the filesink branch in
> combination with the state change, with no success.
> Is there a way to change dynamically the filesink location, either by
> external commands (like I tried) or even better automatically with a
> plugin I am maybe not aware of?
> Thanks for help,
> Regards,
> Al
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100616/d28e84ec/attachment.htm>
More information about the gstreamer-devel
mailing list