<div dir="ltr"><div><div><div>Hi Michael,<br><br></div>May I ask what media server project you are working on ?<br><br></div>Thanks,<br></div>Aaron<br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 23, 2016 at 5:24 AM, wunwunforever <span dir="ltr"><<a href="mailto:michael@spalk.co" target="_blank">michael@spalk.co</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am working on an open source media server project that wraps gstreamer and<br>
am trying to debug a pipeline that contains an rtp source and an mpegtsmux<br>
and filesink.<br>
<br>
The full server boot logs are available here:<br>
<br>
<a href="https://drive.google.com/file/d/0B9eZJKieRdJPeHVheEtyRmNUWlk/view?usp=sharing" rel="noreferrer" target="_blank">https://drive.google.com/file/d/0B9eZJKieRdJPeHVheEtyRmNUWlk/view?usp=sharing</a><br>
<br>
The elements of interest are mpegtsmux2 and filesink2. The filesink creates<br>
the file correctly but does not write anything to the file. I think the<br>
issue is with the timestamps in the stream. Below are the log lines that<br>
show the filesink stopping. Any guidance as to how to fix or get better<br>
debugging info would be much appreciated.<br>
<br>
2016-06-23 06:03:35,500711 19233 [0x00007f3ef6ffd700]   debug GST_STATES<br>
gstelement.c:2561 gst_element_set_state_func() <filesink2>  current READY,<br>
old_pending PAUSED, next PAUSED, old return ASYNC<br>
2016-06-23 06:03:35,500787 19233 [0x00007f3ef6ffd700]   debug GST_STATES<br>
gstelement.c:2595 gst_element_set_state_func() <filesink2>  intermediate:<br>
setting state from PAUSED to READY<br>
2016-06-23 06:03:35,500879 19233 [0x00007f3ef6ffd700]     log GST_STATES<br>
gstelement.c:2850 gst_element_change_state_func() <filesink2>  default<br>
handler tries setting state from PAUSED to READY (001a)<br>
2016-06-23 06:03:35,500940 19233 [0x00007f3ef6ffd700]   debug<br>
GST_ELEMENT_PADS          gstelement.c:2793 gst_element_pads_activate()<br>
<filesink2>  deactivate pads<br>
2016-06-23 06:03:35,500998 19233 [0x00007f3ef6ffd700]   debug GST_PADS<br>
gstpad.c:1076 gst_pad_set_active() <filesink2:sink>  deactivating pad from<br>
push mode<br>
2016-06-23 06:03:35,501045 19233 [0x00007f3ef6ffd700]   debug GST_PADS<br>
gstpad.c:965 pre_activate() <filesink2:sink>  setting PAD_MODE NONE, set<br>
flushing<br>
2016-06-23 06:03:35,501092 19233 [0x00007f3ef6ffd700]   debug basesink<br>
gstbasesink.c:4144 gst_base_sink_set_flushing() <filesink2>  flushing out<br>
data thread, need preroll to TRUE<br>
2016-06-23 06:03:35,501135 19233 [0x00007f3ef6ffd700]   debug GST_PADS<br>
gstpad.c:1013 post_activate() <filesink2:sink>  stopped streaming<br>
2016-06-23 06:03:35,501179 19233 [0x00007f3ef6ffd700]   debug GST_PADS<br>
gstpad.c:1186 activate_mode_internal() <filesink2:sink>  deactivated in push<br>
mode<br>
2016-06-23 06:03:35,501231 19233 [0x00007f3ef6ffd700]   debug<br>
GST_ELEMENT_PADS          gstelement.c:2812 gst_element_pads_activate()<br>
<filesink2>  pad deactivation successful<br>
2016-06-23 06:03:35,501302 19233 [0x00007f3ef6ffd700]   debug basesink<br>
gstbasesink.c:5205 gst_base_sink_change_state() <filesink2>  PAUSED to<br>
READY, posting async-done<br>
2016-06-23 06:03:35,501346 19233 [0x00007f3ef6ffd700]     log GST_MESSAGE<br>
gstmessage.c:292 gst_message_new_custom()  source filesink2: creating new<br>
message 0x7f3f28050c00 state-changed<br>
2016-06-23 06:03:35,501384 19233 [0x00007f3ef6ffd700]   debug GST_BUS<br>
gstbus.c:309 gst_bus_post() <bus50>  [msg 0x7f3f28050c00] posting on bus<br>
state-changed message: 0x7f3f28050c00, time 99:99:99.999999999, seq-num<br>
44304, element 'filesink2', GstMessageStateChanged,<br>
old-state=(GstState)GST_STATE_PLAYING, new-state=(GstState)GST_STATE_PAUSED,<br>
pending-state=(GstState)GST_STATE_READY;<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Problems-with-mpegtsmux-filesink-always-stopping-immediately-tp4678214.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Problems-with-mpegtsmux-filesink-always-stopping-immediately-tp4678214.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">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><br>
</blockquote></div><br></div></div></div></div></div>