After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 711693 - rtpsession: Implement various session statistics
rtpsession: Implement various session statistics
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
unspecified
Other Linux
: Normal enhancement
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-11-08 15:40 UTC by Torrie Fischer
Modified: 2013-11-15 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gstrtpsession: Implement a number of feedback packet statistics (8.60 KB, patch)
2013-11-08 15:42 UTC, Torrie Fischer
needs-work Details | Review
gstrtpsession: Implement a number of feedback packet statistics (8.08 KB, patch)
2013-11-11 18:12 UTC, Torrie Fischer
needs-work Details | Review
gstrtpsession: Implement a number of feedback packet statistics (8.39 KB, patch)
2013-11-11 18:42 UTC, Torrie Fischer
none Details | Review
gstrtpsession: Implement a number of feedback packet statistics (8.67 KB, patch)
2013-11-15 13:37 UTC, George Kiagiadakis
none Details | Review

Description Torrie Fischer 2013-11-08 15:40:13 UTC
This patch implements a number of statistics about feedback packets in rtpsession:

◦ Number of retransmission events received
◦ Number of retransmission events dropped because of RTCP bandwidth constraints
◦ Number of FB NACK packets sent
◦ Number of FB NACK received
Comment 1 Torrie Fischer 2013-11-08 15:42:53 UTC
Created attachment 259282 [details] [review]
gstrtpsession: Implement a number of feedback packet statistics
Comment 2 George Kiagiadakis 2013-11-08 16:26:56 UTC
Review of attachment 259282 [details] [review]:

::: gst/rtpmanager/gstrtpsession.c
@@ +835,3 @@
+      break;
+    case PROP_RECV_NACK_COUNT:
+      g_object_set_property (G_OBJECT (priv->session), "nacks-recieved", value);

You probably need g_object_get_property in all 3 cases

::: gst/rtpmanager/rtpsession.c
@@ +707,3 @@
+      break;
+    case PROP_NACKS_SENT:
+      g_value_set_uint (value, sess->stats.nacks_dropped);

s/dropped/sent/

::: gst/rtpmanager/rtpsession.h
@@ +284,3 @@
       guint sender_ssrc, guint media_ssrc, GstBuffer *fci);
   void (*send_rtcp)         (RTPSession *sess, GstClockTime max_delay);
+  void (*on_nack_dropped)   (RTPSession *sess, guint count);

Where is that being used?
Comment 3 Torrie Fischer 2013-11-11 18:12:34 UTC
Created attachment 259577 [details] [review]
gstrtpsession: Implement a number of feedback packet statistics

Huh, odd. Chrome uploaded the older version of the patch. This one I've confirmed is correct.
Comment 4 Tim-Philipp Müller 2013-11-11 18:23:00 UTC
Comment on attachment 259577 [details] [review]
gstrtpsession: Implement a number of feedback packet statistics

Please could you provide the patch in "git format-patch" format? (git format-patch -1)
Comment 5 Torrie Fischer 2013-11-11 18:42:25 UTC
Created attachment 259581 [details] [review]
gstrtpsession: Implement a number of feedback packet statistics

reformatted with git format-patch
Comment 6 Wim Taymans 2013-11-14 08:51:08 UTC
like the rtpjitterbuffer, please make a stats property that returns a structure so that we can make the stats an atomic snapshot and so that we can easily add more things to it later.
Comment 7 George Kiagiadakis 2013-11-15 13:37:38 UTC
Created attachment 259876 [details] [review]
gstrtpsession: Implement a number of feedback packet statistics
Comment 8 Wim Taymans 2013-11-15 14:22:52 UTC
commit acf74435e3a713a7d0fd685abad86e6a61eef51f
Author: Torrie Fischer <torrie.fischer@collabora.co.uk>
Date:   Fri Nov 15 15:20:14 2013 +0100

    gstrtpsession: Implement a number of feedback packet statistics
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=711693