<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello all,</p>
<p>First of all a big thank you for developing such a great tool !</p>
<p>That being said ... I have a problem with the following. On a
remote machine I have an audio source with a udpsink on my local
machine using port 8001</p>
<p>using :<br>
</p>
<p>gst-launch-1.0 -ev udpsrc port=8001
caps=application/x-rtp,media=audio,clock-rate=90000,encoding-name=MPA,payload=14,ssrc=2608690421,timestamp-offset=3965000461,seqnum-offset=25383
! decodebin ! autoaudiosink</p>
<p>works perfectly and sound flows out of the speakers. <br>
</p>
<p>Using the following python code yields nothing, no errors but no
sound either<br>
</p>
<p><tt>import gi<br>
gi.require_version('Gst', '1.0')<br>
gi.require_version('GstVideo', '1.0')<br>
from gi.repository import GObject, Gst, GstVideo<br>
GObject.threads_init()<br>
Gst.init(None)<br>
</tt></p>
<p><tt>self.pipeline = Gst.Pipeline("audioPipeline")</tt><tt><br>
</tt><tt>self.src = Gst.ElementFactory.make("udpsrc","src")</tt><tt><br>
</tt><tt>self.dec =
Gst.ElementFactory.make("decodebin","dec")</tt><tt><br>
</tt><tt>self.sink =
Gst.ElementFactory.make("autoaudiosink","sink")</tt><tt><br>
</tt><tt><br>
</tt><tt>self.src.set_property("port",self.portIn)</tt><tt><br>
</tt><tt>self.src.set_property("caps",Gst.Caps.from_string("application/x-rtp,media=audio,clock-rate=90000,encoding-name=MPA,payload=14,ssrc=2608690421,timestamp-offset=3965000461,seqnum-offset=25383"))</tt><tt><br>
</tt><tt><br>
</tt><tt>self.pipeline.add(self.src,self.dec,self.sink)</tt><tt><br>
</tt><tt><br>
</tt><tt>self.src.link(self.dec)</tt><tt><br>
</tt><tt>self.dec.link(self.sink)</tt><tt><br>
</tt><tt><br>
</tt><tt>self.pipeline.set_state(Gst.State.PLAYING)</tt></p>
<p><tt><br>
</tt>The question is thus, what am I doing wrong ?</p>
<p>Thanks in advance for your help</p>
<p>Jouke<br>
</p>
<br>
<div class="moz-signature">-- <br>
<div class="moz-signature">
<img src="cid:part1.6ECAC958.02BA2BB9@onera.fr" style="float:
left; padding-top: 10px; padding-right: 10px; padding-bottom:
60px;" height="50" width="120"><span style="font-family:
Arial,Helvetica,sans-serif; font-size: 9pt; color: rgb(6, 104,
179);"> <strong>Jouke Hijlkema</strong> - Ingénieur de
recherche<br>
<strong> Laboratoire de Propulsion<br>
Département Modèles pour l'Aérodynamique et l'Energétique<br>
</strong>
Tél : + 33 5 61 56 63 93 - Fax : + 33 5 61 56 63 87<br>
</span>
<p style="text-decoration: none; font-family:
Arial,Helvetica,sans-serif; font-size: 8pt; font-weight:
normal; color: rgb(0, 0, 0);">ONERA - The
French Aerospace Lab - Centre du Fauga-Mauzac<br>
31410 Mauzac<br>
<a href="http://www.onera.fr" target="_blank"
style="text-decoration: none; font-family:
Arial,Helvetica,sans-serif; font-size: 9pt; font-weight:
normal; color: rgb(6, 104, 179);"><span
style="text-decoration: none; color: rgb(6, 104, 179);">www.onera.fr</span></a> | <a
href="http://www.twitter.com/@onera_fr" target="_blank"
style="text-decoration: none; font-family:
Arial,Helvetica,sans-serif; font-size: 9pt; font-weight:
normal; color: rgb(6, 104, 179);"><span style="border: 0pt
none ; text-decoration: none; color: rgb(6, 104, 179);
font-size: 9pt;">jouke.hijlkema@onera.fr</span></a></p>
<p style="text-decoration: none; font-family:
Arial,Helvetica,sans-serif; font-size: 8pt; font-weight:
normal; color: rgb(0, 0, 0);">Avertissement/disclaimer <a
href="http://www.onera.fr/onera-en/emails-terms"><span
style="border: 0pt none ; text-decoration: none; color:
rgb(6, 104, 179); font-size: 8pt;">http://www.onera.fr/onera-en/emails-terms</span></a></p>
</div>
</div>
</body>
</html>