Hi experts,<br><br>I am writing a video streaming application. I used gstrtpbin for RTP/RTCP packet transmission. <br><br>Furthermore, at the sender side, I would like to adapt video encoding parameters according to RTCP receiver report QoS statistics. The sender pipeline is shown below. In the pipeline, identity element is used to probe RTCP packets for QoS statistics. <br>
<br><font size="1"><span style="font-family: courier new,monospace;"> * .-------.    .-------.    .-------.      .----------.     .-------.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> * |v4l2   |    |x264enc|    |h264pay|      | rtpbin   |     |udpsink|  RTP</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> * |      src-&gt;sink    src-&gt;sink    src-&gt;send_rtp send_rtp-&gt;sink     | port=5000</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> * &#39;-------&#39;    &#39;-------&#39;    &#39;-------&#39;      |          |     &#39;-------&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> *                                          |          |</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> *                                          |          |     .-------.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> *                                          |          |     |udpsink|  RTCP</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> *                                          |    send_rtcp-&gt;sink     | port=5001</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> *              .-------.    .--------.     |          |     &#39;-------&#39; sync=false</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> *    RTCP      |udpsrc |    |identity|     |          |               async=false</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> *    port=5005 |      src-&gt;sink     src-&gt;recv_rtcp    |</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> *              &#39;-------&#39;    &#39;--------&#39;     &#39;----------&#39;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> */</span><br style="font-family: courier new,monospace;"></font>
<br>My question is, what is the best way to send the QoS statistics obtained from identity element to x264enc element (directly or indirectly)? <br><br>From the GStreamer manual, it seems that upstream event could be a candidate since it can be used for application-element interaction. And bus is used for application-pipeline interaction. So which one is more suitable here and where can I find similar examples? Thanks in advance.<br>
<br>Regards,<br><br>Qin<br>