Oh ok :P<br><br>The following is ok now:<br><br>GstEvent *eos = gst_event_new_eos ();<br>gst_element_send_event (pipeline , eos);<br><br>Thx a lot, you resolved me a thing I am doing wrong for a while<br><br>Julien<br><br>
<div class="gmail_quote">2008/11/25 Wim Taymans <span dir="ltr"><<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, 2008-11-25 at 12:02 +0100, Julien Isorce wrote:<br>
> Hi<br>
><br>
> I join to this mail a simple test.<br>
><br>
> The test demonstrates that when the pipeline is stopped when sending<br>
> eos from the client code, then ffmux_asf does not write the index, so<br>
> it's not possible to seek when playing back the result file.<br>
<br>
</div>You are not sending an EOS event but (forcefully) posting an EOS message<br>
from the pipeline to the application.<br>
<div class="Ih2E3d"><br>
> If I set num_buffers=N instead of sending eos, then the muxer write<br>
> the index.<br>
><br>
> Yes it should be the same result because when GstBaseSrc reachs<br>
> num_buffers_left = 0 then it return GST_FLOW_UNEXPECTED then an EOS is<br>
> generated.<br>
><br>
> So something is not flushed when ffmux receive eos in the first way.<br>
<br>
</div>ffmux never receives EOS because there is no such event generated.<br>
<div class="Ih2E3d"><br>
><br>
> Is it a bug from gstffmpegmux or a problem in<br>
> ffmpeg-asfmux-libavcodec ? or something else ?<br>
<br>
</div>It's a bug in the application.<br>
<font color="#888888"><br>
Wim<br>
</font><div class="Ih2E3d">><br>
> ( ./test 0 rec.asf -> index not written) (eos sent from a<br>
> g_timeout_add callback)<br>
> ( ./test 1 rec.asf -> asf correclty generated) (use num_buffers=N)<br>
><br>
> Sincerely<br>
><br>
> Julien<br>
</div><div><div></div><div class="Wj3C7c">> -------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
> Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
> Grand prize is a trip for two to an Open Source event anywhere in the world<br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> _______________________________________________ gstreamer-devel mailing list <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br>