<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1418213220;
mso-list-type:hybrid;
mso-list-template-ids:-61847224 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am trying to simulate a live stream from files. I followed following post but it’s not working for me at all. I am using gstreamer 1.4.4<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="http://gstreamer-devel.966125.n4.nabble.com/change-quot-location-quot-of-filesrc-element-without-breaking-tcpserversink-connection-td4661248.html">http://gstreamer-devel.966125.n4.nabble.com/change-quot-location-quot-of-filesrc-element-without-breaking-tcpserversink-connection-td4661248.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My pipeline looks like :<o:p></o:p></p>
<p class="MsoNormal">Fileserc-> decodebin ->queue -> videoconvert -> videoscale -> navseek->queue->autovideosink<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have pad probe on queue sink pad and stuck on following state;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">1)<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>For the first segment send; it changes the start time to 0 and end time to -1;<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">2)<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Send flush start to filesrc on EOS received on queue sink pad on separate ptherad.<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">3)<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Queue sink pad receives flush start and DROPS the data but decodebin goes to lock state.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any directions for the issue is appreciated;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here is trace log:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">0:00:08.201421555 2999 0x851b30 TRACE GST_REFCOUNTING gstobject.c:280:gst_object_unref:<avdec_h264-0:sink> 0x7fddc00640a0 unref 3->2<o:p></o:p></p>
<p class="MsoNormal">0:00:08.201429012 2999 0x851b30 TRACE GST_REFCOUNTING gstobject.c:280:gst_object_unref:<capsfilter0> 0x7fddcc018140 unref 4->3<o:p></o:p></p>
<p class="MsoNormal">0:00:08.201435754 2999 0x851b30 DEBUG GST_PADS gstpad.c:5156:gst_pad_send_event_unchecked:<capsfilter0:sink> sent event, ret ok<o:p></o:p></p>
<p class="MsoNormal">0:00:08.201442263 2999 0x851b30 LOG GST_PADS gstpad.c:4845:gst_pad_push_event_unchecked:<h264parse0:src> sent event 0x7fddc0006ee0 to (flush-start) peerpad <capsfilter0:sink>, ret ok<o:p></o:p></p>
<p class="MsoNormal">0:00:08.201450176 2999 0x851b30 TRACE GST_REFCOUNTING gstobject.c:280:gst_object_unref:<capsfilter0:sink> 0x8318a0 unref 3->2<o:p></o:p></p>
<p class="MsoNormal">0:00:08.201457273 2999 0x851b30 DEBUG baseparse gstbaseparse.c:1240:gst_base_parse_sink_event_default:<h264parse0> event handled<o:p></o:p></p>
<p class="MsoNormal">0:00:08.201462984 2999 0x851b30 TRACE GST_REFCOUNTING gstobject.c:280:gst_object_unref:<h264parse0> 0x7fddcc011b30 unref 4->3<o:p></o:p></p>
<p class="MsoNormal">0:00:08.201469947 2999 0x851b30 DEBUG GST_PADS gstpad.c:5156:gst_pad_send_event_unchecked:<h264parse0:sink> sent event, ret ok<o:p></o:p></p>
<p class="MsoNormal">0:00:08.201476398 2999 0x851b30 LOG GST_PADS gstpad.c:4845:gst_pad_push_event_unchecked:<multiqueue0:src_0> sent event 0x7fddc0006ee0 to (flush-start) peerpad <h264parse0:sink>, ret ok<o:p></o:p></p>
<p class="MsoNormal"><span style="color:red">0:00:08.201484628 2999 0x851b30 TRACE GST_REFCOUNTING gstobject.c:280:gst_object_unref:<h264parse0:sink> 0x831440 unref 3->2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">0:00:08.201491695 2999 0x851b30 DEBUG multiqueue gstmultiqueue.c:829:gst_single_queue_flush:<multiqueue0> flush start queue 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">0:00:08.201498693 2999 0x851b30 DEBUG dataqueue gstdataqueue.c:400:gst_data_queue_set_flushing: queue:0x659770 , flushing:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">0:00:08.201505278 2999 0x851b30 TRACE data_queue_dataflow gstdataqueue.c:402:gst_data_queue_set_flushing: locking qlock from thread 0x851b30<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">0:00:08.201511358 2999 0x851b30 TRACE data_queue_dataflow gstdataqueue.c:402:gst_data_queue_set_flushing: locked qlock from thread 0x851b30<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">0:00:08.201516995 2999 0x851b30 TRACE data_queue_dataflow gstdataqueue.c:411:gst_data_queue_set_flushing: unlocking qlock from thread 0x851b30<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red">0:00:08.201523056 2999 0x851b30 LOG multiqueue gstmultiqueue.c:840:gst_single_queue_flush:<multiqueue0> SingleQueue 0 : waking up eventually waiting task<o:p></o:p></span></p>
<p class="MsoNormal">0:00:08.201530777 2999 0x851b30 LOG multiqueue gstmultiqueue.c:846:gst_single_queue_flush:<multiqueue0> SingleQueue 0 : pausing task<o:p></o:p></p>
<p class="MsoNormal">0:00:08.201537209 2999 0x851b30 DEBUG GST_PADS gstpad.c:5568:gst_pad_pause_task:<multiqueue0:src_0> pause task<o:p></o:p></p>
<p class="MsoNormal">0:00:08.201544499 2999 0x851b30 DEBUG task gsttask.c:663:gst_task_set_state:<multiqueue0:src_0> Changing task 0x862b90 to state 2<o:p></o:p></p>
<p class="MsoNormal">0:00:09.214037996 2999 0x7fddd00035e0 LOG glwindow gstglwindow_x11.c:503:gst_gl_window_x11_handle_event: got event ConfigureNotify<o:p></o:p></p>
<p class="MsoNormal">0:00:09.214070160 2999 0x7fddd00035e0 TRACE glimagesink gstglimagesink.c:1023:gst_glimage_sink_on_resize: GL Window resized to 1078x614<o:p></o:p></p>
<p class="MsoNormal">0:00:09.214086091 2999 0x7fddd00035e0 DEBUG videosink gstvideosink.c:117:gst_video_sink_center_rect: source is 1920x1080 dest is 1078x614, result is 1078x606 with x,y 0x4<o:p></o:p></p>
<p class="MsoNormal">0:00:09.214197228 2999 0x7fddd00035e0 LOG glwindow gstglwindow_x11.c:503:gst_gl_window_x11_handle_event: got event Expose<o:p></o:p></p>
<p class="MsoNormal">0:00:09.214216526 2999 0x7fddd00035e0 TRACE GST_REFCOUNTING gstobject.c:254:gst_object_ref:<glwindowx11-0> 0x7fddd8005020 ref 1->2<o:p></o:p></p>
<p class="MsoNormal">0:00:09.214266371 2999 0x7fddd00035e0 TRACE glimagesink gstglimagesink.c:1093:gst_glimage_sink_on_draw: redrawing texture:84<o:p></o:p></p>
<p class="MsoNormal">0:00:09.217038814 2999 0x7fddd00035e0 TRACE GST_REFCOUNTING gstobject.c:280:gst_object_unref:<glwindowx11-0> 0x7fddd8005020 unref 2->1<o:p></o:p></p>
<p class="MsoNormal">0:00:09.217077582 2999 0x7fddd00035e0 TRACE GST_REFCOUNTING gstobject.c:254:gst_object_ref:<glwindowx11-0> 0x7fddd8005020 ref 1->2<o:p></o:p></p>
<p class="MsoNormal">0:00:09.225516161 2999 0x7fddd00035e0 TRACE GST_REFCOUNTING gstobject.c:280:gst_object_unref:<glwindowx11-0> 0x7fddd8005020 unref 2->1<o:p></o:p></p>
<p class="MsoNormal">0:00:09.225539845 2999 0x7fddd00035e0 TRACE GST_REFCOUNTING gstobject.c:280:gst_object_unref:<glcontextglx0> 0x7fddc00c65d0 unref 54->53<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">/SP<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>