<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:13px">So I also need to probe for that on the filesink pad? And do what when it arrives there? - just wait for it, then I know the file is closed, is that the idea?</span></blockquote><div><br></div><div>Exactly. The probe callback ensures that the file closed properly. Refer to <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html#section-dynamic-changing">this example</a> where a somewhat similar situation is explained. </div><div><br></div><div>For the three examples you gave:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:13px">avenc_mpeg2video ! filesink</span></blockquote><div><br></div><div>Send the eos through the filesink sink pad. Don't bother installing the probe. Just be sure that the event was sent by checking the return value of the gst_pad_send_event.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:13px">avenc_mpeg2video ! mpegpsmux ! filesink</span></blockquote><div><br></div><div>Install the probe on the filesink sink pad. Send the eos on <span style="font-size:13px">mpegpsmux sink pad. Once you enter the callback of the probe, your file should be properly closed. </span></div><div><span style="font-size:13px"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:13px">avenc_mpeg2video ! avimux ! filesink</span></blockquote><div><br></div><div>Similar to the last example, just send the eos on the avimux sink pad.  </div><div><br></div><div>Cheers</div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-09 16:37 GMT+01:00 Paul Barber <span dir="ltr"><<a href="mailto:paul.barber@oncology.ox.ac.uk" target="_blank">paul.barber@oncology.ox.ac.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the hints,<br>
<span><br>
>Are properly closing the file? I.e., if you're using gst-launch are you<br>
>adding the -e switch to the command, or alternatively, if you're using the<br>
>SDK, are you sending an EOS and probing for it on the filesink sink pad?<br>
<br>
</span>I am using the SDK, and not doing either of those things.<br>
At the end I am setting the pipeline to GST_STATE_READY and then GST_STATE_NULL, but explicitly sending an EOS.<br>
So I also need to probe for that on the filesink pad? And do what when it arrives there? - just wait for it, then I know the file is closed, is that the idea?<br>
<br>
Thanks for your help,<br>
<div><div>Paul.<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div></div>