Simulating a live stream from mutiple files - HELP

Shishir Pokharel Shishir.Pokharel at on24.com
Mon Mar 7 07:19:47 UTC 2016


Hi all,

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

http://gstreamer-devel.966125.n4.nabble.com/change-quot-location-quot-of-filesrc-element-without-breaking-tcpserversink-connection-td4661248.html

My pipeline looks like :
Fileserc-> decodebin ->queue -> videoconvert -> videoscale -> navseek->queue->autovideosink

I have pad probe on queue sink pad and stuck on following state;


1)      For the first segment send; it changes the start time to 0 and end time to -1;

2)      Send flush start to filesrc on EOS received on queue sink pad on separate ptherad.

3)      Queue sink pad receives flush start and DROPS the data but decodebin goes to lock state.

Any directions for the issue is appreciated;

Here is trace log:

0:00:08.201421555  2999       0x851b30 TRACE        GST_REFCOUNTING gstobject.c:280:gst_object_unref:<avdec_h264-0:sink> 0x7fddc00640a0 unref 3->2
0:00:08.201429012  2999       0x851b30 TRACE        GST_REFCOUNTING gstobject.c:280:gst_object_unref:<capsfilter0> 0x7fddcc018140 unref 4->3
0:00:08.201435754  2999       0x851b30 DEBUG               GST_PADS gstpad.c:5156:gst_pad_send_event_unchecked:<capsfilter0:sink> sent event, ret ok
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
0:00:08.201450176  2999       0x851b30 TRACE        GST_REFCOUNTING gstobject.c:280:gst_object_unref:<capsfilter0:sink> 0x8318a0 unref 3->2
0:00:08.201457273  2999       0x851b30 DEBUG              baseparse gstbaseparse.c:1240:gst_base_parse_sink_event_default:<h264parse0> event handled
0:00:08.201462984  2999       0x851b30 TRACE        GST_REFCOUNTING gstobject.c:280:gst_object_unref:<h264parse0> 0x7fddcc011b30 unref 4->3
0:00:08.201469947  2999       0x851b30 DEBUG               GST_PADS gstpad.c:5156:gst_pad_send_event_unchecked:<h264parse0:sink> sent event, ret ok
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
0:00:08.201484628  2999       0x851b30 TRACE        GST_REFCOUNTING gstobject.c:280:gst_object_unref:<h264parse0:sink> 0x831440 unref 3->2
0:00:08.201491695  2999       0x851b30 DEBUG             multiqueue gstmultiqueue.c:829:gst_single_queue_flush:<multiqueue0> flush start queue 0
0:00:08.201498693  2999       0x851b30 DEBUG              dataqueue gstdataqueue.c:400:gst_data_queue_set_flushing: queue:0x659770 , flushing:1
0:00:08.201505278  2999       0x851b30 TRACE    data_queue_dataflow gstdataqueue.c:402:gst_data_queue_set_flushing: locking qlock from thread 0x851b30
0:00:08.201511358  2999       0x851b30 TRACE    data_queue_dataflow gstdataqueue.c:402:gst_data_queue_set_flushing: locked qlock from thread 0x851b30
0:00:08.201516995  2999       0x851b30 TRACE    data_queue_dataflow gstdataqueue.c:411:gst_data_queue_set_flushing: unlocking qlock from thread 0x851b30
0:00:08.201523056  2999       0x851b30 LOG               multiqueue gstmultiqueue.c:840:gst_single_queue_flush:<multiqueue0> SingleQueue 0 : waking up eventually waiting task
0:00:08.201530777  2999       0x851b30 LOG               multiqueue gstmultiqueue.c:846:gst_single_queue_flush:<multiqueue0> SingleQueue 0 : pausing task
0:00:08.201537209  2999       0x851b30 DEBUG               GST_PADS gstpad.c:5568:gst_pad_pause_task:<multiqueue0:src_0> pause task
0:00:08.201544499  2999       0x851b30 DEBUG                   task gsttask.c:663:gst_task_set_state:<multiqueue0:src_0> Changing task 0x862b90 to state 2
0:00:09.214037996  2999 0x7fddd00035e0 LOG                 glwindow gstglwindow_x11.c:503:gst_gl_window_x11_handle_event: got event ConfigureNotify
0:00:09.214070160  2999 0x7fddd00035e0 TRACE            glimagesink gstglimagesink.c:1023:gst_glimage_sink_on_resize: GL Window resized to 1078x614
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
0:00:09.214197228  2999 0x7fddd00035e0 LOG                 glwindow gstglwindow_x11.c:503:gst_gl_window_x11_handle_event: got event Expose
0:00:09.214216526  2999 0x7fddd00035e0 TRACE        GST_REFCOUNTING gstobject.c:254:gst_object_ref:<glwindowx11-0> 0x7fddd8005020 ref 1->2
0:00:09.214266371  2999 0x7fddd00035e0 TRACE            glimagesink gstglimagesink.c:1093:gst_glimage_sink_on_draw: redrawing texture:84
0:00:09.217038814  2999 0x7fddd00035e0 TRACE        GST_REFCOUNTING gstobject.c:280:gst_object_unref:<glwindowx11-0> 0x7fddd8005020 unref 2->1
0:00:09.217077582  2999 0x7fddd00035e0 TRACE        GST_REFCOUNTING gstobject.c:254:gst_object_ref:<glwindowx11-0> 0x7fddd8005020 ref 1->2
0:00:09.225516161  2999 0x7fddd00035e0 TRACE        GST_REFCOUNTING gstobject.c:280:gst_object_unref:<glwindowx11-0> 0x7fddd8005020 unref 2->1
0:00:09.225539845  2999 0x7fddd00035e0 TRACE        GST_REFCOUNTING gstobject.c:280:gst_object_unref:<glcontextglx0> 0x7fddc00c65d0 unref 54->53



Thanks,
/SP

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160307/e2d7259b/attachment-0001.html>


More information about the gstreamer-devel mailing list