<div>Hello,<br></div><div>I am trying to mix video streams on new ssrc signal. But I thing there is some problem with the linking part. Do I have to request a new sink pad for videomixer and where do I request it and how do I do it? Please provide with an example.</div>
<div><br></div><div>This is the part of my code. Please reply as early as possible as I am running out of time and have to submit my Master Thesis next month.</div><div><br></div><div>def on_new_ssrc(rtpbin, session,ssrc):<br>
    global counter<br>    <br>    struct = gst.Structure(&#39;on_new_ssrc&#39;)<br>    #rtpbin.post_message(gst.message_new_application(rtpbin, struct))<br>
    print &quot;new ssrc&quot;<br>    print &quot;  session&quot;, session<br>    print &quot;  ssrc&quot;, ssrc<br>    a = []<br>    a.append(ssrc)<br>    for i in range(0,len(a)): <br>        print a[i]<br>    print &quot;counter starts&quot;<br>

   <br>    if counter == 0:<br>      print &quot;count = 0&quot;<br>      videosrc1.set_property(&quot;pattern&quot;, 1)<br>      videobox1.set_property(&quot;border-alpha&quot;, 0)<br>      videobox1.set_property(&quot;alpha&quot;, 0.5)<br>

      videobox1.set_property(&quot;left&quot;, 0)<br>      videobox1.set_property(&quot;top&quot;, 0)<br>      gst.element_link_many(videosrc1, capsfilter1, videobox1, mixer)<br>      print &quot;Linked video1&quot;<br>      counter +=1<br>

    <br>    elif counter == 1:<br>      print &quot;count = 1&quot;<br>      videosrc2.set_property(&quot;pattern&quot;, 15)<br>      videobox2.set_property(&quot;border-alpha&quot;, 0)<br>      videobox2.set_property(&quot;alpha&quot;, 0.5)<br>

      videobox2.set_property(&quot;left&quot;, -320)<br>      videobox2.set_property(&quot;top&quot;, 0)<br>      gst.element_link_many(videosrc2, capsfilter2, videobox2, mixer)<br>      print &quot;Linked video2&quot;<br>

      counter +=1<br>    <br>    elif counter == 2:<br>      print &quot;count = 2&quot;<br>      videosrc3.set_property(&quot;pattern&quot;, 13)<br>      videobox3.set_property(&quot;border-alpha&quot;, 0)<br>      videobox3.set_property(&quot;alpha&quot;, 0.5)<br>

      videobox3.set_property(&quot;left&quot;, -320)<br>      videobox3.set_property(&quot;top&quot;, -180)<br>      gst.element_link_many(videosrc3, capsfilter3, videobox3, mixer)<br>      print &quot;Linked video3&quot;<br>

      counter +=1<br>      <br>    elif counter == 3:<br>      print &quot;count = 3&quot;<br>      videosrc4.set_property(&quot;pattern&quot;, 5)<br>      videobox4.set_property(&quot;border-alpha&quot;, 0)<br>      videobox4.set_property(&quot;alpha&quot;, 0.5)<br>

      videobox4.set_property(&quot;left&quot;, -320)<br>      videobox4.set_property(&quot;top&quot;, -180)<br>      gst.element_link_many(videosrc4, capsfilter4, videobox4, mixer)<br>      print &quot;Linked video4&quot;<br>

      counter +=1<br>   <br>    #pipeline.set_state(gst.STATE_PLAYING)<br>    <br>rtpbin = pipeline.get_by_name(&#39;rtpbin&#39;) <br>rtpbin.connect(&#39;on_new_ssrc&#39;, on_new_ssrc) <br></div>