<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Florent,<br>
<br>
Thanks a lot for the example! It works fine.<br>
<br>
One small question, I tried to find the documentation - but could not
locate it: in python for example the signal is 'get_stats', but the C
example has 'stats'.<br>
<br>
Where could I find this described/explained? For instance for other
interesting statistics (like jitter, latency ...).<br>
<br>
That would be another great piece of help!<br>
<br>
Regards, Dirk<br>
<br>
<br>
<blockquote
cite="mid:1efe3a6e0910170500x2af0f45fref0b30681a8d164d@mail.gmail.com"
type="cite">
<pre wrap="">Hi
</pre>
<blockquote type="cite">
<pre wrap="">The RTP C examples in plugins-good show how to extract statistics.
I would like to do the same in Python, but I cannot find these functions
anywhere ...
</pre>
</blockquote>
<pre wrap=""><!---->
The following should work:
import gst
host="127.0.0.1"
port=1234
p = "videotestsrc ! rtpvrawpay ! udpsink host=%s port=%s" %(host, port)
pipeline = gst.parse_launch(p)
udpsink = pipeline.get_by_name("udpsink0")
def print_stats():
data = udpsink.emit("get_stats", host, port)
stats = "bytes_sent: %s, packets_sent: %s, connect_time: %s"
%(data[0], data[1], data[2])
print stats
return True
import gobject
gobject.timeout_add_seconds(1, print_stats)
pipeline.set_state(gst.STATE_PLAYING)
import gtk
gtk.main()
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/devconference">http://p.sf.net/sfu/devconference</a>
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>