<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Nicolas,<br>
    I agree that I would like to do is not public. But if we execute
    "gst-inspect-1.0 rtpbin", we have an "element action"
    (get-internal-session) which returns a RTPSession. In a previous
    mail, I mentioned that include files to use RTPSession related stuff
    are not present in libgstreamer-plugins-good1.0-dev package.<br>
    <br>
    What I am trying to do is to implement RTCP AVB (type 208) packets
    (IEEE1733, see <a class="moz-txt-link-freetext" href="http://www.networksorcery.com/enp/protocol/rtcp.htm">http://www.networksorcery.com/enp/protocol/rtcp.htm</a>
    for instance). For that, my first idea was to use APP packets to
    transmit AVB data from a talker to listeners, in order that talker
    and listeners no longer use NTP, but PTP clock.<br>
    <br>
    As it's pretty urgent, I wanted to avoid developing gstreamer
    extensions (anyway I do not have the skills for that). That's why I
    try to use on-sending-rtcp signal, to retrieve before they are sent
    the buffers of RTCP packets, and in them, to add APP packets with
    the sequence of function calls, indicated in my mail.<br>
    <br>
    Would there be other ways to do that?<br>
    Best<br>
    Philippe<br>
    <br>
    Le 19/01/2019 à 17:38, Nicolas Dufresne a écrit :<br>
    <blockquote type="cite"
      cite="mid:b3c186ee083e9675ae49e232920058f0695461fb.camel@ndufresne.ca">
      <pre class="moz-quote-pre" wrap="">Le samedi 19 janvier 2019 à 17:06 +0100, Philippe Lalevée a écrit :
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Hello
I still have problems when using on-sending-rtcp/on-receiving signals
(I would like to send RTCP packets of APP type). 
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
The RTPSession API isn't public, I'm not sure it is correct to use this
from an application. I believe you should better describe what you are
trying to do. It might be described in the original thread, but you
seem to have create a new thread, which means it's harder to find the
context.

regards,
Nicolas

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">
After having configured callbacks both for these signals (on the
rtpsession object as mentioned by Sebastian) and for probes in rtcp
pads, I have the following behavior on the talker side: in the two
callbacks, I only have RR and SDES packets, and never SR packets,
while I see SR packets with the probe callback, and whereas I see
them in the listener side in the "on_receiving_rtcp" callback.
Symmetrically, I have the same problem on the listener side.

Another problem is that APP packets are not transmitted from the
talker to the listener. Here is shortened the sequence of
instructions called in the on-sending-rtcp callback function:
- gst_rtcp_buffer_map(buffer, GST_MAP_READWRITE, &rtcp)
- gst_rtcp_buffer_add_packet(&rtcp, GST_RTCP_TYPE_APP, &packet)
- gst_rtcp_packet_app_set_subtype(&packet, subtype)
- gst_rtcp_packet_app_set_ssrc(&packet, ssrc)
- gst_rtcp_packet_app_set_name(&packet, name)
- gst_rtcp_packet_app_set_data_length (&packet, len)
- data = gst_rtcp_packet_app_get_data(&packet)
- GST_WRITE_UINT32_BE(data, value)
- ...
- return TRUE

Do I have to do something special at the end of the function, before
the return instruction, for the packet to be taken into account?
otherwise what could be the problem?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">

Did you unmap you RtcpBuffer ? What is this function you are
implementing ? What is it supposed to do ?
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">
Thank you for your help
Philippe Lalevée


