[Bug 759470] input-selector: add mode that waits for keyframe before switching inputs

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Dec 25 08:52:17 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=759470

--- Comment #18 from Tapas Kumar Kundu <tapascst at gmail.com> ---
(In reply to Tapas Kumar Kundu from comment #17)
> Here the debug log from input-selector element:
> https://drive.google.com/file/d/0B1cSMS8_GuAEeVM5MV9FOVlSZzA/view?usp=sharing
> 
> You can search for "startcam" to see exact line where camera switch happens
> from application side. This is generated with proposed patch on git master.
> 
> I really need some help to understand where the delay is occurring inside
> input-selector element during cam switch. 
> 
> Could you please take a look at this log ?

It seems that something is causing delay because of sticky events . This is
just a guess by looking into time stamps of log during cam switch. 

Can anyone explain it to me if this can cause delay or not ? 


0:00:23.073715429  3480 0x7f3db427f630 LOG           input-selector
gstinputselector.c:986:gst_selector_pad_chain:<video_switch:sink_0> keyframe
found on to-be-activated-pad

0:00:23.073739489  3480 0x7f3db427f630 DEBUG         input-selector
gstinputselector.c:1366:gst_input_selector_set_active_pad:<video_switch>
setting active pad to video_switch:sink_0
0:00:23.073891880  3480 0x7f3db427f630 DEBUG         input-selector
gstinputselector.c:1386:gst_input_selector_set_active_pad:<video_switch> New
active pad is <video_switch:sink_0>
0:00:23.073925025  3480 0x7f3db427f630 LOG           input-selector
gstinputselector.c:997:gst_selector_pad_chain:<video_switch:sink_0> getting
active pad
0:00:23.073949517  3480 0x7f3db427f630 LOG           input-selector
gstinputselector.c:1066:gst_selector_pad_chain:<video_switch:sink_0> received
start time 0:00:22.940258943
0:00:23.074018915  3480 0x7f3db427f630 DEBUG         input-selector
gstinputselector.c:433:forward_sticky_events:<video_switch:sink_0> forward
sticky event stream-start event: 0x7f3d4c004de0, time 99:99:99.999999999,
seq-num 681, GstEventStreamStart,
stream-id=(string)f980ae85b03cfb27e99e1103b54cdb1df48678ec51f0ca4e83e6082a53bf7be2,
flags=(GstStreamFlags)GST_STREAM_FLAG_NONE, group-id=(uint)14;
0:00:23.073955002  3480 0x7f3db420ea30 DEBUG         input-selector
gstinputselector.c:978:gst_selector_pad_chain:<video_switch:sink_3> entering
chain for buf 0x7f3d5800b960 with timestamp 0:00:22.990433666




===========================================================================
===========================================================================



0:00:23.076769731  3480 0x7f3db427f680 DEBUG         input-selector
gstinputselector.c:804:gst_input_selector_wait_running_time:<video_switch:sink_2>
Waiting for active streams to advance. 0:00:22.951005667 >= 0:00:22.940622043
0:00:23.116405692  3480 0x7f3db427f630 DEBUG         input-selector
gstinputselector.c:433:forward_sticky_events:<video_switch:sink_0> forward
sticky event caps event: 0x7f3d8401a670, time 99:99:99.999999999, seq-num 876,
GstEventCaps, caps=(GstCaps)"video/x-h264\,\ stream-format\=\(string\)avc\,\
alignment\=\(string\)au\,\
codec_data\=\(buffer\)0164001effe100196764001eac34cc0b03dff016a0c0c0c800001f480004e2042001000468ee3c30\,\
level\=\(string\)3\,\ profile\=\(string\)high";
0:00:23.116679346  3480 0x7f3db427f630 DEBUG         input-selector
gstinputselector.c:433:forward_sticky_events:<video_switch:sink_0> forward
sticky event segment event: 0x7f3d8401a6e0, time 99:99:99.999999999, seq-num
877, GstEventSegment, segment=(GstSegment)"GstSegment,
flags=(GstSegmentFlags)GST_SEGMENT_FLAG_NONE, rate=(double)1,
applied-rate=(double)1, format=(GstFormat)GST_FORMAT_TIME,
base=(guint64)548821523, offset=(guint64)0, start=(guint64)548821523,
stop=(guint64)18446744073709551615, time=(guint64)0,
position=(guint64)548821523, duration=(guint64)18446744073709551615;";
0:00:23.116889218  3480 0x7f3db427f630 DEBUG         input-selector
gstinputselector.c:1109:gst_selector_pad_chain:<video_switch:sink_0> Marking
discont buffer 0x7f3d380bd7f0
0:00:23.116962912  3480 0x7f3db427f630 LOG           input-selector
gstinputselector.c:1116:gst_selector_pad_chain:<video_switch:sink_0> Forwarding
buffer 0x7f3d380bd7f0 with timestamp 0:00:22.940258943
0:00:23.117031265  3480 0x7f3db427f540 LOG           input-selector
gstinputselector.c:1122:gst_selector_pad_chain:<video_switch:sink_1> Buffer
0xd8edd0 forwarded result=0

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list