Hi<br><br>I join to this mail a simple test.<br><br>The test demonstrates that when the pipeline is stopped when sending eos from the client code, then ffmux_asf does not write the index, so it&#39;s not possible to seek when playing back the result file.<br>
If I set num_buffers=N instead of sending eos, then the muxer write the index.<br><br>Yes it should be the same result because when GstBaseSrc reachs num_buffers_left = 0 then it return GST_FLOW_UNEXPECTED then an EOS is generated.<br>
<br>So something is not flushed when ffmux receive eos in the first way.<br><br>Is it a bug from gstffmpegmux or a problem in ffmpeg-asfmux-libavcodec ? or something else ?<br><br>( ./test 0 rec.asf&nbsp;&nbsp; -&gt; index not written)&nbsp; (eos sent from a g_timeout_add callback)<br>
( ./test 1 rec.asf&nbsp;&nbsp; -&gt; asf correclty generated)&nbsp; (use num_buffers=N)<br><br>Sincerely<br><br>Julien<br>