Pipeline hangs

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Pipeline hangs

iron_guitarist1987
Hello all,
I have a pipeline that hangs for a couple of minutes and then it starts running normally. I think it may be my sink element, but I'm not sure. This is the debug message I get when it starts hanging


0:02:04.633493000  4749     0x15701680 DEBUG               basesink gstbasesink.c:3653:gst_base_sink_chain_unlocked:<my_sink0> got times start: 2:02:27.808755555, end: 99:99:99.999999999
0:02:04.633581000  4749     0x15701680 DEBUG               basesink gstbasesink.c:2006:gst_base_sink_get_sync_times:<my_sink0> got times start: 2:02:27.808755555, stop: 99:99:99.999999999, do_sync 1
0:02:04.633674000  4749     0x15701680 DEBUG               basesink gstbasesink.c:2042:gst_base_sink_get_sync_times:<my_sink0> clipped to: start 2:02:27.808755555, stop: 2:03:27.127180074
0:02:04.633743000  4749     0x15701680 LOG                 basesink gstbasesink.c:2511:gst_base_sink_do_sync:<my_sink0> avg frame diff 0:00:00.033366666
0:02:04.633796000  4749     0x15701680 DEBUG               basesink gstbasesink.c:2559:gst_base_sink_do_sync:<my_sink0> possibly waiting for clock to reach 0:01:59.737949037, adjusted 0:01:59.737949037
0:02:04.633851000  4749     0x15701680 LOG                 basesink gstbasesink.c:2183:gst_base_sink_wait_clock:<my_sink0> time 0:01:59.737949037, base_time 4:56:05.298357128
0:02:04.633905000  4749     0x15701680 DEBUG              GST_CLOCK gstclock.c:489:gst_clock_id_wait:<GstSystemClock> waiting on clock entry 0x15a3c800
0:02:04.633959000  4749     0x15701680 DEBUG              GST_CLOCK gstclock.c:955:gst_clock_get_internal_time:<GstSystemClock> internal time 4:58:07.294739128
0:02:04.634011000  4749     0x15701680 DEBUG              GST_CLOCK gstclock.c:1000:gst_clock_get_time:<GstSystemClock> adjusted time 4:58:07.294739128
0:02:04.634061000  4749     0x15701680 DEBUG              GST_CLOCK gstsystemclock.c:598:gst_system_clock_id_wait_jitter_unlocked: entry 0x15a3c800 time 4:58:05.036306165 now 4:58:07.294739128 diff (time-now) -2258432963

Here it hangs for some time, and after a couple of minuts it starts running again. This is the debug message I get after:

0:02:04.634118000  4749     0x15701680 DEBUG              GST_CLOCK gstclock.c:514:gst_clock_id_wait:<GstSystemClock> done waiting entry 0x15a3c800, res: 1
0:02:04.634132000  4749     0x15701680 DEBUG               basesink gstbasesink.c:2566:gst_base_sink_do_sync:<my_sink0> clock returned 1, jitter  0:00:02.258432963
0:02:04.634195000  4749     0x15701680 DEBUG               basesink gstbasesink.c:2890:gst_base_sink_is_too_late:<my_sink0> frame dropping disabled
0:02:04.634279000  4749     0x15701680 DEBUG               basesink gstbasesink.c:2990:gst_base_sink_render_object:<my_sink0> rendering object 0x158fb9a0
0:02:04.634362000  4749     0x15701680 DEBUG               basesink gstbasesink.c:1005:gst_base_sink_set_last_buffer_unlocked:<my_sink0> setting last buffer to 0x158fb9a0
0:02:04.634444000  4749     0x15701680 LOG               GST_BUFFER gstbuffer.c:195:gst_buffer_finalize: finalize 0x158fa820
0:02:04.634527000  4749     0x15701680 DEBUG               my_sink gstmy_sink.c:158:gst_my_sink_render:

Then it starts running normally.

Any ideas?
All your bases are belong to us.