_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <table style="border-collapse: collapse; border: 1px solid
        rgb(221,&#xA; 221, 221); margin: 0px; padding: 0px;
        border-spacing: 0px;&#xA; font-size: 12px; width: auto; color:
        rgb(51, 51, 51); font-family:&#xA; Verdana, Geneva, Arial,
        Helvetica, sans-serif; font-style: normal;&#xA; font-variant:
        normal; font-weight: normal; letter-spacing: normal;&#xA;
        line-height: 18px; orphans: auto; text-align: start;
        text-indent:&#xA; 0px; text-transform: none; white-space:
        normal; widows: 1;&#xA; word-spacing: 0px;
        -webkit-text-stroke-width: 0px;&#xA; background-color: rgb(255,
        255, 255);" cellpadding="2">
        <tbody style="border: 0px; margin: 0px; padding: 0px;">
          <tr style="border: 0px; margin: 0px; padding: 0px;">
            <td style="border: 0px; margin: 0px; padding: 0.75em 1em;"
              valign="center"><img alt="Logo MINES Saint-Étienne"
                src="cid:part1.D93405E1.A7D3A1A6@mines-stetienne.fr"
                style="border: 0px; margin: 0px; padding: 0px 10px;&#xA;
                height: auto; max-width: 100%;" height="116" width="140"></td>
            <td style="border: 0px; margin: 0px; padding: 0.75em
              1em;&#xA; white-space: normal;" nowrap="nowrap"
              align="left" valign="bottom">
              <div style="border: 0px; margin: 0px; padding: 0px;&#xA;
                font-style: normal; font-variant: normal;
                font-weight:&#xA; normal; font-stretch: normal;
                font-size: 11px;&#xA; line-height: 1.2; font-family:
                sans-serif;">
                <div style="border: 0px; margin: 0px; padding: 0px;
                  color:&#xA; rgb(102, 51, 153); font-weight: bold;"><strong
                    style="border: 0px; margin: 0px; padding: 0px;&#xA;
                    font-weight: bold;">Philippe LALEVÉE</strong></div>
                Directeur du Campus Georges Charpak Provence<br>
                Directeur du <a href="http://cmp.emse.fr">Centre
                  Microélectronique de Provence</a><br>
                Président de la Plate-forme <a
                  href="http://www.pf-micropacks.org">Micro-PackS</a><br>
                <div style="border: 0px; margin: 0px; padding: 5px 0px;">+33
                  4 42 61 67 15 / +33 6 23 02 15 01<br>
                  <a href="mailto:philippe.lalevee@mines-stetienne.fr"
                    style="border: 0px; margin: 0px; padding: 0px;
                    color:&#xA; rgb(95, 37, 159);
                    text-decoration:&#xA;  none;">philippe.lalevee@mines-stetienne.fr</a><br>
                  <a href="https://twitter.com/CampusCharpak"
                    style="border:&#xA; 0px; margin: 0px;
                    padding: 0px; color: rgb(95, 37,
                    159);&#xA; text-decoration: none;">@CampusCharpak</a>
                  <a href="https://twitter.com/hashtag/ISMIN"
                    style="border:&#xA; 0px; margin: 0px;
                    padding: 0px; color: rgb(95, 37,
                    159);&#xA; text-decoration: none;">#ISMIN</a>
                  <a href="https://twitter.com/p_lalevee"
                    style="border:&#xA; 0px; margin: 0px;
                    padding: 0px; color: rgb(95, 37,
                    159);&#xA; text-decoration: none;">@p_lalevee</a></div>
                <div style="border: 0px; margin: 0px; padding: 5px
                  0px;&#xA; color: rgb(153, 153, 153);">Campus Georges
                  Charpak Provence<br>
                  880 route de Mimet, F-13541 Gardanne Cedex</div>
                <div style="border: 0px; margin: 0px; padding: 0px;&#xA;
                  font-weight: bold;"> <a
                    href="http://www.mines-stetienne.fr/"
                    style="border:&#xA; 0px; margin: 0px; padding: 0px;
                    color: rgb(95, 37,&#xA; 159);
                    text-decoration:&#xA;  none;">www.mines-stetienne.fr</a>
                  <a href="https://twitter.com/MINES_StEtienne"
                    style="border:&#xA; 0px; margin: 0px; padding: 0px;
                    color: rgb(95, 37,&#xA; 159); text-decoration:
                    none;">@MINES_StEtienne</a></div>
                <div style="border-width: 1px 0px 0px;
                  border-top-style:&#xA; solid; border-top-color:
                  rgb(221, 221, 221); margin: 0px;&#xA; padding: 5px
                  0px; font-style: normal; font-variant:&#xA; normal;
                  font-weight: normal; font-stretch: normal;&#xA;
                  font-size: 11px; line-height: 1.2; font-family:&#xA;
                  sans-serif;">Assistante CGCP : <a
                    href="mailto:lisette.masson@mines-stetienne.fr">Lisette
                    MASSON</a>         (+33 442616620)<br>
                  Assistante CMP :   <a
                    href="mailto:veronique.villareal@mines-stetienne.fr">Véronique
                    VILLARÉAL</a> (+33 442616610)<br>
                </div>
              </div>
            </td>
            <td style="border: 0px; margin: 0px; padding: 0.75em
              1em;&#xA; white-space: normal;" nowrap="nowrap"
              align="left" width="194" valign="center">
              <div style="border-width: 0px 0px 0px 1px;&#xA;
                border-left-style: solid; border-left-color: rgb(221,
                221,&#xA; 221); margin: 0px; padding: 0px 10px 0px 20px;
                font-style:&#xA; normal; font-variant: normal;
                font-weight: normal;&#xA; font-stretch: normal;
                font-size: 12px; line-height: 1.5;&#xA; font-family:
                sans-serif; color: rgb(153, 153, 153);&#xA; min-width:
                194px;"><img shrinktofit="true" alt="Inspiring
                  Innovation - Since&#xA; 1816"
src="http://www.emse.fr/signature-mail/Inspiring_Innovation_Since_1816.png"
                  style="border: 0px; margin: 0px; padding: 0px;
                  height:&#xA; auto; max-width: 100%;" height="47"
                  width="164"></div>
            </td>
          </tr>
        </tbody>
      </table>
      <div class="moz-signature">
        <div class="moz-signature">
          <div class="moz-signature">
            <meta http-equiv="content-type" content="text/html;
              charset=UTF-8">
            <meta http-equiv="content-type" content="text/html;
              charset=UTF-8">
            <title></title>
            <meta http-equiv="content-type" content="text/html;
              charset=UTF-8">
          </div>
        </div>
      </div>
    </div>
  </body>
</html>