<div class="__aliyun_email_body_block"><div  style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><div  style="clear:both;">Hi Everyone<br ></div><div  style="clear:both;"><br ></div><div  style="clear:both;">I want to <span >control a BIN(which contain 3 elements) and a related "src" ghost pad(which will be used by downstream) by gst-launch-1.0 to <span >achieve the following <span >pseudocode.</span></span></span></div><div  style="clear:both;">----------------------------------------------------------------------------</div><div  style="clear:both;"><span >GstElement *bin = gst_bin_new("xxxx");<br ></span><div  style="clear:both;">GstElement *source = gst_element_factory_make ("filesrc", "source");<br ></div><div  style="clear:both;">GstElement *jpegparser = gst_element_factory_make ("jpegparse", "jpeg-parser");<br ></div><div  style="clear:both;">GstElement *decoder = gst_element_factory_make ("nvv4l2decoder", "nvv4l2-decoder");<br ></div><div  style="clear:both;"><br ></div><div  style="clear:both;">gst_bin_add_many (GST_BIN (bin), source, jpegparser, decoder, NULL);<br ></div><div  style="clear:both;">gst_element_link_many (source, jpegparser, decoder, NULL);<br ></div><div  style="clear:both;"><br ></div><div  style="clear:both;">gst_element_add_pad (bin, gst_ghost_pad_new_no_target ("src", GST_PAD_SRC));<br ></div><div  style="clear:both;">GstPad *srcpad = gst_element_get_static_pad (decoder, "src");<br ></div><div  style="clear:both;">GstPad *bin_ghost_pad = gst_element_get_static_pad (bin, "src");<br ></div><div ><span >gst_ghost_pad_set_target (GST_GHOST_PAD (bin_ghost_pad), srcpad);</span></div><div ><span ><span  style="color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;background-color:#ffffff;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">----------------------------------------------------------------------------</span></span></div><div ><span ><span  style="color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;background-color:#ffffff;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;"><br ></span></span></div><div ><span ></span><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;">I've learned how to control the BIN - #### <span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;">gst-launch-1.0 bin. \( filesrc ! jpegparse ! nvv4l2decoder \)</span></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;background-color:#ffffff;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">but don't know how to <span >meanwhile </span>control the ghost pad, would you please give me some advice?</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;background-color:#ffffff;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">Thank you!</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;background-color:#ffffff;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;"><br ></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;text-align:start;text-indent:.0px;text-transform:none;background-color:#ffffff;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">Regards</span></div><div ></div><span ><br ></span></div></div></div></div>