Strange behaviour

jouke hijlkema Jouke.Hijlkema at onera.fr
Wed Nov 30 17:54:45 UTC 2016


Hello all,

First of all a big thank you for developing such a great tool !

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

using :

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

works perfectly and sound flows out of the speakers.

Using the following python code yields nothing, no errors but no sound 
either

import gi
gi.require_version('Gst', '1.0')
gi.require_version('GstVideo', '1.0')
from gi.repository import GObject, Gst, GstVideo
GObject.threads_init()
Gst.init(None)

self.pipeline = Gst.Pipeline("audioPipeline")
self.src      = Gst.ElementFactory.make("udpsrc","src")
self.dec      = Gst.ElementFactory.make("decodebin","dec")
self.sink     = Gst.ElementFactory.make("autoaudiosink","sink")

self.src.set_property("port",self.portIn)
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"))

self.pipeline.add(self.src,self.dec,self.sink)

self.src.link(self.dec)
self.dec.link(self.sink)

self.pipeline.set_state(Gst.State.PLAYING)


The question is thus, what am I doing wrong ?

Thanks in advance for your help

Jouke


-- 
*Jouke Hijlkema* - Ingénieur de recherche
*Laboratoire de Propulsion
Département Modèles pour l'Aérodynamique et l'Energétique
* Tél : + 33 5 61 56 63 93  -  Fax : + 33 5 61 56 63 87

ONERA - The French Aerospace Lab - Centre du Fauga-Mauzac
31410 Mauzac
www.onera.fr <http://www.onera.fr>  | jouke.hijlkema at onera.fr 
<http://www.twitter.com/@onera_fr>

Avertissement/disclaimer http://www.onera.fr/onera-en/emails-terms

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161130/f16fa05c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onera-logo-120x50.jpg
Type: image/jpeg
Size: 4416 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161130/f16fa05c/attachment-0001.jpg>


More information about the gstreamer-devel mailing list