Problems with mpegtsmux -> filesink always stopping immediately.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with mpegtsmux -> filesink always stopping immediately.

Michael Prendergast
I am working on an open source media server project that wraps gstreamer and am trying to debug a pipeline that contains an rtp source and an mpegtsmux and filesink.

The full server boot logs are available here:

https://drive.google.com/file/d/0B9eZJKieRdJPeHVheEtyRmNUWlk/view?usp=sharing

The elements of interest are mpegtsmux2 and filesink2. The filesink creates the file correctly but does not write anything to the file. I think the issue is with the timestamps in the stream. Below are the log lines that show the filesink stopping. Any guidance as to how to fix or get better debugging info would be much appreciated.

2016-06-23 06:03:35,500711 19233 [0x00007f3ef6ffd700]   debug GST_STATES                gstelement.c:2561 gst_element_set_state_func() <filesink2>  current READY, old_pending PAUSED, next PAUSED, old return ASYNC
2016-06-23 06:03:35,500787 19233 [0x00007f3ef6ffd700]   debug GST_STATES                gstelement.c:2595 gst_element_set_state_func() <filesink2>  intermediate: setting state from PAUSED to READY
2016-06-23 06:03:35,500879 19233 [0x00007f3ef6ffd700]     log GST_STATES                gstelement.c:2850 gst_element_change_state_func() <filesink2>  default handler tries setting state from PAUSED to READY (001a)
2016-06-23 06:03:35,500940 19233 [0x00007f3ef6ffd700]   debug GST_ELEMENT_PADS          gstelement.c:2793 gst_element_pads_activate() <filesink2>  deactivate pads
2016-06-23 06:03:35,500998 19233 [0x00007f3ef6ffd700]   debug GST_PADS                  gstpad.c:1076 gst_pad_set_active() <filesink2:sink>  deactivating pad from push mode
2016-06-23 06:03:35,501045 19233 [0x00007f3ef6ffd700]   debug GST_PADS                  gstpad.c:965 pre_activate() <filesink2:sink>  setting PAD_MODE NONE, set flushing
2016-06-23 06:03:35,501092 19233 [0x00007f3ef6ffd700]   debug basesink                  gstbasesink.c:4144 gst_base_sink_set_flushing() <filesink2>  flushing out data thread, need preroll to TRUE
2016-06-23 06:03:35,501135 19233 [0x00007f3ef6ffd700]   debug GST_PADS                  gstpad.c:1013 post_activate() <filesink2:sink>  stopped streaming
2016-06-23 06:03:35,501179 19233 [0x00007f3ef6ffd700]   debug GST_PADS                  gstpad.c:1186 activate_mode_internal() <filesink2:sink>  deactivated in push mode
2016-06-23 06:03:35,501231 19233 [0x00007f3ef6ffd700]   debug GST_ELEMENT_PADS          gstelement.c:2812 gst_element_pads_activate() <filesink2>  pad deactivation successful
2016-06-23 06:03:35,501302 19233 [0x00007f3ef6ffd700]   debug basesink                  gstbasesink.c:5205 gst_base_sink_change_state() <filesink2>  PAUSED to READY, posting async-done
2016-06-23 06:03:35,501346 19233 [0x00007f3ef6ffd700]     log GST_MESSAGE               gstmessage.c:292 gst_message_new_custom()  source filesink2: creating new message 0x7f3f28050c00 state-changed
2016-06-23 06:03:35,501384 19233 [0x00007f3ef6ffd700]   debug GST_BUS                   gstbus.c:309 gst_bus_post() <bus50>  [msg 0x7f3f28050c00] posting on bus state-changed message: 0x7f3f28050c00, time 99:99:99.999999999, seq-num 44304, element 'filesink2', GstMessageStateChanged, old-state=(GstState)GST_STATE_PLAYING, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_READY;
Reply | Threaded
Open this post in threaded view
|

Re: Problems with mpegtsmux -> filesink always stopping immediately.

boxerab@gmail.com
Hi Michael,

May I ask what media server project you are working on ?

Thanks,
Aaron

On Thu, Jun 23, 2016 at 5:24 AM, wunwunforever <[hidden email]> wrote:
I am working on an open source media server project that wraps gstreamer and
am trying to debug a pipeline that contains an rtp source and an mpegtsmux
and filesink.

The full server boot logs are available here:

https://drive.google.com/file/d/0B9eZJKieRdJPeHVheEtyRmNUWlk/view?usp=sharing

