<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
I fixed typos in my mail...<br>
And I would add that I have two "pad-added" signals with strictly
the same pad names; output of callback calls below:<br>
psa_listener_pad_cb: new pad: '<b>rtpbin:recv_rtp_src_1_1993189537_96</b>'
to 'depay_v': failed (-4)<br>
psa_listener_pad_cb: new pad: '<b>rtpbin:recv_rtp_src_1_1993189537_96</b>'
to 'depay_a': success<br>
Have you an idea of what happens?<br>
Philippe<br>
<br>
<div class="moz-cite-prefix">Le 03/02/2019 à 14:10, Philippe Lalevée
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:00814132-4ed6-5ed8-f246-09a4a0074a39@mines-stetienne.fr">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hello,<br>
I have a problem of connection between rtpbin and rtph264depay
(maybe the problem is elsewhere).<br>
Here is my pipelines, which executes correctly with gst-launch...<br>
Talker machine :<br>
gst-launch-1.0 rtpbin name=rtpbin filesrc location=video.mp4 !
qtdemux name=d<br>
d.audio_0 ! aacparse ! rtpmp4apay mtu=524 !
rtpbin.send_rtp_sink_1<br>
d.video_0 ! decodebin ! x264enc ! rtph264pay !
rtpbin.send_rtp_sink_0<br>
rtpbin.send_rtp_src_1 ! udpsink port=5004 host=$IP sync=false
async=false<br>
rtpbin.send_rtcp_src_1 ! udpsink port=5005 host=$IP sync=false
async=false <br>
udpsrc port=5007 ! rtpbin.recv_rtcp_sink_1<br>
rtpbin.send_rtp_src_0 ! udpsink port=5000 host=$IP sync=true
async=false<br>
rtpbin.send_rtcp_src_0 ! udpsink port=5001 host=$IP sync=false
async=false<br>
udpsrc port=5003 ! rtpbin.recv_rtcp_sink_0<br>
<br>
Listener machine:<br>
gst-launch-1.0 rtpbin name=rtpbin<br>
udpsrc caps=$VCAPS port=5000 ! rtpbin.recv_rtp_sink_0<br>
<b>rtpbin.recv_rtp_src_0 ! rtph264depay</b> ! decodebin !
videoconvert ! autovideosink<br>
udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0<br>
rtpbin.send_rtcp_src_0 ! udpsink port=5003 host=$IP sync=false
async=false<br>
udpsrc caps=$ACAPS port=5004 ! rtpbin.recv_rtp_sink_1<br>
rtpbin.send_rtp_src_1 ! rtpmp4adepay ! avdec_aac !
audioconvert ! alsasink<br>
udpsrc port=5005 ! rtpbin.recv_rtcp_sink_1<br>
rtpbin.send_rtcp_src_1 !<br>
udpsink port=5007 host=$IP sync=false async=false<br>
<br>
...but not in an application. The problem is on listener side:
rtph264depay refuse to link to recv_rtp_src_0 of rtpbin, instead
it try to link with recv_rtp_src_1, which is not correct, because
this is an "audio pad (consequently, the error code -4 is
returned, meaning "pads do not have common format"). Naturally,
there is no problem for rtpmp4adepay. And, if I connect first
rtpmp4adepay, it normally uses the pad recv_rtp_src_1, but
rtph264depay want to use the same pad (why?), and then the error
code -2 is returned, meaning "pad was already linked". <br>
<br>
To make the links, I use the signal "pad-added" with
g_signal_connect, and in the callback, I use gst_element_link to
make the link. I have no problem with other links...<br>
g_signal_connect(recv_rtpbin, "pad-added",
G_CALLBACK(psa_listener_pad_cb), depay_video);<br>
g_signal_connect(recv_rtpbin, "pad-added",
G_CALLBACK(psa_listener_pad_cb), depay_audio);<br>
<br>
As recv_rtp_src_1 is a audio pad, then incompatible with
rtph264depay, how to force linking of rtph264depay to a specific
pad (here recv_rtp_src_0) for this plugin?<br>
<br>
Else have you an idea of the problem?<br>
<br>
Thanks,<br>
Philippe<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">
<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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
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>
<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, 221, 221); margin: 0px; padding: 0px; border-spacing:
0px; font-size: 12px; width: auto; color: rgb(51, 51, 51);
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 18px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; 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.382D9CE9.B872AC2E@mines-stetienne.fr"
style="border: 0px; margin: 0px; padding: 0px 10px;
height: auto; max-width: 100%;" height="116" width="140"></td>
<td style="border: 0px; margin: 0px; padding: 0.75em 1em;
white-space: normal;" align="left" valign="bottom"
nowrap="nowrap">
<div style="border: 0px; margin: 0px; padding: 0px;
font-style: normal; font-variant: normal; font-weight:
normal; font-stretch: normal; font-size: 11px;
line-height: 1.2; font-family: sans-serif;">
<div style="border: 0px; margin: 0px; padding: 0px;
color: rgb(102, 51, 153); font-weight: bold;"><strong
style="border: 0px; margin: 0px; padding: 0px;
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: rgb(95, 37, 159); text-decoration: none;">philippe.lalevee@mines-stetienne.fr</a><br>
<a href="https://twitter.com/CampusCharpak"
style="border: 0px; margin: 0px; padding: 0px;
color: rgb(95, 37, 159); text-decoration: none;">@CampusCharpak</a>
<a href="https://twitter.com/hashtag/ISMIN"
style="border: 0px; margin: 0px; padding: 0px;
color: rgb(95, 37, 159); text-decoration: none;">#ISMIN</a>
<a href="https://twitter.com/p_lalevee" style="border:
0px; margin: 0px; padding: 0px; color: rgb(95, 37,
159); text-decoration: none;">@p_lalevee</a></div>
<div style="border: 0px; margin: 0px; padding: 5px 0px;
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;
font-weight: bold;"> <a
href="http://www.mines-stetienne.fr/" style="border:
0px; margin: 0px; padding: 0px; color: rgb(95, 37,
159); text-decoration: none;">www.mines-stetienne.fr</a>
<a href="https://twitter.com/MINES_StEtienne"
style="border: 0px; margin: 0px; padding: 0px;
color: rgb(95, 37, 159); text-decoration: none;">@MINES_StEtienne</a></div>
<div style="border-width: 1px 0px 0px; border-top-style:
solid; border-top-color: rgb(221, 221, 221); margin:
0px; padding: 5px 0px; font-style: normal;
font-variant: normal; font-weight: normal;
font-stretch: normal; font-size: 11px; line-height:
1.2; font-family: 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;
white-space: normal;" align="left" width="194"
valign="center" nowrap="nowrap">
<div style="border-width: 0px 0px 0px 1px;
border-left-style: solid; border-left-color: rgb(221,
221, 221); margin: 0px; padding: 0px 10px 0px 20px;
font-style: normal; font-variant: normal; font-weight:
normal; font-stretch: normal; font-size: 12px;
line-height: 1.5; font-family: sans-serif; color:
rgb(153, 153, 153); min-width: 194px;"><img
shrinktofit="true" alt="Inspiring Innovation - Since
1816"
src="http://www.emse.fr/signature-mail/Inspiring_Innovation_Since_1816.png"
style="border: 0px; margin: 0px; padding: 0px; height:
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>