<div dir="ltr"><div>Hey,</div><div><br></div><div>Looking at the diagram, it looks like the muxer is never outputing any buffer and is not negotiating its output, you should check how buffer are flowing in the debug log, also a stack trace could be useful.<br></div><div><br></div><div>BR,</div><div><br></div><div>Thibault<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 26, 2019 at 8:08 AM Thornton, Keith <<a href="mailto:keith.thornton@zeiss.com">keith.thornton@zeiss.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="DE">
<div class="gmail-m_-7713198567917855390WordSection1">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif" lang="EN-US">Can filesink accept a segment in time format, I would have thought in needs a byte format segment message<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b>Von:</b> gstreamer-devel <<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>>
<b>Im Auftrag von </b>David Ing<br>
<b>Gesendet:</b> Montag, 25. März 2019 22:20<br>
<b>An:</b> Discussion of the development of and with GStreamer <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>
<b>Betreff:</b> Trying to diagnose a READY --> PAUSED transition bug<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">I am using Gstreamer 1.14.4.  I am having an issue with one of my pipelines on Windows.  I attached an SVG file which shows my pipeline at the point in time when it gets stuck.  The issue occurs when I try to move my pipeline from READY
 to PAUSED.  I do this by calling gst_element_set_state(gstPipeline, GST_STATE_PAUSED), and after that call is made, I see all elements within the pipeline transition to PAUSED except the
<b>GstFileSink which remains stuck in READY</b>.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Also:<u></u><u></u></p>
</div>
<div>
<ul type="disc">
<li class="MsoNormal">
The issue does not repro on Linux (only Windows).<u></u><u></u></li><li class="MsoNormal">
I use the same basic code to render many other kinds of jobs and I never have a problem with the GstFileSink.  It is only for this one specific pipeline that I have the problem.<u></u><u></u></li><li class="MsoNormal">
I am 100% certain that this isn't some kind of file system issue (e.g. folder permissions).<u></u><u></u></li></ul>
</div>
<div>
<p class="MsoNormal">For logging I set the the "filesink" category to TRACE and this is the entirety of what it shows me:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<blockquote style="margin-left:30pt;margin-right:0cm">
<div>
<div>
<div>
<p class="MsoNormal">Pipeline is in NULL state, as I connect the muxer to the filesink I see this:<u></u><u></u></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">19-03-25T20:44:19.420327 INFO    filesink gstfilesink.c:294 filename : C:\dev\github\panopto\panopto-core\Debug\x64\test-scratch\2019-03-25T20-44-11.942351\CompositionTests\Debug\0ed40ba8-7d3d-4569-8294-aa02017efdfc-9531e8a6-d94f-44ed-a79a-aa0b0008a713.mp4<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">19-03-25T20:44:19.420327 INFO    filesink gstfilesink.c:295 uri      :
<a>
file:///C:/dev/github/panopto/panopto-core/Debug/x64/test-scratch/2019-03-25T20-44-11.942351/CompositionTests/Debug/0ed40ba8-7d3d-4569-8294-aa02017efdfc-9531e8a6-d94f-44ed-a79a-aa0b0008a713.mp4</a><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</blockquote>
<blockquote style="margin-left:30pt;margin-right:0cm">
<div>
<div>
<div>
<p class="MsoNormal">Immediately after I call  gst_element_set_state(gstPipeline, GST_STATE_READY)  , I see:<u></u><u></u></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">19-03-25T20:44:19.458327 DEBUG   filesink gstfilesink.c:516 Seeking to offset 0 using fseeko<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">19-03-25T20:44:19.458327 DEBUG   filesink gstfilesink.c:416 opened file C:\dev\github\panopto\panopto-core\Debug\x64\test-scratch\2019-03-25T20-44-11.942351\CompositionTests\Debug\0ed40ba8-7d3d-4569-8294-aa02017efdfc-9531e8a6-d94f-44ed-a79a-aa0b0008a713.mp4,
 seekable 1<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">6.3 seconds after I call  gst_element_set_state(gstPipeline, GST_STATE_PAUSED)  , I see:  <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">19-03-25T20:44:25.853308 DEBUG   filesink gstfilesink.c:586 Ignored SEGMENT event of format 3 (time)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</blockquote>
<p class="MsoNormal">My best guess is that it's some kind of rare timing bug within gstreamer (which most pipelines are lucky to avoid).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I am looking for tips about how to diagnose the exact cause of this bug:  But keep in mind that I have no debug symbols because I'm on Windows.<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<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="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>