The elements of interest are mpegtsmux2 and filesink2. The filesink creates
the file correctly but does not write anything to the file. I think the
issue is with the timestamps in the stream. Below are the log lines that
show the filesink stopping. Any guidance as to how to fix or get better
debugging info would be much appreciated.

2016-06-23 06:03:35,500711 19233 [0x00007f3ef6ffd700]   debug GST_STATES
gstelement.c:2561 gst_element_set_state_func() <filesink2>  current READY,
old_pending PAUSED, next PAUSED, old return ASYNC
2016-06-23 06:03:35,500787 19233 [0x00007f3ef6ffd700]   debug GST_STATES
gstelement.c:2595 gst_element_set_state_func() <filesink2>  intermediate:
setting state from PAUSED to READY
2016-06-23 06:03:35,500879 19233 [0x00007f3ef6ffd700]     log GST_STATES
gstelement.c:2850 gst_element_change_state_func() <filesink2>  default
handler tries setting state from PAUSED to READY (001a)
2016-06-23 06:03:35,500940 19233 [0x00007f3ef6ffd700]   debug
GST_ELEMENT_PADS          gstelement.c:2793 gst_element_pads_activate()
<filesink2>  deactivate pads
2016-06-23 06:03:35,500998 19233 [0x00007f3ef6ffd700]   debug GST_PADS
gstpad.c:1076 gst_pad_set_active() <filesink2:sink>  deactivating pad from
push mode
2016-06-23 06:03:35,501045 19233 [0x00007f3ef6ffd700]   debug GST_PADS
gstpad.c:965 pre_activate() <filesink2:sink>  setting PAD_MODE NONE, set
flushing
2016-06-23 06:03:35,501092 19233 [0x00007f3ef6ffd700]   debug basesink
gstbasesink.c:4144 gst_base_sink_set_flushing() <filesink2>  flushing out
data thread, need preroll to TRUE
2016-06-23 06:03:35,501135 19233 [0x00007f3ef6ffd700]   debug GST_PADS
gstpad.c:1013 post_activate() <filesink2:sink>  stopped streaming
2016-06-23 06:03:35,501179 19233 [0x00007f3ef6ffd700]   debug GST_PADS
gstpad.c:1186 activate_mode_internal() <filesink2:sink>  deactivated in push
mode
2016-06-23 06:03:35,501231 19233 [0x00007f3ef6ffd700]   debug
GST_ELEMENT_PADS          gstelement.c:2812 gst_element_pads_activate()
<filesink2>  pad deactivation successful
2016-06-23 06:03:35,501302 19233 [0x00007f3ef6ffd700]   debug basesink
gstbasesink.c:5205 gst_base_sink_change_state() <filesink2>  PAUSED to
READY, posting async-done
2016-06-23 06:03:35,501346 19233 [0x00007f3ef6ffd700]     log GST_MESSAGE
gstmessage.c:292 gst_message_new_custom()  source filesink2: creating new
message 0x7f3f28050c00 state-changed
2016-06-23 06:03:35,501384 19233 [0x00007f3ef6ffd700]   debug GST_BUS
gstbus.c:309 gst_bus_post() <bus50>  [msg 0x7f3f28050c00] posting on bus
state-changed message: 0x7f3f28050c00, time 99:99:99.999999999, seq-num
44304, element 'filesink2', GstMessageStateChanged,
old-state=(GstState)GST_STATE_PLAYING, new-state=(GstState)GST_STATE_PAUSED,
pending-state=(GstState)GST_STATE_READY;




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Problems-with-mpegtsmux-filesink-always-stopping-immediately-tp4678214.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problems with mpegtsmux -> filesink always stopping immediately.

Michael Prendergast
Sure,

I'm trying to add MPEG-TS recording support to the Kurento Media Server,

https://github.com/Kurento/kurento-media-server
Reply | Threaded
Open this post in threaded view
|

Re: Problems with mpegtsmux -> filesink always stopping immediately.

boxerab@gmail.com


On Thu, Jun 23, 2016 at 8:52 PM, wunwunforever <[hidden email]> wrote:
Sure,

I'm trying to add MPEG-TS recording support to the Kurento Media Server,

https://github.com/Kurento/kurento-media-server


Thanks!

 




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Problems-with-mpegtsmux-filesink-always-stopping-immediately-tp4678214p4678219.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel