[gst-devel] Changing file location during recording

sudarshan bisht bisht.sudarshan at gmail.com
Wed Jun 16 18:51:44 CEST 2010


I don't know that how you are doing it but I think better way of doing it is
pause the pipeline and check in the bus callback that pipeline is really
paused then only change the location of the file . Then set the pipeline
state to play.




On Wed, Jun 16, 2010 at 9:57 PM, Albert Costa <costa_albert at yahoo.fr> wrote:

>  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
>
>


-- 
Regards,

Sudarshan Bisht
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100616/aa554c1f/attachment.htm>


More information about the gstreamer-devel mailing list