<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Hi <span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">Dröge ,</span></div><div>     I have tested on my board as you said. it's just a quick short interval time.    <span style="font-family: 微软雅黑, Tahoma; font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span></div><div><span style="font-family: 微软雅黑, Tahoma; font-size: 10.5pt; line-height: 1.5; background-color: window;">I use tee element for dual video output and my pipeline like this :</span></div><div style="font-family: 微软雅黑, Tahoma;"><span style="background-color: rgba(0, 0, 0, 0); font-family: '微软雅黑, Tahoma'; font-size: 10.5pt; line-height: 1.5;">   <font color="#993300">    </font></span><font color="#993300">gstreamer version :1.2.3</font></div><div style="font-family: 微软雅黑, Tahoma;"><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">    </span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">    </span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">    </span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">    </span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">    </span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">    </span><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span><span style="background-color: rgb(238, 238, 238); color: rgb(34, 34, 34); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; line-height: 19px;">/ [ queue1 | v4l2sink1]   branch 1</span></div><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19px;"><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">   </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="background-color: window;">tee</span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    video-output-bin</span></p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19px;"><span helvetica="" neue',="" helvetica,="" arial,="" sans-serif";="" font-size:="" 15px;="" color:="" rgb(34,="" 34,="" 34);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: '';">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: ''; color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238); font-size: 13px; line-height: 1.5;">\ [ queue2 | </span><span style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; background-color: rgb(238, 238, 238);">v4l2sink2</span><span style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238); font-size: 13px; line-height: 1.5;">]    </span><span style="background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px;">branch 2</span></p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19px;"><span style="color: rgb(0, 0, 0); font-family: 微软雅黑; font-size: 10.5pt; line-height: 1.5; background-color: window;">All the elements are added into the <i>video-output-bin.</i>Now I wanna remove the <i>v4l2sink1</i> and add it into pipeline again after a while when pipeline </span><span style="color: rgb(0, 0, 0); font-family: 微软雅黑; font-size: 10.5pt; line-height: 1.5; background-color: window;">playback </span><span style="color: rgb(0, 0, 0); background-color: window; font-family: verdana; font-size: 10pt;">.</span></p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19px;"><i><span style="color: rgb(0, 0, 0); font-family: 微软雅黑; font-size: 10.5pt; line-height: 1.5; background-color: window;">pad = </span><span style="color: rgb(0, 0, 0); font-family: 微软雅黑; font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);">gst_element_get_static_pad(queue1,"src");</span></i></p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19px;"><i><span style="line-height: 21px; color: rgb(0, 0, 0); font-family: 微软雅黑; font-size: 10.5pt; background-color: window;">gst_pad_add_probe(pad,GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREA</span><span style="line-height: 21px; color: rgb(0, 0, 0); font-family: 微软雅黑; font-size: 10.5pt; background-color: window;">M,pad_block_cb,user_data, NULL)</span><span style="line-height: 21px; color: rgb(0, 0, 0); font-family: 微软雅黑; font-size: 10.5pt; background-color: window;">;</span></i></p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19px;"><span style="color: rgb(0, 0, 0); font-family: 微软雅黑; font-size: 10.5pt; line-height: 1.5; background-color: window;">In the </span><span style="color: rgb(0, 0, 0); font-family: 微软雅黑; font-size: 10.5pt; line-height: 1.5; background-color: window;">pad_block_cb callback I do not  remove the pad .</span></p><div><span style="font-size: 10.5pt; line-height: 1.5;">Theortically , the pad will block the<i> branch1 </i>video actually it did . but the video of<i> branch 2</i>  was also blocked. </span></div><span class="contentTitle">
                                                    <span style="font-weight: bold; color: #959595;"></span></span><div><br></div><div><span style="line-height: 19px; background-color: rgb(255, 255, 255);">I donnot know how the queue1's source pad effect the branch 2's videostream.</span></div><div><span style="line-height: 19px; background-color: rgb(255, 255, 255);"><br></span></div><div><span style="line-height: 19px; background-color: rgb(255, 255, 255);">Can you give me some tips .</span></div><div><span style="line-height: 19px; background-color: rgb(255, 255, 255);"><br></span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">    </span><span style="line-height: 19px; background-color: rgb(255, 255, 255);">Thanks a lot.</span></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>hongming0724@163.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:sebastian@centricular.com">SebastianDröge</a></div><div><b>Date:</b> 2015-09-16 14:20</div><div><b>To:</b> <a href="mailto:gstreamer-devel@lists.freedesktop.org">Discussion of the development of and with GStreamer</a></div><div><b>Subject:</b> Re: Re: Link/unlink tee branch from a pipeline</div></div></div><div><div>On Mi, 2015-09-16 at 09:09 +0800, hongming0724@163.com wrote:</div>
<div>> Hi ,SebastianDröge</div>
<div>> I was encountered the same problems . I have experiment with the code</div>
<div>> from https://coaxion.net/blog/2014/01/gstreamer-dynamic-pipelines/</div>
<div>> when I using gst_pad_add_probe(pad,GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREA</div>
<div>> M,pad_block_cb,user_data, NULL) ,I found the pad_block_cb was called</div>
<div>> but the videostream was not blocked . The pad type</div>
<div>> GST_PAD_PROBE_TYPE_BLOCKING ,GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM was</div>
<div>> used at the same time. The playback is nomarl as usual.</div>
<div>> Can you tell me why the block pad do not block the videstream?</div>
<div> </div>
<div>What do you mean with it does not block the videostream? It very</div>
<div>shortly blocks the video stream, changes things in the pipeline, and</div>
<div>then unblocks it again. You don't see an interruption of playback,</div>
<div>which is the whole point here.</div>
<div> </div>
<div>If you keep the pad probe and don't remove it, the video stream will be</div>
<div>blocked until you remove it.</div>
<div> </div>
<div>-- </div>
<div>Sebastian Dröge, Centricular Ltd · http://www.centricular.com</div>
<div> </div>
<div> </div>
<div> </div>
<div>_______________________________________________</div>
<div>gstreamer-devel mailing list</div>
<div>gstreamer-devel@lists.freedesktop.org</div>
<div>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</div>
</div></blockquote>
</body></html>