<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi, <br>
I think that file is opened during the NULL -> READY transition and
you cannot change a filesink location when file is already opened.<br>
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.<br>
<br>
Block the tee sink pad before setting to NULL if you do not want to
lose data.<br>
<br>
Aurelien<br>
<br>
<br>
Le 16/06/2010 18:27, Albert Costa a écrit :
<blockquote cite="mid:575688.41740.qm@web28401.mail.ukl.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div
style="font-family: 'times new roman','new york',times,serif; font-size: 12pt;">
<div>Hi,</div>
<div>I have a pipeline that can be reducted to:</div>
<div><br>
</div>
<div>gst-launch dshowvideosrc ! tee ! queue ! ffmpegcolorspace !
ffenc_mpeg2video ! mpegtsmux ! filesink tee0. ! queue !
ffmpegcolorspace ! directdrawsink</div>
<div><br>
</div>
<div>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:</div>
<div>-set pipeline to paused</div>
<div>-change filesink location</div>
<div>-set back pipeline to playing</div>
<div>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.</div>
<div>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?</div>
<div>Thanks for help,</div>
<div>Regards,</div>
<div>Al</div>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
------------------------------------------------------------------------------
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:
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/thinkgeek-promo">http://p.sf.net/sfu/thinkgeek-promo</a></pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>