<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('on_new_ssrc')<br> #rtpbin.post_message(gst.message_new_application(rtpbin, struct))<br>
print "new ssrc"<br> print " session", session<br> print " ssrc", ssrc<br> a = []<br> a.append(ssrc)<br> for i in range(0,len(a)): <br>        print a[i]<br> print "counter starts"<br>
<br> if counter == 0:<br> print "count = 0"<br> videosrc1.set_property("pattern", 1)<br> videobox1.set_property("border-alpha", 0)<br> videobox1.set_property("alpha", 0.5)<br>
videobox1.set_property("left", 0)<br> videobox1.set_property("top", 0)<br> gst.element_link_many(videosrc1, capsfilter1, videobox1, mixer)<br> print "Linked video1"<br> counter +=1<br>
<br> elif counter == 1:<br> print "count = 1"<br> videosrc2.set_property("pattern", 15)<br> videobox2.set_property("border-alpha", 0)<br> videobox2.set_property("alpha", 0.5)<br>
videobox2.set_property("left", -320)<br> videobox2.set_property("top", 0)<br> gst.element_link_many(videosrc2, capsfilter2, videobox2, mixer)<br> print "Linked video2"<br>
counter +=1<br> <br> elif counter == 2:<br> print "count = 2"<br> videosrc3.set_property("pattern", 13)<br> videobox3.set_property("border-alpha", 0)<br> videobox3.set_property("alpha", 0.5)<br>
videobox3.set_property("left", -320)<br> videobox3.set_property("top", -180)<br> gst.element_link_many(videosrc3, capsfilter3, videobox3, mixer)<br> print "Linked video3"<br>
counter +=1<br> <br> elif counter == 3:<br> print "count = 3"<br> videosrc4.set_property("pattern", 5)<br> videobox4.set_property("border-alpha", 0)<br> videobox4.set_property("alpha", 0.5)<br>
videobox4.set_property("left", -320)<br> videobox4.set_property("top", -180)<br> gst.element_link_many(videosrc4, capsfilter4, videobox4, mixer)<br> print "Linked video4"<br>
counter +=1<br> <br> #pipeline.set_state(gst.STATE_PLAYING)<br> <br>rtpbin = pipeline.get_by_name('rtpbin') <br>rtpbin.connect('on_new_ssrc', on_new_ssrc) <br></div>