summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Fludkov <misha@pexip.com>2017-11-17 03:52:03 +0100
committerMathieu Duponchelle <mathieu@centricular.com>2018-02-21 14:15:22 +0100
commitd5ad50bd61bb6d98c4636f28d71dca993bc6d1bf (patch)
treec56e102f2dd9744bf008dbfdd6d9467e6da3cabd
parent82d0950254c19a0b9fafe90b0dd552ad37e134e9 (diff)
rtp: Implement ULPFEC (RFC 5109)
We expose a set of new elements: * ULPFEC encoder / decoder * A storage element, which should be placed before jitterbuffers, and is used to store packets in order to attempt reconstruction after the jitterbuffer has sent PacketLost events * RED encoder / decoder (RFC 2198), these are necessary to use FEC in webrtc, as browsers will propose and expect ulpfec packets to be wrapped in red packets With contributions from: Mathieu Duponchelle <mathieu@centricular.com> Sebastian Dröge <sebastian@centricular.com> https://bugzilla.gnome.org/show_bug.cgi?id=792696
-rw-r--r--gst/rtp/Makefile.am11
-rw-r--r--gst/rtp/gstrtp.c35
-rw-r--r--gst/rtp/gstrtpreddec.c516
-rw-r--r--gst/rtp/gstrtpreddec.h61
-rw-r--r--gst/rtp/gstrtpredenc.c499
-rw-r--r--gst/rtp/gstrtpredenc.h65
-rw-r--r--gst/rtp/gstrtpstorage.c175
-rw-r--r--gst/rtp/gstrtpstorage.h59
-rw-r--r--gst/rtp/gstrtpulpfecdec.c607
-rw-r--r--gst/rtp/gstrtpulpfecdec.h83
-rw-r--r--gst/rtp/gstrtpulpfecenc.c692
-rw-r--r--gst/rtp/gstrtpulpfecenc.h101
-rw-r--r--gst/rtp/meson.build9
-rw-r--r--gst/rtp/rtpredcommon.c90
-rw-r--r--gst/rtp/rtpredcommon.h80
-rw-r--r--gst/rtp/rtpstorage.c231
-rw-r--r--gst/rtp/rtpstorage.h69
-rw-r--r--gst/rtp/rtpstoragestream.c216
-rw-r--r--gst/rtp/rtpstoragestream.h60
-rw-r--r--gst/rtp/rtpulpfeccommon.c434
-rw-r--r--gst/rtp/rtpulpfeccommon.h139
-rw-r--r--tests/check/Makefile.am14
-rw-r--r--tests/check/elements/packets.h239
-rw-r--r--tests/check/elements/rtpred.c839
-rw-r--r--tests/check/elements/rtpstorage.c547
-rw-r--r--tests/check/elements/rtpulpfec.c629
-rw-r--r--tests/check/meson.build3
27 files changed, 6501 insertions, 2 deletions
diff --git a/gst/rtp/Makefile.am b/gst/rtp/Makefile.am
index 7b2afd534..05ec3878d 100644
--- a/gst/rtp/Makefile.am
+++ b/gst/rtp/Makefile.am
@@ -93,7 +93,16 @@ libgstrtp_la_SOURCES = \
gstrtpvrawpay.c \
gstrtpstreampay.c \
gstrtpstreamdepay.c \
- gstrtputils.c
+ gstrtputils.c \
+ rtpulpfeccommon.c \
+ gstrtpulpfecdec.c \
+ gstrtpulpfecenc.c \
+ rtpredcommon.c \
+ gstrtpredenc.c \
+ gstrtpreddec.c \
+ rtpstorage.c \
+ rtpstoragestream.c \
+ gstrtpstorage.c
libgstrtp_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) \
$(GST_CFLAGS) -Dvp8_norm=gst_rtpvp8_vp8_norm \
diff --git a/gst/rtp/gstrtp.c b/gst/rtp/gstrtp.c
index 8b0ef582e..b0ab05527 100644
--- a/gst/rtp/gstrtp.c
+++ b/gst/rtp/gstrtp.c
@@ -113,6 +113,13 @@
#include "gstrtpvrawpay.h"
#include "gstrtpstreampay.h"
#include "gstrtpstreamdepay.h"
+#include "gstrtpredenc.h"
+#include "gstrtpreddec.h"
+#include "gstrtpulpfecdec.h"
+#include "gstrtpulpfecenc.h"
+#include "gstrtpreddec.h"
+#include "gstrtpredenc.h"
+#include "gstrtpstorage.h"
static gboolean
plugin_init (GstPlugin * plugin)
@@ -388,6 +395,34 @@ plugin_init (GstPlugin * plugin)
if (!gst_rtp_stream_depay_plugin_init (plugin))
return FALSE;
+ if (!gst_element_register (plugin, "rtpredenc", GST_RANK_NONE,
+ GST_TYPE_RTP_RED_ENC))
+ return FALSE;
+
+ if (!gst_element_register (plugin, "rtpreddec", GST_RANK_NONE,
+ GST_TYPE_RTP_RED_DEC))
+ return FALSE;
+
+ if (!gst_element_register (plugin, "rtpulpfecdec", GST_RANK_NONE,
+ GST_TYPE_RTP_ULPFEC_DEC))
+ return FALSE;
+
+ if (!gst_element_register (plugin, "rtpulpfecenc", GST_RANK_NONE,
+ GST_TYPE_RTP_ULPFEC_ENC))
+ return FALSE;
+
+ if (!gst_element_register (plugin, "rtpreddec", GST_RANK_NONE,
+ GST_TYPE_RTP_RED_DEC))
+ return FALSE;
+
+ if (!gst_element_register (plugin, "rtpredenc", GST_RANK_NONE,
+ GST_TYPE_RTP_RED_ENC))
+ return FALSE;
+
+ if (!gst_element_register (plugin, "rtpstorage", GST_RANK_NONE,
+ GST_TYPE_RTP_STORAGE))
+ return FALSE;
+
return TRUE;
}
diff --git a/gst/rtp/gstrtpreddec.c b/gst/rtp/gstrtpreddec.c
new file mode 100644
index 000000000..e9412db6c
--- /dev/null
+++ b/gst/rtp/gstrtpreddec.c
@@ -0,0 +1,516 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include <gst/rtp/gstrtpbuffer.h>
+
+#include "rtpredcommon.h"
+#include "gstrtpreddec.h"
+#include "rtpulpfeccommon.h"
+
+#define RTP_HISTORY_MAX_SIZE (16)
+
+typedef struct
+{
+ guint32 timestamp;
+ guint16 seq;
+} RTPHistItem;
+
+#define RTP_HIST_ITEM_TIMESTAMP(p) ((RTPHistItem *)p)->timestamp
+#define RTP_HIST_ITEM_SEQ(p) ((RTPHistItem *)p)->seq
+
+static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
+ GST_PAD_SINK,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/x-rtp"));
+
+static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
+ GST_PAD_SRC,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/x-rtp"));
+
+#define UNDEF_PT -1
+#define MIN_PT UNDEF_PT
+#define MAX_PT 127
+#define DEFAULT_PT UNDEF_PT
+
+GST_DEBUG_CATEGORY_STATIC (gst_rtp_red_dec_debug);
+#define GST_CAT_DEFAULT (gst_rtp_red_dec_debug)
+
+G_DEFINE_TYPE (GstRtpRedDec, gst_rtp_red_dec, GST_TYPE_ELEMENT);
+
+enum
+{
+ PROP_0,
+ PROP_PT,
+ PROP_RECEIVED
+};
+
+static RTPHistItem *
+rtp_hist_item_alloc (void)
+{
+ return g_slice_new (RTPHistItem);
+}
+
+static void
+rtp_hist_item_free (gpointer item)
+{
+ g_slice_free (RTPHistItem, item);
+}
+
+static gint
+gst_rtp_red_history_find_less_or_equal (gconstpointer item,
+ gconstpointer timestamp)
+{
+ guint32 t = GPOINTER_TO_UINT (timestamp);
+ gint32 diff = t - RTP_HIST_ITEM_TIMESTAMP (item);
+ return diff < 0;
+}
+
+static gint
+gst_rtp_red_history_find_less (gconstpointer item, gconstpointer timestamp)
+{
+ guint32 t = GPOINTER_TO_UINT (timestamp);
+ gint32 diff = t - RTP_HIST_ITEM_TIMESTAMP (item);
+ return diff <= 0;
+}
+
+static void
+gst_rtp_red_history_update (GstRtpRedDec * self, GstRTPBuffer * rtp)
+{
+ RTPHistItem *item;
+ GList *link, *sibling;
+
+ /* If we have not reached MAX number of elements in the history,
+ * allocate a new link and a new item,
+ * otherwise reuse the tail (the oldest data) without any reallocations
+ */
+ if (self->rtp_history->length < RTP_HISTORY_MAX_SIZE) {
+ item = rtp_hist_item_alloc ();
+ link = g_list_alloc ();
+ link->data = item;
+ } else {
+ link = g_queue_pop_tail_link (self->rtp_history);
+ item = link->data;
+ }
+
+ item->timestamp = gst_rtp_buffer_get_timestamp (rtp);
+ item->seq = gst_rtp_buffer_get_seq (rtp);
+
+ /* Looking for a place to insert new link.
+ * The queue has newest to oldest rtp timestamps, so in 99% cases
+ * it is inserted before the head of the queue */
+ sibling = g_list_find_custom (self->rtp_history->head,
+ GUINT_TO_POINTER (item->timestamp),
+ gst_rtp_red_history_find_less_or_equal);
+ g_queue_push_nth_link (self->rtp_history,
+ g_list_position (self->rtp_history->head, sibling), link);
+}
+
+static gboolean
+rtp_red_buffer_is_valid (GstRtpRedDec * self, GstRTPBuffer * red_rtp,
+ gsize * dst_first_red_payload_offset)
+{
+ guint8 *payload = gst_rtp_buffer_get_payload (red_rtp);
+ gsize payload_len = gst_rtp_buffer_get_payload_len (red_rtp);
+ gsize red_hdrs_offset = 0;
+ guint red_hdrs_checked = 0;
+ guint redundant_payload_len = 0;
+
+ while (TRUE) {
+ gpointer red_hdr = payload + red_hdrs_offset;
+ gsize red_hdr_len;
+ gboolean is_redundant;
+
+ ++red_hdrs_checked;
+
+ /* Can we address the first byte where F bit is located ? */
+ if (red_hdrs_offset + 1 > payload_len)
+ goto red_buffer_invalid;
+
+ is_redundant = rtp_red_block_is_redundant (red_hdr);
+
+ /* Is it the last block? */
+ if (is_redundant) {
+ red_hdr_len = rtp_red_block_header_get_length (TRUE);
+
+ /* Can we address all the other bytes in RED block header? */
+ if (red_hdrs_offset + red_hdr_len > payload_len)
+ goto red_buffer_invalid;
+
+ redundant_payload_len += rtp_red_block_get_payload_length (red_hdr);
+ red_hdrs_offset += red_hdr_len;
+ } else {
+ red_hdr_len = rtp_red_block_header_get_length (FALSE);
+ red_hdrs_offset += red_hdr_len;
+ break;
+ }
+ }
+
+ /* Do we have enough data to create redundant packets & main packet. Keep in
+ * mind that redundant_payload_len contains the length of redundant packets only.
+ */
+ if (red_hdrs_offset + redundant_payload_len >= payload_len)
+ goto red_buffer_invalid;
+
+ *dst_first_red_payload_offset = red_hdrs_offset;
+
+ GST_LOG_OBJECT (self, "RED packet has %u blocks", red_hdrs_checked);
+ return TRUE;
+
+red_buffer_invalid:
+ GST_WARNING_OBJECT (self, "Received invalid RED packet "
+ "ssrc=0x%08x pt=%u tstamp=%u seq=%u size=%u, "
+ "checked %u blocks",
+ gst_rtp_buffer_get_ssrc (red_rtp),
+ gst_rtp_buffer_get_payload_type (red_rtp),
+ gst_rtp_buffer_get_timestamp (red_rtp),
+ gst_rtp_buffer_get_seq (red_rtp),
+ gst_rtp_buffer_get_packet_len (red_rtp), red_hdrs_checked);
+ return FALSE;
+}
+
+static gboolean
+gst_red_history_lost_seq_num_for_timestamp (GstRtpRedDec * self,
+ guint32 timestamp, guint16 * dst_seq_num)
+{
+ GList *older_sibling = g_list_find_custom (self->rtp_history->head,
+ GUINT_TO_POINTER (timestamp),
+ gst_rtp_red_history_find_less);
+ RTPHistItem *older;
+ RTPHistItem *newer;
+ guint32 timestamp_diff;
+ gint seq_diff;
+
+ if (NULL == older_sibling) {
+ if (self->rtp_history->length == RTP_HISTORY_MAX_SIZE)
+ GST_WARNING_OBJECT (self, "History is too short. "
+ "Oldest rtp timestamp %u, looking for %u, size %u",
+ RTP_HIST_ITEM_TIMESTAMP (self->rtp_history->tail->data),
+ timestamp, self->rtp_history->length);
+ return FALSE;
+ }
+
+ if (NULL == older_sibling->prev) {
+ GST_WARNING_OBJECT (self, "RED block timestamp offset probably wrong. "
+ "Latest rtp timestamp %u, looking for %u, size %u",
+ RTP_HIST_ITEM_TIMESTAMP (self->rtp_history->head->data),
+ timestamp, self->rtp_history->length);
+ return FALSE;
+ }
+
+ older = older_sibling->data;
+ newer = older_sibling->prev->data;
+ /* We know for sure @older has lower timestamp than we are looking for,
+ * if @newer has the same timestamp, there is no packet loss and we
+ * don't need to use redundant data */
+ if (newer->timestamp == timestamp)
+ return FALSE;
+
+ seq_diff = gst_rtp_buffer_compare_seqnum (older->seq, newer->seq);
+ if (seq_diff <= 1) {
+ if (seq_diff == 1)
+ GST_WARNING_OBJECT (self, "RED block timestamp offset is wrong: "
+ "#%u,%u #%u,%u looking for %u",
+ older->seq, older->timestamp,
+ newer->seq, newer->timestamp, timestamp);
+ else
+ GST_WARNING_OBJECT (self, "RTP timestamps increasing while "
+ "sequence numbers decreasing: #%u,%u #%u,%u",
+ older->seq, older->timestamp, newer->seq, newer->timestamp);
+ return FALSE;
+ }
+
+ timestamp_diff = newer->timestamp - older->timestamp;
+ for (gint lost_packet_idx = 1; lost_packet_idx < seq_diff; ++lost_packet_idx) {
+ guint32 lost_timestamp = older->timestamp +
+ lost_packet_idx * timestamp_diff / seq_diff;
+ if (lost_timestamp == timestamp) {
+ *dst_seq_num = older->seq + lost_packet_idx;
+ return TRUE;
+ }
+ }
+
+ GST_WARNING_OBJECT (self, "Can't find RED block timestamp "
+ "#%u,%u #%u,%u looking for %u",
+ older->seq, older->timestamp, newer->seq, newer->timestamp, timestamp);
+ return FALSE;
+}
+
+static GstBuffer *
+gst_rtp_red_create_packet (GstRtpRedDec * self, GstRTPBuffer * red_rtp,
+ gboolean marker, guint8 pt, guint16 seq_num, guint32 timestamp,
+ gsize red_payload_subbuffer_start, gsize red_payload_subbuffer_len)
+{
+ guint csrc_count = gst_rtp_buffer_get_csrc_count (red_rtp);
+ GstBuffer *ret = gst_rtp_buffer_new_allocate (0, 0, csrc_count);
+ GstRTPBuffer ret_rtp = GST_RTP_BUFFER_INIT;
+ if (!gst_rtp_buffer_map (ret, GST_MAP_WRITE, &ret_rtp))
+ g_assert_not_reached ();
+
+ gst_rtp_buffer_set_marker (&ret_rtp, marker);
+ gst_rtp_buffer_set_payload_type (&ret_rtp, pt);
+ gst_rtp_buffer_set_seq (&ret_rtp, seq_num);
+ gst_rtp_buffer_set_timestamp (&ret_rtp, timestamp);
+ gst_rtp_buffer_set_ssrc (&ret_rtp, gst_rtp_buffer_get_ssrc (red_rtp));
+ for (guint i = 0; i < csrc_count; ++i)
+ gst_rtp_buffer_set_csrc (&ret_rtp, i, gst_rtp_buffer_get_csrc (red_rtp, i));
+ gst_rtp_buffer_unmap (&ret_rtp);
+
+ ret = gst_buffer_append (ret,
+ gst_rtp_buffer_get_payload_subbuffer (red_rtp,
+ red_payload_subbuffer_start, red_payload_subbuffer_len));
+
+ /* Timestamps, meta, flags from the RED packet should go to main block packet */
+ gst_buffer_copy_into (ret, red_rtp->buffer, GST_BUFFER_COPY_METADATA, 0, -1);
+ return ret;
+}
+
+static GstBuffer *
+gst_rtp_red_create_from_redundant_block (GstRtpRedDec * self,
+ GstRTPBuffer * red_rtp, gsize * red_hdr_offset, gsize * red_payload_offset)
+{
+ guint8 *payload = gst_rtp_buffer_get_payload (red_rtp);
+ guint8 *red_hdr = payload + *red_hdr_offset;
+ guint32 lost_timestamp = gst_rtp_buffer_get_timestamp (red_rtp) -
+ rtp_red_block_get_timestamp_offset (red_hdr);
+
+ GstBuffer *ret = NULL;
+ guint16 lost_seq = 0;
+ if (gst_red_history_lost_seq_num_for_timestamp (self, lost_timestamp,
+ &lost_seq)) {
+ ret =
+ gst_rtp_red_create_packet (self, red_rtp, FALSE,
+ rtp_red_block_get_payload_type (red_hdr), lost_seq, lost_timestamp,
+ *red_payload_offset, rtp_red_block_get_payload_length (red_hdr));
+ GST_BUFFER_FLAG_SET (ret, GST_RTP_BUFFER_FLAG_REDUNDANT);
+ }
+
+ *red_hdr_offset += rtp_red_block_header_get_length (TRUE);
+ *red_payload_offset += rtp_red_block_get_payload_length (red_hdr);
+ return ret;
+}
+
+static GstBuffer *
+gst_rtp_red_create_from_main_block (GstRtpRedDec * self,
+ GstRTPBuffer * red_rtp, gsize red_hdr_offset, gsize * red_payload_offset)
+{
+ guint8 *payload = gst_rtp_buffer_get_payload (red_rtp);
+ GstBuffer *ret = gst_rtp_red_create_packet (self, red_rtp,
+ gst_rtp_buffer_get_marker (red_rtp),
+ rtp_red_block_get_payload_type (payload + red_hdr_offset),
+ gst_rtp_buffer_get_seq (red_rtp),
+ gst_rtp_buffer_get_timestamp (red_rtp),
+ *red_payload_offset, -1);
+ *red_payload_offset = gst_rtp_buffer_get_payload_len (red_rtp);
+ return ret;
+}
+
+static GstBuffer *
+gst_rtp_red_create_from_block (GstRtpRedDec * self, GstRTPBuffer * red_rtp,
+ gsize * red_hdr_offset, gsize * red_payload_offset)
+{
+ guint8 *payload = gst_rtp_buffer_get_payload (red_rtp);
+
+ if (rtp_red_block_is_redundant (payload + (*red_hdr_offset)))
+ return gst_rtp_red_create_from_redundant_block (self, red_rtp,
+ red_hdr_offset, red_payload_offset);
+
+ return gst_rtp_red_create_from_main_block (self, red_rtp, *red_hdr_offset,
+ red_payload_offset);
+}
+
+static GstFlowReturn
+gst_rtp_red_process (GstRtpRedDec * self, GstRTPBuffer * red_rtp,
+ gsize first_red_payload_offset)
+{
+ gsize red_hdr_offset = 0;
+ gsize red_payload_offset = first_red_payload_offset;
+ gsize payload_len = gst_rtp_buffer_get_payload_len (red_rtp);
+ GstFlowReturn ret = GST_FLOW_OK;
+
+ do {
+ GstBuffer *buf =
+ gst_rtp_red_create_from_block (self, red_rtp, &red_hdr_offset,
+ &red_payload_offset);
+ if (buf)
+ ret = gst_pad_push (self->srcpad, buf);
+ } while (GST_FLOW_OK == ret && red_payload_offset < payload_len);
+
+ return ret;
+}
+
+static GstFlowReturn
+gst_rtp_red_dec_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
+{
+ GstRtpRedDec *self = GST_RTP_RED_DEC (parent);
+ GstRTPBuffer irtp = GST_RTP_BUFFER_INIT;
+ GstFlowReturn ret = GST_FLOW_OK;
+ gsize first_red_payload_offset = 0;
+
+ if (self->pt == UNDEF_PT)
+ return gst_pad_push (self->srcpad, buffer);
+
+ if (!gst_rtp_buffer_map (buffer, GST_MAP_READ, &irtp))
+ return gst_pad_push (self->srcpad, buffer);
+
+ gst_rtp_red_history_update (self, &irtp);
+
+ if (self->pt != gst_rtp_buffer_get_payload_type (&irtp)) {
+ GST_LOG_RTP_PACKET (self, "rtp header (incoming)", &irtp);
+
+ gst_rtp_buffer_unmap (&irtp);
+ return gst_pad_push (self->srcpad, buffer);
+ }
+
+ self->num_received++;
+
+ if (rtp_red_buffer_is_valid (self, &irtp, &first_red_payload_offset)) {
+ GST_DEBUG_RTP_PACKET (self, "rtp header (red)", &irtp);
+ ret = gst_rtp_red_process (self, &irtp, first_red_payload_offset);
+ }
+
+ gst_rtp_buffer_unmap (&irtp);
+ gst_buffer_unref (buffer);
+ return ret;
+}
+
+static void
+gst_rtp_red_dec_dispose (GObject * obj)
+{
+ GstRtpRedDec *self = GST_RTP_RED_DEC (obj);
+
+ g_queue_free_full (self->rtp_history, rtp_hist_item_free);
+
+ G_OBJECT_CLASS (gst_rtp_red_dec_parent_class)->dispose (obj);
+}
+
+static void
+gst_rtp_red_dec_init (GstRtpRedDec * self)
+{
+ GstPadTemplate *pad_template;
+
+ pad_template =
+ gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (self), "src");
+ self->srcpad = gst_pad_new_from_template (pad_template, "src");
+ gst_element_add_pad (GST_ELEMENT_CAST (self), self->srcpad);
+
+ pad_template =
+ gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (self), "sink");
+ self->sinkpad = gst_pad_new_from_template (pad_template, "sink");
+ gst_pad_set_chain_function (self->sinkpad,
+ GST_DEBUG_FUNCPTR (gst_rtp_red_dec_chain));
+ GST_PAD_SET_PROXY_CAPS (self->sinkpad);
+ GST_PAD_SET_PROXY_ALLOCATION (self->sinkpad);
+ gst_element_add_pad (GST_ELEMENT (self), self->sinkpad);
+
+ self->pt = DEFAULT_PT;
+ self->num_received = 0;
+ self->rtp_history = g_queue_new ();
+}
+
+
+static void
+gst_rtp_red_dec_set_property (GObject * object, guint prop_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ GstRtpRedDec *self = GST_RTP_RED_DEC (object);
+
+ if (GST_LEVEL_LOG <= gst_debug_category_get_threshold (GST_CAT_DEFAULT)) {
+ gchar *val_str = gst_value_serialize (value);
+ GST_LOG_OBJECT (object, "Setting property \"%s\" to %s", pspec->name,
+ val_str);
+ g_free (val_str);
+ }
+
+ switch (prop_id) {
+ case PROP_PT:
+ self->pt = g_value_get_int (value);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+}
+
+static void
+gst_rtp_red_dec_get_property (GObject * object, guint prop_id,
+ GValue * value, GParamSpec * pspec)
+{
+ GstRtpRedDec *self = GST_RTP_RED_DEC (object);
+ switch (prop_id) {
+ case PROP_PT:
+ g_value_set_int (value, self->pt);
+ break;
+ case PROP_RECEIVED:
+ g_value_set_uint (value, self->num_received);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+
+ if (GST_LEVEL_LOG <= gst_debug_category_get_threshold (GST_CAT_DEFAULT)) {
+ gchar *val_str = gst_value_serialize (value);
+ GST_LOG_OBJECT (object, "Returning property \"%s\" %s", pspec->name,
+ val_str);
+ g_free (val_str);
+ }
+}
+
+static void
+gst_rtp_red_dec_class_init (GstRtpRedDecClass * klass)
+{
+ GObjectClass *gobject_class;
+ GstElementClass *element_class;
+
+ gobject_class = G_OBJECT_CLASS (klass);
+ element_class = GST_ELEMENT_CLASS (klass);
+
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&src_template));
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&sink_template));
+
+ gst_element_class_set_metadata (element_class,
+ "Redundant Audio Data (RED) Decoder",
+ "Codec/Depayloader/Network/RTP",
+ "Decode Redundant Audio Data (RED)",
+ "Hani Mustafa <hani@pexip.com>, Mikhail Fludkov <misha@pexip.com>");
+
+ gobject_class->set_property =
+ GST_DEBUG_FUNCPTR (gst_rtp_red_dec_set_property);
+ gobject_class->get_property =
+ GST_DEBUG_FUNCPTR (gst_rtp_red_dec_get_property);
+ gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_rtp_red_dec_dispose);
+
+ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PT,
+ g_param_spec_int ("pt", "payload type",
+ "Payload type FEC packets",
+ MIN_PT, MAX_PT, DEFAULT_PT,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_RECEIVED,
+ g_param_spec_uint ("received", "Received",
+ "Count of received packets",
+ 0, G_MAXUINT32, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
+ GST_DEBUG_CATEGORY_INIT (gst_rtp_red_dec_debug, "rtpreddec", 0,
+ "RTP RED Decoder");
+}
diff --git a/gst/rtp/gstrtpreddec.h b/gst/rtp/gstrtpreddec.h
new file mode 100644
index 000000000..1ab864e2c
--- /dev/null
+++ b/gst/rtp/gstrtpreddec.h
@@ -0,0 +1,61 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifndef __GST_RTP_RED_DEC_H__
+#define __GST_RTP_RED_DEC_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_RTP_RED_DEC \
+ (gst_rtp_red_dec_get_type())
+#define GST_RTP_RED_DEC(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_RED_DEC,GstRtpRedDec))
+#define GST_RTP_RED_DEC_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_RED_DEC,GstRtpRedDecClass))
+#define GST_IS_RTP_RED_DEC(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_RED_DEC))
+#define GST_IS_RTP_RED_DEC_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_RED_DEC))
+
+typedef struct _GstRtpRedDec GstRtpRedDec;
+typedef struct _GstRtpRedDecClass GstRtpRedDecClass;
+
+struct _GstRtpRedDecClass {
+ GstElementClass parent_class;
+};
+
+struct _GstRtpRedDec {
+ GstElement parent;
+
+ GstPad *srcpad;
+ GstPad *sinkpad;
+ gint pt;
+ guint num_received;
+
+ GQueue *rtp_history;
+};
+
+GType gst_rtp_red_dec_get_type (void);
+
+G_END_DECLS
+
+#endif /* __GST_RTP_RED_DEC_H__ */
diff --git a/gst/rtp/gstrtpredenc.c b/gst/rtp/gstrtpredenc.c
new file mode 100644
index 000000000..59b9bc243
--- /dev/null
+++ b/gst/rtp/gstrtpredenc.c
@@ -0,0 +1,499 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include <gst/rtp/gstrtpbuffer.h>
+#include <string.h>
+#include <stdio.h>
+
+#include "rtpredcommon.h"
+#include "gstrtpredenc.h"
+
+typedef struct
+{
+ guint8 pt;
+ guint32 timestamp;
+ GstBuffer *payload;
+} RTPHistItem;
+
+static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
+ GST_PAD_SINK,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/x-rtp"));
+
+static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
+ GST_PAD_SRC,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/x-rtp"));
+
+#define DEFAULT_PT (0)
+#define DEFAULT_DISTANCE (0)
+#define DEFAULT_ALLOW_NO_RED_BLOCKS (FALSE)
+
+GST_DEBUG_CATEGORY_STATIC (gst_rtp_red_enc_debug);
+#define GST_CAT_DEFAULT (gst_rtp_red_enc_debug)
+
+G_DEFINE_TYPE (GstRtpRedEnc, gst_rtp_red_enc, GST_TYPE_ELEMENT);
+
+enum
+{
+ PROP_0,
+ PROP_PT,
+ PROP_SENT,
+ PROP_DISTANCE,
+ PROP_ALLOW_NO_RED_BLOCKS
+};
+
+static void
+rtp_hist_item_init (RTPHistItem * item, GstRTPBuffer * rtp,
+ GstBuffer * rtp_payload)
+{
+ item->pt = gst_rtp_buffer_get_payload_type (rtp);
+ item->timestamp = gst_rtp_buffer_get_timestamp (rtp);
+ item->payload = rtp_payload;
+}
+
+static RTPHistItem *
+rtp_hist_item_new (GstRTPBuffer * rtp, GstBuffer * rtp_payload)
+{
+ RTPHistItem *item = g_slice_new0 (RTPHistItem);
+ rtp_hist_item_init (item, rtp, rtp_payload);
+ return item;
+}
+
+static void
+rtp_hist_item_replace (RTPHistItem * item, GstRTPBuffer * rtp,
+ GstBuffer * rtp_payload)
+{
+ gst_buffer_unref (item->payload);
+ rtp_hist_item_init (item, rtp, rtp_payload);
+}
+
+static void
+rtp_hist_item_free (gpointer _item)
+{
+ RTPHistItem *item = _item;
+ gst_buffer_unref (item->payload);
+ g_slice_free (RTPHistItem, item);
+}
+
+static GstEvent *
+_create_caps_event (const GstCaps * caps, guint8 pt)
+{
+ GstEvent *ret;
+ GstCaps *new = gst_caps_copy (caps);
+ GstStructure *s = gst_caps_get_structure (new, 0);
+ gst_structure_set (s, "payload", G_TYPE_INT, pt, NULL);
+ GST_INFO ("sinkcaps %" GST_PTR_FORMAT ", srccaps %" GST_PTR_FORMAT,
+ caps, new);
+ ret = gst_event_new_caps (new);
+ gst_caps_unref (new);
+ return ret;
+}
+
+static GstBuffer *
+_alloc_red_packet_and_fill_headers (GstRtpRedEnc * self,
+ RTPHistItem * redundant_block, GstRTPBuffer * inp_rtp)
+{
+ guint red_header_size = rtp_red_block_header_get_length (FALSE) +
+ (redundant_block ? rtp_red_block_header_get_length (TRUE) : 0);
+
+ guint32 timestmap = gst_rtp_buffer_get_timestamp (inp_rtp);
+ guint csrc_count = gst_rtp_buffer_get_csrc_count (inp_rtp);
+ GstBuffer *red = gst_rtp_buffer_new_allocate (red_header_size, 0, csrc_count);
+ guint8 *red_block_header;
+ GstRTPBuffer red_rtp = GST_RTP_BUFFER_INIT;
+
+ if (!gst_rtp_buffer_map (red, GST_MAP_WRITE, &red_rtp))
+ g_assert_not_reached ();
+
+ /* Copying RTP header of incoming packet */
+ if (gst_rtp_buffer_get_extension (inp_rtp))
+ GST_WARNING_OBJECT (self, "FIXME: Ignoring RTP extension");
+
+ gst_rtp_buffer_set_marker (&red_rtp, gst_rtp_buffer_get_marker (inp_rtp));
+ gst_rtp_buffer_set_payload_type (&red_rtp, self->pt);
+ gst_rtp_buffer_set_seq (&red_rtp, gst_rtp_buffer_get_seq (inp_rtp));
+ gst_rtp_buffer_set_timestamp (&red_rtp, timestmap);
+ gst_rtp_buffer_set_ssrc (&red_rtp, gst_rtp_buffer_get_ssrc (inp_rtp));
+ for (guint i = 0; i != csrc_count; ++i)
+ gst_rtp_buffer_set_csrc (&red_rtp, i,
+ gst_rtp_buffer_get_csrc ((inp_rtp), i));
+
+ /* Filling RED block headers */
+ red_block_header = gst_rtp_buffer_get_payload (&red_rtp);
+ if (redundant_block) {
+ rtp_red_block_set_is_redundant (red_block_header, TRUE);
+ rtp_red_block_set_payload_type (red_block_header, redundant_block->pt);
+ rtp_red_block_set_timestamp_offset (red_block_header,
+ timestmap - redundant_block->timestamp);
+ rtp_red_block_set_payload_length (red_block_header,
+ gst_buffer_get_size (redundant_block->payload));
+
+ red_block_header += rtp_red_block_header_get_length (TRUE);
+ }
+ rtp_red_block_set_is_redundant (red_block_header, FALSE);
+ rtp_red_block_set_payload_type (red_block_header,
+ gst_rtp_buffer_get_payload_type (inp_rtp));
+
+ gst_rtp_buffer_unmap (&red_rtp);
+
+ gst_buffer_copy_into (red, inp_rtp->buffer, GST_BUFFER_COPY_METADATA, 0, -1);
+ return red;
+}
+
+static GstBuffer *
+_create_red_packet (GstRtpRedEnc * self,
+ GstRTPBuffer * rtp, RTPHistItem * redundant_block, GstBuffer * main_block)
+{
+ GstBuffer *red =
+ _alloc_red_packet_and_fill_headers (self, redundant_block, rtp);
+ if (redundant_block)
+ red = gst_buffer_append (red, gst_buffer_ref (redundant_block->payload));
+ red = gst_buffer_append (red, gst_buffer_ref (main_block));
+ return red;
+}
+
+static RTPHistItem *
+_red_history_get_redundant_block (GstRtpRedEnc * self,
+ guint32 current_timestamp, guint distance)
+{
+ RTPHistItem *item;
+ gint32 timestamp_offset;
+
+ if (0 == distance || 0 == self->rtp_history->length)
+ return NULL;
+
+ item = self->rtp_history->tail->data;
+ timestamp_offset = current_timestamp - item->timestamp;
+ if (G_UNLIKELY (timestamp_offset > RED_BLOCK_TIMESTAMP_OFFSET_MAX)) {
+ GST_WARNING_OBJECT (self,
+ "Can't create redundant block with distance %u, "
+ "timestamp offset is too large %d (%u - %u) > %u",
+ distance, timestamp_offset, current_timestamp, item->timestamp,
+ RED_BLOCK_TIMESTAMP_OFFSET_MAX);
+ return NULL;
+ }
+
+ if (G_UNLIKELY (timestamp_offset < 0)) {
+ GST_WARNING_OBJECT (self,
+ "Can't create redundant block with distance %u, "
+ "timestamp offset is negative %d (%u - %u)",
+ distance, timestamp_offset, current_timestamp, item->timestamp);
+ return NULL;
+ }
+
+ if (G_UNLIKELY (gst_buffer_get_size (item->payload) > RED_BLOCK_LENGTH_MAX)) {
+ GST_WARNING_OBJECT (self,
+ "Can't create redundant block with distance %u, "
+ "red block is too large %u > %u",
+ distance, (guint) gst_buffer_get_size (item->payload),
+ RED_BLOCK_LENGTH_MAX);
+ return NULL;
+ }
+
+ /* _red_history_trim should take care it never happens */
+ g_assert_cmpint (self->rtp_history->length, <=, distance);
+
+ if (G_UNLIKELY (self->rtp_history->length < distance))
+ GST_DEBUG_OBJECT (self,
+ "Don't have enough buffers yet, "
+ "adding redundant block with distance %u and timestamp %u",
+ self->rtp_history->length, item->timestamp);
+ return item;
+}
+
+static void
+_red_history_prepend (GstRtpRedEnc * self,
+ GstRTPBuffer * rtp, GstBuffer * rtp_payload, guint max_history_length)
+{
+ GList *link;
+
+ if (0 == max_history_length) {
+ if (rtp_payload)
+ gst_buffer_unref (rtp_payload);
+ return;
+ }
+
+ g_assert (NULL != rtp_payload);
+
+ if (self->rtp_history->length >= max_history_length) {
+ link = g_queue_pop_tail_link (self->rtp_history);
+ rtp_hist_item_replace (link->data, rtp, rtp_payload);
+ } else {
+ link = g_list_alloc ();
+ link->data = rtp_hist_item_new (rtp, rtp_payload);
+ }
+ g_queue_push_head_link (self->rtp_history, link);
+}
+
+static void
+_red_history_trim (GstRtpRedEnc * self, guint max_history_length)
+{
+ while (max_history_length < self->rtp_history->length)
+ rtp_hist_item_free (g_queue_pop_tail (self->rtp_history));
+}
+
+static GstFlowReturn
+_pad_push (GstRtpRedEnc * self, GstBuffer * buffer, gboolean is_red)
+{
+ if (self->send_caps || is_red != self->is_current_caps_red) {
+ GstEvent *event;
+ GstCaps *caps = gst_pad_get_current_caps (self->sinkpad);
+ if (is_red)
+ event = _create_caps_event (caps, self->pt);
+ else
+ event = gst_event_new_caps (caps);
+ gst_caps_unref (caps);
+
+ gst_pad_push_event (self->srcpad, event);
+ self->send_caps = FALSE;
+ self->is_current_caps_red = is_red;
+ }
+ return gst_pad_push (self->srcpad, buffer);
+}
+
+static GstFlowReturn
+_push_nonred_packet (GstRtpRedEnc * self,
+ GstRTPBuffer * rtp, GstBuffer * buffer, guint distance)
+{
+ GstBuffer *main_block = distance > 0 ?
+ gst_rtp_buffer_get_payload_buffer (rtp) : NULL;
+ _red_history_prepend (self, rtp, main_block, distance);
+
+ gst_rtp_buffer_unmap (rtp);
+ return _pad_push (self, buffer, FALSE);
+}
+
+static GstFlowReturn
+_push_red_packet (GstRtpRedEnc * self,
+ GstRTPBuffer * rtp, GstBuffer * buffer, RTPHistItem * redundant_block,
+ guint distance)
+{
+ GstBuffer *main_block = gst_rtp_buffer_get_payload_buffer (rtp);
+ GstBuffer *red_buffer =
+ _create_red_packet (self, rtp, redundant_block, main_block);
+
+ _red_history_prepend (self, rtp, main_block, distance);
+ gst_rtp_buffer_unmap (rtp);
+ gst_buffer_unref (buffer);
+
+ self->num_sent++;
+ return _pad_push (self, red_buffer, TRUE);
+}
+
+static GstFlowReturn
+gst_rtp_red_enc_chain (GstPad G_GNUC_UNUSED * pad, GstObject * parent,
+ GstBuffer * buffer)
+{
+ GstRtpRedEnc *self = GST_RTP_RED_ENC (parent);
+ guint distance = self->distance;
+ guint only_with_redundant_data = !self->allow_no_red_blocks;
+ RTPHistItem *redundant_block;
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+
+ /* We need to "trim" the history if 'distance' property has changed */
+ _red_history_trim (self, distance);
+
+ if (0 == distance && only_with_redundant_data)
+ return _pad_push (self, buffer, FALSE);
+
+ if (!gst_rtp_buffer_map (buffer, GST_MAP_READ, &rtp))
+ return _pad_push (self, buffer, self->is_current_caps_red);
+
+ /* If can't get data for redundant block push the packet as is */
+ redundant_block = _red_history_get_redundant_block (self,
+ gst_rtp_buffer_get_timestamp (&rtp), distance);
+ if (NULL == redundant_block && only_with_redundant_data)
+ return _push_nonred_packet (self, &rtp, buffer, distance);
+
+ /* About to create RED packet with or without redundant data */
+ return _push_red_packet (self, &rtp, buffer, redundant_block, distance);
+}
+
+static gboolean
+gst_rtp_red_enc_event_sink (GstPad * pad, GstObject * parent, GstEvent * event)
+{
+ GstRtpRedEnc *self = GST_RTP_RED_ENC (parent);
+
+ switch (GST_EVENT_TYPE (event)) {
+ case GST_EVENT_CAPS:
+ {
+ gboolean replace_with_red_caps =
+ self->is_current_caps_red || self->allow_no_red_blocks;
+
+ if (replace_with_red_caps) {
+ GstCaps *caps;
+ gst_event_parse_caps (event, &caps);
+ gst_event_take (&event, _create_caps_event (caps, self->pt));
+
+ self->is_current_caps_red = TRUE;
+ }
+ break;
+ }
+ default:
+ break;
+ }
+
+ return gst_pad_event_default (pad, parent, event);
+}
+
+static void
+gst_rtp_red_enc_dispose (GObject * obj)
+{
+ GstRtpRedEnc *self = GST_RTP_RED_ENC (obj);
+
+ g_queue_free_full (self->rtp_history, rtp_hist_item_free);
+
+ G_OBJECT_CLASS (gst_rtp_red_enc_parent_class)->dispose (obj);
+}
+
+static void
+gst_rtp_red_enc_init (GstRtpRedEnc * self)
+{
+ GstPadTemplate *pad_template;
+
+ pad_template =
+ gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (self), "src");
+ self->srcpad = gst_pad_new_from_template (pad_template, "src");
+ gst_element_add_pad (GST_ELEMENT_CAST (self), self->srcpad);
+
+ pad_template =
+ gst_element_class_get_pad_template (GST_ELEMENT_GET_CLASS (self), "sink");
+ self->sinkpad = gst_pad_new_from_template (pad_template, "sink");
+ gst_pad_set_chain_function (self->sinkpad,
+ GST_DEBUG_FUNCPTR (gst_rtp_red_enc_chain));
+ gst_pad_set_event_function (self->sinkpad,
+ GST_DEBUG_FUNCPTR (gst_rtp_red_enc_event_sink));
+ GST_PAD_SET_PROXY_CAPS (self->sinkpad);
+ GST_PAD_SET_PROXY_ALLOCATION (self->sinkpad);
+ gst_element_add_pad (GST_ELEMENT (self), self->sinkpad);
+
+ self->pt = DEFAULT_PT;
+ self->distance = DEFAULT_DISTANCE;
+ self->allow_no_red_blocks = DEFAULT_ALLOW_NO_RED_BLOCKS;
+ self->num_sent = 0;
+ self->rtp_history = g_queue_new ();
+}
+
+
+static void
+gst_rtp_red_enc_set_property (GObject * object, guint prop_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ GstRtpRedEnc *self = GST_RTP_RED_ENC (object);
+ switch (prop_id) {
+ case PROP_PT:
+ {
+ gint prev_pt = self->pt;
+ self->pt = g_value_get_int (value);
+ self->send_caps = self->pt != prev_pt && self->is_current_caps_red;
+ }
+ break;
+ case PROP_DISTANCE:
+ self->distance = g_value_get_uint (value);
+ break;
+ case PROP_ALLOW_NO_RED_BLOCKS:
+ self->allow_no_red_blocks = g_value_get_boolean (value);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+}
+
+static void
+gst_rtp_red_enc_get_property (GObject * object, guint prop_id,
+ GValue * value, GParamSpec * pspec)
+{
+ GstRtpRedEnc *self = GST_RTP_RED_ENC (object);
+ switch (prop_id) {
+ case PROP_PT:
+ g_value_set_int (value, self->pt);
+ break;
+ case PROP_SENT:
+ g_value_set_uint (value, self->num_sent);
+ break;
+ case PROP_DISTANCE:
+ g_value_set_uint (value, self->distance);
+ break;
+ case PROP_ALLOW_NO_RED_BLOCKS:
+ g_value_set_boolean (value, self->allow_no_red_blocks);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+}
+
+static void
+gst_rtp_red_enc_class_init (GstRtpRedEncClass * klass)
+{
+ GObjectClass *gobject_class;
+ GstElementClass *element_class;
+
+ gobject_class = G_OBJECT_CLASS (klass);
+ element_class = GST_ELEMENT_CLASS (klass);
+
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&src_template));
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&sink_template));
+
+ gst_element_class_set_metadata (element_class,
+ "Redundant Audio Data (RED) Encoder",
+ "Codec/Payloader/Network/RTP",
+ "Encode Redundant Audio Data (RED)",
+ "Hani Mustafa <hani@pexip.com>, Mikhail Fludkov <misha@pexip.com>");
+
+ gobject_class->set_property =
+ GST_DEBUG_FUNCPTR (gst_rtp_red_enc_set_property);
+ gobject_class->get_property =
+ GST_DEBUG_FUNCPTR (gst_rtp_red_enc_get_property);
+ gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_rtp_red_enc_dispose);
+
+ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PT,
+ g_param_spec_int ("pt", "payload type",
+ "Payload type FEC packets (-1 disable)",
+ 0, 127, DEFAULT_PT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SENT,
+ g_param_spec_uint ("sent", "Sent",
+ "Count of sent packets",
+ 0, G_MAXUINT32, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_DISTANCE,
+ g_param_spec_uint ("distance", "RED distance",
+ "Tells which media packet to use as a redundant block "
+ "(0 - no redundant blocks, 1 to use previous packet, "
+ "2 to use the packet before previous, etc.)",
+ 0, G_MAXUINT32, DEFAULT_DISTANCE,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (G_OBJECT_CLASS (klass),
+ PROP_ALLOW_NO_RED_BLOCKS, g_param_spec_boolean ("allow-no-red-blocks",
+ "Allow no redundant blocks",
+ "true - can produce RED packets even without redundant blocks (distance==0) "
+ "false - RED packets will be produced only if distance>0",
+ DEFAULT_ALLOW_NO_RED_BLOCKS,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ GST_DEBUG_CATEGORY_INIT (gst_rtp_red_enc_debug, "rtpredenc", 0,
+ "RTP RED Encoder");
+}
diff --git a/gst/rtp/gstrtpredenc.h b/gst/rtp/gstrtpredenc.h
new file mode 100644
index 000000000..dc2b1ebbc
--- /dev/null
+++ b/gst/rtp/gstrtpredenc.h
@@ -0,0 +1,65 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifndef __GST_RTP_RED_ENC_H__
+#define __GST_RTP_RED_ENC_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_RTP_RED_ENC \
+ (gst_rtp_red_enc_get_type())
+#define GST_RTP_RED_ENC(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_RED_ENC,GstRtpRedEnc))
+#define GST_RTP_RED_ENC_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_RED_ENC,GstRtpRedEncClass))
+#define GST_IS_RTP_RED_ENC(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_RED_ENC))
+#define GST_IS_RTP_RED_ENC_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_RED_ENC))
+
+typedef struct _GstRtpRedEnc GstRtpRedEnc;
+typedef struct _GstRtpRedEncClass GstRtpRedEncClass;
+
+struct _GstRtpRedEncClass {
+ GstElementClass parent_class;
+};
+
+struct _GstRtpRedEnc {
+ GstElement parent;
+ GstPad *srcpad;
+ GstPad *sinkpad;
+
+ gint pt;
+ guint num_sent;
+ guint distance;
+ gboolean allow_no_red_blocks;
+
+ GQueue *rtp_history;
+ gboolean send_caps;
+ gboolean is_current_caps_red;
+};
+
+GType gst_rtp_red_enc_get_type (void);
+
+G_END_DECLS
+
+#endif /* __GST_RTP_RED_ENC_H__ */
diff --git a/gst/rtp/gstrtpstorage.c b/gst/rtp/gstrtpstorage.c
new file mode 100644
index 000000000..9c0db93af
--- /dev/null
+++ b/gst/rtp/gstrtpstorage.c
@@ -0,0 +1,175 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include "gstrtpstorage.h"
+
+static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
+ GST_PAD_SINK,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/x-rtp")
+ );
+
+static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
+ GST_PAD_SRC,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/x-rtp")
+ );
+
+enum
+{
+ PROP_0,
+ PROP_SIZE_TIME,
+ PROP_INTERNAL_STORAGE,
+ N_PROPERTIES
+};
+
+static GParamSpec *klass_properties[N_PROPERTIES] = { NULL, };
+
+#define DEFAULT_SIZE_TIME (0)
+
+GST_DEBUG_CATEGORY_STATIC (gst_rtp_storage_debug);
+#define GST_CAT_DEFAULT (gst_rtp_storage_debug)
+
+G_DEFINE_TYPE (GstRtpStorage, gst_rtp_storage, GST_TYPE_ELEMENT);
+
+static GstFlowReturn
+gst_rtp_storage_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
+{
+ GstRtpStorage *self = GST_RTP_STORAGE (parent);;
+
+ if (rtp_storage_append_buffer (self->storage, buf))
+ return gst_pad_push (self->srcpad, buf);
+ return GST_FLOW_OK;
+}
+
+static void
+gst_rtp_storage_set_property (GObject * object, guint prop_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ GstRtpStorage *self = GST_RTP_STORAGE (object);
+
+ if (GST_LEVEL_DEBUG <= gst_debug_category_get_threshold (GST_CAT_DEFAULT)) {
+ gchar *val_str = gst_value_serialize (value);
+ GST_DEBUG_OBJECT (object, "Setting property \"%s\" to %s", pspec->name,
+ val_str);
+ g_free (val_str);
+ }
+
+ switch (prop_id) {
+ case PROP_SIZE_TIME:
+ rtp_storage_set_size (self->storage, g_value_get_uint64 (value));
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+}
+
+static void
+gst_rtp_storage_get_property (GObject * object, guint prop_id,
+ GValue * value, GParamSpec * pspec)
+{
+ GstRtpStorage *self = GST_RTP_STORAGE (object);
+ switch (prop_id) {
+ case PROP_SIZE_TIME:
+ g_value_set_uint64 (value, rtp_storage_get_size (self->storage));
+ break;
+ case PROP_INTERNAL_STORAGE:
+ {
+ g_value_set_object (value, self->storage);
+ break;
+ }
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+
+ if (GST_LEVEL_LOG <= gst_debug_category_get_threshold (GST_CAT_DEFAULT)) {
+ gchar *val_str = gst_value_serialize (value);
+ GST_LOG_OBJECT (object, "Returning property \"%s\" %s", pspec->name,
+ val_str);
+ g_free (val_str);
+ }
+}
+
+static void
+gst_rtp_storage_init (GstRtpStorage * self)
+{
+ self->srcpad = gst_pad_new_from_static_template (&srctemplate, "src");
+ self->sinkpad = gst_pad_new_from_static_template (&sinktemplate, "sink");
+ GST_PAD_SET_PROXY_CAPS (self->sinkpad);
+ GST_PAD_SET_PROXY_ALLOCATION (self->sinkpad);
+ gst_pad_set_chain_function (self->sinkpad, gst_rtp_storage_chain);
+
+ gst_element_add_pad (GST_ELEMENT (self), self->srcpad);
+ gst_element_add_pad (GST_ELEMENT (self), self->sinkpad);
+
+ self->storage = rtp_storage_new ();
+}
+
+static void
+gst_rtp_storage_dispose (GObject * obj)
+{
+ GstRtpStorage *self = GST_RTP_STORAGE (obj);
+ g_object_unref (self->storage);
+ G_OBJECT_CLASS (gst_rtp_storage_parent_class)->dispose (obj);
+}
+
+static void
+gst_rtp_storage_class_init (GstRtpStorageClass * klass)
+{
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+ GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
+
+ GST_DEBUG_CATEGORY_INIT (gst_rtp_storage_debug,
+ "rtpstorage", 0, "RTP Storage");
+
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&srctemplate));
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&sinktemplate));
+
+ gst_element_class_set_static_metadata (element_class,
+ "RTP storage",
+ "Analyzer/RTP",
+ "Helper element for various purposes "
+ "(ex. recovering from packet loss using RED/FEC). "
+ "Saves given number of RTP packets. "
+ "Should be instantiated before jitterbuffer",
+ "Mikhail Fludkov <misha@pexip.com>");
+
+ gobject_class->set_property = gst_rtp_storage_set_property;
+ gobject_class->get_property = gst_rtp_storage_get_property;
+ gobject_class->dispose = gst_rtp_storage_dispose;
+
+ klass_properties[PROP_SIZE_TIME] =
+ g_param_spec_uint64 ("size-time", "Storage size (in ns)",
+ "The amount of data to keep in the storage (in ns, 0-disable)", 0,
+ G_MAXUINT64, DEFAULT_SIZE_TIME,
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
+
+ klass_properties[PROP_INTERNAL_STORAGE] =
+ g_param_spec_object ("internal-storage", "Internal storage",
+ "Internal RtpStorage object", G_TYPE_OBJECT,
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+
+ g_object_class_install_properties (gobject_class, N_PROPERTIES,
+ klass_properties);
+}
diff --git a/gst/rtp/gstrtpstorage.h b/gst/rtp/gstrtpstorage.h
new file mode 100644
index 000000000..3d5c166d6
--- /dev/null
+++ b/gst/rtp/gstrtpstorage.h
@@ -0,0 +1,59 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifndef __GST_RTP_STORAGE_H__
+#define __GST_RTP_STORAGE_H__
+
+#include <gst/gst.h>
+#include "rtpstorage.h"
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_RTP_STORAGE \
+ (gst_rtp_storage_get_type())
+#define GST_RTP_STORAGE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_STORAGE,GstRtpStorage))
+#define GST_RTP_STORAGE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_STORAGE,GstRtpStorageClass))
+#define RTP_IS_STORAGE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_STORAGE))
+#define RTP_IS_STORAGE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_STORAGE))
+
+typedef struct _GstRtpStorage GstRtpStorage;
+typedef struct _GstRtpStorageClass GstRtpStorageClass;
+
+struct _GstRtpStorageClass {
+ GstElementClass parent_class;
+};
+
+struct _GstRtpStorage {
+ GstElement parent;
+ GstPad *srcpad;
+ GstPad *sinkpad;
+
+ RtpStorage *storage;
+};
+
+GType gst_rtp_storage_get_type (void);
+
+G_END_DECLS
+
+#endif /* __GST_RTP_STORAGE_H__ */
diff --git a/gst/rtp/gstrtpulpfecdec.c b/gst/rtp/gstrtpulpfecdec.c
new file mode 100644
index 000000000..7f0f910c2
--- /dev/null
+++ b/gst/rtp/gstrtpulpfecdec.c
@@ -0,0 +1,607 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include <gst/rtp/gstrtpbuffer.h>
+#include <gst/rtp/gstrtp-enumtypes.h>
+
+#include "rtpulpfeccommon.h"
+#include "gstrtpulpfecdec.h"
+
+static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
+ GST_PAD_SINK,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/x-rtp")
+ );
+
+static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
+ GST_PAD_SRC,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/x-rtp")
+ );
+
+enum
+{
+ PROP_0,
+ PROP_PT,
+ PROP_STORAGE,
+ PROP_RECOVERED,
+ PROP_UNRECOVERED,
+ N_PROPERTIES
+};
+
+#define DEFAULT_FEC_PT 0
+
+static GParamSpec *klass_properties[N_PROPERTIES] = { NULL, };
+
+GST_DEBUG_CATEGORY (gst_rtp_ulpfec_dec_debug);
+#define GST_CAT_DEFAULT (gst_rtp_ulpfec_dec_debug)
+
+G_DEFINE_TYPE (GstRtpUlpFecDec, gst_rtp_ulpfec_dec, GST_TYPE_ELEMENT);
+
+#define RTP_FEC_MAP_INFO_NTH(dec, data) (&g_array_index (\
+ ((GstRtpUlpFecDec *)dec)->info_arr, \
+ RtpUlpFecMapInfo, \
+ GPOINTER_TO_UINT(data)))
+
+static gint
+_compare_fec_map_info (gconstpointer a, gconstpointer b, gpointer userdata)
+{
+ guint16 aseq =
+ gst_rtp_buffer_get_seq (&RTP_FEC_MAP_INFO_NTH (userdata, a)->rtp);
+ guint16 bseq =
+ gst_rtp_buffer_get_seq (&RTP_FEC_MAP_INFO_NTH (userdata, b)->rtp);
+ return gst_rtp_buffer_compare_seqnum (bseq, aseq);
+}
+
+static void
+gst_rtp_ulpfec_dec_start (GstRtpUlpFecDec * self, GstBufferList * buflist,
+ guint8 fec_pt, guint16 lost_seq)
+{
+ guint fec_packets = 0;
+
+ g_assert (NULL == self->info_media);
+ g_assert (0 == self->info_fec->len);
+ g_assert (0 == self->info_arr->len);
+
+ g_array_set_size (self->info_arr, gst_buffer_list_length (buflist));
+
+ for (gsize i = 0;
+ i < gst_buffer_list_length (buflist) && !self->lost_packet_from_storage;
+ ++i) {
+ GstBuffer *buffer = gst_buffer_list_get (buflist, i);
+ RtpUlpFecMapInfo *info = RTP_FEC_MAP_INFO_NTH (self, i);
+
+ if (!rtp_ulpfec_map_info_map (gst_buffer_ref (buffer), info))
+ g_assert_not_reached ();
+
+ if (fec_pt == gst_rtp_buffer_get_payload_type (&info->rtp)) {
+ GST_DEBUG_RTP_PACKET (self, "rtp header (fec)", &info->rtp);
+
+ ++fec_packets;
+ if (rtp_ulpfec_buffer_is_valid (&info->rtp)) {
+ GST_DEBUG_FEC_PACKET (self, &info->rtp);
+ g_ptr_array_add (self->info_fec, GUINT_TO_POINTER (i));
+ }
+ } else {
+ GST_LOG_RTP_PACKET (self, "rtp header (incoming)", &info->rtp);
+
+ if (lost_seq == gst_rtp_buffer_get_seq (&info->rtp)) {
+ GST_DEBUG_OBJECT (self, "Received lost packet from from the storage");
+ g_list_free (self->info_media);
+ self->info_media = NULL;
+ self->lost_packet_from_storage = TRUE;
+ }
+ self->info_media =
+ g_list_insert_sorted_with_data (self->info_media,
+ GUINT_TO_POINTER (i), _compare_fec_map_info, self);
+ }
+ }
+ if (!self->lost_packet_from_storage) {
+ self->fec_packets_received += fec_packets;
+ self->fec_packets_rejected += fec_packets - self->info_fec->len;
+ }
+}
+
+static void
+gst_rtp_ulpfec_dec_stop (GstRtpUlpFecDec * self)
+{
+ g_array_set_size (self->info_arr, 0);
+ g_ptr_array_set_size (self->info_fec, 0);
+ g_list_free (self->info_media);
+ self->info_media = NULL;
+ self->lost_packet_from_storage = FALSE;
+ self->lost_packet_returned = FALSE;
+}
+
+static guint64
+gst_rtp_ulpfec_dec_get_media_buffers_mask (GstRtpUlpFecDec * self,
+ guint16 fec_seq_base)
+{
+ guint64 mask = 0;
+ for (GList * it = self->info_media; it; it = it->next) {
+ RtpUlpFecMapInfo *info = RTP_FEC_MAP_INFO_NTH (self, it->data);
+ mask |=
+ rtp_ulpfec_packet_mask_from_seqnum (gst_rtp_buffer_get_seq (&info->rtp),
+ fec_seq_base, TRUE);
+ }
+ return mask;
+}
+
+static gboolean
+gst_rtp_ulpfec_dec_is_recovered_pt_valid (GstRtpUlpFecDec * self, gint media_pt,
+ guint8 recovered_pt)
+{
+ if (media_pt == recovered_pt)
+ return TRUE;
+
+ for (GList * it = self->info_media; it; it = it->next) {
+ RtpUlpFecMapInfo *info = RTP_FEC_MAP_INFO_NTH (self, it->data);
+ if (gst_rtp_buffer_get_payload_type (&info->rtp) == recovered_pt)
+ return TRUE;
+ }
+ return FALSE;
+}
+
+static GstBuffer *
+gst_rtp_ulpfec_dec_recover_from_fec (GstRtpUlpFecDec * self,
+ RtpUlpFecMapInfo * info_fec, guint32 ssrc, gint media_pt, guint16 seq,
+ guint8 * dst_pt)
+{
+ guint64 fec_mask = rtp_ulpfec_buffer_get_mask (&info_fec->rtp);
+ gboolean fec_mask_long = rtp_ulpfec_buffer_get_fechdr (&info_fec->rtp)->L;
+ guint16 fec_seq_base = rtp_ulpfec_buffer_get_seq_base (&info_fec->rtp);
+ GstBuffer *ret;
+
+ g_array_set_size (self->scratch_buf, 0);
+ rtp_buffer_to_ulpfec_bitstring (&info_fec->rtp, self->scratch_buf, TRUE,
+ fec_mask_long);
+
+ for (GList * it = self->info_media; it; it = it->next) {
+ RtpUlpFecMapInfo *info = RTP_FEC_MAP_INFO_NTH (self, it->data);
+ guint64 packet_mask =
+ rtp_ulpfec_packet_mask_from_seqnum (gst_rtp_buffer_get_seq (&info->rtp),
+ fec_seq_base, TRUE);
+
+ if (fec_mask & packet_mask) {
+ fec_mask ^= packet_mask;
+ rtp_buffer_to_ulpfec_bitstring (&info->rtp, self->scratch_buf, FALSE,
+ fec_mask_long);
+ }
+ }
+
+ ret =
+ rtp_ulpfec_bitstring_to_media_rtp_buffer (self->scratch_buf,
+ fec_mask_long, ssrc, seq);
+ if (ret) {
+ /* We are about to put recovered packet back in self->info_media to be able
+ * to reuse it later for recovery of other packets
+ **/
+ gint i = self->info_arr->len;
+ RtpUlpFecMapInfo *info;
+ guint8 recovered_pt;
+
+ g_array_set_size (self->info_arr, self->info_arr->len + 1);
+ info = RTP_FEC_MAP_INFO_NTH (self, i);
+
+ if (!rtp_ulpfec_map_info_map (gst_buffer_ref (ret), info)) {
+ GST_WARNING_OBJECT (self, "Invalid recovered packet");
+ goto recovered_packet_invalid;
+ }
+
+ recovered_pt = gst_rtp_buffer_get_payload_type (&info->rtp);
+ if (!gst_rtp_ulpfec_dec_is_recovered_pt_valid (self, media_pt,
+ recovered_pt)) {
+ GST_WARNING_OBJECT (self,
+ "Recovered packet has unexpected payload type (%u)", recovered_pt);
+ goto recovered_packet_invalid;
+ }
+
+ GST_DEBUG_RTP_PACKET (self, "rtp header (recovered)", &info->rtp);
+ self->info_media =
+ g_list_insert_sorted_with_data (self->info_media, GUINT_TO_POINTER (i),
+ _compare_fec_map_info, self);
+ *dst_pt = recovered_pt;
+ }
+ return ret;
+
+recovered_packet_invalid:
+ g_array_set_size (self->info_arr, self->info_arr->len - 1);
+ gst_buffer_unref (ret);
+ return NULL;
+}
+
+static GstBuffer *
+gst_rtp_ulpfec_dec_recover_from_storage (GstRtpUlpFecDec * self,
+ guint8 * dst_pt, guint16 * dst_seq)
+{
+ RtpUlpFecMapInfo *info;
+
+ if (self->lost_packet_returned)
+ return NULL;
+
+ g_assert (g_list_length (self->info_media) == 1);
+
+ info = RTP_FEC_MAP_INFO_NTH (self, self->info_media->data);
+ *dst_seq = gst_rtp_buffer_get_seq (&info->rtp);
+ *dst_pt = gst_rtp_buffer_get_payload_type (&info->rtp);
+ self->lost_packet_returned = TRUE;
+ GST_DEBUG_RTP_PACKET (self, "rtp header (recovered)", &info->rtp);
+ return gst_buffer_ref (info->rtp.buffer);
+}
+
+static GstBuffer *
+gst_rtp_ulpfec_dec_recover (GstRtpUlpFecDec * self, guint32 ssrc, gint media_pt,
+ guint8 * dst_pt, guint16 * dst_seq)
+{
+ guint64 media_mask = 0;
+ gint media_mask_seq_base = -1;
+
+ if (self->lost_packet_from_storage)
+ return gst_rtp_ulpfec_dec_recover_from_storage (self, dst_pt, dst_seq);
+
+ /* Looking for a FEC packet which can be used for recovery */
+ for (gsize i = 0; i < self->info_fec->len; ++i) {
+ RtpUlpFecMapInfo *info = RTP_FEC_MAP_INFO_NTH (self,
+ g_ptr_array_index (self->info_fec, i));
+ guint16 seq_base = rtp_ulpfec_buffer_get_seq_base (&info->rtp);
+ guint64 fec_mask = rtp_ulpfec_buffer_get_mask (&info->rtp);
+ guint64 missing_packets_mask;
+
+ if (media_mask_seq_base != (gint) seq_base) {
+ media_mask_seq_base = seq_base;
+ media_mask = gst_rtp_ulpfec_dec_get_media_buffers_mask (self, seq_base);
+ }
+
+ /* media_mask has 1s if packet exist.
+ * fec_mask is the mask of protected packets
+ * The statement below excludes existing packets from the protected. So
+ * we are left with 1s only for missing packets which can be recovered
+ * by this FEC packet. */
+ missing_packets_mask = fec_mask & (~media_mask);
+
+ /* Do we have any 1s? Checking if current FEC packet can be used for recovery */
+ if (0 != missing_packets_mask) {
+ guint trailing_zeros = __builtin_ctzll (missing_packets_mask);
+
+ /* Is it the only 1 in the mask? Checking if we lacking single packet in
+ * that case FEC packet can be used for recovery */
+ if (missing_packets_mask == (1ULL << trailing_zeros)) {
+ GstBuffer *ret;
+
+ *dst_seq =
+ seq_base + (RTP_ULPFEC_SEQ_BASE_OFFSET_MAX (TRUE) - trailing_zeros);
+ ret =
+ gst_rtp_ulpfec_dec_recover_from_fec (self, info, ssrc, media_pt,
+ *dst_seq, dst_pt);
+ if (ret)
+ return ret;
+ }
+ }
+ }
+ return NULL;
+}
+
+static GstFlowReturn
+gst_rtp_ulpfec_dec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
+{
+ GstRtpUlpFecDec *self = GST_RTP_ULPFEC_DEC (parent);
+
+ if (G_LIKELY (GST_FLOW_OK == self->chain_return_val)) {
+ if (G_UNLIKELY (self->unset_discont_flag)) {
+ self->unset_discont_flag = FALSE;
+ buf = gst_buffer_make_writable (buf);
+ GST_BUFFER_FLAG_UNSET (buf, GST_BUFFER_FLAG_DISCONT);
+ }
+ return gst_pad_push (self->srcpad, buf);
+ }
+
+ gst_buffer_unref (buf);
+ return self->chain_return_val;
+}
+
+static gboolean
+gst_rtp_ulpfec_dec_handle_packet_loss (GstRtpUlpFecDec * self, guint16 seqnum,
+ GstClockTime timestamp, GstClockTime duration)
+{
+ gint caps_pt = self->have_caps_pt ? self->caps_pt : -1;
+ gboolean ret = TRUE;
+ GstBufferList *buflist =
+ rtp_storage_get_packets_for_recovery (self->storage, self->fec_pt,
+ self->caps_ssrc, seqnum);
+
+ if (buflist) {
+ GstBuffer *recovered_buffer = NULL;
+ guint16 recovered_seq = 0;
+ guint8 recovered_pt = 0;
+
+ gst_rtp_ulpfec_dec_start (self, buflist, self->fec_pt, seqnum);
+
+ while (NULL != (recovered_buffer =
+ gst_rtp_ulpfec_dec_recover (self, self->caps_ssrc, caps_pt,
+ &recovered_pt, &recovered_seq))) {
+ if (seqnum == recovered_seq) {
+ recovered_buffer = gst_buffer_make_writable (recovered_buffer);
+ GST_BUFFER_PTS (recovered_buffer) = timestamp;
+ /* GST_BUFFER_DURATION (recovered_buffer) = duration;
+ * JB does not set the duration, so we will not too */
+
+ if (!self->lost_packet_from_storage)
+ rtp_storage_put_recovered_packet (self->storage,
+ gst_buffer_ref (recovered_buffer), recovered_pt, self->caps_ssrc,
+ recovered_seq);
+
+ GST_DEBUG_OBJECT (self,
+ "Pushing recovered packet ssrc=0x%08x seq=%u %" GST_PTR_FORMAT,
+ self->caps_ssrc, seqnum, recovered_buffer);
+
+ ret = FALSE;
+ self->unset_discont_flag = TRUE;
+ self->chain_return_val = gst_pad_push (self->srcpad, recovered_buffer);
+ break;
+ }
+
+ rtp_storage_put_recovered_packet (self->storage,
+ recovered_buffer, recovered_pt, self->caps_ssrc, recovered_seq);
+ }
+
+ gst_rtp_ulpfec_dec_stop (self);
+ gst_buffer_list_unref (buflist);
+ }
+
+ GST_DEBUG_OBJECT (self, "Packet lost ssrc=0x%08x seq=%u", self->caps_ssrc,
+ seqnum);
+
+ return ret;
+}
+
+static gboolean
+gst_rtp_ulpfec_dec_handle_sink_event (GstPad * pad, GstObject * parent,
+ GstEvent * event)
+{
+ GstRtpUlpFecDec *self = GST_RTP_ULPFEC_DEC (parent);
+ gboolean forward = TRUE;
+
+ GST_LOG_OBJECT (self, "Received event %" GST_PTR_FORMAT, event);
+
+ if (GST_FLOW_OK == self->chain_return_val &&
+ GST_EVENT_CUSTOM_DOWNSTREAM == GST_EVENT_TYPE (event) &&
+ gst_event_has_name (event, "GstRTPPacketLost")) {
+ guint seqnum;
+ GstClockTime timestamp, duration;
+
+ g_assert (self->have_caps_ssrc);
+ g_assert (self->storage);
+
+ if (!gst_structure_get (gst_event_get_structure (event),
+ "seqnum", G_TYPE_UINT, &seqnum,
+ "timestamp", G_TYPE_UINT64, &timestamp,
+ "duration", G_TYPE_UINT64, &duration, NULL))
+ g_assert_not_reached ();
+
+ forward =
+ gst_rtp_ulpfec_dec_handle_packet_loss (self, seqnum, timestamp,
+ duration);
+ if (forward)
+ ++self->packets_unrecovered;
+ else
+ ++self->packets_recovered;
+ GST_DEBUG_OBJECT (self, "Unrecovered / Recovered: %lu / %lu",
+ self->packets_unrecovered, self->packets_recovered);
+ } else if (GST_EVENT_CAPS == GST_EVENT_TYPE (event)) {
+ GstCaps *caps;
+ gboolean have_caps_pt = FALSE;
+ gboolean have_caps_ssrc = FALSE;
+ guint caps_ssrc = 0;
+ gint caps_pt = 0;
+
+ gst_event_parse_caps (event, &caps);
+ have_caps_ssrc =
+ gst_structure_get_uint (gst_caps_get_structure (caps, 0), "ssrc",
+ &caps_ssrc);
+ have_caps_pt =
+ gst_structure_get_int (gst_caps_get_structure (caps, 0), "payload",
+ &caps_pt);
+
+ if (self->have_caps_ssrc != have_caps_ssrc || self->caps_ssrc != caps_ssrc)
+ GST_DEBUG_OBJECT (self, "SSRC changed %u, 0x%08x -> %u, 0x%08x",
+ self->have_caps_ssrc, self->caps_ssrc, have_caps_ssrc, caps_ssrc);
+ if (self->have_caps_pt != have_caps_pt || self->caps_pt != caps_pt)
+ GST_DEBUG_OBJECT (self, "PT changed %u, %u -> %u, %u",
+ self->have_caps_pt, self->caps_pt, have_caps_pt, caps_pt);
+
+ self->have_caps_ssrc = have_caps_ssrc;
+ self->have_caps_pt = have_caps_pt;
+ self->caps_ssrc = caps_ssrc;
+ self->caps_pt = caps_pt;
+ }
+
+ if (forward)
+ return gst_pad_push_event (self->srcpad, event);
+ gst_event_unref (event);
+ return TRUE;
+}
+
+static void
+gst_rtp_ulpfec_dec_init (GstRtpUlpFecDec * self)
+{
+ self->srcpad = gst_pad_new_from_static_template (&srctemplate, "src");
+ self->sinkpad = gst_pad_new_from_static_template (&sinktemplate, "sink");
+ GST_PAD_SET_PROXY_CAPS (self->sinkpad);
+ GST_PAD_SET_PROXY_ALLOCATION (self->sinkpad);
+ gst_pad_set_chain_function (self->sinkpad,
+ GST_DEBUG_FUNCPTR (gst_rtp_ulpfec_dec_chain));
+ gst_pad_set_event_function (self->sinkpad,
+ GST_DEBUG_FUNCPTR (gst_rtp_ulpfec_dec_handle_sink_event));
+
+ gst_element_add_pad (GST_ELEMENT (self), self->srcpad);
+ gst_element_add_pad (GST_ELEMENT (self), self->sinkpad);
+
+ self->fec_pt = DEFAULT_FEC_PT;
+
+ self->chain_return_val = GST_FLOW_OK;
+ self->have_caps_ssrc = FALSE;
+ self->caps_ssrc = 0;
+ self->info_fec = g_ptr_array_new ();
+ self->info_arr = g_array_new (FALSE, TRUE, sizeof (RtpUlpFecMapInfo));
+ g_array_set_clear_func (self->info_arr,
+ (GDestroyNotify) rtp_ulpfec_map_info_unmap);
+ self->scratch_buf = g_array_new (FALSE, TRUE, sizeof (guint8));
+}
+
+static void
+gst_rtp_ulpfec_dec_dispose (GObject * obj)
+{
+ GstRtpUlpFecDec *self = GST_RTP_ULPFEC_DEC (obj);
+
+ GST_INFO_OBJECT (self,
+ " ssrc=0x%08x pt=%u"
+ " packets_recovered=%" G_GSIZE_FORMAT
+ " packets_unrecovered=%" G_GSIZE_FORMAT,
+ self->caps_ssrc, self->caps_pt,
+ self->packets_recovered, self->packets_unrecovered);
+
+ if (self->storage)
+ g_object_unref (self->storage);
+
+ g_assert (NULL == self->info_media);
+ g_assert (0 == self->info_fec->len);
+ g_assert (0 == self->info_arr->len);
+
+ if (self->fec_packets_received) {
+ GST_INFO_OBJECT (self,
+ " fec_packets_received=%" G_GSIZE_FORMAT
+ " fec_packets_rejected=%" G_GSIZE_FORMAT
+ " packets_rejected=%" G_GSIZE_FORMAT,
+ self->fec_packets_received,
+ self->fec_packets_rejected, self->packets_rejected);
+ }
+
+ g_ptr_array_free (self->info_fec, TRUE);
+ g_array_free (self->info_arr, TRUE);
+ g_array_free (self->scratch_buf, TRUE);
+
+ G_OBJECT_CLASS (gst_rtp_ulpfec_dec_parent_class)->dispose (obj);
+}
+
+static void
+gst_rtp_ulpfec_dec_set_property (GObject * object, guint prop_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ GstRtpUlpFecDec *self = GST_RTP_ULPFEC_DEC (object);
+
+ if (GST_LEVEL_LOG <= gst_debug_category_get_threshold (GST_CAT_DEFAULT)) {
+ gchar *val_str = gst_value_serialize (value);
+ GST_LOG_OBJECT (object, "Setting property \"%s\" to %s", pspec->name,
+ val_str);
+ g_free (val_str);
+ }
+
+ switch (prop_id) {
+ case PROP_PT:
+ self->fec_pt = g_value_get_uint (value);
+ break;
+ case PROP_STORAGE:
+ if (self->storage)
+ g_object_unref (self->storage);
+ self->storage = g_value_get_object (value);
+ if (self->storage)
+ g_object_ref (self->storage);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+}
+
+static void
+gst_rtp_ulpfec_dec_get_property (GObject * object, guint prop_id,
+ GValue * value, GParamSpec * pspec)
+{
+ GstRtpUlpFecDec *self = GST_RTP_ULPFEC_DEC (object);
+
+ switch (prop_id) {
+ case PROP_PT:
+ g_value_set_uint (value, self->fec_pt);
+ break;
+ case PROP_STORAGE:
+ g_value_set_object (value, self->storage);
+ break;
+ case PROP_RECOVERED:
+ g_value_set_uint (value, (guint) self->packets_recovered);
+ break;
+ case PROP_UNRECOVERED:
+ g_value_set_uint (value, (guint) self->packets_unrecovered);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+
+ if (GST_LEVEL_LOG <= gst_debug_category_get_threshold (GST_CAT_DEFAULT)) {
+ gchar *val_str = gst_value_serialize (value);
+ GST_LOG_OBJECT (object, "Returning property \"%s\" %s", pspec->name,
+ val_str);
+ g_free (val_str);
+ }
+}
+
+static void
+gst_rtp_ulpfec_dec_class_init (GstRtpUlpFecDecClass * klass)
+{
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+ GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
+
+ GST_DEBUG_CATEGORY_INIT (gst_rtp_ulpfec_dec_debug,
+ "rtpulpfecdec", 0, "RTP FEC Decoder");
+
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&srctemplate));
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&sinktemplate));
+
+ gst_element_class_set_static_metadata (element_class,
+ "RTP FEC Decoder",
+ "Codec/Depayloader/Network/RTP",
+ "Decodes RTP FEC (RFC5109)", "Mikhail Fludkov <misha@pexip.com>");
+
+ gobject_class->set_property =
+ GST_DEBUG_FUNCPTR (gst_rtp_ulpfec_dec_set_property);
+ gobject_class->get_property =
+ GST_DEBUG_FUNCPTR (gst_rtp_ulpfec_dec_get_property);
+ gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_rtp_ulpfec_dec_dispose);
+
+ klass_properties[PROP_PT] = g_param_spec_uint ("pt", "pt",
+ "FEC packets payload type", 0, 127,
+ DEFAULT_FEC_PT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+ klass_properties[PROP_STORAGE] =
+ g_param_spec_object ("storage", "RTP storage", "RTP storage",
+ G_TYPE_OBJECT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+ klass_properties[PROP_RECOVERED] =
+ g_param_spec_uint ("recovered", "recovered",
+ "The number of recovered packets", 0, G_MAXUINT, 0,
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+ klass_properties[PROP_UNRECOVERED] =
+ g_param_spec_uint ("unrecovered", "unrecovered",
+ "The number of unrecovered packets", 0, G_MAXUINT, 0,
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+
+ g_object_class_install_properties (gobject_class, N_PROPERTIES,
+ klass_properties);
+}
diff --git a/gst/rtp/gstrtpulpfecdec.h b/gst/rtp/gstrtpulpfecdec.h
new file mode 100644
index 000000000..4eedc27bf
--- /dev/null
+++ b/gst/rtp/gstrtpulpfecdec.h
@@ -0,0 +1,83 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifndef __GST_RTP_ULPFEC_DEC_H__
+#define __GST_RTP_ULPFEC_DEC_H__
+
+#include <gst/gst.h>
+
+#include "rtpstorage.h"
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_RTP_ULPFEC_DEC \
+ (gst_rtp_ulpfec_dec_get_type())
+#define GST_RTP_ULPFEC_DEC(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_ULPFEC_DEC,GstRtpUlpFecDec))
+#define GST_RTP_ULPFEC_DEC_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_ULPFEC_DEC,GstRtpUlpFecDecClass))
+#define GST_IS_RTP_ULPFEC_DEC(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_ULPFEC_DEC))
+#define GST_IS_RTP_ULPFEC_DEC_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_ULPFEC_DEC))
+
+typedef struct _GstRtpUlpFecDec GstRtpUlpFecDec;
+typedef struct _GstRtpUlpFecDecClass GstRtpUlpFecDecClass;
+
+struct _GstRtpUlpFecDecClass {
+ GstElementClass parent_class;
+};
+
+struct _GstRtpUlpFecDec {
+ GstElement parent;
+ GstPad *srcpad;
+ GstPad *sinkpad;
+
+ /* properties */
+ guint8 fec_pt;
+ RtpStorage *storage;
+ gsize packets_recovered;
+ gsize packets_unrecovered;
+
+ /* internal stuff */
+ GstFlowReturn chain_return_val;
+ gboolean unset_discont_flag;
+ gboolean have_caps_ssrc;
+ gboolean have_caps_pt;
+ guint32 caps_ssrc;
+ guint8 caps_pt;
+ GList *info_media;
+ GPtrArray *info_fec;
+ GArray *info_arr;
+ GArray *scratch_buf;
+ gboolean lost_packet_from_storage;
+ gboolean lost_packet_returned;
+
+ /* stats */
+ gsize fec_packets_received;
+ gsize fec_packets_rejected;
+ gsize packets_rejected;
+};
+
+GType gst_rtp_ulpfec_dec_get_type (void);
+
+G_END_DECLS
+
+#endif /* __GST_RTP_ULPFEC_DEC_H__ */
diff --git a/gst/rtp/gstrtpulpfecenc.c b/gst/rtp/gstrtpulpfecenc.c
new file mode 100644
index 000000000..f4e564196
--- /dev/null
+++ b/gst/rtp/gstrtpulpfecenc.c
@@ -0,0 +1,692 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include <gst/rtp/gstrtp-enumtypes.h>
+#include <gst/rtp/gstrtpbuffer.h>
+#include <string.h>
+
+#include "rtpulpfeccommon.h"
+#include "gstrtpulpfecenc.h"
+
+static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
+ GST_PAD_SINK,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/x-rtp"));
+
+static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
+ GST_PAD_SRC,
+ GST_PAD_ALWAYS,
+ GST_STATIC_CAPS ("application/x-rtp"));
+
+#define UNDEF_PT 255
+#define UNDEF_SSRC 0
+
+#define DEFAULT_PT UNDEF_PT
+#define DEFAULT_SSRC UNDEF_SSRC
+#define DEFAULT_PCT 0
+#define DEFAULT_PCT_IMPORTANT 0
+#define DEFAULT_MULTIPACKET FALSE
+#define DEFAULT_MUX_SEQ FALSE
+
+#define PACKETS_BUF_MAX_LENGTH (RTP_ULPFEC_PROTECTED_PACKETS_MAX(TRUE))
+
+GST_DEBUG_CATEGORY (gst_rtp_ulpfec_enc_debug);
+#define GST_CAT_DEFAULT (gst_rtp_ulpfec_enc_debug)
+
+G_DEFINE_TYPE (GstRtpUlpFecEnc, gst_rtp_ulpfec_enc, GST_TYPE_ELEMENT);
+
+enum
+{
+ PROP_0,
+ PROP_SSRC,
+ PROP_PT,
+ PROP_MULTIPACKET,
+ PROP_MUX_SEQ,
+ PROP_PROTECTED,
+ PROP_PERCENTAGE,
+ PROP_PERCENTAGE_IMPORTANT,
+};
+
+#define RTP_FEC_MAP_INFO_NTH(ctx, data) (&g_array_index (\
+ ((GstRtpUlpFecEncStreamCtx *)ctx)->info_arr, \
+ RtpUlpFecMapInfo, \
+ GPOINTER_TO_UINT(data)))
+
+static void
+gst_rtp_ulpfec_enc_stream_ctx_start (GstRtpUlpFecEncStreamCtx * ctx,
+ GQueue * packets, guint fec_packets)
+{
+ GList *it = packets->tail;
+
+ g_array_set_size (ctx->info_arr, packets->length);
+
+ for (guint i = 0; i < packets->length; ++i) {
+ GstBuffer *buffer = it->data;
+ RtpUlpFecMapInfo *info = RTP_FEC_MAP_INFO_NTH (ctx, i);
+
+ if (!rtp_ulpfec_map_info_map (gst_buffer_ref (buffer), info))
+ g_assert_not_reached ();
+
+ GST_LOG_RTP_PACKET (ctx->parent, "rtp header (incoming)", &info->rtp);
+
+ it = g_list_previous (it);
+ }
+
+ ctx->fec_packets = fec_packets;
+ ctx->fec_packet_idx = 0;
+}
+
+static void
+gst_rtp_ulpfec_enc_stream_ctx_stop (GstRtpUlpFecEncStreamCtx * ctx)
+{
+ g_array_set_size (ctx->info_arr, 0);
+ g_array_set_size (ctx->scratch_buf, 0);
+
+ ctx->fec_packets = 0;
+ ctx->fec_packet_idx = 0;
+}
+
+static void
+ gst_rtp_ulpfec_enc_stream_ctx_get_protection_parameters
+ (GstRtpUlpFecEncStreamCtx * ctx, guint16 * dst_seq_base, guint64 * dst_mask,
+ guint * dst_start, guint * dst_end)
+{
+ guint media_packets = ctx->info_arr->len;
+ guint start = ctx->fec_packet_idx * media_packets / ctx->fec_packets;
+ guint end =
+ ((ctx->fec_packet_idx + 1) * media_packets + ctx->fec_packets -
+ 1) / ctx->fec_packets - 1;
+ guint len = end - start + 1;
+ guint64 mask = 0;
+ guint16 seq_base = 0;
+
+ len = MIN (len, RTP_ULPFEC_PROTECTED_PACKETS_MAX (TRUE));
+ end = start + len - 1;
+
+ for (guint i = start; i <= end; ++i) {
+ RtpUlpFecMapInfo *info = RTP_FEC_MAP_INFO_NTH (ctx, i);
+ guint16 seq = gst_rtp_buffer_get_seq (&info->rtp);
+
+ if (mask) {
+ gint diff = gst_rtp_buffer_compare_seqnum (seq_base, seq);
+ if (diff < 0) {
+ seq_base = seq;
+ mask = mask >> (-diff);
+ }
+ mask |= rtp_ulpfec_packet_mask_from_seqnum (seq, seq_base, TRUE);
+ } else {
+ seq_base = seq;
+ mask = rtp_ulpfec_packet_mask_from_seqnum (seq, seq_base, TRUE);
+ }
+ }
+
+ *dst_start = start;
+ *dst_end = end;
+ *dst_mask = mask;
+ *dst_seq_base = seq_base;
+}
+
+static GstBuffer *
+gst_rtp_ulpfec_enc_stream_ctx_protect (GstRtpUlpFecEncStreamCtx * ctx,
+ guint8 pt, guint16 seq, guint32 timestamp, guint32 ssrc)
+{
+ guint end = 0;
+ guint start = 0;
+ guint64 fec_mask = 0;
+ guint16 seq_base = 0;
+ GstBuffer *ret;
+ guint64 tmp_mask;
+ gboolean fec_mask_long;
+
+ if (ctx->fec_packet_idx >= ctx->fec_packets)
+ return NULL;
+
+ g_array_set_size (ctx->scratch_buf, 0);
+ gst_rtp_ulpfec_enc_stream_ctx_get_protection_parameters (ctx, &seq_base,
+ &fec_mask, &start, &end);
+
+ tmp_mask = fec_mask;
+ fec_mask_long = rtp_ulpfec_mask_is_long (fec_mask);
+ for (guint i = start; i <= end; ++i) {
+ RtpUlpFecMapInfo *info = RTP_FEC_MAP_INFO_NTH (ctx, i);
+ guint64 packet_mask =
+ rtp_ulpfec_packet_mask_from_seqnum (gst_rtp_buffer_get_seq (&info->rtp),
+ seq_base,
+ TRUE);
+
+ if (tmp_mask & packet_mask) {
+ tmp_mask ^= packet_mask;
+ rtp_buffer_to_ulpfec_bitstring (&info->rtp, ctx->scratch_buf, FALSE,
+ fec_mask_long);
+ }
+ }
+
+ g_assert (tmp_mask == 0ULL);
+ ret =
+ rtp_ulpfec_bitstring_to_fec_rtp_buffer (ctx->scratch_buf, seq_base,
+ fec_mask_long, fec_mask, FALSE, pt, seq, timestamp, ssrc);
+ ++ctx->fec_packet_idx;
+ return ret;
+}
+
+static void
+gst_rtp_ulpfec_enc_stream_ctx_report_budget (GstRtpUlpFecEncStreamCtx * ctx)
+{
+ GST_TRACE_OBJECT (ctx->parent, "budget = %f budget_important = %f",
+ ctx->budget, ctx->budget_important);
+}
+
+static void
+gst_rtp_ulpfec_enc_stream_ctx_increment_budget (GstRtpUlpFecEncStreamCtx * ctx,
+ GstBuffer * buffer)
+{
+ if (ctx->percentage == 0 && ctx->percentage_important == 0) {
+ if (ctx->budget > 0) {
+ ctx->budget = 0;
+ ctx->budget_important = 0;
+ }
+ if (ctx->budget < 0)
+ ctx->budget += ctx->budget_inc;
+
+ return;
+ }
+ ctx->budget += ctx->budget_inc;
+
+ if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_NON_DROPPABLE)) {
+ ctx->budget_important += ctx->budget_inc_important;
+ }
+
+ gst_rtp_ulpfec_enc_stream_ctx_report_budget (ctx);
+}
+
+static void
+gst_rtp_ulpfec_enc_stream_ctx_decrement_budget (GstRtpUlpFecEncStreamCtx * ctx,
+ guint fec_packets_num)
+{
+ if (ctx->budget_important >= 1.)
+ ctx->budget_important -= fec_packets_num;
+ ctx->budget -= fec_packets_num;
+
+ gst_rtp_ulpfec_enc_stream_ctx_report_budget (ctx);
+}
+
+static guint
+gst_rtp_ulpfec_enc_stream_ctx_get_fec_packets_num (GstRtpUlpFecEncStreamCtx *
+ ctx)
+{
+ g_assert_cmpfloat (ctx->budget_important, >=, 0.);
+
+ if (ctx->budget_important >= 1.)
+ return ctx->budget_important;
+ return ctx->budget > 0. ? (guint) ctx->budget : 0;
+}
+
+static void
+gst_rtp_ulpfec_enc_stream_ctx_free_packets_buf (GstRtpUlpFecEncStreamCtx * ctx)
+{
+ while (ctx->packets_buf.length)
+ gst_buffer_unref (g_queue_pop_tail (&ctx->packets_buf));
+}
+
+static void
+gst_rtp_ulpfec_enc_stream_ctx_prepend_to_fec_buffer (GstRtpUlpFecEncStreamCtx *
+ ctx, GstRTPBuffer * rtp, guint buf_max_size)
+{
+ GList *new_head;
+ if (ctx->packets_buf.length == buf_max_size) {
+ new_head = g_queue_pop_tail_link (&ctx->packets_buf);
+ } else {
+ new_head = g_list_alloc ();
+ }
+
+ gst_buffer_replace ((GstBuffer **) & new_head->data, rtp->buffer);
+ g_queue_push_head_link (&ctx->packets_buf, new_head);
+
+ g_assert_cmpint (ctx->packets_buf.length, <=, buf_max_size);
+}
+
+static GstFlowReturn
+gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets (GstRtpUlpFecEncStreamCtx * ctx,
+ guint8 pt, guint16 seq, guint32 timestamp, guint32 ssrc)
+{
+ GstFlowReturn ret = GST_FLOW_OK;
+ guint fec_packets_num =
+ gst_rtp_ulpfec_enc_stream_ctx_get_fec_packets_num (ctx);
+
+ if (fec_packets_num) {
+ guint fec_packets_pushed = 0;
+ GstBuffer *latest_packet = ctx->packets_buf.head->data;
+ GstBuffer *fec = NULL;
+
+ gst_rtp_ulpfec_enc_stream_ctx_start (ctx, &ctx->packets_buf,
+ fec_packets_num);
+
+ while (NULL != (fec =
+ gst_rtp_ulpfec_enc_stream_ctx_protect (ctx, pt,
+ seq + fec_packets_pushed, timestamp, ssrc))) {
+ gst_buffer_copy_into (fec, latest_packet, GST_BUFFER_COPY_TIMESTAMPS, 0,
+ -1);
+
+ ret = gst_pad_push (ctx->srcpad, fec);
+ if (GST_FLOW_OK == ret)
+ ++fec_packets_pushed;
+ else
+ break;
+ }
+
+ gst_rtp_ulpfec_enc_stream_ctx_stop (ctx);
+
+ g_assert_cmpint (fec_packets_pushed, <=, fec_packets_num);
+
+ ctx->num_packets_protected += ctx->packets_buf.length;
+ ctx->num_packets_fec += fec_packets_pushed;
+ ctx->seqnum_offset += fec_packets_pushed;
+ ctx->seqnum += fec_packets_pushed;
+ }
+
+ gst_rtp_ulpfec_enc_stream_ctx_decrement_budget (ctx, fec_packets_num);
+ return ret;
+}
+
+static void
+gst_rtp_ulpfec_enc_stream_ctx_cache_packet (GstRtpUlpFecEncStreamCtx * ctx,
+ GstRTPBuffer * rtp, gboolean * dst_empty_packet_buffer,
+ gboolean * dst_push_fec)
+{
+ if (ctx->multipacket) {
+ gst_rtp_ulpfec_enc_stream_ctx_prepend_to_fec_buffer (ctx, rtp,
+ PACKETS_BUF_MAX_LENGTH);
+ gst_rtp_ulpfec_enc_stream_ctx_increment_budget (ctx, rtp->buffer);
+
+ *dst_empty_packet_buffer = gst_rtp_buffer_get_marker (rtp);
+ *dst_push_fec = *dst_empty_packet_buffer;
+ } else {
+ gboolean push_fec;
+
+ gst_rtp_ulpfec_enc_stream_ctx_prepend_to_fec_buffer (ctx, rtp, 1);
+
+ push_fec = ctx->fec_nth == 0 ? FALSE :
+ 0 == (ctx->num_packets_received % ctx->fec_nth);
+
+ ctx->budget = push_fec ? 1 : 0;
+ ctx->budget_important = 0;
+
+ *dst_push_fec = push_fec;
+ *dst_empty_packet_buffer = FALSE;
+ }
+}
+
+static void
+gst_rtp_ulpfec_enc_stream_ctx_configure (GstRtpUlpFecEncStreamCtx * ctx,
+ guint pt, guint32 fec_ssrc,
+ guint percentage, guint percentage_important, gboolean multipacket,
+ gboolean mux_seq)
+{
+ ctx->pt = pt;
+ ctx->fec_ssrc = fec_ssrc;
+ ctx->percentage = percentage;
+ ctx->percentage_important = percentage_important;
+ ctx->multipacket = multipacket;
+ ctx->mux_seq = mux_seq;
+
+ ctx->fec_nth = percentage ? 100 / percentage : 0;
+ if (percentage) {
+ ctx->budget_inc = percentage / 100.;
+ ctx->budget_inc_important = percentage > percentage_important ?
+ ctx->budget_inc : percentage_important / 100.;
+ }
+/*
+ else {
+ ctx->budget_inc = 0.0;
+ }
+*/
+ ctx->budget_inc_important = percentage > percentage_important ?
+ ctx->budget_inc : percentage_important / 100.;
+}
+
+static GstRtpUlpFecEncStreamCtx *
+gst_rtp_ulpfec_enc_stream_ctx_new (guint ssrc,
+ GstElement * parent, GstPad * srcpad,
+ guint pt, guint32 fec_ssrc,
+ guint percentage, guint percentage_important, gboolean multipacket,
+ gboolean mux_seq)
+{
+ GstRtpUlpFecEncStreamCtx *ctx = g_new0 (GstRtpUlpFecEncStreamCtx, 1);
+
+ ctx->ssrc = ssrc;
+ ctx->parent = parent;
+ ctx->srcpad = srcpad;
+
+ ctx->seqnum = g_random_int_range (0, G_MAXUINT16 / 2);
+
+ ctx->info_arr = g_array_new (FALSE, TRUE, sizeof (RtpUlpFecMapInfo));
+ g_array_set_clear_func (ctx->info_arr,
+ (GDestroyNotify) rtp_ulpfec_map_info_unmap);
+ ctx->parent = parent;
+ ctx->scratch_buf = g_array_new (FALSE, TRUE, sizeof (guint8));
+ gst_rtp_ulpfec_enc_stream_ctx_configure (ctx, pt, fec_ssrc,
+ percentage, percentage_important, multipacket, mux_seq);
+
+ return ctx;
+}
+
+static void
+gst_rtp_ulpfec_enc_stream_ctx_free (GstRtpUlpFecEncStreamCtx * ctx)
+{
+ if (ctx->num_packets_received) {
+ GST_INFO_OBJECT (ctx->parent, "Actual FEC overhead is %4.2f%% (%u/%u)\n",
+ ctx->num_packets_fec * (double) 100. / ctx->num_packets_received,
+ ctx->num_packets_fec, ctx->num_packets_received);
+ }
+ gst_rtp_ulpfec_enc_stream_ctx_free_packets_buf (ctx);
+
+ g_assert (0 == ctx->info_arr->len);
+ g_array_free (ctx->info_arr, TRUE);
+ g_array_free (ctx->scratch_buf, TRUE);
+ g_slice_free1 (sizeof (GstRtpUlpFecEncStreamCtx), ctx);
+}
+
+static GstFlowReturn
+gst_rtp_ulpfec_enc_stream_ctx_process (GstRtpUlpFecEncStreamCtx * ctx,
+ GstBuffer * buffer)
+{
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ GstFlowReturn ret;
+ gboolean push_fec = FALSE;
+ gboolean empty_packet_buffer = FALSE;
+
+ ctx->num_packets_received++;
+
+ if (ctx->mux_seq && ctx->seqnum_offset > 0) {
+ buffer = gst_buffer_make_writable (buffer);
+ if (!gst_rtp_buffer_map (buffer,
+ GST_MAP_READWRITE | GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING, &rtp))
+ g_assert_not_reached ();
+ gst_rtp_buffer_set_seq (&rtp,
+ gst_rtp_buffer_get_seq (&rtp) + ctx->seqnum_offset);
+ } else {
+ if (!gst_rtp_buffer_map (buffer,
+ GST_MAP_READ | GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING, &rtp))
+ g_assert_not_reached ();
+ }
+
+ gst_rtp_ulpfec_enc_stream_ctx_cache_packet (ctx, &rtp, &empty_packet_buffer,
+ &push_fec);
+
+ if (push_fec) {
+ guint32 fec_timestamp = gst_rtp_buffer_get_timestamp (&rtp);
+ guint32 fec_ssrc =
+ ctx->fec_ssrc ==
+ UNDEF_SSRC ? gst_rtp_buffer_get_ssrc (&rtp) : ctx->fec_ssrc;
+ guint16 fec_seq =
+ ctx->mux_seq ? gst_rtp_buffer_get_seq (&rtp) + 1 : ctx->seqnum;
+
+ gst_rtp_buffer_unmap (&rtp);
+
+ ret = gst_pad_push (ctx->srcpad, buffer);
+ if (GST_FLOW_OK == ret)
+ ret =
+ gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets (ctx, ctx->pt, fec_seq,
+ fec_timestamp, fec_ssrc);
+ } else {
+ gst_rtp_buffer_unmap (&rtp);
+ ret = gst_pad_push (ctx->srcpad, buffer);
+ }
+
+ if (empty_packet_buffer)
+ gst_rtp_ulpfec_enc_stream_ctx_free_packets_buf (ctx);
+
+ return ret;
+}
+
+static GstRtpUlpFecEncStreamCtx *
+gst_rtp_ulpfec_enc_aquire_ctx (GstRtpUlpFecEnc * fec, guint ssrc)
+{
+ GstRtpUlpFecEncStreamCtx *ctx;
+
+ GST_OBJECT_LOCK (fec);
+ ctx = g_hash_table_lookup (fec->ssrc_to_ctx, GUINT_TO_POINTER (ssrc));
+ if (ctx == NULL) {
+ ctx =
+ gst_rtp_ulpfec_enc_stream_ctx_new (ssrc, GST_ELEMENT_CAST (fec),
+ fec->srcpad, fec->pt, fec->ssrc, fec->percentage,
+ fec->percentage_important, fec->multipacket, fec->mux_seq);
+ g_hash_table_insert (fec->ssrc_to_ctx, GUINT_TO_POINTER (ssrc), ctx);
+ }
+ GST_OBJECT_UNLOCK (fec);
+
+ return ctx;
+}
+
+static GstFlowReturn
+gst_rtp_ulpfec_enc_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
+{
+ GstRtpUlpFecEnc *fec = GST_RTP_ULPFEC_ENC (parent);
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ GstFlowReturn ret;
+ guint ssrc = 0;
+ GstRtpUlpFecEncStreamCtx *ctx;
+
+ if (fec->pt == UNDEF_PT)
+ return gst_pad_push (fec->srcpad, buffer);
+
+ /* FIXME: avoid this additional mapping of the buffer to get the
+ ssrc! */
+ if (!gst_rtp_buffer_map (buffer,
+ GST_MAP_READ | GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING, &rtp)) {
+ g_assert_not_reached ();
+ }
+ ssrc = gst_rtp_buffer_get_ssrc (&rtp);
+ gst_rtp_buffer_unmap (&rtp);
+
+ ctx = gst_rtp_ulpfec_enc_aquire_ctx (fec, ssrc);
+
+ ret = gst_rtp_ulpfec_enc_stream_ctx_process (ctx, buffer);
+
+ /* FIXME: does not work for mulitple ssrcs */
+ fec->num_packets_protected = ctx->num_packets_protected;
+
+ return ret;
+}
+
+static void
+gst_rtp_ulpfec_enc_configure_ctx (gpointer key, gpointer value,
+ gpointer user_data)
+{
+ GstRtpUlpFecEnc *fec = user_data;
+ GstRtpUlpFecEncStreamCtx *ctx = value;
+
+ gst_rtp_ulpfec_enc_stream_ctx_configure (ctx, fec->pt, fec->ssrc,
+ fec->percentage, fec->percentage_important,
+ fec->multipacket, fec->mux_seq);
+}
+
+static void
+gst_rtp_ulpfec_enc_set_property (GObject * object, guint prop_id,
+ const GValue * value, GParamSpec * pspec)
+{
+ GstRtpUlpFecEnc *fec = GST_RTP_ULPFEC_ENC (object);
+
+ if (GST_LEVEL_LOG <= gst_debug_category_get_threshold (GST_CAT_DEFAULT)) {
+ gchar *val_str = gst_value_serialize (value);
+ GST_LOG_OBJECT (object, "Setting property \"%s\" to %s", pspec->name,
+ val_str);
+ g_free (val_str);
+ }
+
+ switch (prop_id) {
+ case PROP_PT:
+ fec->pt = g_value_get_uint (value);
+ break;
+ case PROP_SSRC:
+ fec->ssrc = g_value_get_uint (value);
+ break;
+ case PROP_MULTIPACKET:
+ fec->multipacket = g_value_get_boolean (value);
+ break;
+ case PROP_PERCENTAGE:
+ fec->percentage = g_value_get_uint (value);
+ break;
+ case PROP_PERCENTAGE_IMPORTANT:
+ fec->percentage_important = g_value_get_uint (value);
+ break;
+ case PROP_MUX_SEQ:
+ fec->mux_seq = g_value_get_boolean (value);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+
+ GST_OBJECT_LOCK (fec);
+ g_hash_table_foreach (fec->ssrc_to_ctx, gst_rtp_ulpfec_enc_configure_ctx,
+ fec);
+ GST_OBJECT_UNLOCK (fec);
+}
+
+static void
+gst_rtp_ulpfec_enc_get_property (GObject * object, guint prop_id,
+ GValue * value, GParamSpec * pspec)
+{
+ GstRtpUlpFecEnc *fec = GST_RTP_ULPFEC_ENC (object);
+ switch (prop_id) {
+ case PROP_PT:
+ g_value_set_uint (value, fec->pt);
+ break;
+ case PROP_SSRC:
+ g_value_set_uint (value, fec->ssrc);
+ break;
+ case PROP_PROTECTED:
+ g_value_set_uint (value, fec->num_packets_protected);
+ break;
+ case PROP_PERCENTAGE:
+ g_value_set_uint (value, fec->percentage);
+ break;
+ case PROP_PERCENTAGE_IMPORTANT:
+ g_value_set_uint (value, fec->percentage_important);
+ break;
+ case PROP_MULTIPACKET:
+ g_value_set_boolean (value, fec->multipacket);
+ break;
+ case PROP_MUX_SEQ:
+ g_value_set_boolean (value, fec->mux_seq);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ break;
+ }
+
+ if (GST_LEVEL_LOG <= gst_debug_category_get_threshold (GST_CAT_DEFAULT)) {
+ gchar *val_str = gst_value_serialize (value);
+ GST_LOG_OBJECT (object, "Returning property \"%s\" %s", pspec->name,
+ val_str);
+ g_free (val_str);
+ }
+}
+
+static void
+gst_rtp_ulpfec_enc_dispose (GObject * obj)
+{
+ GstRtpUlpFecEnc *fec = GST_RTP_ULPFEC_ENC (obj);
+
+ g_hash_table_destroy (fec->ssrc_to_ctx);
+
+ G_OBJECT_CLASS (gst_rtp_ulpfec_enc_parent_class)->dispose (obj);
+}
+
+static void
+gst_rtp_ulpfec_enc_init (GstRtpUlpFecEnc * fec)
+{
+ fec->srcpad = gst_pad_new_from_static_template (&srctemplate, "src");
+ gst_element_add_pad (GST_ELEMENT (fec), fec->srcpad);
+
+ fec->sinkpad = gst_pad_new_from_static_template (&sinktemplate, "sink");
+ GST_PAD_SET_PROXY_CAPS (fec->sinkpad);
+ GST_PAD_SET_PROXY_ALLOCATION (fec->sinkpad);
+ gst_pad_set_chain_function (fec->sinkpad,
+ GST_DEBUG_FUNCPTR (gst_rtp_ulpfec_enc_chain));
+ gst_element_add_pad (GST_ELEMENT (fec), fec->sinkpad);
+
+ fec->ssrc_to_ctx = g_hash_table_new_full (NULL, NULL, NULL,
+ (GDestroyNotify) gst_rtp_ulpfec_enc_stream_ctx_free);
+}
+
+static void
+gst_rtp_ulpfec_enc_class_init (GstRtpUlpFecEncClass * klass)
+{
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+ GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
+
+ GST_DEBUG_CATEGORY_INIT (gst_rtp_ulpfec_enc_debug, "rtpulpfecenc", 0,
+ "FEC encoder element");
+
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&srctemplate));
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&sinktemplate));
+
+ gst_element_class_set_static_metadata (element_class,
+ "RTP FEC Encoder",
+ "Codec/Payloader/Network/RTP",
+ "Encodes RTP FEC (RFC5109)", "Mikhail Fludkov <misha@pexip.com>");
+
+ gobject_class->set_property =
+ GST_DEBUG_FUNCPTR (gst_rtp_ulpfec_enc_set_property);
+ gobject_class->get_property =
+ GST_DEBUG_FUNCPTR (gst_rtp_ulpfec_enc_get_property);
+ gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_rtp_ulpfec_enc_dispose);
+
+ g_object_class_install_property (gobject_class, PROP_SSRC,
+ g_param_spec_uint ("ssrc", "SSRC",
+ "The SSRC to use on FEC'd packets", 0, G_MAXUINT32, DEFAULT_SSRC,
+ G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (gobject_class, PROP_PT,
+ g_param_spec_uint ("pt", "payload type",
+ "The payload type of FEC packets", 0, 255, DEFAULT_PT,
+ G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (gobject_class, PROP_MULTIPACKET,
+ g_param_spec_boolean ("multipacket", "Multipacket",
+ "Apply FEC on multiple packets", DEFAULT_MULTIPACKET,
+ G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (gobject_class, PROP_MUX_SEQ,
+ g_param_spec_boolean ("mux-seq", "Mux seq",
+ "Mux seqnum for media and fec packets in same seqnum space",
+ DEFAULT_MUX_SEQ,
+ G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (gobject_class, PROP_PERCENTAGE,
+ g_param_spec_uint ("percentage", "Percentage",
+ "FEC overhead percentage for the whole stream", 0, 100, DEFAULT_PCT,
+ G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (gobject_class, PROP_PERCENTAGE_IMPORTANT,
+ g_param_spec_uint ("percentage-important", "Percentage important",
+ "FEC overhead percentage for important packets",
+ 0, 100, DEFAULT_PCT_IMPORTANT,
+ G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+
+ g_object_class_install_property (gobject_class, PROP_PROTECTED,
+ g_param_spec_uint ("protected", "Protected",
+ "Count of protected packets", 0, G_MAXUINT32, 0,
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+}
diff --git a/gst/rtp/gstrtpulpfecenc.h b/gst/rtp/gstrtpulpfecenc.h
new file mode 100644
index 000000000..82ff52291
--- /dev/null
+++ b/gst/rtp/gstrtpulpfecenc.h
@@ -0,0 +1,101 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifndef __GST_FEC_H__
+#define __GST_FEC_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_RTP_ULPFEC_ENC \
+ (gst_rtp_ulpfec_enc_get_type())
+#define GST_RTP_ULPFEC_ENC(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_ULPFEC_ENC,GstRtpUlpFecEnc))
+#define GST_RTP_ULPFEC_ENC_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_ULPFEC_ENC,GstRtpUlpFecEncClass))
+#define GST_IS_RTP_ULPFEC_ENC(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_ULPFEC_ENC))
+#define GST_IS_RTP_ULPFEC_ENC_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_ULPFEC_ENC))
+
+typedef struct _GstRtpUlpFecEnc GstRtpUlpFecEnc;
+typedef struct _GstRtpUlpFecEncClass GstRtpUlpFecEncClass;
+
+struct _GstRtpUlpFecEncClass {
+ GstElementClass parent_class;
+};
+
+struct _GstRtpUlpFecEnc {
+ GstElement parent;
+ GstPad *srcpad;
+ GstPad *sinkpad;
+
+ GHashTable *ssrc_to_ctx;
+
+ /* properties */
+ guint pt;
+ guint32 ssrc;
+ guint percentage;
+ guint percentage_important;
+ gboolean multipacket;
+ gboolean mux_seq;
+ guint num_packets_protected;
+};
+
+typedef struct {
+ guint ssrc;
+
+ GstElement *parent;
+ GstPad *srcpad;
+
+ /* settings */
+ guint pt;
+ guint32 fec_ssrc;
+ guint percentage;
+ guint percentage_important;
+ gboolean multipacket;
+ gboolean mux_seq;
+
+ guint num_packets_protected;
+ guint16 seqnum;
+ guint seqnum_offset;
+ guint num_packets_received;
+ guint num_packets_fec;
+ guint fec_nth;
+ GQueue packets_buf;
+
+ gdouble budget;
+ gdouble budget_inc;
+ gdouble budget_important;
+ gdouble budget_inc_important;
+
+ GArray *info_arr;
+ GArray *scratch_buf;
+
+ guint fec_packets;
+ guint fec_packet_idx;
+} GstRtpUlpFecEncStreamCtx;
+
+GType gst_rtp_ulpfec_enc_get_type (void);
+
+G_END_DECLS
+
+#endif /* __GST_FEC_H__ */
diff --git a/gst/rtp/meson.build b/gst/rtp/meson.build
index 6f24152dd..522c63738 100644
--- a/gst/rtp/meson.build
+++ b/gst/rtp/meson.build
@@ -92,6 +92,15 @@ rtp_sources = [
'gstrtpstreampay.c',
'gstrtpstreamdepay.c',
'gstrtputils.c',
+ 'rtpulpfeccommon.c',
+ 'gstrtpulpfecdec.c',
+ 'gstrtpulpfecenc.c',
+ 'rtpredcommon.c',
+ 'gstrtpredenc.c',
+ 'gstrtpreddec.c',
+ 'rtpstorage.c',
+ 'rtpstoragestream.c',
+ 'gstrtpstorage.c',
]
rtp_args = [
diff --git a/gst/rtp/rtpredcommon.c b/gst/rtp/rtpredcommon.c
new file mode 100644
index 000000000..64362c53e
--- /dev/null
+++ b/gst/rtp/rtpredcommon.c
@@ -0,0 +1,90 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include "rtpredcommon.h"
+
+gsize
+rtp_red_block_header_get_length (gboolean is_redundant)
+{
+ return is_redundant ? sizeof (RedBlockHeader) : 1;
+}
+
+gboolean
+rtp_red_block_is_redundant (gpointer red_block)
+{
+ return ((RedBlockHeader *) red_block)->F;
+}
+
+guint8
+rtp_red_block_get_payload_type (gpointer red_block)
+{
+ return ((RedBlockHeader *) red_block)->pt;
+}
+
+guint16
+rtp_red_block_get_payload_length (gpointer red_block)
+{
+ RedBlockHeader *hdr = (RedBlockHeader *) red_block;
+ return (hdr->length_hi << 8) | hdr->length_lo;
+}
+
+guint16
+rtp_red_block_get_timestamp_offset (gpointer red_block)
+{
+ RedBlockHeader *hdr = (RedBlockHeader *) red_block;
+ return (hdr->timestamp_offset_hi << 6) | hdr->timestamp_offset_lo;
+}
+
+void
+rtp_red_block_set_payload_type (gpointer red_block, guint8 pt)
+{
+ ((RedBlockHeader *) red_block)->pt = pt;
+}
+
+void
+rtp_red_block_set_is_redundant (gpointer red_block, gboolean is_redundant)
+{
+ ((RedBlockHeader *) red_block)->F = is_redundant;
+}
+
+void
+rtp_red_block_set_timestamp_offset (gpointer red_block,
+ guint16 timestamp_offset)
+{
+ RedBlockHeader *hdr = (RedBlockHeader *) red_block;
+
+ g_assert (rtp_red_block_is_redundant (red_block));
+ g_assert_cmpint (timestamp_offset, <=, RED_BLOCK_TIMESTAMP_OFFSET_MAX);
+
+ hdr->timestamp_offset_lo = timestamp_offset & 0x3f;
+ hdr->timestamp_offset_hi = timestamp_offset >> 6;
+}
+
+void
+rtp_red_block_set_payload_length (gpointer red_block, guint16 length)
+{
+ RedBlockHeader *hdr = (RedBlockHeader *) red_block;
+
+ g_assert (rtp_red_block_is_redundant (red_block));
+ g_assert_cmpint (length, <=, RED_BLOCK_LENGTH_MAX);
+
+ hdr->length_lo = length & 0xff;
+ hdr->length_hi = length >> 8;
+}
diff --git a/gst/rtp/rtpredcommon.h b/gst/rtp/rtpredcommon.h
new file mode 100644
index 000000000..80fc41381
--- /dev/null
+++ b/gst/rtp/rtpredcommon.h
@@ -0,0 +1,80 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifndef __RTP_RED_COMMON_H__
+#define __RTP_RED_COMMON_H__
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+typedef struct _RedBlockHeader RedBlockHeader;
+
+/* RFC 2198 */
+/*
+ 0 1 2 3
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ |F| block PT | timestamp offset | block length |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+*/
+
+struct _RedBlockHeader {
+#if G_BYTE_ORDER == G_LITTLE_ENDIAN
+ guint pt:7;
+ guint F:1;
+
+ guint timestamp_offset_hi: 8;
+
+ guint length_hi: 2;
+ guint timestamp_offset_lo: 6;
+
+ guint length_lo: 8;
+#elif G_BYTE_ORDER == G_BIG_ENDIAN
+ guint F:1;
+ guint pt:7;
+
+ guint timestamp_offset_hi: 8;
+
+ guint timestamp_offset_lo: 6;
+ guint length_hi: 2;
+
+ guint length_lo: 8;
+#else
+#error "G_BYTE_ORDER should be big or little endian."
+#endif
+};
+
+#define RED_BLOCK_TIMESTAMP_OFFSET_MAX ((1<<14) - 1)
+#define RED_BLOCK_LENGTH_MAX ((1<<10) - 1)
+
+gsize rtp_red_block_header_get_length (gboolean is_redundant);
+gboolean rtp_red_block_is_redundant (gpointer red_block);
+void rtp_red_block_set_payload_type (gpointer red_block, guint8 pt);
+void rtp_red_block_set_timestamp_offset (gpointer red_block, guint16 timestamp_offset);
+void rtp_red_block_set_payload_length (gpointer red_block, guint16 length);
+guint16 rtp_red_block_get_timestamp_offset (gpointer red_block);
+guint8 rtp_red_block_get_payload_type (gpointer red_block);
+void rtp_red_block_set_is_redundant (gpointer red_block, gboolean is_redundant);
+guint16 rtp_red_block_get_payload_length (gpointer red_block);
+
+G_END_DECLS
+
+#endif
diff --git a/gst/rtp/rtpstorage.c b/gst/rtp/rtpstorage.c
new file mode 100644
index 000000000..098411b44
--- /dev/null
+++ b/gst/rtp/rtpstorage.c
@@ -0,0 +1,231 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include <gst/rtp/gstrtpbuffer.h>
+
+#include "rtpstorage.h"
+#include "rtpstoragestream.h"
+
+enum
+{
+ SIGNAL_PACKET_RECOVERED,
+ LAST_SIGNAL,
+};
+
+static guint rtp_storage_signals[LAST_SIGNAL] = { 0 };
+
+G_DEFINE_TYPE (RtpStorage, rtp_storage, G_TYPE_OBJECT);
+
+#define STORAGE_LOCK(s) g_mutex_lock (&(s)->streams_lock)
+#define STORAGE_UNLOCK(s) g_mutex_unlock (&(s)->streams_lock)
+#define DEFAULT_SIZE_TIME (0)
+
+static void
+rtp_storage_init (RtpStorage * self)
+{
+ self->size_time = DEFAULT_SIZE_TIME;
+ self->streams = g_hash_table_new_full (NULL, NULL, NULL,
+ (GDestroyNotify) rtp_storage_stream_free);
+ g_mutex_init (&self->streams_lock);
+}
+
+static void
+rtp_storage_dispose (GObject * obj)
+{
+ RtpStorage *self = RTP_STORAGE (obj);
+ STORAGE_LOCK (self);
+ g_hash_table_unref (self->streams);
+ self->streams = NULL;
+ STORAGE_UNLOCK (self);
+ g_mutex_clear (&self->streams_lock);
+ G_OBJECT_CLASS (rtp_storage_parent_class)->dispose (obj);
+}
+
+static void
+rtp_storage_class_init (RtpStorageClass * klass)
+{
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+
+ rtp_storage_signals[SIGNAL_PACKET_RECOVERED] =
+ g_signal_new ("packet-recovered", G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST, 0, NULL, NULL,
+ g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_BUFFER);
+
+ gobject_class->dispose = rtp_storage_dispose;
+}
+
+GstBufferList *
+rtp_storage_get_packets_for_recovery (RtpStorage * self, gint fec_pt,
+ guint32 ssrc, guint16 lost_seq)
+{
+ GstBufferList *ret = NULL;
+ RtpStorageStream *stream;
+
+ STORAGE_LOCK (self);
+ stream = g_hash_table_lookup (self->streams, GUINT_TO_POINTER (ssrc));
+ STORAGE_UNLOCK (self);
+
+ if (NULL == stream) {
+ GST_ERROR_OBJECT (self, "Cant find ssrc = 0x%x", ssrc);
+ } else {
+ STREAM_LOCK (stream);
+ if (stream->queue.length > 0) {
+ ret =
+ rtp_storage_stream_get_packets_for_recovery (stream, fec_pt,
+ lost_seq);
+ }
+ STREAM_UNLOCK (stream);
+ }
+
+ return ret;
+}
+
+GstBuffer *
+rtp_storage_get_redundant_packet (RtpStorage * self, guint32 ssrc,
+ guint16 lost_seq)
+{
+ GstBuffer *ret = NULL;
+ RtpStorageStream *stream;
+
+ STORAGE_LOCK (self);
+ stream = g_hash_table_lookup (self->streams, GUINT_TO_POINTER (ssrc));
+ STORAGE_UNLOCK (self);
+
+ if (NULL == stream) {
+ GST_ERROR_OBJECT (self, "Cant find ssrc = 0x%x", ssrc);
+ } else {
+ STREAM_LOCK (stream);
+ if (stream->queue.length > 0) {
+ ret = rtp_storage_stream_get_redundant_packet (stream, lost_seq);
+ }
+ STREAM_UNLOCK (stream);
+ }
+
+ return ret;
+}
+
+static void
+rtp_storage_do_put_recovered_packet (RtpStorage * self,
+ GstBuffer * buffer, guint8 pt, guint32 ssrc, guint16 seq)
+{
+ RtpStorageStream *stream;
+
+ STORAGE_LOCK (self);
+ stream = g_hash_table_lookup (self->streams, GUINT_TO_POINTER (ssrc));
+ STORAGE_UNLOCK (self);
+
+ g_assert (stream);
+
+ STREAM_LOCK (stream);
+ rtp_storage_stream_add_item (stream, buffer, pt, seq);
+ STREAM_UNLOCK (stream);
+}
+
+void
+rtp_storage_put_recovered_packet (RtpStorage * self,
+ GstBuffer * buffer, guint8 pt, guint32 ssrc, guint16 seq)
+{
+ rtp_storage_do_put_recovered_packet (self, buffer, pt, ssrc, seq);
+ g_signal_emit (self, rtp_storage_signals[SIGNAL_PACKET_RECOVERED], 0, buffer);
+}
+
+gboolean
+rtp_storage_append_buffer (RtpStorage * self, GstBuffer * buf)
+{
+ GstRTPBuffer rtpbuf = GST_RTP_BUFFER_INIT;
+ RtpStorageStream *stream;
+ guint32 ssrc;
+ guint8 pt;
+ guint16 seq;
+
+ if (0 == self->size_time)
+ return TRUE;
+
+ /* We are about to save it in the queue, it so it is better take a ref before
+ * mapping the buffer */
+ gst_buffer_ref (buf);
+
+ if (!gst_rtp_buffer_map (buf, GST_MAP_READ |
+ GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING, &rtpbuf)) {
+ gst_buffer_unref (buf);
+ return TRUE;
+ }
+
+ ssrc = gst_rtp_buffer_get_ssrc (&rtpbuf);
+ pt = gst_rtp_buffer_get_payload_type (&rtpbuf);
+ seq = gst_rtp_buffer_get_seq (&rtpbuf);
+
+ STORAGE_LOCK (self);
+
+ stream = g_hash_table_lookup (self->streams, GUINT_TO_POINTER (ssrc));
+ if (NULL == stream) {
+ GST_DEBUG_OBJECT (self,
+ "New media stream (ssrc=0x%08x, pt=%u) detected", ssrc, pt);
+ stream = rtp_storage_stream_new (ssrc);
+ g_hash_table_insert (self->streams, GUINT_TO_POINTER (ssrc), stream);
+ }
+
+ STORAGE_UNLOCK (self);
+
+ STREAM_LOCK (stream);
+
+ /* Saving the buffer, now the storage owns it */
+ rtp_storage_stream_resize_and_add_item (stream, self->size_time, buf, pt,
+ seq);
+
+ STREAM_UNLOCK (stream);
+
+ gst_rtp_buffer_unmap (&rtpbuf);
+
+ if (GST_BUFFER_FLAG_IS_SET (buf, GST_RTP_BUFFER_FLAG_REDUNDANT)) {
+ gst_buffer_unref (buf);
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+void
+rtp_storage_clear (RtpStorage * self)
+{
+ STORAGE_LOCK (self);
+ g_hash_table_remove_all (self->streams);
+ STORAGE_UNLOCK (self);
+}
+
+void
+rtp_storage_set_size (RtpStorage * self, GstClockTime size)
+{
+ self->size_time = size;
+ if (0 == self->size_time)
+ rtp_storage_clear (self);
+}
+
+GstClockTime
+rtp_storage_get_size (RtpStorage * self)
+{
+ return self->size_time;
+}
+
+RtpStorage *
+rtp_storage_new (void)
+{
+ return g_object_new (RTP_TYPE_STORAGE, NULL);
+}
diff --git a/gst/rtp/rtpstorage.h b/gst/rtp/rtpstorage.h
new file mode 100644
index 000000000..bd876326a
--- /dev/null
+++ b/gst/rtp/rtpstorage.h
@@ -0,0 +1,69 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifndef __RTP_STORAGE_H__
+#define __RTP_STORAGE_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+#define RTP_TYPE_STORAGE \
+ (rtp_storage_get_type())
+#define RTP_STORAGE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),RTP_TYPE_STORAGE,RtpStorage))
+#define RTP_STORAGE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),RTP_TYPE_STORAGE,RtpStorageClass))
+#define GST_IS_RTP_STORAGE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),RTP_TYPE_STORAGE))
+#define GST_IS_RTP_STORAGE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),RTP_TYPE_RED_DEC))
+
+typedef struct _RtpStorage RtpStorage;
+typedef struct _RtpStorageClass RtpStorageClass;
+
+struct _RtpStorageClass {
+ GObjectClass parent_class;
+};
+
+struct _RtpStorage {
+ GObject parent;
+ GstClockTime size_time;
+ GHashTable *streams;
+ GMutex streams_lock;
+};
+
+GstBufferList * rtp_storage_get_packets_for_recovery (RtpStorage * self, gint fec_pt,
+ guint32 ssrc, guint16 lost_seq);
+void rtp_storage_put_recovered_packet (RtpStorage * self, GstBuffer * buffer,
+ guint8 pt, guint32 ssrc, guint16 seq);
+GstBuffer * rtp_storage_get_redundant_packet (RtpStorage * self, guint32 ssrc,
+ guint16 lost_seq);
+gboolean rtp_storage_append_buffer (RtpStorage *self, GstBuffer *buffer);
+void rtp_storage_clear (RtpStorage *self);
+RtpStorage * rtp_storage_new (void);
+void rtp_storage_set_size (RtpStorage *self, GstClockTime size);
+GstClockTime rtp_storage_get_size (RtpStorage *self);
+
+GType rtp_storage_get_type (void);
+
+G_END_DECLS
+
+#endif /* __RTP_STORAGE_H__ */
diff --git a/gst/rtp/rtpstoragestream.c b/gst/rtp/rtpstoragestream.c
new file mode 100644
index 000000000..9b5d72472
--- /dev/null
+++ b/gst/rtp/rtpstoragestream.c
@@ -0,0 +1,216 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include "rtpstoragestream.h"
+
+static RtpStorageItem *
+rtp_storage_item_new (GstBuffer * buffer, guint8 pt, guint16 seq)
+{
+ RtpStorageItem *ret = g_slice_new0 (RtpStorageItem);
+ ret->buffer = buffer;
+ ret->pt = pt;
+ ret->seq = seq;
+ return ret;
+}
+
+static void
+rtp_storage_item_free (RtpStorageItem * item)
+{
+ g_assert (item->buffer != NULL);
+ gst_buffer_unref (item->buffer);
+ g_slice_free (RtpStorageItem, item);
+}
+
+static gint
+rtp_storage_item_compare (gconstpointer a, gconstpointer b, gpointer userdata)
+{
+ gint seq_diff = gst_rtp_buffer_compare_seqnum (
+ ((RtpStorageItem const *) a)->seq, ((RtpStorageItem const *) b)->seq);
+
+ if (seq_diff >= 0)
+ return 0;
+
+ return 1;
+}
+
+static void
+rtp_storage_stream_resize (RtpStorageStream * stream, GstClockTime size_time)
+{
+ GList *it;
+ guint i, too_old_buffers_num = 0;
+
+ g_assert (GST_CLOCK_TIME_IS_VALID (stream->max_arrival_time));
+ g_assert (GST_CLOCK_TIME_IS_VALID (size_time));
+ g_assert_cmpint (size_time, >, 0);
+
+ /* Iterating from oldest sequence numbers to newest */
+ for (i = 0, it = stream->queue.tail; it; it = it->prev, ++i) {
+ RtpStorageItem *item = it->data;
+ GstClockTime arrival_time = GST_BUFFER_DTS_OR_PTS (item->buffer);
+ if (GST_CLOCK_TIME_IS_VALID (arrival_time)) {
+ if (stream->max_arrival_time - arrival_time > size_time) {
+ too_old_buffers_num = i + 1;
+ } else
+ break;
+ }
+ }
+
+ for (guint i = 0; i < too_old_buffers_num; ++i) {
+ RtpStorageItem *item = g_queue_pop_tail (&stream->queue);
+ rtp_storage_item_free (item);
+ }
+}
+
+void
+rtp_storage_stream_resize_and_add_item (RtpStorageStream * stream,
+ GstClockTime size_time, GstBuffer * buffer, guint8 pt, guint16 seq)
+{
+ GstClockTime arrival_time = GST_BUFFER_DTS_OR_PTS (buffer);
+
+ if (G_LIKELY (GST_CLOCK_TIME_IS_VALID (arrival_time))) {
+ if (G_LIKELY (GST_CLOCK_TIME_IS_VALID (stream->max_arrival_time)))
+ stream->max_arrival_time = MAX (stream->max_arrival_time, arrival_time);
+ else
+ stream->max_arrival_time = arrival_time;
+
+ rtp_storage_stream_resize (stream, size_time);
+ rtp_storage_stream_add_item (stream, buffer, pt, seq);
+ } else {
+ rtp_storage_stream_add_item (stream, buffer, pt, seq);
+ }
+}
+
+RtpStorageStream *
+rtp_storage_stream_new (guint32 ssrc)
+{
+ RtpStorageStream *ret = g_slice_new0 (RtpStorageStream);
+ ret->max_arrival_time = GST_CLOCK_TIME_NONE;
+ ret->ssrc = ssrc;
+ g_mutex_init (&ret->stream_lock);
+ return ret;
+}
+
+void
+rtp_storage_stream_free (RtpStorageStream * stream)
+{
+ STREAM_LOCK (stream);
+ while (stream->queue.length)
+ rtp_storage_item_free (g_queue_pop_tail (&stream->queue));
+ STREAM_UNLOCK (stream);
+ g_mutex_clear (&stream->stream_lock);
+ g_slice_free (RtpStorageStream, stream);
+}
+
+void
+rtp_storage_stream_add_item (RtpStorageStream * stream, GstBuffer * buffer,
+ guint8 pt, guint16 seq)
+{
+ RtpStorageItem *item = rtp_storage_item_new (buffer, pt, seq);
+ GList *sibling = g_queue_find_custom (&stream->queue, item,
+ (GCompareFunc) rtp_storage_item_compare);
+
+ g_queue_insert_before (&stream->queue, sibling, item);
+}
+
+GstBufferList *
+rtp_storage_stream_get_packets_for_recovery (RtpStorageStream * stream,
+ guint8 pt_fec, guint16 lost_seq)
+{
+ guint ret_length = 0;
+ GList *end = NULL;
+ GList *start = NULL;
+ gboolean saw_fec = TRUE; /* To initialize the start pointer in the loop below */
+
+ /* Looking for media stream chunk with FEC packets at the end, which could
+ * can have the lost packet. For example:
+ *
+ * |#10 FEC| |#9 FEC| |#8| ... |#6| |#5 FEC| |#4 FEC| |#3 FEC| |#2| |#1| |#0|
+ *
+ * Say @lost_seq = 7. Want to return bufferlist with packets [#6 : #10]. Other
+ * packets are not relevant for recovery of packet 7.
+ *
+ * Or the lost packet can be in the storage. In that case single packet is returned.
+ * It can happen if:
+ * - it could have arrived right after it was considered lost (more of a corner case)
+ * - it was recovered together with the other lost packet (most likely)
+ */
+ for (GList * it = stream->queue.tail; it; it = it->prev) {
+ RtpStorageItem *item = it->data;
+ gboolean found_end = FALSE;
+
+ /* Is the buffer we lost in the storage? */
+ if (item->seq == lost_seq) {
+ start = it;
+ end = it;
+ ret_length = 1;
+ break;
+ }
+
+ if (pt_fec == item->pt) {
+ gint seq_diff = gst_rtp_buffer_compare_seqnum (lost_seq, item->seq);
+
+ if (seq_diff >= 0) {
+ if (it->prev) {
+ gboolean media_next =
+ pt_fec != ((RtpStorageItem *) it->prev->data)->pt;
+ found_end = media_next;
+ } else
+ found_end = TRUE;
+ }
+ saw_fec = TRUE;
+ } else if (saw_fec) {
+ saw_fec = FALSE;
+ start = it;
+ ret_length = 0;
+ }
+
+ ++ret_length;
+ if (found_end) {
+ end = it;
+ break;
+ }
+ }
+
+ if (end && !start)
+ start = end;
+
+ if (start && end) {
+ GstBufferList *ret = gst_buffer_list_new_sized (ret_length);
+
+ for (GList * it = start; it != end->prev; it = it->prev)
+ gst_buffer_list_add (ret,
+ gst_buffer_ref (((RtpStorageItem *) it->data)->buffer));
+ return ret;
+ }
+
+ return NULL;
+}
+
+GstBuffer *
+rtp_storage_stream_get_redundant_packet (RtpStorageStream * stream,
+ guint16 lost_seq)
+{
+ for (GList * it = stream->queue.head; it; it = it->next) {
+ RtpStorageItem *item = it->data;
+ if (item->seq == lost_seq)
+ return gst_buffer_ref (item->buffer);
+ }
+ return NULL;
+}
diff --git a/gst/rtp/rtpstoragestream.h b/gst/rtp/rtpstoragestream.h
new file mode 100644
index 000000000..9c1925734
--- /dev/null
+++ b/gst/rtp/rtpstoragestream.h
@@ -0,0 +1,60 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifndef __GST_RTP_STORAGE_ITEM_H__
+#define __GST_RTP_STORAGE_ITEM_H__
+
+#include <gst/rtp/gstrtpbuffer.h>
+
+typedef struct {
+ GstBuffer *buffer;
+ guint16 seq;
+ guint8 pt;
+} RtpStorageItem;
+
+typedef struct {
+ GQueue queue;
+ GMutex stream_lock;
+ guint32 ssrc;
+ GstClockTime max_arrival_time;
+} RtpStorageStream;
+
+#define STREAM_LOCK(s) g_mutex_lock (&(s)->stream_lock)
+#define STREAM_UNLOCK(s) g_mutex_unlock (&(s)->stream_lock)
+
+RtpStorageStream * rtp_storage_stream_new (guint32 ssrc);
+void rtp_storage_stream_free (RtpStorageStream * stream);
+void rtp_storage_stream_resize_and_add_item (RtpStorageStream * stream,
+ GstClockTime size_time,
+ GstBuffer *buffer,
+ guint8 pt,
+ guint16 seq);
+void rtp_storage_stream_add_item (RtpStorageStream * stream,
+ GstBuffer *buffer,
+ guint8 pt,
+ guint16 seq);
+GstBufferList * rtp_storage_stream_get_packets_for_recovery (RtpStorageStream *stream,
+ guint8 pt_fec,
+ guint16 lost_seq);
+GstBuffer * rtp_storage_stream_get_redundant_packet (RtpStorageStream *stream,
+ guint16 lost_seq);
+
+#endif /* __GST_RTP_STORAGE_ITEM_H__ */
+
diff --git a/gst/rtp/rtpulpfeccommon.c b/gst/rtp/rtpulpfeccommon.c
new file mode 100644
index 000000000..1960404b0
--- /dev/null
+++ b/gst/rtp/rtpulpfeccommon.c
@@ -0,0 +1,434 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include <string.h>
+#include "rtpulpfeccommon.h"
+
+#define MIN_RTP_HEADER_LEN 12
+
+typedef struct
+{
+#if G_BYTE_ORDER == G_LITTLE_ENDIAN
+ unsigned int csrc_count:4; /* CSRC count */
+ unsigned int extension:1; /* header extension flag */
+ unsigned int padding:1; /* padding flag */
+ unsigned int version:2; /* protocol version */
+ unsigned int payload_type:7; /* payload type */
+ unsigned int marker:1; /* marker bit */
+#elif G_BYTE_ORDER == G_BIG_ENDIAN
+ unsigned int version:2; /* protocol version */
+ unsigned int padding:1; /* padding flag */
+ unsigned int extension:1; /* header extension flag */
+ unsigned int csrc_count:4; /* CSRC count */
+ unsigned int marker:1; /* marker bit */
+ unsigned int payload_type:7; /* payload type */
+#else
+#error "G_BYTE_ORDER should be big or little endian."
+#endif
+ unsigned int seq:16; /* sequence number */
+ unsigned int timestamp:32; /* timestamp */
+ unsigned int ssrc:32; /* synchronization source */
+ guint8 csrclist[4]; /* optional CSRC list, 32 bits each */
+} RtpHeader;
+
+static gsize
+fec_level_hdr_get_size (gboolean l_bit)
+{
+ return sizeof (RtpUlpFecLevelHeader) - (l_bit ? 0 : 4);
+}
+
+static guint64
+fec_level_hdr_get_mask (RtpUlpFecLevelHeader const *fec_lvl_hdr, gboolean l_bit)
+{
+ return ((guint64) g_ntohs (fec_lvl_hdr->mask) << 32) |
+ (l_bit ? g_ntohl (fec_lvl_hdr->mask_continued) : 0);
+}
+
+static void
+fec_level_hdr_set_mask (RtpUlpFecLevelHeader * fec_lvl_hdr, gboolean l_bit,
+ guint64 mask)
+{
+ fec_lvl_hdr->mask = g_htons (mask >> 32);
+ if (l_bit)
+ fec_lvl_hdr->mask_continued = g_htonl (mask);
+}
+
+static guint16
+fec_level_hdr_get_protection_len (RtpUlpFecLevelHeader * fec_lvl_hdr)
+{
+ return g_ntohs (fec_lvl_hdr->protection_len);
+}
+
+static void
+fec_level_hdr_set_protection_len (RtpUlpFecLevelHeader * fec_lvl_hdr,
+ guint16 len)
+{
+ fec_lvl_hdr->protection_len = g_htons (len);
+}
+
+static RtpUlpFecLevelHeader *
+fec_hdr_get_level_hdr (RtpUlpFecHeader const *fec_hdr)
+{
+ return (RtpUlpFecLevelHeader *) (fec_hdr + 1);
+}
+
+static guint64
+fec_hdr_get_mask (RtpUlpFecHeader const *fec_hdr)
+{
+ return fec_level_hdr_get_mask (fec_hdr_get_level_hdr (fec_hdr), fec_hdr->L);
+}
+
+static guint16
+fec_hdr_get_seq_base (RtpUlpFecHeader const *fec_hdr, gboolean is_ulpfec,
+ guint16 fec_seq)
+{
+ guint16 seq = g_ntohs (fec_hdr->seq);
+ if (is_ulpfec)
+ return seq;
+ return fec_seq - seq;
+}
+
+static guint16
+fec_hdr_get_packets_len_recovery (RtpUlpFecHeader const *fec_hdr)
+{
+ return g_htons (fec_hdr->len);
+}
+
+static guint32
+fec_hdr_get_timestamp_recovery (RtpUlpFecHeader const *fec_hdr)
+{
+ return g_ntohl (fec_hdr->timestamp);
+}
+
+static void
+_xor_mem (guint8 * restrict dst, const guint8 * restrict src, gsize length)
+{
+ guint i;
+
+ for (i = 0; i < (length / sizeof (guint64)); ++i) {
+ *((guint64 *) dst) ^= *((const guint64 *) src);
+ dst += sizeof (guint64);
+ src += sizeof (guint64);
+ }
+ for (i = 0; i < (length % sizeof (guint64)); ++i)
+ dst[i] ^= src[i];
+}
+
+guint16
+rtp_ulpfec_hdr_get_protection_len (RtpUlpFecHeader const *fec_hdr)
+{
+ return fec_level_hdr_get_protection_len (fec_hdr_get_level_hdr (fec_hdr));
+}
+
+RtpUlpFecHeader *
+rtp_ulpfec_buffer_get_fechdr (GstRTPBuffer * rtp)
+{
+ return (RtpUlpFecHeader *) gst_rtp_buffer_get_payload (rtp);
+}
+
+guint64
+rtp_ulpfec_buffer_get_mask (GstRTPBuffer * rtp)
+{
+ return fec_hdr_get_mask (rtp_ulpfec_buffer_get_fechdr (rtp));
+}
+
+guint16
+rtp_ulpfec_buffer_get_seq_base (GstRTPBuffer * rtp)
+{
+ return g_ntohs (rtp_ulpfec_buffer_get_fechdr (rtp)->seq);
+}
+
+guint
+rtp_ulpfec_get_headers_len (gboolean fec_mask_long)
+{
+ return sizeof (RtpUlpFecHeader) + fec_level_hdr_get_size (fec_mask_long);
+}
+
+guint64
+rtp_ulpfec_packet_mask_from_seqnum (guint16 seq,
+ guint16 fec_seq_base, gboolean fec_mask_long)
+{
+ gint seq_delta = gst_rtp_buffer_compare_seqnum (fec_seq_base, seq);
+ if (seq_delta >= 0
+ && seq_delta <= RTP_ULPFEC_SEQ_BASE_OFFSET_MAX (fec_mask_long))
+ return 1ULL << (RTP_ULPFEC_SEQ_BASE_OFFSET_MAX (TRUE) - seq_delta);
+ return 0;
+}
+
+gboolean
+rtp_ulpfec_mask_is_long (guint64 mask)
+{
+ return (mask & 0xffffffff) ? TRUE : FALSE;
+}
+
+gboolean
+rtp_ulpfec_buffer_is_valid (GstRTPBuffer * rtp)
+{
+ guint payload_len = gst_rtp_buffer_get_payload_len (rtp);
+ RtpUlpFecHeader *fec_hdr;
+ guint fec_hdrs_len;
+ guint fec_packet_len;
+
+ if (payload_len < sizeof (RtpUlpFecHeader))
+ goto toosmall;
+
+ fec_hdr = rtp_ulpfec_buffer_get_fechdr (rtp);
+ if (fec_hdr->E)
+ goto invalidcontent;
+
+ fec_hdrs_len = rtp_ulpfec_get_headers_len (fec_hdr->L);
+ if (payload_len < fec_hdrs_len)
+ goto toosmall;
+
+ fec_packet_len = fec_hdrs_len + rtp_ulpfec_hdr_get_protection_len (fec_hdr);
+ if (fec_packet_len != payload_len)
+ goto lengthmismatch;
+
+ return TRUE;
+toosmall:
+ GST_WARNING ("FEC packet too small");
+ return FALSE;
+
+lengthmismatch:
+ GST_WARNING ("invalid FEC packet (declared length %u, real length %u)",
+ fec_packet_len, payload_len);
+ return FALSE;
+
+invalidcontent:
+ GST_WARNING ("FEC Header contains invalid fields: %u", fec_hdr->E);
+ return FALSE;
+}
+
+
+void
+rtp_buffer_to_ulpfec_bitstring (GstRTPBuffer * rtp, GArray * dst_arr,
+ gboolean fec_buffer, gboolean fec_mask_long)
+{
+ if (G_UNLIKELY (fec_buffer)) {
+ guint payload_len = gst_rtp_buffer_get_payload_len (rtp);
+ g_array_set_size (dst_arr, MAX (payload_len, dst_arr->len));
+ memcpy (dst_arr->data, gst_rtp_buffer_get_payload (rtp), payload_len);
+ } else {
+ const guint8 *src = rtp->data[0];
+ guint len = gst_rtp_buffer_get_packet_len (rtp) - MIN_RTP_HEADER_LEN;
+ guint dst_offset = rtp_ulpfec_get_headers_len (fec_mask_long);
+ guint src_offset = MIN_RTP_HEADER_LEN;
+ guint8 *dst;
+
+ g_array_set_size (dst_arr, MAX (dst_offset + len, dst_arr->len));
+ dst = (guint8 *) dst_arr->data;
+
+ *((guint64 *) dst) ^= *((const guint64 *) src);
+ ((RtpUlpFecHeader *) dst)->len ^= g_htons (len);
+ _xor_mem (dst + dst_offset, src + src_offset, len);
+ }
+}
+
+GstBuffer *
+rtp_ulpfec_bitstring_to_media_rtp_buffer (GArray * arr,
+ gboolean fec_mask_long, guint32 ssrc, guint16 seq)
+{
+ guint fec_hdrs_len = rtp_ulpfec_get_headers_len (fec_mask_long);
+ guint payload_len =
+ fec_hdr_get_packets_len_recovery ((RtpUlpFecHeader *) arr->data);
+ GstMapInfo ret_info = GST_MAP_INFO_INIT;
+ GstMemory *ret_mem;
+ GstBuffer *ret;
+
+ if (payload_len > arr->len - fec_hdrs_len)
+ return NULL; // Not enough data
+
+ ret_mem = gst_allocator_alloc (NULL, MIN_RTP_HEADER_LEN + payload_len, NULL);
+ gst_memory_map (ret_mem, &ret_info, GST_MAP_READWRITE);
+
+ /* Filling 12 bytes of RTP header */
+ *((guint64 *) ret_info.data) = *((guint64 *) arr->data);
+ ((RtpHeader *) ret_info.data)->version = 2;
+ ((RtpHeader *) ret_info.data)->seq = g_htons (seq);
+ ((RtpHeader *) ret_info.data)->ssrc = g_htonl (ssrc);
+ /* Filling payload */
+ memcpy (ret_info.data + MIN_RTP_HEADER_LEN,
+ arr->data + fec_hdrs_len, payload_len);
+
+ gst_memory_unmap (ret_mem, &ret_info);
+ ret = gst_buffer_new ();
+ gst_buffer_append_memory (ret, ret_mem);
+ return ret;
+}
+
+GstBuffer *
+rtp_ulpfec_bitstring_to_fec_rtp_buffer (GArray * arr,
+ guint16 seq_base, gboolean fec_mask_long, guint64 fec_mask,
+ gboolean marker, guint8 pt, guint16 seq, guint32 timestamp, guint32 ssrc)
+{
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ GstBuffer *ret;
+
+ /* Filling FEC headers */
+ {
+ RtpUlpFecHeader *hdr = (RtpUlpFecHeader *) arr->data;
+ RtpUlpFecLevelHeader *lvlhdr;
+ hdr->E = 0;
+ hdr->L = fec_mask_long;
+ hdr->seq = g_htons (seq_base);
+
+ lvlhdr = fec_hdr_get_level_hdr (hdr);
+ fec_level_hdr_set_protection_len (lvlhdr,
+ arr->len - rtp_ulpfec_get_headers_len (fec_mask_long));
+ fec_level_hdr_set_mask (lvlhdr, fec_mask_long, fec_mask);
+ }
+
+ /* Filling RTP header, copying payload */
+ ret = gst_rtp_buffer_new_allocate (arr->len, 0, 0);
+ if (!gst_rtp_buffer_map (ret, GST_MAP_READWRITE, &rtp))
+ g_assert_not_reached ();
+
+ gst_rtp_buffer_set_marker (&rtp, marker);
+ gst_rtp_buffer_set_payload_type (&rtp, pt);
+ gst_rtp_buffer_set_seq (&rtp, seq);
+ gst_rtp_buffer_set_timestamp (&rtp, timestamp);
+ gst_rtp_buffer_set_ssrc (&rtp, ssrc);
+
+ memcpy (gst_rtp_buffer_get_payload (&rtp), arr->data, arr->len);
+
+ gst_rtp_buffer_unmap (&rtp);
+
+ return ret;
+}
+
+/**
+ * rtp_ulpfec_map_info_map:
+ * @buffer: (transfer: full) #GstBuffer
+ * @info: #RtpUlpFecMapInfo
+ *
+ * Maps the contents of @buffer into @info. If @buffer made of many #GstMemory
+ * objects, merges them together to create a new buffer made of single
+ * continious #GstMemory.
+ *
+ * Returns: %TRUE if @buffer could be mapped
+ **/
+gboolean
+rtp_ulpfec_map_info_map (GstBuffer * buffer, RtpUlpFecMapInfo * info)
+{
+ /* We need to make sure we are working with continious memory chunk.
+ * If not merge all memories together */
+ if (gst_buffer_n_memory (buffer) > 1) {
+ GstBuffer *new_buffer = gst_buffer_new ();
+ GstMemory *mem = gst_buffer_get_all_memory (buffer);
+ gst_buffer_append_memory (new_buffer, mem);
+
+ /* We supposed to own the old buffer, but we don't use it here, so unref */
+ gst_buffer_unref (buffer);
+ buffer = new_buffer;
+ }
+
+ if (!gst_rtp_buffer_map (buffer,
+ GST_MAP_READ | GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING, &info->rtp)) {
+ /* info->rtp.buffer = NULL is an indication for rtp_ulpfec_map_info_unmap()
+ * that mapping has failed */
+ g_assert (NULL == info->rtp.buffer);
+ gst_buffer_unref (buffer);
+ return FALSE;
+ }
+ return TRUE;
+}
+
+/**
+ * rtp_ulpfec_map_info_unmap:
+ * @info: #RtpUlpFecMapInfo
+ *
+ * Unmap @info previously mapped with rtp_ulpfec_map_info_map() and unrefs the
+ * buffer. For convinience can even be called even if rtp_ulpfec_map_info_map
+ * returned FALSE
+ **/
+void
+rtp_ulpfec_map_info_unmap (RtpUlpFecMapInfo * info)
+{
+ GstBuffer *buffer = info->rtp.buffer;
+
+ if (buffer) {
+ gst_rtp_buffer_unmap (&info->rtp);
+ gst_buffer_unref (buffer);
+ }
+}
+
+void
+rtp_ulpfec_log_rtppacket (GstDebugCategory * cat, GstDebugLevel level,
+ gpointer object, const gchar * name, GstRTPBuffer * rtp)
+{
+ guint seq;
+ guint ssrc;
+ guint timestamp;
+ guint pt;
+
+ if (level > gst_debug_category_get_threshold (cat))
+ return;
+
+ seq = gst_rtp_buffer_get_seq (rtp);
+ ssrc = gst_rtp_buffer_get_ssrc (rtp);
+ timestamp = gst_rtp_buffer_get_timestamp (rtp);
+ pt = gst_rtp_buffer_get_payload_type (rtp);
+
+ GST_CAT_LEVEL_LOG (cat, level, object,
+ "%-22s: [%c%c%c%c] ssrc=0x%08x pt=%u tstamp=%u seq=%u size=%u(%u,%u)",
+ name,
+ gst_rtp_buffer_get_marker (rtp) ? 'M' : ' ',
+ gst_rtp_buffer_get_extension (rtp) ? 'X' : ' ',
+ gst_rtp_buffer_get_padding (rtp) ? 'P' : ' ',
+ gst_rtp_buffer_get_csrc_count (rtp) > 0 ? 'C' : ' ',
+ ssrc, pt, timestamp, seq,
+ gst_rtp_buffer_get_packet_len (rtp),
+ gst_rtp_buffer_get_packet_len (rtp) - MIN_RTP_HEADER_LEN,
+ gst_rtp_buffer_get_payload_len (rtp));
+}
+
+void
+rtp_ulpfec_log_fec_packet (GstDebugCategory * cat, GstDebugLevel level,
+ gpointer object, GstRTPBuffer * fecrtp)
+{
+ RtpUlpFecHeader *fec_hdr;
+ RtpUlpFecLevelHeader *fec_level_hdr;
+
+ if (level > gst_debug_category_get_threshold (cat))
+ return;
+
+ fec_hdr = gst_rtp_buffer_get_payload (fecrtp);
+ GST_CAT_LEVEL_LOG (cat, level, object,
+ "%-22s: [%c%c%c%c%c%c] pt=%u tstamp=%u seq=%u recovery_len=%u",
+ "fec header",
+ fec_hdr->E ? 'E' : ' ',
+ fec_hdr->L ? 'L' : ' ',
+ fec_hdr->P ? 'P' : ' ',
+ fec_hdr->X ? 'X' : ' ',
+ fec_hdr->CC ? 'C' : ' ',
+ fec_hdr->M ? 'M' : ' ',
+ fec_hdr->pt,
+ fec_hdr_get_timestamp_recovery (fec_hdr),
+ fec_hdr_get_seq_base (fec_hdr, TRUE,
+ gst_rtp_buffer_get_seq (fecrtp)),
+ fec_hdr_get_packets_len_recovery (fec_hdr));
+
+ fec_level_hdr = fec_hdr_get_level_hdr (fec_hdr);
+ GST_CAT_LEVEL_LOG (cat, level, object,
+ "%-22s: protection_len=%u mask=0x%012lx",
+ "fec level header",
+ g_ntohs (fec_level_hdr->protection_len),
+ fec_level_hdr_get_mask (fec_level_hdr, fec_hdr->L));
+}
diff --git a/gst/rtp/rtpulpfeccommon.h b/gst/rtp/rtpulpfeccommon.h
new file mode 100644
index 000000000..496bc5f17
--- /dev/null
+++ b/gst/rtp/rtpulpfeccommon.h
@@ -0,0 +1,139 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifndef __RTP_ULPFEC_COMMON_H__
+#define __RTP_ULPFEC_COMMON_H__
+
+#include <gst/rtp/gstrtpbuffer.h>
+
+G_BEGIN_DECLS
+
+#define GST_WARNING_RTP_PACKET(obj, name, pkt) rtp_ulpfec_log_rtppacket (GST_CAT_DEFAULT, GST_LEVEL_WARNING, obj, name, pkt)
+#define GST_LOG_RTP_PACKET(obj, name, pkt) rtp_ulpfec_log_rtppacket (GST_CAT_DEFAULT, GST_LEVEL_LOG, obj, name, pkt)
+#define GST_DEBUG_RTP_PACKET(obj, name, pkt) rtp_ulpfec_log_rtppacket (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, obj, name, pkt)
+#define GST_INFO_RTP_PACKET(obj, name, pkt) rtp_ulpfec_log_rtppacket (GST_CAT_DEFAULT, GST_LEVEL_INFO, obj, name, pkt)
+#define GST_WARNING_FEC_PACKET(obj, pkt) rtp_ulpfec_log_fec_packet (GST_CAT_DEFAULT, GST_LEVEL_WARNING, obj, pkt)
+#define GST_DEBUG_FEC_PACKET(obj, pkt) rtp_ulpfec_log_fec_packet (GST_CAT_DEFAULT, GST_LEVEL_DEBUG, obj, pkt)
+#define GST_INFO_FEC_PACKET(obj, pkt) rtp_ulpfec_log_fec_packet (GST_CAT_DEFAULT, GST_LEVEL_INFO, obj, pkt)
+
+#define RTP_ULPFEC_PROTECTED_PACKETS_MAX(L) ((L) ? 48 : 16)
+#define RTP_ULPFEC_SEQ_BASE_OFFSET_MAX(L) (RTP_ULPFEC_PROTECTED_PACKETS_MAX(L) - 1)
+
+/**
+ * RtpUlpFecMapInfo: Helper wraper around GstRTPBuffer
+ *
+ * @rtp: mapped RTP buffer
+ **/
+typedef struct {
+ // FIXME: it used to contain more fileds now we are left with only GstRTPBuffer.
+ // it will be nice to use it directly
+ GstRTPBuffer rtp;
+} RtpUlpFecMapInfo;
+
+/* RFC 5109 */
+/*
+ 0 1 2 3
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ |E|L|P|X| CC |M| PT recovery | SN base |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | TS recovery |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | length recovery |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Figure 3: FEC Header Format
+*/
+#if G_BYTE_ORDER == G_LITTLE_ENDIAN
+typedef struct {
+ guint8 CC:4;
+ guint8 X:1;
+ guint8 P:1;
+ guint8 L:1;
+ guint8 E:1;
+
+ guint8 pt:7;
+ guint8 M:1;
+
+ guint16 seq;
+ guint32 timestamp;
+ guint16 len;
+} __attribute__ ((packed)) RtpUlpFecHeader;
+#else
+typedef struct {
+ guint8 E:1;
+ guint8 L:1;
+ guint8 P:1;
+ guint8 X:1;
+ guint8 CC:4;
+
+ guint8 M:1;
+ guint8 pt:7;
+
+ guint16 seq;
+ guint32 timestamp;
+ guint16 len;
+} __attribute__ ((packed)) RtpUlpFecHeader;
+#endif
+
+/*
+ 0 1 2 3
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | Protection Length | mask |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | mask cont. (present only when L = 1) |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+
+ Figure 4: ULP Level Header Format
+*/
+typedef struct
+{
+ guint16 protection_len;
+ guint16 mask;
+ guint32 mask_continued;
+} __attribute__ ((packed)) RtpUlpFecLevelHeader;
+
+gboolean rtp_ulpfec_map_info_map (GstBuffer *buffer, RtpUlpFecMapInfo *info);
+void rtp_ulpfec_map_info_unmap (RtpUlpFecMapInfo *info);
+void rtp_buffer_to_ulpfec_bitstring (GstRTPBuffer *rtp, GArray *dst_arr,
+ gboolean fec_buffer, gboolean fec_mask_long);
+GstBuffer * rtp_ulpfec_bitstring_to_media_rtp_buffer (GArray *arr,
+ gboolean fec_mask_long, guint32 ssrc, guint16 seq);
+GstBuffer * rtp_ulpfec_bitstring_to_fec_rtp_buffer (GArray *arr, guint16 seq_base, gboolean fec_mask_long,
+ guint64 fec_mask, gboolean marker, guint8 pt, guint16 seq,
+ guint32 timestamp, guint32 ssrc);
+void rtp_ulpfec_log_rtppacket (GstDebugCategory * cat, GstDebugLevel level,
+ gpointer object, const gchar *name,
+ GstRTPBuffer *rtp);
+void rtp_ulpfec_log_fec_packet (GstDebugCategory * cat, GstDebugLevel level,
+ gpointer object, GstRTPBuffer *fecrtp);
+RtpUlpFecHeader * rtp_ulpfec_buffer_get_fechdr (GstRTPBuffer *rtp);
+guint rtp_ulpfec_get_headers_len (gboolean fec_mask_long);
+guint16 rtp_ulpfec_hdr_get_protection_len (RtpUlpFecHeader const *fec_hdr);
+guint64 rtp_ulpfec_packet_mask_from_seqnum (guint16 seq, guint16 fec_seq_base, gboolean fec_mask_long);
+guint64 rtp_ulpfec_buffer_get_mask (GstRTPBuffer *rtp);
+guint16 rtp_ulpfec_buffer_get_seq_base (GstRTPBuffer *rtp);
+gboolean rtp_ulpfec_mask_is_long (guint64 mask);
+gboolean rtp_ulpfec_buffer_is_valid (GstRTPBuffer * rtp);
+
+G_END_DECLS
+
+#endif
diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am
index d850bc53c..bda87bee1 100644
--- a/tests/check/Makefile.am
+++ b/tests/check/Makefile.am
@@ -251,7 +251,10 @@ check_rtpmanager = \
elements/rtpjitterbuffer \
elements/rtpmux \
elements/rtprtx \
- elements/rtpsession
+ elements/rtpsession \
+ elements/rtpstorage \
+ elements/rtpred \
+ elements/rtpfec
else
check_rtpmanager =
endif
@@ -611,6 +614,15 @@ elements_rtpaux_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstrtp-$(GST_API_VERSION) $(L
elements_rtpbundle_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
elements_rtpbundle_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstrtp-$(GST_API_VERSION) $(LDADD)
+elements_rtpstorage_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
+elements_rtpstorage_LDADD = $(GST_PLUGINS_BASE_LIBS) $(GST_NET_LIBS) -lgstrtp-$(GST_API_VERSION) $(GIO_LIBS) $(LDADD)
+
+elements_rtpred_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
+elements_rtpred_LDADD = $(GST_PLUGINS_BASE_LIBS) $(GST_NET_LIBS) -lgstrtp-$(GST_API_VERSION) $(GIO_LIBS) $(LDADD)
+
+elements_rtpfec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
+elements_rtpfec_LDADD = $(GST_PLUGINS_BASE_LIBS) $(GST_NET_LIBS) -lgstrtp-$(GST_API_VERSION) $(GIO_LIBS) $(LDADD)
+
# FIXME: configure should check for gdk-pixbuf not gtk
# only need video.h header, not the lib
elements_gdkpixbufsink_CFLAGS = \
diff --git a/tests/check/elements/packets.h b/tests/check/elements/packets.h
new file mode 100644
index 000000000..658b375d6
--- /dev/null
+++ b/tests/check/elements/packets.h
@@ -0,0 +1,239 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifndef FEC_SAMPLE_PACKETS_H_
+#define FEC_SAMPLE_PACKETS_H_
+
+#define SAMPLE1_4PKTS_1 "\x80\x7e\x21\x1c\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x61\x9a\x00\x08\x06\x7e\x85\x76\x29\xd9\xb7\xe8\x45\x0b\xbf\xf5\x6f\xab\x7f\xc1\xf7\x81\x4f\xc3\x1d\x65\xd8\x27\xa7\xfa\x15\x73\xf9\x8c\xb9\xfe\xf3\x6f\xeb\x5f\xfa\xbf\xd7\xbc\x18\x2f\x70\x9f\x84\x81\x89\x7d\xfc\x5d\x7a\x6e\xfe\x55\x97\xd6\xbd\xff\xd3\xd7\xf1\x1e\xba\xe2\x35\xed\xd7\xe9\x02\x2f\x71\x41\xff\xd7\x02\x4f\x81\x23\xdc\x47\xbd\x94\xb4\xd7\xf5\xc1\x27\x7b\x95\x52\x6b\xee\x08\xb7\xf2\xbe\x27\xd7\xba\xd9\x7d\x7a\x11\xdf\x9f\x12\xf3\x57\xf9\xee\x7a\x7e\xba\xe5\xf5\x7b\xef\xd5\xc3\xba\xfd\x27\x54\xd5\x3e\x75\x6b\xc7\xf8\x83\x6b\xec\x58\x23\xaf\x8a\xb9\x69\xf2\x7e\x97\x97\xdd\x4f\x57\xae\xb5\x7d\xef\x93\xc9\xaf\xad\x7e\x7e\xb5\x5c\x96\xbf\x86\x32\x99\xef\xf8\x53\xfd\xeb\xd1\x29\x6f\xe1\x3d\x73\x66\xeb\x84\xfa\x54\x97\xf0\x47\x5f\x2e\xff\x05\xde\xf7\xf2\xf9\xeb\x4e\xdf\xfa\xc1\x7c\xbd\xaa\xea\xf5\xd6\xab\xfb\x7e\x85\xd2\xd4\x9d\x6a\xf8\x9e\xbe\xd9\x7a\xb7\xd7\xbe\xba\xf3\xcb\x83\xde\xbe\xaf\xdd\x6a\xff\x2d\x2e\x6c\xf2\x75\x7e\xee\xd7\xf5\xee\xbe\xfb\xf7\x04\xba\xfd\x5b\xe5\xf7\xde\xf5\x5c\x11\xef\x98\x51\x1c\xf9\x59\x7f\x5c\x27\xdf\xbc\xfb\xf7\x2d\x6f\xcf\xd6\x55\xeb\xae\x5f\x2d\xfb\xe6\xa5\xd7\x2f\x63\xad\xc5\x70\xdf\xba\xf4\xff\xfa\x7e\xc1\x15\xff\x4b\xd7\x28\x9e\x21\xf6\xd5\x39\x99\xf2\x74\xfe\x6b\xf2\xd7\xe2\x6f\xfb\x7d\x1f\x17\xf4\x7f\x37\x2f\x63\xf3\x7b\xf0\x7b\x5c\xbd\x8e\xbb\xbf\x5f\xc1\xef\x8d\xbe\xf2\xa9\xd7\x59\x7a\xf3\x5e\x9f\x7a\xd7\xc9\xde\x22\xff\x25\x7a\xe4\xe5\xcf\x8b\xe9\x7b\x5d\x2f\x77\x09\xef\xf5\xd2\x35\xef\xe8\x9b\x3f\xc9\x7f\xea\xc3\x51\x3d\x7a\x77\xcb\x7b\xfa\xf5\x37\x5e\xfb\xdf\xf2\x7a\x17\x9a\x9f\xf2\x53\xfd\x5f\x27\x5f\x0e\x08\xdb\xb7\x5f\xc3\x54\x99\x6b\x45\xff\x82\x2a\x0b\xb5\x72\x71\xdc\xb5\xc3\x36\x3e\xbe\xff\xa2\xec\x5f\x82\x4a\xfe\xf5\x2c\x35\x57\xfa\xbb\xe1\x9b\x1f\x5d\x7f\xf3\x6a\x4b\x1d\xdb\x15\xd7\xa3\xfd\xeb\xe6\xba\x74\xfa\xfa\xbd\x75\x7a\xe4\xd7\xf2\xef\xf5\x5c\x4e\xc7\x63\x99\x8b\x1f\x82\x1e\xfe\xf8\x4b\xb7\x5f\xef\xaf\xc3\x77\xfd\xeb\xfe\xb5\xee\x4e\xbd\x75\x37\xaf\x84\x2c\x7f\x5f\x5d\x49\xd2\xe4\x6b\x5f\x2e\x9e\xf7\x5c\x23\xd7\xaf\xae\x07\xa0\x6e\xbd\xf2\xfb\x6f\x82\x8e\x8d\x25\xef\xf3\x5f\xf8\x5f\xd3\xa7\x4f\x1d\x7f\xeb\x36\x30\xbb\xdf\x87\x4b\x62\xe4\xd7\xaf\xde\xa4\xb4\x23\xbf\x5f\xaf\x7a\xad\x86\xf4\x0e\xcd\xc7\xe9\xf5\x9b\x8a\xb1\xf4\xfb\xcd\xf1\x34\xe9\xf7\x93\x82\x3d\x0f\x94\xba\xf0\xc7\x86\x3b\x9a\x9d\x3e\xe5\xf7\xdc\x4f\x92\x56\xff\x37\x77\xec\x4d\x7b\x7f\xfb\xfd\xed\xdb\x5b\x04\xfd\xfa\xdd\x2e\xc4\x7b\x7a\x7f\x35\xaf\xe2\x74\x3a\x1f\x45\xff\x5e\x97\x28\x2d\xe8\x5e\xc6\xef\x89\xdb\xd0\xff\xf9\xaf\xad\x4f\xe5\xb9\x36\x3c\x9a\xbe\x4b\x17\x7c\x4f\x55\x55\xfc\x4f\xa8\xc9\xcf\xfc\x9d\x7e\xfa\xfc\x4d\xff\x65\xe0\x8b\xaa\xca\x6f\x5c\x9e\xde\x22\x6b\x76\xfd\x84\xb9\x98\xf7\x76\x19\x5e\xef\x5f\xd0\x22\xa3\xfd\xf2\xd8\x52\x9b\xfa\xb7\xa1\x7e\xcb\xb2\xf2\xcc\xa7\xfc\x67\xbf\x4e\xfd\x8d\x8b\xe0\x8b\xdf\x55\xe4\xcb\x5c\x31\x43\xe6\x63\xaf\xaf\xf0\x85\x6b\xb1\xdb\xef\xf0\x87\x36\xdf\xb0\x27\x5e\xaf\x9b\x5d\xf0\xed\x76\xd2\xf6\xf7\x3a\xff\xc7\xf9\xff\x6a\xc1\xfe\x0c\x34\x6c\x7e\xef\xba\x7f\xf0\x4b\xaa\xa6\x83\xf5\xdd\x5b\xd8\x2a\xe8\x55\xaa\xaa\xf2\xae\xbd\x27\x58\xbe\xbd\xf2\x7a\x6b\x87\xbd\x2d\x8a\xbb\x1a\xdb\xaf\xad\x93\x7f\xc1\x25\x6b\x65\xf3\x72\xfa\xe1\x5a\x13\x1f\x4b\x54\xff\xae\x7a\xa7\xff\xdd\xff\x8a\xbf\x42\xfe\x12\xe8\x7d\xfe\x3b\xbb\x1a\xfb\x77\xff\x0f\x2d\x49\xcd\xa7\xf8\xee\x8b\xb1\xcf\x2f\xe1\x3c\xea\x7d\x7f\x24\x0c\x19\xfa\xb5\x75\x6b\xe4\xdf\x37\x37\xbf\x84\xfd\x71\xb7\xc5\xb4\xdc\x46\xb5\xd6\xb5\x7c\x11\xd7\xeb\xe1\xbb\x3e\xd4\xff\xfa\xc5\x37\xab\xfc\x94\xff\xbc\xc6\xff\x09\x69\xfb\xfd\xef\xeb\xe7\xf4\x12\xf5\xdf\xe0\x8f\x9a\xed\xf0\x49\xe9\x3b\xe5\xe8\xbe\x2f\x22\x9f\x2c\x6f\x9a\xc7\xa7\xe1\xaa\x7d\x75\xff\x85\xa4\x2f\xfd\xd7\x7f\xfc\xfc\x2b\xb1\x6b\x5a\xdf\xd7\xf5\xbf\xdc\x0d\xb9\xba\xb5\xf5\x2a\x7b\x9b\xaf\x57\x26\xc1\xfe\x4a\x07\xfc\x9e\xcf\xc9\xd1\xa3\xf0\x97\x35\xeb\xae\x69\x08\xf5\xcd\xd0\x3e\x07\xb0\x5f\x27\xbe\x13\xe9\xef\xf8\x24\xa5\xf5\xf2\xd1\xfe\x89\xdf\xe1\x3f\x47\xba\xf4\x7a\xef\xff\x2d\xff\x82\xdf\x6c\xdf\xd7\xc3\x9e\xd7\x7f\xa2\x80"
+#define SAMPLE1_4PKTS_1_FEC "\x80\x16\x03\x57\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x00\x7e\x21\x1c\xe5\xf5\x8a\xaf\x03\xe3\x03\xe3\x80\x00\x61\x9a\x00\x08\x06\x7e\x85\x76\x29\xd9\xb7\xe8\x45\x0b\xbf\xf5\x6f\xab\x7f\xc1\xf7\x81\x4f\xc3\x1d\x65\xd8\x27\xa7\xfa\x15\x73\xf9\x8c\xb9\xfe\xf3\x6f\xeb\x5f\xfa\xbf\xd7\xbc\x18\x2f\x70\x9f\x84\x81\x89\x7d\xfc\x5d\x7a\x6e\xfe\x55\x97\xd6\xbd\xff\xd3\xd7\xf1\x1e\xba\xe2\x35\xed\xd7\xe9\x02\x2f\x71\x41\xff\xd7\x02\x4f\x81\x23\xdc\x47\xbd\x94\xb4\xd7\xf5\xc1\x27\x7b\x95\x52\x6b\xee\x08\xb7\xf2\xbe\x27\xd7\xba\xd9\x7d\x7a\x11\xdf\x9f\x12\xf3\x57\xf9\xee\x7a\x7e\xba\xe5\xf5\x7b\xef\xd5\xc3\xba\xfd\x27\x54\xd5\x3e\x75\x6b\xc7\xf8\x83\x6b\xec\x58\x23\xaf\x8a\xb9\x69\xf2\x7e\x97\x97\xdd\x4f\x57\xae\xb5\x7d\xef\x93\xc9\xaf\xad\x7e\x7e\xb5\x5c\x96\xbf\x86\x32\x99\xef\xf8\x53\xfd\xeb\xd1\x29\x6f\xe1\x3d\x73\x66\xeb\x84\xfa\x54\x97\xf0\x47\x5f\x2e\xff\x05\xde\xf7\xf2\xf9\xeb\x4e\xdf\xfa\xc1\x7c\xbd\xaa\xea\xf5\xd6\xab\xfb\x7e\x85\xd2\xd4\x9d\x6a\xf8\x9e\xbe\xd9\x7a\xb7\xd7\xbe\xba\xf3\xcb\x83\xde\xbe\xaf\xdd\x6a\xff\x2d\x2e\x6c\xf2\x75\x7e\xee\xd7\xf5\xee\xbe\xfb\xf7\x04\xba\xfd\x5b\xe5\xf7\xde\xf5\x5c\x11\xef\x98\x51\x1c\xf9\x59\x7f\x5c\x27\xdf\xbc\xfb\xf7\x2d\x6f\xcf\xd6\x55\xeb\xae\x5f\x2d\xfb\xe6\xa5\xd7\x2f\x63\xad\xc5\x70\xdf\xba\xf4\xff\xfa\x7e\xc1\x15\xff\x4b\xd7\x28\x9e\x21\xf6\xd5\x39\x99\xf2\x74\xfe\x6b\xf2\xd7\xe2\x6f\xfb\x7d\x1f\x17\xf4\x7f\x37\x2f\x63\xf3\x7b\xf0\x7b\x5c\xbd\x8e\xbb\xbf\x5f\xc1\xef\x8d\xbe\xf2\xa9\xd7\x59\x7a\xf3\x5e\x9f\x7a\xd7\xc9\xde\x22\xff\x25\x7a\xe4\xe5\xcf\x8b\xe9\x7b\x5d\x2f\x77\x09\xef\xf5\xd2\x35\xef\xe8\x9b\x3f\xc9\x7f\xea\xc3\x51\x3d\x7a\x77\xcb\x7b\xfa\xf5\x37\x5e\xfb\xdf\xf2\x7a\x17\x9a\x9f\xf2\x53\xfd\x5f\x27\x5f\x0e\x08\xdb\xb7\x5f\xc3\x54\x99\x6b\x45\xff\x82\x2a\x0b\xb5\x72\x71\xdc\xb5\xc3\x36\x3e\xbe\xff\xa2\xec\x5f\x82\x4a\xfe\xf5\x2c\x35\x57\xfa\xbb\xe1\x9b\x1f\x5d\x7f\xf3\x6a\x4b\x1d\xdb\x15\xd7\xa3\xfd\xeb\xe6\xba\x74\xfa\xfa\xbd\x75\x7a\xe4\xd7\xf2\xef\xf5\x5c\x4e\xc7\x63\x99\x8b\x1f\x82\x1e\xfe\xf8\x4b\xb7\x5f\xef\xaf\xc3\x77\xfd\xeb\xfe\xb5\xee\x4e\xbd\x75\x37\xaf\x84\x2c\x7f\x5f\x5d\x49\xd2\xe4\x6b\x5f\x2e\x9e\xf7\x5c\x23\xd7\xaf\xae\x07\xa0\x6e\xbd\xf2\xfb\x6f\x82\x8e\x8d\x25\xef\xf3\x5f\xf8\x5f\xd3\xa7\x4f\x1d\x7f\xeb\x36\x30\xbb\xdf\x87\x4b\x62\xe4\xd7\xaf\xde\xa4\xb4\x23\xbf\x5f\xaf\x7a\xad\x86\xf4\x0e\xcd\xc7\xe9\xf5\x9b\x8a\xb1\xf4\xfb\xcd\xf1\x34\xe9\xf7\x93\x82\x3d\x0f\x94\xba\xf0\xc7\x86\x3b\x9a\x9d\x3e\xe5\xf7\xdc\x4f\x92\x56\xff\x37\x77\xec\x4d\x7b\x7f\xfb\xfd\xed\xdb\x5b\x04\xfd\xfa\xdd\x2e\xc4\x7b\x7a\x7f\x35\xaf\xe2\x74\x3a\x1f\x45\xff\x5e\x97\x28\x2d\xe8\x5e\xc6\xef\x89\xdb\xd0\xff\xf9\xaf\xad\x4f\xe5\xb9\x36\x3c\x9a\xbe\x4b\x17\x7c\x4f\x55\x55\xfc\x4f\xa8\xc9\xcf\xfc\x9d\x7e\xfa\xfc\x4d\xff\x65\xe0\x8b\xaa\xca\x6f\x5c\x9e\xde\x22\x6b\x76\xfd\x84\xb9\x98\xf7\x76\x19\x5e\xef\x5f\xd0\x22\xa3\xfd\xf2\xd8\x52\x9b\xfa\xb7\xa1\x7e\xcb\xb2\xf2\xcc\xa7\xfc\x67\xbf\x4e\xfd\x8d\x8b\xe0\x8b\xdf\x55\xe4\xcb\x5c\x31\x43\xe6\x63\xaf\xaf\xf0\x85\x6b\xb1\xdb\xef\xf0\x87\x36\xdf\xb0\x27\x5e\xaf\x9b\x5d\xf0\xed\x76\xd2\xf6\xf7\x3a\xff\xc7\xf9\xff\x6a\xc1\xfe\x0c\x34\x6c\x7e\xef\xba\x7f\xf0\x4b\xaa\xa6\x83\xf5\xdd\x5b\xd8\x2a\xe8\x55\xaa\xaa\xf2\xae\xbd\x27\x58\xbe\xbd\xf2\x7a\x6b\x87\xbd\x2d\x8a\xbb\x1a\xdb\xaf\xad\x93\x7f\xc1\x25\x6b\x65\xf3\x72\xfa\xe1\x5a\x13\x1f\x4b\x54\xff\xae\x7a\xa7\xff\xdd\xff\x8a\xbf\x42\xfe\x12\xe8\x7d\xfe\x3b\xbb\x1a\xfb\x77\xff\x0f\x2d\x49\xcd\xa7\xf8\xee\x8b\xb1\xcf\x2f\xe1\x3c\xea\x7d\x7f\x24\x0c\x19\xfa\xb5\x75\x6b\xe4\xdf\x37\x37\xbf\x84\xfd\x71\xb7\xc5\xb4\xdc\x46\xb5\xd6\xb5\x7c\x11\xd7\xeb\xe1\xbb\x3e\xd4\xff\xfa\xc5\x37\xab\xfc\x94\xff\xbc\xc6\xff\x09\x69\xfb\xfd\xef\xeb\xe7\xf4\x12\xf5\xdf\xe0\x8f\x9a\xed\xf0\x49\xe9\x3b\xe5\xe8\xbe\x2f\x22\x9f\x2c\x6f\x9a\xc7\xa7\xe1\xaa\x7d\x75\xff\x85\xa4\x2f\xfd\xd7\x7f\xfc\xfc\x2b\xb1\x6b\x5a\xdf\xd7\xf5\xbf\xdc\x0d\xb9\xba\xb5\xf5\x2a\x7b\x9b\xaf\x57\x26\xc1\xfe\x4a\x07\xfc\x9e\xcf\xc9\xd1\xa3\xf0\x97\x35\xeb\xae\x69\x08\xf5\xcd\xd0\x3e\x07\xb0\x5f\x27\xbe\x13\xe9\xef\xf8\x24\xa5\xf5\xf2\xd1\xfe\x89\xdf\xe1\x3f\x47\xba\xf4\x7a\xef\xff\x2d\xff\x82\xdf\x6c\xdf\xd7\xc3\x9e\xd7\x7f\xa2\x80"
+#define SAMPLE1_4PKTS_2 "\x80\x7e\x21\x1d\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x61\x00\x59\x66\x80\x02\x01\x9f\xc1\x73\x33\x3f\xd7\x2e\xb5\x5e\xe2\xf9\x19\xd0\xbf\x37\x42\xf8\x4f\x7b\x6c\x4b\x5f\x57\x93\xaf\x7c\xde\xfe\x17\xaf\x63\xdd\x6c\xbf\xf1\x1b\x7f\x63\xf0\x9d\x06\x4a\x7d\x83\xf2\x6b\xf9\x2c\xff\x85\x69\x25\xa4\xcf\x6d\xb4\x5f\x87\x15\xd3\x4f\x4d\x3f\xfd\x7d\xb6\xf6\x1c\x53\x90\x7d\x84\x63\x3f\xfa\x9f\x6a\xfe\x21\x69\xc3\x8b\xff\xfd\x34\xea\xdb\x7f\x97\x85\xfd\x14\xbb\xad\xaf\xfc\x18\x76\xbb\xd5\xaf\xfe\xf4\xb5\xcf\xca\x9f\xff\x2c\x3e\xa7\xbf\x7b\x26\xca\x8b\x68\x7f\x1f\x21\x7d\x50\x7f\x24\xf5\xed\xff\x97\xbb\xff\xff\xfe\x78\xae\x93\x37\x7f\xff\xd7\xb8\x8d\xfe\x3e\xd7\xc9\xdf\xab\xe8\xd8\x3f\x0c\xf3\x65\x7a\x5f\x9a\x7a\xe9\xfc\xdd\x2c\xaf\x9e\xaf\x7f\xf9\xb6\x3f\xc3\x97\xa5\x5d\x7e\xfb\xf4\x5b\xbe\x85\xf5\xd4\xbc\xf5\xef\xeb\xba\xff\x26\xc7\xfb\xb0\xff\x8a\xbf\xef\xe6\xdf\x5c\xbe\xd1\x3a\xe5\xd6\xfa\xbd\xf5\xea\xea\xf5\xc2\xfe\xfd\x89\x7b\x2f\xf5\x29\x55\x6b\x86\xa9\x75\xaf\xff\x57\xfb\xb3\xfb\x9a\xd7\x52\x4d\x5f\xab\xc9\x1f\xc2\x79\x58\xf6\xba\x88\xb1\xfa\xd3\xd5\xfb\xaa\x9b\x62\xb5\xef\xd5\xf3\xd7\xaf\x9b\x93\x7f\xc3\x3d\x1d\x5b\xff\xee\xff\xc9\x45\xde\x9e\xbf\x5f\x15\xb1\xd0\xa8\x49\xcb\xcd\xed\x93\x9b\xb0\x7d\xbe\xae\xdf\xf5\x62\x7e\xb1\x57\x35\x84\x9f\xe2\xf4\xf3\x57\xf9\x7d\x49\xde\xcb\xf5\x7a\xea\xff\x04\x9b\x0a\xd7\x5f\xaf\x27\x35\x1f\xd4\x94\xfe\xbd\xc9\x7e\xaa\x4e\xd7\xc9\xe9\x92\xbf\x2e\xde\xba\xf4\x9c\xbd\x2f\xab\xc9\xdf\xb4\xb6\xad\xf2\x7b\x6b\x96\xc3\xd8\xd7\x15\xe8\xac\xaf\xe1\xdd\x81\x7b\xec\xb5\xa7\xfa\xef\x47\x9b\xab\xc2\x1c\x9e\x82\xf7\xd0\x2b\xfd\xfb\x97\x6b\xde\xf9\xab\xc9\xcb\xd8\xea\xa4\xf5\x27\x04\xef\x2f\xa7\xfb\xe1\x3d\xba\x1e\xbc\x23\xae\x2f\xd1\xd9\xcf\xfc\x11\xfa\xe5\xf0\x61\xaf\x54\xee\xf5\xff\x0b\x4c\xda\x16\xde\xbe\xbf\xd5\xfe\xaf\x7b\x04\x17\xb0\xb4\xdd\xad\xaa\xf2\xd3\xfc\x13\x57\xd7\xea\xeb\x07\xc5\x77\x7b\x5f\x84\x34\x2d\x82\xf5\xd7\x57\xfa\xbf\xd5\xfe\xaf\x5d\x5f\xea\xff\x57\xfa\xbf\xd5\xfc\x1e\xfd\x5f\xea\xf7\xab\xc1\x8d\xe0\xe6\x23\xae\x5f\x37\xa3\xf1\xbe\x35\x19\x47\xcc\x65\x83\x3e\xc1\xe5\x07\x47\xff\x0a\xce\x3c\x40\x6f\x6b\x5f\xb7\xf8\x2b\x9b\x17\x94\x8c\x83\xdd\x23\x97\xc4\x74\xba\x34\x7e\x37\xcf\x9b\x5d\x8d\xd3\xa7\x63\xd9\x7f\xad\x75\xf8\x67\xd8\x97\x56\xff\xc1\x17\xb9\xe9\x3a\xbf\xc2\x7b\xfd\xfc\x35\xbe\xb7\xff\xc4\xe9\xae\xbf\x84\x3b\xef\xeb\x5c\x29\xdb\xdb\xb6\x5c\x2e\x33\x8b\x4b\xdf\x7d\x3f\x86\x79\x85\x99\xaf\xd2\xfc\x2f\x60\xd8\x3a\xe8\x3a\x65\x6b\xff\x0b\x76\x99\x6c\x1a\xab\x7b\x36\xbf\x85\x37\x36\x6f\x77\x5e\xd5\x86\x7c\x8b\xe1\x0b\xfc\x99\x33\xd0\x63\xf9\xfe\x0b\x36\x1c\xa8\x9d\xac\x95\xf8\xbe\x32\xc3\xd3\xda\xf8\xcd\x4a\x55\xff\x9a\x92\x07\xf8\x57\xb9\xf7\x21\x0e\x7d\xaf\xf6\x81\x14\xf6\xcf\x20\xbc\x1c\x44\xc0\xfb\xbc\x1e\xf0\x3e\x03\xd5\x7f\x82\x7e\xfe\x4a\xee\x57\x35\x69\x33\xf0\x41\x29\x2e\x91\x99\x3d\x59\x5e\xc1\xab\x5f\xfc\x67\x4f\xaa\xe3\x8d\x7c\x65\xca\x03\xf1\x3d\x17\x47\x2e\x0f\x62\xba\xe5\xf5\xcb\xe2\xa8\x5d\x8f\x60\xbc\x33\x47\x6f\x17\xa7\xfe\x2b\x75\x21\x20\x9d\xbd\x5f\xfc\x6d\xf0\x8a\x47\xba\xcf\x47\xaa\x0b\xf4\xfc\xd6\xbf\xbb\x14\x61\x37\x35\xd2\x63\xe4\xf4\xfc\x17\xf7\xef\x55\xaf\xfd\xeb\xf9\x7d\xa5\x57\x4b\xf9\xba\xfc\x2f\x44\xcb\xee\xdd\xbf\xfb\xd0\xff\x7d\x3a\xee\xf7\x93\xfb\x8e\xe4\xd2\xd7\x25\xaf\xee\x8a\x96\x23\xaf\x7d\x7b\xeb\xde\xab\x52\xeb\xd7\xc2\xb5\xfd\xa7\x1f\x4f\xf5\xcb\xeb\x5d\x4f\x5f\x49\x2f\xcf\xc2\xbf\xcd\xc3\x3e\x8d\x69\xad\xbf\xe5\xed\x7c\x33\x5e\xe7\xb7\xfe\x23\x36\xd5\xaf\xe6\xea\x8b\xc5\xf6\x5b\xfe\xb5\xd4\xd4\xbf\x82\x3b\x5f\xa0\xb3\xfb\x93\x9e\xb5\xff\xc1\x76\xc7\xcc\x6f\x3d\xf1\x9d\x04\xc2\xe3\x8c\x60\x5f\xa7\xf5\x6f\x9b\x96\x89\x73\x29\x92\xb8\x30\xed\xf6\xeb\xfb\x7d\x7e\x0a\xbb\xd0\x36\x1f\xd8\xfb\xe7\xaf\x2e\xff\x86\xef\xfb\xb7\xff\x7b\x07\x83\x7a\xf7\x7e\x97\x93\x60\xb7\x59\xb9\xeb\xb5\xff\x37\xb3\xd7\xe5\xf7\xf3\x7b\x2f\x2f\x60\xfe\x5e\x8f\xe7\xaf\x4b\xfc\xbe\x8f\xcf\x5d\x2f\xf9\xba\x55\xc1\x27\x6b\xa8\x4f\x9e\xbd\x3f\x7d\x62\x8f\xdc\xfc\x45\x9f\x41\x7f\x04\x0f\xbf\x63\xd8\xeb\xfb\x3f\x61\x99\xd9\xd0\xea\x8b\xb3\xfe\x08\x6b\xfb\xe1\xce\xe4\xf8\x6d\xff"
+#define SAMPLE1_4PKTS_2_FEC "\x80\x16\x03\x57\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x00\x7e\x21\x1d\xe5\xf5\x8a\xaf\x03\xdc\x03\xdc\x80\x00\x61\x00\x59\x66\x80\x02\x01\x9f\xc1\x73\x33\x3f\xd7\x2e\xb5\x5e\xe2\xf9\x19\xd0\xbf\x37\x42\xf8\x4f\x7b\x6c\x4b\x5f\x57\x93\xaf\x7c\xde\xfe\x17\xaf\x63\xdd\x6c\xbf\xf1\x1b\x7f\x63\xf0\x9d\x06\x4a\x7d\x83\xf2\x6b\xf9\x2c\xff\x85\x69\x25\xa4\xcf\x6d\xb4\x5f\x87\x15\xd3\x4f\x4d\x3f\xfd\x7d\xb6\xf6\x1c\x53\x90\x7d\x84\x63\x3f\xfa\x9f\x6a\xfe\x21\x69\xc3\x8b\xff\xfd\x34\xea\xdb\x7f\x97\x85\xfd\x14\xbb\xad\xaf\xfc\x18\x76\xbb\xd5\xaf\xfe\xf4\xb5\xcf\xca\x9f\xff\x2c\x3e\xa7\xbf\x7b\x26\xca\x8b\x68\x7f\x1f\x21\x7d\x50\x7f\x24\xf5\xed\xff\x97\xbb\xff\xff\xfe\x78\xae\x93\x37\x7f\xff\xd7\xb8\x8d\xfe\x3e\xd7\xc9\xdf\xab\xe8\xd8\x3f\x0c\xf3\x65\x7a\x5f\x9a\x7a\xe9\xfc\xdd\x2c\xaf\x9e\xaf\x7f\xf9\xb6\x3f\xc3\x97\xa5\x5d\x7e\xfb\xf4\x5b\xbe\x85\xf5\xd4\xbc\xf5\xef\xeb\xba\xff\x26\xc7\xfb\xb0\xff\x8a\xbf\xef\xe6\xdf\x5c\xbe\xd1\x3a\xe5\xd6\xfa\xbd\xf5\xea\xea\xf5\xc2\xfe\xfd\x89\x7b\x2f\xf5\x29\x55\x6b\x86\xa9\x75\xaf\xff\x57\xfb\xb3\xfb\x9a\xd7\x52\x4d\x5f\xab\xc9\x1f\xc2\x79\x58\xf6\xba\x88\xb1\xfa\xd3\xd5\xfb\xaa\x9b\x62\xb5\xef\xd5\xf3\xd7\xaf\x9b\x93\x7f\xc3\x3d\x1d\x5b\xff\xee\xff\xc9\x45\xde\x9e\xbf\x5f\x15\xb1\xd0\xa8\x49\xcb\xcd\xed\x93\x9b\xb0\x7d\xbe\xae\xdf\xf5\x62\x7e\xb1\x57\x35\x84\x9f\xe2\xf4\xf3\x57\xf9\x7d\x49\xde\xcb\xf5\x7a\xea\xff\x04\x9b\x0a\xd7\x5f\xaf\x27\x35\x1f\xd4\x94\xfe\xbd\xc9\x7e\xaa\x4e\xd7\xc9\xe9\x92\xbf\x2e\xde\xba\xf4\x9c\xbd\x2f\xab\xc9\xdf\xb4\xb6\xad\xf2\x7b\x6b\x96\xc3\xd8\xd7\x15\xe8\xac\xaf\xe1\xdd\x81\x7b\xec\xb5\xa7\xfa\xef\x47\x9b\xab\xc2\x1c\x9e\x82\xf7\xd0\x2b\xfd\xfb\x97\x6b\xde\xf9\xab\xc9\xcb\xd8\xea\xa4\xf5\x27\x04\xef\x2f\xa7\xfb\xe1\x3d\xba\x1e\xbc\x23\xae\x2f\xd1\xd9\xcf\xfc\x11\xfa\xe5\xf0\x61\xaf\x54\xee\xf5\xff\x0b\x4c\xda\x16\xde\xbe\xbf\xd5\xfe\xaf\x7b\x04\x17\xb0\xb4\xdd\xad\xaa\xf2\xd3\xfc\x13\x57\xd7\xea\xeb\x07\xc5\x77\x7b\x5f\x84\x34\x2d\x82\xf5\xd7\x57\xfa\xbf\xd5\xfe\xaf\x5d\x5f\xea\xff\x57\xfa\xbf\xd5\xfc\x1e\xfd\x5f\xea\xf7\xab\xc1\x8d\xe0\xe6\x23\xae\x5f\x37\xa3\xf1\xbe\x35\x19\x47\xcc\x65\x83\x3e\xc1\xe5\x07\x47\xff\x0a\xce\x3c\x40\x6f\x6b\x5f\xb7\xf8\x2b\x9b\x17\x94\x8c\x83\xdd\x23\x97\xc4\x74\xba\x34\x7e\x37\xcf\x9b\x5d\x8d\xd3\xa7\x63\xd9\x7f\xad\x75\xf8\x67\xd8\x97\x56\xff\xc1\x17\xb9\xe9\x3a\xbf\xc2\x7b\xfd\xfc\x35\xbe\xb7\xff\xc4\xe9\xae\xbf\x84\x3b\xef\xeb\x5c\x29\xdb\xdb\xb6\x5c\x2e\x33\x8b\x4b\xdf\x7d\x3f\x86\x79\x85\x99\xaf\xd2\xfc\x2f\x60\xd8\x3a\xe8\x3a\x65\x6b\xff\x0b\x76\x99\x6c\x1a\xab\x7b\x36\xbf\x85\x37\x36\x6f\x77\x5e\xd5\x86\x7c\x8b\xe1\x0b\xfc\x99\x33\xd0\x63\xf9\xfe\x0b\x36\x1c\xa8\x9d\xac\x95\xf8\xbe\x32\xc3\xd3\xda\xf8\xcd\x4a\x55\xff\x9a\x92\x07\xf8\x57\xb9\xf7\x21\x0e\x7d\xaf\xf6\x81\x14\xf6\xcf\x20\xbc\x1c\x44\xc0\xfb\xbc\x1e\xf0\x3e\x03\xd5\x7f\x82\x7e\xfe\x4a\xee\x57\x35\x69\x33\xf0\x41\x29\x2e\x91\x99\x3d\x59\x5e\xc1\xab\x5f\xfc\x67\x4f\xaa\xe3\x8d\x7c\x65\xca\x03\xf1\x3d\x17\x47\x2e\x0f\x62\xba\xe5\xf5\xcb\xe2\xa8\x5d\x8f\x60\xbc\x33\x47\x6f\x17\xa7\xfe\x2b\x75\x21\x20\x9d\xbd\x5f\xfc\x6d\xf0\x8a\x47\xba\xcf\x47\xaa\x0b\xf4\xfc\xd6\xbf\xbb\x14\x61\x37\x35\xd2\x63\xe4\xf4\xfc\x17\xf7\xef\x55\xaf\xfd\xeb\xf9\x7d\xa5\x57\x4b\xf9\xba\xfc\x2f\x44\xcb\xee\xdd\xbf\xfb\xd0\xff\x7d\x3a\xee\xf7\x93\xfb\x8e\xe4\xd2\xd7\x25\xaf\xee\x8a\x96\x23\xaf\x7d\x7b\xeb\xde\xab\x52\xeb\xd7\xc2\xb5\xfd\xa7\x1f\x4f\xf5\xcb\xeb\x5d\x4f\x5f\x49\x2f\xcf\xc2\xbf\xcd\xc3\x3e\x8d\x69\xad\xbf\xe5\xed\x7c\x33\x5e\xe7\xb7\xfe\x23\x36\xd5\xaf\xe6\xea\x8b\xc5\xf6\x5b\xfe\xb5\xd4\xd4\xbf\x82\x3b\x5f\xa0\xb3\xfb\x93\x9e\xb5\xff\xc1\x76\xc7\xcc\x6f\x3d\xf1\x9d\x04\xc2\xe3\x8c\x60\x5f\xa7\xf5\x6f\x9b\x96\x89\x73\x29\x92\xb8\x30\xed\xf6\xeb\xfb\x7d\x7e\x0a\xbb\xd0\x36\x1f\xd8\xfb\xe7\xaf\x2e\xff\x86\xef\xfb\xb7\xff\x7b\x07\x83\x7a\xf7\x7e\x97\x93\x60\xb7\x59\xb9\xeb\xb5\xff\x37\xb3\xd7\xe5\xf7\xf3\x7b\x2f\x2f\x60\xfe\x5e\x8f\xe7\xaf\x4b\xfc\xbe\x8f\xcf\x5d\x2f\xf9\xba\x55\xc1\x27\x6b\xa8\x4f\x9e\xbd\x3f\x7d\x62\x8f\xdc\xfc\x45\x9f\x41\x7f\x04\x0f\xbf\x63\xd8\xeb\xfb\x3f\x61\x99\xd9\xd0\xea\x8b\xb3\xfe\x08\x6b\xfb\xe1\xce\xe4\xf8\x6d\xff"
+#define SAMPLE1_4PKTS_3 "\x80\x7e\x21\x1e\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x61\x00\x2a\x29\xa0\x00\x80\x67\x75\xee\x16\x77\xfb\x5d\x6b\xff\x85\x7b\xd9\xf8\xef\xd9\xfe\x37\x63\xfb\xed\xdb\x4f\xe8\xfe\x5f\xfd\xa1\xdd\x91\x84\x12\x9c\x85\xf5\xf6\xb9\x7f\xe7\xaf\x5f\xf0\x49\x5a\xae\x5d\x41\x46\xee\xf7\xd9\xf2\xf7\xfa\xf7\xcf\x54\xab\xff\x19\x60\xf6\x48\xd0\xf9\x67\xbf\xf1\x94\xd7\xe5\xcd\xdf\xbe\xa3\x34\x0b\xd7\xbd\xe5\xce\xe3\x3b\xf1\x96\x50\x1b\x68\x17\x86\xbe\x79\xf0\x55\x49\x2b\x3d\x8e\xdf\xc3\xe0\x82\xe9\x7d\x96\xc1\xd5\x3a\x5f\xf0\xac\xd7\xbf\xbb\x6c\x2f\xfc\x15\xe8\xfb\xdf\x7c\xbe\x16\xef\x7e\xac\x2f\xef\x89\xe3\xb5\x30\x83\xa4\xe7\xcf\x11\xe8\xf6\x3f\x82\xcf\x1d\x1f\x0e\x97\x5b\x5e\xf8\x20\xec\x1b\xb5\x60\xb6\x76\xd7\xa7\xfe\x08\x3a\x06\x51\x82\x92\x7e\x30\x5e\xb7\xaf\x6f\xfc\x67\x39\x63\x13\xde\x8e\x8b\xa7\xfc\x4f\xa4\xbd\x70\x87\x4a\xc9\x12\x59\x09\x52\x52\xc3\x7b\xdd\x6d\x2b\xfe\x48\x7f\xbd\x13\x5d\x83\xd5\xaf\xfe\x18\xa1\xf6\x3e\xbd\x7f\xc2\xbe\x52\x3a\x07\x4c\xba\x5f\xe5\xd8\xbd\x41\x07\xa3\xb7\xbf\x54\xd3\xff\xcf\x5d\x3f\xf8\x23\xdf\x7a\xe6\x8f\x21\xf9\x84\x7c\x5d\x03\x29\x2e\x81\xd9\xfc\x2f\x77\xed\x30\xef\xfe\xd6\xa3\xae\xfb\xfc\x75\xad\x3d\xcd\x60\xff\x97\x60\xf2\xf5\x8a\xab\xc7\x4f\x5c\xb4\xfe\x10\x84\xbd\xf7\x7f\x6a\x97\xe0\xb7\xaf\xbc\xba\xfc\x33\xbe\xbf\x5d\x70\x4d\xbf\xd6\x2f\x82\x2a\x3f\xdf\x2f\xb5\xe0\x9b\xbf\xbd\xc7\x86\xbd\xd7\xfa\xe4\x82\x3f\x7d\x75\x3d\x57\xff\xac\x5d\x7e\xef\xfd\x62\xf9\x3b\x55\xc1\x37\xb6\xfe\x5f\x04\x57\xdf\xaf\x92\xdf\xf5\x8b\xa8\x8f\x64\x8b\xf8\x76\x8b\xf6\xdf\xaf\x4f\xfc\x7f\xb7\x91\x02\x37\x5f\xc2\x1d\x04\x3c\x76\xcb\xa4\x46\xff\x84\x7b\x6b\x57\xa7\xfc\x7d\x83\x60\xfe\x86\xff\x71\xdc\xe4\x2c\x15\x03\xd9\x7d\x42\x3d\x97\xa4\x7f\xfa\xb9\xe5\xfc\x14\xd0\xfb\x0b\x7a\x3f\xfe\x83\x3b\x5a\xa7\xff\xc4\xfb\x2d\x17\xcd\xe8\x97\x3d\x7d\xfa\xba\xf7\xd7\x2f\x96\x63\x9f\xcb\xee\xae\x13\xf7\xbf\xe7\xaf\xeb\xdf\xe4\xd1\x7e\x0a\x36\x3f\x7c\x6f\x8e\x94\xcd\x0e\x8a\x52\xef\xb2\xf8\x2d\xa3\x5f\xb9\x77\xc3\x3a\x77\xa4\x14\xfb\x7f\xc3\x9a\x07\xaf\xa7\xfc\x31\x36\x12\x3d\x83\xd7\xa0\xbf\xcb\xb3\x40\xe5\xeb\x17\xcf\x28\x1b\xf7\xb2\xec\xf8\xb4\xff\x57\xf8\x20\xf5\x4f\xd8\xbd\x82\x7e\x8b\xf3\xd7\xaf\xf9\xfd\xeb\xfa\x93\x6b\xf3\x68\x2f\xc2\x5e\x93\x09\xff\x75\xea\x9a\x94\xb8\x21\x07\x7d\x43\x3e\x9a\xd7\xff\x5c\xab\x8a\xaf\x5e\x4a\x31\x77\xbf\x82\x2f\x7c\xab\xae\x52\x75\xeb\xeb\xd7\xd7\x2a\xeb\x95\x70\xdf\x4f\xee\xbf\xf0\xef\x7b\x0f\xbd\xf1\x68\x9c\x91\x6f\xae\x5f\x41\xf9\x6d\x7f\x05\x1d\x8f\xbf\x57\xc1\x27\xbb\x3e\xb1\x57\x37\x5b\xd0\x67\xd3\x5a\x7f\xa9\x60\x86\xbf\xbc\x31\xe3\x17\xbe\x5f\x7f\x27\xbf\x88\xa4\x81\xbd\x03\xbb\xae\x08\xa9\x3e\xe7\xc1\x0f\xa4\xff\x3d\x53\xdb\xa7\xf8\x57\xb5\xed\x65\x5f\x47\xe1\x5f\x09\xc9\xe8\x1f\x86\xbd\x35\xb3\xff\xc1\x3f\x7d\x8b\xcb\xd1\xb4\xe9\xf7\xf2\x7a\x7e\xe7\x37\xef\x82\x7f\x7b\xee\xf0\x2e\x9e\x0c\x94\x1e\xf7\x97\xd7\xe0\xc0\xde\xbe\x08\x6f\xf5\xf2\x77\xfa\xd7\xc3\x7a\xeb\xd9\x7f\x65\xeb\x7c\x39\xae\xbd\xbf\xe8\xfd\x6b\xff\x86\xfd\xd5\x97\xf2\x60\x5c\x9f\xd7\x5e\xae\x7a\xc5\xff\xf0\x45\xed\xf7\xc1\x27\xae\x7f\x82\x1d\x01\xfd\x5d\x59\xf5\x7f\x88\xaf\x6f\xf9\x2f\xba\xea\xf5\xd7\xd5\xdc\xac\xfc\xf0\x43\xef\x3b\xad\x63\x7e\xba\xb8\x3c\xf8\x63\xc1\xd1\xea\xff\xdf\xae\x19\xed\xb3\x22\xc7\x6f\xfc\x31\xe8\xe6\x76\xbe\xdf\xf0\xb4\x9f\xa0\xab\x54\x5f\xfc\xf5\xb7\xfa\xe5\xbf\xf2\xfb\x44\xe1\xbd\xf9\x7f\x5f\xbd\xff\x3c\x82\xb2\xfe\xb9\xeb\x34\x3f\xf0\x4d\xee\xc7\xf0\xbe\x09\x7c\x8e\x39\x05\x9b\x02\x00\xec\xf8\x23\xf6\xf0\xf9\xeb\xeb\xc5\xfa\xe5\xdf\x58\x70\xfe\xf6\xfd\x70\x49\x54\x1f\xde\x6f\x7f\x0d\x6f\xf7\x7f\xfa\xd4\xd5\xfa\xeb\xe2\xe9\xfb\xfb\xab\xb9\x72\x41\xc7\xea\xff\x5c\xb8\x1d\x27\xaf\x4f\xf8\x66\xff\xd5\xfe\x1c\xe7\xba\xa6\x9f\xfe\x13\xaf\x96\x52\x5f\x86\x77\xd6\xdf\xfe\x4f\x47\xe1\x6e\xd5\x17\x5d\x1f\xfd\xe9\xfe\x16\xf2\x9c\x9e\xdf\x77\xd3\xfe\x1d\xf5\x4f\xd3\xfb\xeb\xfc\x3d\xea\x4c\xfe\x73\x6f\xfe\xfe\x08\xae\xfd\x57\x53\x03\xe6\xf7\x5d\x62\xf9\x7b\x75\xc9\xe6\xfe\x7a\xfb\x7f\xc2\xb0\xdf\x5d\x16\xfb\xe2\xf4\x5e\x33\xdf\x27\x5a\xe1\xcf\x43\x5b\x2f\xfc\x13\x50\xb5\xe8\x37\xae\x08\x76\xfe\xc0"
+#define SAMPLE1_4PKTS_4 "\x80\xfe\x21\x1f\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x61\x00\x35\x49\xa0\x00\x80\x67\xf0\xe7\x4e\xaf\xfd\x5c\x95\xeb\xab\xcd\x72\x6f\xea\x79\xd3\xaf\xd7\x5a\x97\xab\xf8\x38\x5c\xbe\xb9\x7f\xff\xfb\x5b\xfc\x55\x53\xd9\x7f\x59\x7c\xf5\xfa\xfe\xfa\x2f\xae\xae\xfd\x49\xb3\xfd\x6b\xe7\xaf\xaf\xf5\x8a\xba\xf4\xbc\xbd\xb9\xba\xd4\x57\x7e\xc6\x4d\x02\x4f\x7e\xbe\xb2\x9b\x5d\x7b\xc9\xd7\x2e\x1a\xc9\x87\x56\x52\xec\x18\x3d\x05\xec\x9c\x3f\xff\x04\xdd\xba\x2f\x97\xc1\x0e\x5a\xf5\xf0\xd5\x68\xab\xfd\xbd\xc9\x65\xb5\xe0\x93\xdb\xd7\xc1\x1f\x95\x09\x1c\x7c\x35\x29\xc9\x9f\x56\xff\xae\x26\xff\x7f\xac\x1f\x5e\x92\xeb\x2b\xea\xe1\x5f\xe0\x93\x5f\x09\x3a\xbf\xd5\xfe\xaf\x5c\xdd\xe6\xe1\xae\xc7\x57\x7b\xfa\xe5\xda\xfc\x2b\xd7\x7d\x74\xbf\xea\xde\x96\x57\xd7\xa4\xbf\xa2\x5f\xee\x59\xea\xfa\xeb\x55\x07\x95\x39\x73\x7e\xb5\x7d\x71\xfe\xba\xd7\x83\xd5\xd7\xb5\xaf\x86\x3b\x69\x68\xb8\x14\x9f\xa6\x83\x5c\x33\xa7\xaf\xb3\xa3\xf8\x6a\x62\x17\xba\xfb\x7f\xcf\xd7\xfa\xae\x08\xfa\x77\x1e\x7a\xb3\xff\xeb\xdf\x3d\x5b\xfe\xf9\xe5\x53\x9e\x1f\x5d\x6b\xdd\xf5\xaa\xcd\xf3\xd5\xd7\xff\x57\xad\x9f\xaf\xb7\xdf\x58\xbe\x08\xaf\xea\xba\xd5\x75\xaf\xab\x7c\xd7\xfd\x17\x6b\xd5\x65\x7d\x7d\x27\x26\x9e\x4d\x3d\x7e\xc1\x17\x4f\x97\x55\xcb\xd0\x24\xf7\x8c\x7c\x37\xde\xbb\x7f\xc1\xa7\x85\x6b\x85\xf5\xc3\xc1\x87\x86\xfc\x29\x58\x9b\xe6\x4e\xff\x9a\xcf\xbe\x1c\xb7\xd7\xb7\xeb\xac\xbe\xba\xfa\xd4\x9c\xf5\xdf\xe5\xea\xdf\x5a\xae\x7f\x6b\xff\xa9\xda\x6a\xd7\x08\xfb\x3a\xfa\x55\x57\xb5\xae\xf5\xfc\xba\xeb\xac\xa7\xe2\xfd\x92\x1f\x13\x0e\xfe\x09\x3b\xcc\x9c\x3f\x5c\xb8\x23\xae\xbe\x7d\xf7\xff\xd6\xaf\x05\xfe\x0d\x7c\x17\xf8\x31\x04\x5e\xf0\x7c\x36\xe9\x6b\xfb\x3f\x9e\xde\x9f\xfa\xb7\xc1\x77\xa2\x7e\xe3\xcf\x5d\xbf\xf9\xea\xdf\xf1\x3c\xd7\xfe\x6e\xf2\xf0\xe5\xf6\x35\xb2\xff\x73\xf5\xbf\xfe\x08\x7d\xbf\x8f\x09\x7b\xd7\xf7\x7f\xef\x6f\x5c\x12\xed\x75\xfb\xeb\xd5\xcd\x44\xd7\xe4\xd2\xfd\xf9\xea\xb8\xbb\x3f\xd3\xf1\x3a\xed\xf7\xc5\x74\xe9\xd3\xae\x1b\xf6\x97\x5f\xf8\x4f\xbf\xb1\xf8\x43\x63\xfb\x1d\x2f\xc9\xd8\xef\x97\x5a\x6b\xab\x7d\x59\x7f\xbd\xf5\x6f\xfd\x7b\xd9\xeb\x4f\xf7\xc3\x3d\x6a\xdf\xf5\xca\x9a\xfe\x5d\xfe\xeb\xac\xa7\xe7\xca\xcb\xff\x86\xbb\xf2\x92\x1f\xc4\x75\xae\xb5\xc9\xed\x79\xb4\x7f\x62\xfb\x7d\x97\xc4\xd3\xfd\xaf\x2f\x49\x5f\x7b\x7f\x89\xeb\xed\x93\x9e\xb5\xff\xcf\x5e\xdf\xba\x82\x7c\xd4\xfa\xf5\xf0\x43\xdb\xe5\xf3\x76\x37\x13\xe5\xf2\xf5\xef\x7e\xef\x9d\xf7\xf7\x9f\xad\x7c\x11\xfb\x9c\x34\x56\xc3\x5e\x55\x11\x7b\x3f\x5a\xf8\x4b\xa5\xb5\xae\x6d\x2f\xc5\xd1\x76\xbf\x82\x1e\xd7\xbe\x0b\x7d\xab\x7f\x7b\x15\xec\xf4\xab\x84\xbd\x52\xfe\x5f\x4f\xc5\x6f\xe9\x77\xae\x0c\x3c\x93\xa3\xd6\x9a\x7f\xf0\xb7\x96\xd2\xf5\xd7\xfe\x08\xab\xf5\xf1\x78\xef\xbf\x6b\xa9\x7b\x4c\x1f\x89\xa0\xfd\xef\xea\xf7\xcb\xed\xfa\xf7\xc9\xbe\x4f\x2f\x9b\xab\xc9\xcf\x5f\xe9\xbd\xdf\x5a\xae\x7a\xf5\xff\x58\xa6\xd1\x63\xe7\x5f\xd4\x12\x7a\x3c\xbe\x5e\x8f\xe0\x9f\xd6\x87\xc5\xf2\xd0\xee\xc1\xf9\xab\xa3\xdc\x31\xa3\xa5\xb1\xd7\xfb\x7e\x08\xfb\xa4\x6a\xb8\x9f\x6f\xb5\xdf\xa7\x6b\xf8\x42\xbf\xaa\xff\x26\xbf\x84\xab\xf5\xf8\x46\x9b\x5f\x5e\xd7\xbd\x2f\xc1\x25\xbf\x2e\xc2\xcb\x5d\x7a\x9e\xac\xbf\xf9\xbb\x1f\xcd\x7e\x4e\x59\xff\xf1\xdd\x85\xaf\x4b\xea\xf8\xbb\xe8\xfb\x6f\xfb\xae\x6e\xd4\xb9\x22\xa0\xa3\x1d\xc5\x2e\xab\xd5\x57\xbd\xd5\xcd\xbf\xe1\xbf\x55\xdb\xff\x93\x4f\x5d\x5e\xbb\xaf\x5c\xde\xd7\x93\xd2\xf0\x45\x43\xf1\x7c\xf5\x7f\xfb\x86\x68\x7d\x6f\xff\x97\xd3\xf1\x1b\xfc\xd4\xf1\x1d\xae\xb7\xc9\x7e\xfb\xed\xdf\x7a\xeb\x71\x1c\xbd\xeb\xaf\x7b\xa8"
+#define SAMPLE1_4PKTS_FEC "\x80\x16\x03\x58\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x00\x80\x21\x1c\x00\x00\x00\x00\x00\xaf\x03\xe3\xf0\x00\x00\x9a\x46\x0e\x86\x7c\x84\xe9\x6d\xa3\xdc\x0f\x94\x24\xf4\xbf\xa3\xe4\xcd\x86\x4d\x16\x20\xa3\xe6\xbf\xce\x1c\x4f\x7d\x24\x3d\xc1\x8c\x65\x83\x83\xe2\xff\xe5\x69\xc7\x2c\xc0\x69\x8a\x4c\x93\xa8\x08\x0a\x2f\x9f\x51\x45\x0d\x45\x61\xea\x7d\x0f\xe7\xc7\x9f\x34\xab\xb3\x8f\x67\x7c\x15\xbe\x09\x67\x87\x7b\x38\xfc\x04\xe9\xd4\x3a\x66\xe0\x37\xd7\x45\xa5\xa9\xd7\x71\x1a\x88\x7d\x3c\x00\x37\xee\xac\x7f\x54\x92\x75\x15\x21\xf2\xf1\x9a\x23\x66\x6d\x90\x83\xfe\x3a\x31\xf3\x42\x34\xa4\x30\x39\xa8\xbb\x5f\xea\x63\x4b\x86\xe3\x0e\x6a\x46\x2c\xbf\xc1\x1a\xfb\x8a\x5a\x59\xfc\x55\xf0\x13\xe9\x53\x7a\xd9\x58\x83\x15\xfb\xbe\x99\x6e\x1c\x59\xc1\x1e\xbc\x9a\x89\xd7\x57\x4c\x47\x9a\x45\xd8\x18\xaa\xf9\x3e\x24\xf6\xe9\xf3\xa4\xc4\xd2\x39\x34\xc5\x4b\xb4\x64\xcc\xc1\x20\xdc\x49\x7f\x3d\x97\xb5\xc6\xe0\x11\xff\x00\x4c\x9e\x8f\x86\xc0\x93\xb9\x3a\x61\x4e\xbb\x68\x68\x16\xfb\x4f\xde\x77\xc2\x11\xbb\x93\x53\x75\x91\x42\xe8\xed\xfb\xd8\xdb\x61\xe5\x93\x23\x58\x30\x80\x5f\xeb\x27\x15\xd8\xaa\x09\x6e\x21\x04\xf6\x0a\xda\x69\x4f\xad\x85\x28\x20\x8a\x28\x1a\xf7\x06\xf5\xd1\x1f\xb3\x7e\x91\xae\x90\x9c\xdd\x4c\xeb\x60\xdb\x10\x85\x4a\xd8\xc2\x1a\x02\x9c\x1c\x9c\x0d\x0f\x4c\x12\x68\xa8\x58\x5e\x81\x46\x62\x00\x2a\xfd\xcd\xd3\xbd\x01\x21\x03\xa6\x6c\x77\xa5\x75\x51\xd1\x91\xae\x47\xac\x3d\xfd\x2c\x94\x6e\xb4\x7f\x2a\x3e\xb3\x88\x82\x69\xd2\x6d\x5d\xb9\x4c\x36\x26\x40\xac\x91\x48\x53\x82\xa9\xf8\x2e\x6d\xd5\x9e\x84\x98\x37\x23\x92\xc9\x19\x5c\xcc\x45\xf0\x9b\x51\x45\x55\x68\x5f\x80\xbb\x03\x06\x75\x83\x0a\x4a\x30\x47\xa3\xc3\xc1\xe6\x6d\x3d\x2b\xff\x13\xc5\xac\x09\xca\x45\x62\x6f\xcf\x6b\xc4\x06\xbe\x34\x07\x80\x3b\xe2\xf9\xb8\xea\x4b\x75\x7c\x92\x76\xed\x71\xf4\x8b\x15\xbb\x1d\x24\xcd\xf8\x5c\xdd\xd3\xa3\x4a\x22\xb1\xe4\xfe\x18\x6d\xfb\x2c\xeb\x0e\x97\x98\xe3\xcb\x30\xc7\x2f\xc2\x1d\x67\x97\x5a\xb1\xba\xd4\xdd\xc9\x29\xdb\x83\x7b\x1e\xd9\x5f\x32\x64\x79\xf0\x46\x09\xb7\x9f\x57\x3c\x84\x2c\x7d\xd7\x5a\xc1\x5d\xd8\xbb\xe6\xbb\x66\xe9\x93\x03\xf3\x7a\x64\x81\xb0\xec\x13\x54\x25\xa6\x5a\xd3\x7b\xa8\x23\x37\xfb\xfc\xff\x5e\xfd\x2b\xe3\x4f\x05\x8f\x40\x71\x26\xde\x25\xaf\x71\x27\xbe\x9a\xfb\x42\xfd\x1c\x02\x0f\x73\x27\x97\x9d\x14\xd3\xef\x12\x6b\x1f\xa4\x57\x23\x81\xf8\x68\x51\xa3\x1e\xf4\xdd\xcd\xa2\x61\x69\xae\xa1\x8d\xfe\xfc\x72\x8a\x02\x36\x21\xf5\xf9\x79\xbb\xaf\xa5\x89\x82\xc8\x97\xb0\x76\x92\xd0\xcf\x2a\xe0\x64\x63\x5a\x11\x23\x04\x81\x53\x4f\x43\x45\xda\x95\x59\x59\xa1\x69\x48\x98\x67\x7e\xa3\x07\x58\x2d\x91\x1c\x94\x99\xb7\xad\xf4\x07\x5a\x75\x5c\x5d\x92\x95\x06\x83\x0e\x9c\xb5\x54\x48\x24\x5a\x23\x49\xbf\x03\x02\x3c\x55\xb5\x3a\x2d\x2d\xcb\x51\x1f\x61\x64\x09\x60\x1c\x51\x12\x1c\x18\xb7\x24\x49\x3d\xba\x34\xb2\x5d\xde\xd6\xbc\x0f\x69\x36\xf2\x05\xb9\x7b\xc7\x1b\xa4\x34\x30\xff\xa6\x4c\x10\x29\x08\xbd\xa2\x1e\xe5\xb4\x6b\x44\x70\xa2\x62\xfc\x60\x10\x63\x91\x6a\xd3\x75\x7e\xf9\xb7\x4d\xf6\x3b\xcb\x8a\xb3\x94\xd0\x51\x37\x0f\xd0\x6f\x37\x8b\x6e\x23\x1c\xb8\x3a\x55\x23\xbc\x52\xda\x3c\xb5\xa4\x8d\xdc\x60\xa3\x29\xb4\x9c\xd8\xc9\xb6\xb6\x2e\x88\xc8\x59\x84\x6e\xb8\xaa\xda\xdc\x90\x43\x47\x6b\x62\x41\x06\xdc\x78\xe9\x5b\x1b\x19\x68\x96\xc2\xb6\x55\xca\x16\xa4\x76\xed\xe1\x64\xf1\xb0\x84\x1d\x84\xfc\x52\xf8\x0c\x7f\xbc\x90\x6e\xb4\x5c\xfb\xcc\xa9\x9d\x8b\x29\x19\x22\xd1\xbd\xce\x5e\xbe\x51\xdb\xd4\x86\xba\x8e\x37\x5e\x91\x4d\xf7\x51\x82\xb6\x26\x0f\xb9\xc2\x18\x6c\xf3\xe3\x46\xdf\x10\x03\xaf\xbe\x5a\xa3\x54\x38\x4f\x90\xf2\x2e\x4f\x27\xf8\x62\x24\x25\xe6\x1b\x3b\x61\xf5\xa8\x80\x9a\x3f\x52\x98\x5c\x26\x21\x13\x15\xbf\x6c\xc9\x41\x2d\x3c\xdd\x1a\xbf\xe7\xcb\x0d\x19\xdc\xdd\x53\x8c\x86\x3e\x2c\xc0\xa7\xe2\xa0\xf5\x1f\x8e\xc3\x73\x2b\x04\x3a\x93\x41\x5f\xe4\x76\xee\xd1\x1e\xe3\x36\x9e\xc5\xe3\xcd\x49\x19\x68\x0b\xcf\xde\x5f\x11\x75\xb5\x64\xfa\x1c\x71\xff\x97\x95\x96\x24\x0f\x05\x12\x61\x31\xb6\xb8\x2f\x6c\x4e\xfa\xe5\xfc\x0a\x80\x9d\x3e\xb7\x63\x68\x10\xc6\xed\x3c\xba\x9a\x82\x7c\x2c\x4e\xc8\x4a\xa4\x8e\xaa\x67\xa2\x7a\x16\x02\xb3\x19\x4e\xc1\x2e\xb4\x7e\xdf\x45\x6a\xfa\x30\x1a\x5a\xc7\x6c\x33\x62\x39\x10\xd9\xc1\x20\xd7\xc3\x9e\xd7\x7f\xa2\x80"
+#define SAMPLE1_4PKTS_FEC_LONG "\x80\x16\x03\x58\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x40\x80\x21\x0c\x00\x00\x00\x00\x00\xaf\x03\xe3\x00\x00\xf0\x00\x00\x00\x00\x9a\x46\x0e\x86\x7c\x84\xe9\x6d\xa3\xdc\x0f\x94\x24\xf4\xbf\xa3\xe4\xcd\x86\x4d\x16\x20\xa3\xe6\xbf\xce\x1c\x4f\x7d\x24\x3d\xc1\x8c\x65\x83\x83\xe2\xff\xe5\x69\xc7\x2c\xc0\x69\x8a\x4c\x93\xa8\x08\x0a\x2f\x9f\x51\x45\x0d\x45\x61\xea\x7d\x0f\xe7\xc7\x9f\x34\xab\xb3\x8f\x67\x7c\x15\xbe\x09\x67\x87\x7b\x38\xfc\x04\xe9\xd4\x3a\x66\xe0\x37\xd7\x45\xa5\xa9\xd7\x71\x1a\x88\x7d\x3c\x00\x37\xee\xac\x7f\x54\x92\x75\x15\x21\xf2\xf1\x9a\x23\x66\x6d\x90\x83\xfe\x3a\x31\xf3\x42\x34\xa4\x30\x39\xa8\xbb\x5f\xea\x63\x4b\x86\xe3\x0e\x6a\x46\x2c\xbf\xc1\x1a\xfb\x8a\x5a\x59\xfc\x55\xf0\x13\xe9\x53\x7a\xd9\x58\x83\x15\xfb\xbe\x99\x6e\x1c\x59\xc1\x1e\xbc\x9a\x89\xd7\x57\x4c\x47\x9a\x45\xd8\x18\xaa\xf9\x3e\x24\xf6\xe9\xf3\xa4\xc4\xd2\x39\x34\xc5\x4b\xb4\x64\xcc\xc1\x20\xdc\x49\x7f\x3d\x97\xb5\xc6\xe0\x11\xff\x00\x4c\x9e\x8f\x86\xc0\x93\xb9\x3a\x61\x4e\xbb\x68\x68\x16\xfb\x4f\xde\x77\xc2\x11\xbb\x93\x53\x75\x91\x42\xe8\xed\xfb\xd8\xdb\x61\xe5\x93\x23\x58\x30\x80\x5f\xeb\x27\x15\xd8\xaa\x09\x6e\x21\x04\xf6\x0a\xda\x69\x4f\xad\x85\x28\x20\x8a\x28\x1a\xf7\x06\xf5\xd1\x1f\xb3\x7e\x91\xae\x90\x9c\xdd\x4c\xeb\x60\xdb\x10\x85\x4a\xd8\xc2\x1a\x02\x9c\x1c\x9c\x0d\x0f\x4c\x12\x68\xa8\x58\x5e\x81\x46\x62\x00\x2a\xfd\xcd\xd3\xbd\x01\x21\x03\xa6\x6c\x77\xa5\x75\x51\xd1\x91\xae\x47\xac\x3d\xfd\x2c\x94\x6e\xb4\x7f\x2a\x3e\xb3\x88\x82\x69\xd2\x6d\x5d\xb9\x4c\x36\x26\x40\xac\x91\x48\x53\x82\xa9\xf8\x2e\x6d\xd5\x9e\x84\x98\x37\x23\x92\xc9\x19\x5c\xcc\x45\xf0\x9b\x51\x45\x55\x68\x5f\x80\xbb\x03\x06\x75\x83\x0a\x4a\x30\x47\xa3\xc3\xc1\xe6\x6d\x3d\x2b\xff\x13\xc5\xac\x09\xca\x45\x62\x6f\xcf\x6b\xc4\x06\xbe\x34\x07\x80\x3b\xe2\xf9\xb8\xea\x4b\x75\x7c\x92\x76\xed\x71\xf4\x8b\x15\xbb\x1d\x24\xcd\xf8\x5c\xdd\xd3\xa3\x4a\x22\xb1\xe4\xfe\x18\x6d\xfb\x2c\xeb\x0e\x97\x98\xe3\xcb\x30\xc7\x2f\xc2\x1d\x67\x97\x5a\xb1\xba\xd4\xdd\xc9\x29\xdb\x83\x7b\x1e\xd9\x5f\x32\x64\x79\xf0\x46\x09\xb7\x9f\x57\x3c\x84\x2c\x7d\xd7\x5a\xc1\x5d\xd8\xbb\xe6\xbb\x66\xe9\x93\x03\xf3\x7a\x64\x81\xb0\xec\x13\x54\x25\xa6\x5a\xd3\x7b\xa8\x23\x37\xfb\xfc\xff\x5e\xfd\x2b\xe3\x4f\x05\x8f\x40\x71\x26\xde\x25\xaf\x71\x27\xbe\x9a\xfb\x42\xfd\x1c\x02\x0f\x73\x27\x97\x9d\x14\xd3\xef\x12\x6b\x1f\xa4\x57\x23\x81\xf8\x68\x51\xa3\x1e\xf4\xdd\xcd\xa2\x61\x69\xae\xa1\x8d\xfe\xfc\x72\x8a\x02\x36\x21\xf5\xf9\x79\xbb\xaf\xa5\x89\x82\xc8\x97\xb0\x76\x92\xd0\xcf\x2a\xe0\x64\x63\x5a\x11\x23\x04\x81\x53\x4f\x43\x45\xda\x95\x59\x59\xa1\x69\x48\x98\x67\x7e\xa3\x07\x58\x2d\x91\x1c\x94\x99\xb7\xad\xf4\x07\x5a\x75\x5c\x5d\x92\x95\x06\x83\x0e\x9c\xb5\x54\x48\x24\x5a\x23\x49\xbf\x03\x02\x3c\x55\xb5\x3a\x2d\x2d\xcb\x51\x1f\x61\x64\x09\x60\x1c\x51\x12\x1c\x18\xb7\x24\x49\x3d\xba\x34\xb2\x5d\xde\xd6\xbc\x0f\x69\x36\xf2\x05\xb9\x7b\xc7\x1b\xa4\x34\x30\xff\xa6\x4c\x10\x29\x08\xbd\xa2\x1e\xe5\xb4\x6b\x44\x70\xa2\x62\xfc\x60\x10\x63\x91\x6a\xd3\x75\x7e\xf9\xb7\x4d\xf6\x3b\xcb\x8a\xb3\x94\xd0\x51\x37\x0f\xd0\x6f\x37\x8b\x6e\x23\x1c\xb8\x3a\x55\x23\xbc\x52\xda\x3c\xb5\xa4\x8d\xdc\x60\xa3\x29\xb4\x9c\xd8\xc9\xb6\xb6\x2e\x88\xc8\x59\x84\x6e\xb8\xaa\xda\xdc\x90\x43\x47\x6b\x62\x41\x06\xdc\x78\xe9\x5b\x1b\x19\x68\x96\xc2\xb6\x55\xca\x16\xa4\x76\xed\xe1\x64\xf1\xb0\x84\x1d\x84\xfc\x52\xf8\x0c\x7f\xbc\x90\x6e\xb4\x5c\xfb\xcc\xa9\x9d\x8b\x29\x19\x22\xd1\xbd\xce\x5e\xbe\x51\xdb\xd4\x86\xba\x8e\x37\x5e\x91\x4d\xf7\x51\x82\xb6\x26\x0f\xb9\xc2\x18\x6c\xf3\xe3\x46\xdf\x10\x03\xaf\xbe\x5a\xa3\x54\x38\x4f\x90\xf2\x2e\x4f\x27\xf8\x62\x24\x25\xe6\x1b\x3b\x61\xf5\xa8\x80\x9a\x3f\x52\x98\x5c\x26\x21\x13\x15\xbf\x6c\xc9\x41\x2d\x3c\xdd\x1a\xbf\xe7\xcb\x0d\x19\xdc\xdd\x53\x8c\x86\x3e\x2c\xc0\xa7\xe2\xa0\xf5\x1f\x8e\xc3\x73\x2b\x04\x3a\x93\x41\x5f\xe4\x76\xee\xd1\x1e\xe3\x36\x9e\xc5\xe3\xcd\x49\x19\x68\x0b\xcf\xde\x5f\x11\x75\xb5\x64\xfa\x1c\x71\xff\x97\x95\x96\x24\x0f\x05\x12\x61\x31\xb6\xb8\x2f\x6c\x4e\xfa\xe5\xfc\x0a\x80\x9d\x3e\xb7\x63\x68\x10\xc6\xed\x3c\xba\x9a\x82\x7c\x2c\x4e\xc8\x4a\xa4\x8e\xaa\x67\xa2\x7a\x16\x02\xb3\x19\x4e\xc1\x2e\xb4\x7e\xdf\x45\x6a\xfa\x30\x1a\x5a\xc7\x6c\x33\x62\x39\x10\xd9\xc1\x20\xd7\xc3\x9e\xd7\x7f\xa2\x80"
+
+#define SAMPLE2_1PKT_1_SSRC_0x1 "\x80\x64\x90\x39\x0C\x8E\x98\x84\x00\x00\x00\x01\xD1\x04\x08\x42\xB1\xD3\xA1\x82\x42\x11\xAB\x70\x58\x30\x89\x85\x7A\xC0\x79\xBF\xAC\xFB\x3E\xD0\xA0\x81\xBD\x26\x67\xBB\x73\x1A\xB7\x51\x1B\x23\x5E\x6F\xE1\xE3\x40\x19\xEA\x39\x8B\x2C\x9E\xD6\x57\xE8\x1D\x61\x6D\xEA\x6A\x4C\x63\x69\x12\x59\x27\x25\xFB\x77\x73\x21\x0A\x3C\x20\x4E\xC7\xF1\x15\x2E\xFF\x11\x80\x53\x40\x9B\x10\xA3\x92\xD7\x2D\xFB\xF3\x67\xE0\xC0\xDC\x8B\xB0\x3D\xE4\x56\xF0\x63\xE9\x6A\x6A\x35\xB4\xB4\xDB\x37\xBA\x62\x65\x3D\xE9\x44\xB0\x71\x02\x1D\x34\x69\xA0\x04\x5C\x29\xEF\xE0\x72\x38\x09\x97\x20\x83\x85\x29\x90\xDB\xEC\x68\x17\x96\x44\x3A\x0C\x94\x42\xC5\xF1\xCF\x07\x9E\xD1\xE1\xC3\xBF\x80\xA4\xB0\x09\x41\xB5\x6B\x7E\x39\xEE\x50\x50\x84\x08\x40\xB1\x55\x20\xE4\x33\xBD\x4B\x92\xE7\x03\x58\x24\x2A\x52\xB3\xB6\x0B\x64\x80\xC1\xD0\x7F\x44\xF1\x8A\xE3\x17\x05\x6F\x45\x4E\x85\x1C\xFF\x3B\x45\x50\x48\x9B\x61\x22\x4E\x1A\x7F\x5C\xC7\xEB\x56\x5A\x6D\x49\xDC\x19\xD3\xB2\x35\xE7\xA5\x17\xEB\xE5\xCA\x9E\x14\x35\xF8\x97\xF0\x44\x63\x3A\x94\xCF\x86\x08\x50\x35\x39\x02\x24\xB0\xEB\x99\x4F\xCB\x18\x83\x5F\x57\x14\x83\x8D\x7C\xFB\x80\xA1\xC7\xB3\x59\xBE\x4B\x3D\xDB\xF7\x16\xAF\x95\x4E\xAC\x55\x08\x93\x65\x3E\xFB\x74\xEF\xC4\x54\x86\xBC\x59\x58\x01\xB0\xA2\xF0\xC9\x33\xEB\x54\x2C\xE5\xA2\x45\xC9\xD2\x22\xD9\x97\xE8\x0C\x90\xBC\xFE\x76\x8A\x9F\x14\x9D\xCE\x98\xAD\x08\xDD\x9C\xC1\x73\x00"
+#define SAMPLE2_1PKT_1_SSRC_0xd2c442fa "\x80\x64\x90\x39\x0C\x8E\x98\x84\xD2\xC4\x42\xFA\xD1\x04\x08\x42\xB1\xD3\xA1\x82\x42\x11\xAB\x70\x58\x30\x89\x85\x7A\xC0\x79\xBF\xAC\xFB\x3E\xD0\xA0\x81\xBD\x26\x67\xBB\x73\x1A\xB7\x51\x1B\x23\x5E\x6F\xE1\xE3\x40\x19\xEA\x39\x8B\x2C\x9E\xD6\x57\xE8\x1D\x61\x6D\xEA\x6A\x4C\x63\x69\x12\x59\x27\x25\xFB\x77\x73\x21\x0A\x3C\x20\x4E\xC7\xF1\x15\x2E\xFF\x11\x80\x53\x40\x9B\x10\xA3\x92\xD7\x2D\xFB\xF3\x67\xE0\xC0\xDC\x8B\xB0\x3D\xE4\x56\xF0\x63\xE9\x6A\x6A\x35\xB4\xB4\xDB\x37\xBA\x62\x65\x3D\xE9\x44\xB0\x71\x02\x1D\x34\x69\xA0\x04\x5C\x29\xEF\xE0\x72\x38\x09\x97\x20\x83\x85\x29\x90\xDB\xEC\x68\x17\x96\x44\x3A\x0C\x94\x42\xC5\xF1\xCF\x07\x9E\xD1\xE1\xC3\xBF\x80\xA4\xB0\x09\x41\xB5\x6B\x7E\x39\xEE\x50\x50\x84\x08\x40\xB1\x55\x20\xE4\x33\xBD\x4B\x92\xE7\x03\x58\x24\x2A\x52\xB3\xB6\x0B\x64\x80\xC1\xD0\x7F\x44\xF1\x8A\xE3\x17\x05\x6F\x45\x4E\x85\x1C\xFF\x3B\x45\x50\x48\x9B\x61\x22\x4E\x1A\x7F\x5C\xC7\xEB\x56\x5A\x6D\x49\xDC\x19\xD3\xB2\x35\xE7\xA5\x17\xEB\xE5\xCA\x9E\x14\x35\xF8\x97\xF0\x44\x63\x3A\x94\xCF\x86\x08\x50\x35\x39\x02\x24\xB0\xEB\x99\x4F\xCB\x18\x83\x5F\x57\x14\x83\x8D\x7C\xFB\x80\xA1\xC7\xB3\x59\xBE\x4B\x3D\xDB\xF7\x16\xAF\x95\x4E\xAC\x55\x08\x93\x65\x3E\xFB\x74\xEF\xC4\x54\x86\xBC\x59\x58\x01\xB0\xA2\xF0\xC9\x33\xEB\x54\x2C\xE5\xA2\x45\xC9\xD2\x22\xD9\x97\xE8\x0C\x90\xBC\xFE\x76\x8A\x9F\x14\x9D\xCE\x98\xAD\x08\xDD\x9C\xC1\x73\x00"
+#define SAMPLE2_1PKT_1_FEC "\x00\x64\x90\x39\x0c\x8e\x98\x84\x01\x46\x01\x46\x80\x00\xd1\x04\x08\x42\xb1\xd3\xa1\x82\x42\x11\xab\x70\x58\x30\x89\x85\x7a\xc0\x79\xbf\xac\xfb\x3e\xd0\xa0\x81\xbd\x26\x67\xbb\x73\x1a\xb7\x51\x1b\x23\x5e\x6f\xe1\xe3\x40\x19\xea\x39\x8b\x2c\x9e\xd6\x57\xe8\x1d\x61\x6d\xea\x6a\x4c\x63\x69\x12\x59\x27\x25\xfb\x77\x73\x21\x0a\x3c\x20\x4e\xc7\xf1\x15\x2e\xff\x11\x80\x53\x40\x9b\x10\xa3\x92\xd7\x2d\xfb\xf3\x67\xe0\xc0\xdc\x8b\xb0\x3d\xe4\x56\xf0\x63\xe9\x6a\x6a\x35\xb4\xb4\xdb\x37\xba\x62\x65\x3d\xe9\x44\xb0\x71\x02\x1d\x34\x69\xa0\x04\x5c\x29\xef\xe0\x72\x38\x09\x97\x20\x83\x85\x29\x90\xdb\xec\x68\x17\x96\x44\x3a\x0c\x94\x42\xc5\xf1\xcf\x07\x9e\xd1\xe1\xc3\xbf\x80\xa4\xb0\x09\x41\xb5\x6b\x7e\x39\xee\x50\x50\x84\x08\x40\xb1\x55\x20\xe4\x33\xbd\x4b\x92\xe7\x03\x58\x24\x2a\x52\xb3\xb6\x0b\x64\x80\xc1\xd0\x7f\x44\xf1\x8a\xe3\x17\x05\x6f\x45\x4e\x85\x1c\xff\x3b\x45\x50\x48\x9b\x61\x22\x4e\x1a\x7f\x5c\xc7\xeb\x56\x5a\x6d\x49\xdc\x19\xd3\xb2\x35\xe7\xa5\x17\xeb\xe5\xca\x9e\x14\x35\xf8\x97\xf0\x44\x63\x3a\x94\xcf\x86\x08\x50\x35\x39\x02\x24\xb0\xeb\x99\x4f\xcb\x18\x83\x5f\x57\x14\x83\x8d\x7c\xfb\x80\xa1\xc7\xb3\x59\xbe\x4b\x3d\xdb\xf7\x16\xaf\x95\x4e\xac\x55\x08\x93\x65\x3e\xfb\x74\xef\xc4\x54\x86\xbc\x59\x58\x01\xb0\xa2\xf0\xc9\x33\xeb\x54\x2c\xe5\xa2\x45\xc9\xd2\x22\xd9\x97\xe8\x0c\x90\xbc\xfe\x76\x8a\x9f\x14\x9d\xce\x98\xad\x08\xdd\x9c\xc1\x73\x00"
+
+#define SAMPLE_ISSUE_7049 "\x80\x16\x1d\x51\x58\x85\x89\x8f\x5a\xb9\xf5\x7c\x3a\x32\x47\x23\xa3\x6b\x48\x47\x00\xaa\x00\xaa\x80\x00\x3a\x32\x47\x23\xa3\x6b\x48\x47\x31\x51\xba\xb0\xcc\x4b\xe8\xf5\x42\x62\xc2\x52\x6f\x05\xbc\xcc\x6b\xb6\x73\xda\x8c\x58\x47\xec\xb3\x80\xaa\x51\xb8\x2c\xb8\x5e\xeb\xe1\x44\x36\xf2\xc4\x5e\x23\xcb\xcd\x56\x2e\xac\xc2\x8c\x64\xfe\x0f\x90\xb3\x6d\x83\x71\xa1\xe6\x8f\x54\xa5\x70\x7d\xb2\xed\x6e\x9f\x24\xb5\xa6\x82\xf9\xa5\xcf\xdd\x9d\x3f\x3d\x75\xa5\x63\x92\x6b\x0a\x20\x9d\xb4\x1b\x44\x8d\x65\x74\x70\xf6\x3f\x46\x5b\xf3\xef\xca\xbe\x72\x3f\x34\x69\xba\x19\xa0\x3f\xb0\xf4\xdc\x99\x82\x4d\x98\xa8\xea\xdd\x4b\x04\x1f\xaa\xaa\x33\xa7\x13\x8c\xfe\x6a\x4c\x46\x53\xaa\x03\xbf\xa0\xe9\xf0\x38\x4f\x64\xf1\x39\x65\x51\xd2\xf5\x21\x07\x1a\x4b\x50\xab\x38\x25\x1b\x1b\xa4\xd2\x89\x25\x3b"
+
+// rtp header (fec) : [ ] ssrc=0xd2c442fa pt=123 tstamp=0 seq=0 size=352(340,340)
+// fec header : [ ] pt=100 tstamp=210671748 seq=36921 recovery_len=326
+// fec level header : protection_len=326 mask=0x800000000000
+#define SAMPLE_ULPFEC0_FEC "\x80\x7b\x90\x3a\x0c\x8e\x98\x84\xd2\xc4\x42\xfa\x00\x64\x90\x39\x0c\x8e\x98\x84\x01\x46\x01\x46\x80\x00\xd1\x04\x08\x42\xb1\xd3\xa1\x82\x42\x11\xab\x70\x58\x30\x89\x85\x7a\xc0\x79\xbf\xac\xfb\x3e\xd0\xa0\x81\xbd\x26\x67\xbb\x73\x1a\xb7\x51\x1b\x23\x5e\x6f\xe1\xe3\x40\x19\xea\x39\x8b\x2c\x9e\xd6\x57\xe8\x1d\x61\x6d\xea\x6a\x4c\x63\x69\x12\x59\x27\x25\xfb\x77\x73\x21\x0a\x3c\x20\x4e\xc7\xf1\x15\x2e\xff\x11\x80\x53\x40\x9b\x10\xa3\x92\xd7\x2d\xfb\xf3\x67\xe0\xc0\xdc\x8b\xb0\x3d\xe4\x56\xf0\x63\xe9\x6a\x6a\x35\xb4\xb4\xdb\x37\xba\x62\x65\x3d\xe9\x44\xb0\x71\x02\x1d\x34\x69\xa0\x04\x5c\x29\xef\xe0\x72\x38\x09\x97\x20\x83\x85\x29\x90\xdb\xec\x68\x17\x96\x44\x3a\x0c\x94\x42\xc5\xf1\xcf\x07\x9e\xd1\xe1\xc3\xbf\x80\xa4\xb0\x09\x41\xb5\x6b\x7e\x39\xee\x50\x50\x84\x08\x40\xb1\x55\x20\xe4\x33\xbd\x4b\x92\xe7\x03\x58\x24\x2a\x52\xb3\xb6\x0b\x64\x80\xc1\xd0\x7f\x44\xf1\x8a\xe3\x17\x05\x6f\x45\x4e\x85\x1c\xff\x3b\x45\x50\x48\x9b\x61\x22\x4e\x1a\x7f\x5c\xc7\xeb\x56\x5a\x6d\x49\xdc\x19\xd3\xb2\x35\xe7\xa5\x17\xeb\xe5\xca\x9e\x14\x35\xf8\x97\xf0\x44\x63\x3a\x94\xcf\x86\x08\x50\x35\x39\x02\x24\xb0\xeb\x99\x4f\xcb\x18\x83\x5f\x57\x14\x83\x8d\x7c\xfb\x80\xa1\xc7\xb3\x59\xbe\x4b\x3d\xdb\xf7\x16\xaf\x95\x4e\xac\x55\x08\x93\x65\x3e\xfb\x74\xef\xc4\x54\x86\xbc\x59\x58\x01\xb0\xa2\xf0\xc9\x33\xeb\x54\x2c\xe5\xa2\x45\xc9\xd2\x22\xd9\x97\xe8\x0c\x90\xbc\xfe\x76\x8a\x9f\x14\x9d\xce\x98\xad\x08\xdd\x9c\xc1\x73\x00"
+// rtp header (recovered): [ ] ssrc=0xd2c442fa pt=100 tstamp=210671748 seq=36921 size=338(326,326)
+#define SAMPLE_ULPFEC0_MEDIA "\x80\x64\x90\x39\x0C\x8E\x98\x84\xD2\xC4\x42\xFA\xD1\x04\x08\x42\xB1\xD3\xA1\x82\x42\x11\xAB\x70\x58\x30\x89\x85\x7A\xC0\x79\xBF\xAC\xFB\x3E\xD0\xA0\x81\xBD\x26\x67\xBB\x73\x1A\xB7\x51\x1B\x23\x5E\x6F\xE1\xE3\x40\x19\xEA\x39\x8B\x2C\x9E\xD6\x57\xE8\x1D\x61\x6D\xEA\x6A\x4C\x63\x69\x12\x59\x27\x25\xFB\x77\x73\x21\x0A\x3C\x20\x4E\xC7\xF1\x15\x2E\xFF\x11\x80\x53\x40\x9B\x10\xA3\x92\xD7\x2D\xFB\xF3\x67\xE0\xC0\xDC\x8B\xB0\x3D\xE4\x56\xF0\x63\xE9\x6A\x6A\x35\xB4\xB4\xDB\x37\xBA\x62\x65\x3D\xE9\x44\xB0\x71\x02\x1D\x34\x69\xA0\x04\x5C\x29\xEF\xE0\x72\x38\x09\x97\x20\x83\x85\x29\x90\xDB\xEC\x68\x17\x96\x44\x3A\x0C\x94\x42\xC5\xF1\xCF\x07\x9E\xD1\xE1\xC3\xBF\x80\xA4\xB0\x09\x41\xB5\x6B\x7E\x39\xEE\x50\x50\x84\x08\x40\xB1\x55\x20\xE4\x33\xBD\x4B\x92\xE7\x03\x58\x24\x2A\x52\xB3\xB6\x0B\x64\x80\xC1\xD0\x7F\x44\xF1\x8A\xE3\x17\x05\x6F\x45\x4E\x85\x1C\xFF\x3B\x45\x50\x48\x9B\x61\x22\x4E\x1A\x7F\x5C\xC7\xEB\x56\x5A\x6D\x49\xDC\x19\xD3\xB2\x35\xE7\xA5\x17\xEB\xE5\xCA\x9E\x14\x35\xF8\x97\xF0\x44\x63\x3A\x94\xCF\x86\x08\x50\x35\x39\x02\x24\xB0\xEB\x99\x4F\xCB\x18\x83\x5F\x57\x14\x83\x8D\x7C\xFB\x80\xA1\xC7\xB3\x59\xBE\x4B\x3D\xDB\xF7\x16\xAF\x95\x4E\xAC\x55\x08\x93\x65\x3E\xFB\x74\xEF\xC4\x54\x86\xBC\x59\x58\x01\xB0\xA2\xF0\xC9\x33\xEB\x54\x2C\xE5\xA2\x45\xC9\xD2\x22\xD9\x97\xE8\x0C\x90\xBC\xFE\x76\x8A\x9F\x14\x9D\xCE\x98\xAD\x08\xDD\x9C\xC1\x73\x00"
+
+// rtp header (incoming) : [ ] ssrc=0x22788197 pt=126 tstamp=3858074287 seq=8476 size=1007(995,995)
+#define SAMPLE_ULPFEC1_MEDIA0 "\x80\x7e\x21\x1c\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x61\x9a\x00\x08\x06\x7e\x85\x76\x29\xd9\xb7\xe8\x45\x0b\xbf\xf5\x6f\xab\x7f\xc1\xf7\x81\x4f\xc3\x1d\x65\xd8\x27\xa7\xfa\x15\x73\xf9\x8c\xb9\xfe\xf3\x6f\xeb\x5f\xfa\xbf\xd7\xbc\x18\x2f\x70\x9f\x84\x81\x89\x7d\xfc\x5d\x7a\x6e\xfe\x55\x97\xd6\xbd\xff\xd3\xd7\xf1\x1e\xba\xe2\x35\xed\xd7\xe9\x02\x2f\x71\x41\xff\xd7\x02\x4f\x81\x23\xdc\x47\xbd\x94\xb4\xd7\xf5\xc1\x27\x7b\x95\x52\x6b\xee\x08\xb7\xf2\xbe\x27\xd7\xba\xd9\x7d\x7a\x11\xdf\x9f\x12\xf3\x57\xf9\xee\x7a\x7e\xba\xe5\xf5\x7b\xef\xd5\xc3\xba\xfd\x27\x54\xd5\x3e\x75\x6b\xc7\xf8\x83\x6b\xec\x58\x23\xaf\x8a\xb9\x69\xf2\x7e\x97\x97\xdd\x4f\x57\xae\xb5\x7d\xef\x93\xc9\xaf\xad\x7e\x7e\xb5\x5c\x96\xbf\x86\x32\x99\xef\xf8\x53\xfd\xeb\xd1\x29\x6f\xe1\x3d\x73\x66\xeb\x84\xfa\x54\x97\xf0\x47\x5f\x2e\xff\x05\xde\xf7\xf2\xf9\xeb\x4e\xdf\xfa\xc1\x7c\xbd\xaa\xea\xf5\xd6\xab\xfb\x7e\x85\xd2\xd4\x9d\x6a\xf8\x9e\xbe\xd9\x7a\xb7\xd7\xbe\xba\xf3\xcb\x83\xde\xbe\xaf\xdd\x6a\xff\x2d\x2e\x6c\xf2\x75\x7e\xee\xd7\xf5\xee\xbe\xfb\xf7\x04\xba\xfd\x5b\xe5\xf7\xde\xf5\x5c\x11\xef\x98\x51\x1c\xf9\x59\x7f\x5c\x27\xdf\xbc\xfb\xf7\x2d\x6f\xcf\xd6\x55\xeb\xae\x5f\x2d\xfb\xe6\xa5\xd7\x2f\x63\xad\xc5\x70\xdf\xba\xf4\xff\xfa\x7e\xc1\x15\xff\x4b\xd7\x28\x9e\x21\xf6\xd5\x39\x99\xf2\x74\xfe\x6b\xf2\xd7\xe2\x6f\xfb\x7d\x1f\x17\xf4\x7f\x37\x2f\x63\xf3\x7b\xf0\x7b\x5c\xbd\x8e\xbb\xbf\x5f\xc1\xef\x8d\xbe\xf2\xa9\xd7\x59\x7a\xf3\x5e\x9f\x7a\xd7\xc9\xde\x22\xff\x25\x7a\xe4\xe5\xcf\x8b\xe9\x7b\x5d\x2f\x77\x09\xef\xf5\xd2\x35\xef\xe8\x9b\x3f\xc9\x7f\xea\xc3\x51\x3d\x7a\x77\xcb\x7b\xfa\xf5\x37\x5e\xfb\xdf\xf2\x7a\x17\x9a\x9f\xf2\x53\xfd\x5f\x27\x5f\x0e\x08\xdb\xb7\x5f\xc3\x54\x99\x6b\x45\xff\x82\x2a\x0b\xb5\x72\x71\xdc\xb5\xc3\x36\x3e\xbe\xff\xa2\xec\x5f\x82\x4a\xfe\xf5\x2c\x35\x57\xfa\xbb\xe1\x9b\x1f\x5d\x7f\xf3\x6a\x4b\x1d\xdb\x15\xd7\xa3\xfd\xeb\xe6\xba\x74\xfa\xfa\xbd\x75\x7a\xe4\xd7\xf2\xef\xf5\x5c\x4e\xc7\x63\x99\x8b\x1f\x82\x1e\xfe\xf8\x4b\xb7\x5f\xef\xaf\xc3\x77\xfd\xeb\xfe\xb5\xee\x4e\xbd\x75\x37\xaf\x84\x2c\x7f\x5f\x5d\x49\xd2\xe4\x6b\x5f\x2e\x9e\xf7\x5c\x23\xd7\xaf\xae\x07\xa0\x6e\xbd\xf2\xfb\x6f\x82\x8e\x8d\x25\xef\xf3\x5f\xf8\x5f\xd3\xa7\x4f\x1d\x7f\xeb\x36\x30\xbb\xdf\x87\x4b\x62\xe4\xd7\xaf\xde\xa4\xb4\x23\xbf\x5f\xaf\x7a\xad\x86\xf4\x0e\xcd\xc7\xe9\xf5\x9b\x8a\xb1\xf4\xfb\xcd\xf1\x34\xe9\xf7\x93\x82\x3d\x0f\x94\xba\xf0\xc7\x86\x3b\x9a\x9d\x3e\xe5\xf7\xdc\x4f\x92\x56\xff\x37\x77\xec\x4d\x7b\x7f\xfb\xfd\xed\xdb\x5b\x04\xfd\xfa\xdd\x2e\xc4\x7b\x7a\x7f\x35\xaf\xe2\x74\x3a\x1f\x45\xff\x5e\x97\x28\x2d\xe8\x5e\xc6\xef\x89\xdb\xd0\xff\xf9\xaf\xad\x4f\xe5\xb9\x36\x3c\x9a\xbe\x4b\x17\x7c\x4f\x55\x55\xfc\x4f\xa8\xc9\xcf\xfc\x9d\x7e\xfa\xfc\x4d\xff\x65\xe0\x8b\xaa\xca\x6f\x5c\x9e\xde\x22\x6b\x76\xfd\x84\xb9\x98\xf7\x76\x19\x5e\xef\x5f\xd0\x22\xa3\xfd\xf2\xd8\x52\x9b\xfa\xb7\xa1\x7e\xcb\xb2\xf2\xcc\xa7\xfc\x67\xbf\x4e\xfd\x8d\x8b\xe0\x8b\xdf\x55\xe4\xcb\x5c\x31\x43\xe6\x63\xaf\xaf\xf0\x85\x6b\xb1\xdb\xef\xf0\x87\x36\xdf\xb0\x27\x5e\xaf\x9b\x5d\xf0\xed\x76\xd2\xf6\xf7\x3a\xff\xc7\xf9\xff\x6a\xc1\xfe\x0c\x34\x6c\x7e\xef\xba\x7f\xf0\x4b\xaa\xa6\x83\xf5\xdd\x5b\xd8\x2a\xe8\x55\xaa\xaa\xf2\xae\xbd\x27\x58\xbe\xbd\xf2\x7a\x6b\x87\xbd\x2d\x8a\xbb\x1a\xdb\xaf\xad\x93\x7f\xc1\x25\x6b\x65\xf3\x72\xfa\xe1\x5a\x13\x1f\x4b\x54\xff\xae\x7a\xa7\xff\xdd\xff\x8a\xbf\x42\xfe\x12\xe8\x7d\xfe\x3b\xbb\x1a\xfb\x77\xff\x0f\x2d\x49\xcd\xa7\xf8\xee\x8b\xb1\xcf\x2f\xe1\x3c\xea\x7d\x7f\x24\x0c\x19\xfa\xb5\x75\x6b\xe4\xdf\x37\x37\xbf\x84\xfd\x71\xb7\xc5\xb4\xdc\x46\xb5\xd6\xb5\x7c\x11\xd7\xeb\xe1\xbb\x3e\xd4\xff\xfa\xc5\x37\xab\xfc\x94\xff\xbc\xc6\xff\x09\x69\xfb\xfd\xef\xeb\xe7\xf4\x12\xf5\xdf\xe0\x8f\x9a\xed\xf0\x49\xe9\x3b\xe5\xe8\xbe\x2f\x22\x9f\x2c\x6f\x9a\xc7\xa7\xe1\xaa\x7d\x75\xff\x85\xa4\x2f\xfd\xd7\x7f\xfc\xfc\x2b\xb1\x6b\x5a\xdf\xd7\xf5\xbf\xdc\x0d\xb9\xba\xb5\xf5\x2a\x7b\x9b\xaf\x57\x26\xc1\xfe\x4a\x07\xfc\x9e\xcf\xc9\xd1\xa3\xf0\x97\x35\xeb\xae\x69\x08\xf5\xcd\xd0\x3e\x07\xb0\x5f\x27\xbe\x13\xe9\xef\xf8\x24\xa5\xf5\xf2\xd1\xfe\x89\xdf\xe1\x3f\x47\xba\xf4\x7a\xef\xff\x2d\xff\x82\xdf\x6c\xdf\xd7\xc3\x9e\xd7\x7f\xa2\x80"
+// rtp header (incoming) : [ ] ssrc=0x22788197 pt=126 tstamp=3858074287 seq=8477 size=1000(988,988)
+#define SAMPLE_ULPFEC1_MEDIA1 "\x80\x7e\x21\x1d\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x61\x00\x59\x66\x80\x02\x01\x9f\xc1\x73\x33\x3f\xd7\x2e\xb5\x5e\xe2\xf9\x19\xd0\xbf\x37\x42\xf8\x4f\x7b\x6c\x4b\x5f\x57\x93\xaf\x7c\xde\xfe\x17\xaf\x63\xdd\x6c\xbf\xf1\x1b\x7f\x63\xf0\x9d\x06\x4a\x7d\x83\xf2\x6b\xf9\x2c\xff\x85\x69\x25\xa4\xcf\x6d\xb4\x5f\x87\x15\xd3\x4f\x4d\x3f\xfd\x7d\xb6\xf6\x1c\x53\x90\x7d\x84\x63\x3f\xfa\x9f\x6a\xfe\x21\x69\xc3\x8b\xff\xfd\x34\xea\xdb\x7f\x97\x85\xfd\x14\xbb\xad\xaf\xfc\x18\x76\xbb\xd5\xaf\xfe\xf4\xb5\xcf\xca\x9f\xff\x2c\x3e\xa7\xbf\x7b\x26\xca\x8b\x68\x7f\x1f\x21\x7d\x50\x7f\x24\xf5\xed\xff\x97\xbb\xff\xff\xfe\x78\xae\x93\x37\x7f\xff\xd7\xb8\x8d\xfe\x3e\xd7\xc9\xdf\xab\xe8\xd8\x3f\x0c\xf3\x65\x7a\x5f\x9a\x7a\xe9\xfc\xdd\x2c\xaf\x9e\xaf\x7f\xf9\xb6\x3f\xc3\x97\xa5\x5d\x7e\xfb\xf4\x5b\xbe\x85\xf5\xd4\xbc\xf5\xef\xeb\xba\xff\x26\xc7\xfb\xb0\xff\x8a\xbf\xef\xe6\xdf\x5c\xbe\xd1\x3a\xe5\xd6\xfa\xbd\xf5\xea\xea\xf5\xc2\xfe\xfd\x89\x7b\x2f\xf5\x29\x55\x6b\x86\xa9\x75\xaf\xff\x57\xfb\xb3\xfb\x9a\xd7\x52\x4d\x5f\xab\xc9\x1f\xc2\x79\x58\xf6\xba\x88\xb1\xfa\xd3\xd5\xfb\xaa\x9b\x62\xb5\xef\xd5\xf3\xd7\xaf\x9b\x93\x7f\xc3\x3d\x1d\x5b\xff\xee\xff\xc9\x45\xde\x9e\xbf\x5f\x15\xb1\xd0\xa8\x49\xcb\xcd\xed\x93\x9b\xb0\x7d\xbe\xae\xdf\xf5\x62\x7e\xb1\x57\x35\x84\x9f\xe2\xf4\xf3\x57\xf9\x7d\x49\xde\xcb\xf5\x7a\xea\xff\x04\x9b\x0a\xd7\x5f\xaf\x27\x35\x1f\xd4\x94\xfe\xbd\xc9\x7e\xaa\x4e\xd7\xc9\xe9\x92\xbf\x2e\xde\xba\xf4\x9c\xbd\x2f\xab\xc9\xdf\xb4\xb6\xad\xf2\x7b\x6b\x96\xc3\xd8\xd7\x15\xe8\xac\xaf\xe1\xdd\x81\x7b\xec\xb5\xa7\xfa\xef\x47\x9b\xab\xc2\x1c\x9e\x82\xf7\xd0\x2b\xfd\xfb\x97\x6b\xde\xf9\xab\xc9\xcb\xd8\xea\xa4\xf5\x27\x04\xef\x2f\xa7\xfb\xe1\x3d\xba\x1e\xbc\x23\xae\x2f\xd1\xd9\xcf\xfc\x11\xfa\xe5\xf0\x61\xaf\x54\xee\xf5\xff\x0b\x4c\xda\x16\xde\xbe\xbf\xd5\xfe\xaf\x7b\x04\x17\xb0\xb4\xdd\xad\xaa\xf2\xd3\xfc\x13\x57\xd7\xea\xeb\x07\xc5\x77\x7b\x5f\x84\x34\x2d\x82\xf5\xd7\x57\xfa\xbf\xd5\xfe\xaf\x5d\x5f\xea\xff\x57\xfa\xbf\xd5\xfc\x1e\xfd\x5f\xea\xf7\xab\xc1\x8d\xe0\xe6\x23\xae\x5f\x37\xa3\xf1\xbe\x35\x19\x47\xcc\x65\x83\x3e\xc1\xe5\x07\x47\xff\x0a\xce\x3c\x40\x6f\x6b\x5f\xb7\xf8\x2b\x9b\x17\x94\x8c\x83\xdd\x23\x97\xc4\x74\xba\x34\x7e\x37\xcf\x9b\x5d\x8d\xd3\xa7\x63\xd9\x7f\xad\x75\xf8\x67\xd8\x97\x56\xff\xc1\x17\xb9\xe9\x3a\xbf\xc2\x7b\xfd\xfc\x35\xbe\xb7\xff\xc4\xe9\xae\xbf\x84\x3b\xef\xeb\x5c\x29\xdb\xdb\xb6\x5c\x2e\x33\x8b\x4b\xdf\x7d\x3f\x86\x79\x85\x99\xaf\xd2\xfc\x2f\x60\xd8\x3a\xe8\x3a\x65\x6b\xff\x0b\x76\x99\x6c\x1a\xab\x7b\x36\xbf\x85\x37\x36\x6f\x77\x5e\xd5\x86\x7c\x8b\xe1\x0b\xfc\x99\x33\xd0\x63\xf9\xfe\x0b\x36\x1c\xa8\x9d\xac\x95\xf8\xbe\x32\xc3\xd3\xda\xf8\xcd\x4a\x55\xff\x9a\x92\x07\xf8\x57\xb9\xf7\x21\x0e\x7d\xaf\xf6\x81\x14\xf6\xcf\x20\xbc\x1c\x44\xc0\xfb\xbc\x1e\xf0\x3e\x03\xd5\x7f\x82\x7e\xfe\x4a\xee\x57\x35\x69\x33\xf0\x41\x29\x2e\x91\x99\x3d\x59\x5e\xc1\xab\x5f\xfc\x67\x4f\xaa\xe3\x8d\x7c\x65\xca\x03\xf1\x3d\x17\x47\x2e\x0f\x62\xba\xe5\xf5\xcb\xe2\xa8\x5d\x8f\x60\xbc\x33\x47\x6f\x17\xa7\xfe\x2b\x75\x21\x20\x9d\xbd\x5f\xfc\x6d\xf0\x8a\x47\xba\xcf\x47\xaa\x0b\xf4\xfc\xd6\xbf\xbb\x14\x61\x37\x35\xd2\x63\xe4\xf4\xfc\x17\xf7\xef\x55\xaf\xfd\xeb\xf9\x7d\xa5\x57\x4b\xf9\xba\xfc\x2f\x44\xcb\xee\xdd\xbf\xfb\xd0\xff\x7d\x3a\xee\xf7\x93\xfb\x8e\xe4\xd2\xd7\x25\xaf\xee\x8a\x96\x23\xaf\x7d\x7b\xeb\xde\xab\x52\xeb\xd7\xc2\xb5\xfd\xa7\x1f\x4f\xf5\xcb\xeb\x5d\x4f\x5f\x49\x2f\xcf\xc2\xbf\xcd\xc3\x3e\x8d\x69\xad\xbf\xe5\xed\x7c\x33\x5e\xe7\xb7\xfe\x23\x36\xd5\xaf\xe6\xea\x8b\xc5\xf6\x5b\xfe\xb5\xd4\xd4\xbf\x82\x3b\x5f\xa0\xb3\xfb\x93\x9e\xb5\xff\xc1\x76\xc7\xcc\x6f\x3d\xf1\x9d\x04\xc2\xe3\x8c\x60\x5f\xa7\xf5\x6f\x9b\x96\x89\x73\x29\x92\xb8\x30\xed\xf6\xeb\xfb\x7d\x7e\x0a\xbb\xd0\x36\x1f\xd8\xfb\xe7\xaf\x2e\xff\x86\xef\xfb\xb7\xff\x7b\x07\x83\x7a\xf7\x7e\x97\x93\x60\xb7\x59\xb9\xeb\xb5\xff\x37\xb3\xd7\xe5\xf7\xf3\x7b\x2f\x2f\x60\xfe\x5e\x8f\xe7\xaf\x4b\xfc\xbe\x8f\xcf\x5d\x2f\xf9\xba\x55\xc1\x27\x6b\xa8\x4f\x9e\xbd\x3f\x7d\x62\x8f\xdc\xfc\x45\x9f\x41\x7f\x04\x0f\xbf\x63\xd8\xeb\xfb\x3f\x61\x99\xd9\xd0\xea\x8b\xb3\xfe\x08\x6b\xfb\xe1\xce\xe4\xf8\x6d\xff"
+// rtp header (incoming) : [ ] ssrc=0x22788197 pt=126 tstamp=3858074287 seq=8478 size=999(987,987)
+#define SAMPLE_ULPFEC1_MEDIA2 "\x80\x7e\x21\x1e\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x61\x00\x2a\x29\xa0\x00\x80\x67\x75\xee\x16\x77\xfb\x5d\x6b\xff\x85\x7b\xd9\xf8\xef\xd9\xfe\x37\x63\xfb\xed\xdb\x4f\xe8\xfe\x5f\xfd\xa1\xdd\x91\x84\x12\x9c\x85\xf5\xf6\xb9\x7f\xe7\xaf\x5f\xf0\x49\x5a\xae\x5d\x41\x46\xee\xf7\xd9\xf2\xf7\xfa\xf7\xcf\x54\xab\xff\x19\x60\xf6\x48\xd0\xf9\x67\xbf\xf1\x94\xd7\xe5\xcd\xdf\xbe\xa3\x34\x0b\xd7\xbd\xe5\xce\xe3\x3b\xf1\x96\x50\x1b\x68\x17\x86\xbe\x79\xf0\x55\x49\x2b\x3d\x8e\xdf\xc3\xe0\x82\xe9\x7d\x96\xc1\xd5\x3a\x5f\xf0\xac\xd7\xbf\xbb\x6c\x2f\xfc\x15\xe8\xfb\xdf\x7c\xbe\x16\xef\x7e\xac\x2f\xef\x89\xe3\xb5\x30\x83\xa4\xe7\xcf\x11\xe8\xf6\x3f\x82\xcf\x1d\x1f\x0e\x97\x5b\x5e\xf8\x20\xec\x1b\xb5\x60\xb6\x76\xd7\xa7\xfe\x08\x3a\x06\x51\x82\x92\x7e\x30\x5e\xb7\xaf\x6f\xfc\x67\x39\x63\x13\xde\x8e\x8b\xa7\xfc\x4f\xa4\xbd\x70\x87\x4a\xc9\x12\x59\x09\x52\x52\xc3\x7b\xdd\x6d\x2b\xfe\x48\x7f\xbd\x13\x5d\x83\xd5\xaf\xfe\x18\xa1\xf6\x3e\xbd\x7f\xc2\xbe\x52\x3a\x07\x4c\xba\x5f\xe5\xd8\xbd\x41\x07\xa3\xb7\xbf\x54\xd3\xff\xcf\x5d\x3f\xf8\x23\xdf\x7a\xe6\x8f\x21\xf9\x84\x7c\x5d\x03\x29\x2e\x81\xd9\xfc\x2f\x77\xed\x30\xef\xfe\xd6\xa3\xae\xfb\xfc\x75\xad\x3d\xcd\x60\xff\x97\x60\xf2\xf5\x8a\xab\xc7\x4f\x5c\xb4\xfe\x10\x84\xbd\xf7\x7f\x6a\x97\xe0\xb7\xaf\xbc\xba\xfc\x33\xbe\xbf\x5d\x70\x4d\xbf\xd6\x2f\x82\x2a\x3f\xdf\x2f\xb5\xe0\x9b\xbf\xbd\xc7\x86\xbd\xd7\xfa\xe4\x82\x3f\x7d\x75\x3d\x57\xff\xac\x5d\x7e\xef\xfd\x62\xf9\x3b\x55\xc1\x37\xb6\xfe\x5f\x04\x57\xdf\xaf\x92\xdf\xf5\x8b\xa8\x8f\x64\x8b\xf8\x76\x8b\xf6\xdf\xaf\x4f\xfc\x7f\xb7\x91\x02\x37\x5f\xc2\x1d\x04\x3c\x76\xcb\xa4\x46\xff\x84\x7b\x6b\x57\xa7\xfc\x7d\x83\x60\xfe\x86\xff\x71\xdc\xe4\x2c\x15\x03\xd9\x7d\x42\x3d\x97\xa4\x7f\xfa\xb9\xe5\xfc\x14\xd0\xfb\x0b\x7a\x3f\xfe\x83\x3b\x5a\xa7\xff\xc4\xfb\x2d\x17\xcd\xe8\x97\x3d\x7d\xfa\xba\xf7\xd7\x2f\x96\x63\x9f\xcb\xee\xae\x13\xf7\xbf\xe7\xaf\xeb\xdf\xe4\xd1\x7e\x0a\x36\x3f\x7c\x6f\x8e\x94\xcd\x0e\x8a\x52\xef\xb2\xf8\x2d\xa3\x5f\xb9\x77\xc3\x3a\x77\xa4\x14\xfb\x7f\xc3\x9a\x07\xaf\xa7\xfc\x31\x36\x12\x3d\x83\xd7\xa0\xbf\xcb\xb3\x40\xe5\xeb\x17\xcf\x28\x1b\xf7\xb2\xec\xf8\xb4\xff\x57\xf8\x20\xf5\x4f\xd8\xbd\x82\x7e\x8b\xf3\xd7\xaf\xf9\xfd\xeb\xfa\x93\x6b\xf3\x68\x2f\xc2\x5e\x93\x09\xff\x75\xea\x9a\x94\xb8\x21\x07\x7d\x43\x3e\x9a\xd7\xff\x5c\xab\x8a\xaf\x5e\x4a\x31\x77\xbf\x82\x2f\x7c\xab\xae\x52\x75\xeb\xeb\xd7\xd7\x2a\xeb\x95\x70\xdf\x4f\xee\xbf\xf0\xef\x7b\x0f\xbd\xf1\x68\x9c\x91\x6f\xae\x5f\x41\xf9\x6d\x7f\x05\x1d\x8f\xbf\x57\xc1\x27\xbb\x3e\xb1\x57\x37\x5b\xd0\x67\xd3\x5a\x7f\xa9\x60\x86\xbf\xbc\x31\xe3\x17\xbe\x5f\x7f\x27\xbf\x88\xa4\x81\xbd\x03\xbb\xae\x08\xa9\x3e\xe7\xc1\x0f\xa4\xff\x3d\x53\xdb\xa7\xf8\x57\xb5\xed\x65\x5f\x47\xe1\x5f\x09\xc9\xe8\x1f\x86\xbd\x35\xb3\xff\xc1\x3f\x7d\x8b\xcb\xd1\xb4\xe9\xf7\xf2\x7a\x7e\xe7\x37\xef\x82\x7f\x7b\xee\xf0\x2e\x9e\x0c\x94\x1e\xf7\x97\xd7\xe0\xc0\xde\xbe\x08\x6f\xf5\xf2\x77\xfa\xd7\xc3\x7a\xeb\xd9\x7f\x65\xeb\x7c\x39\xae\xbd\xbf\xe8\xfd\x6b\xff\x86\xfd\xd5\x97\xf2\x60\x5c\x9f\xd7\x5e\xae\x7a\xc5\xff\xf0\x45\xed\xf7\xc1\x27\xae\x7f\x82\x1d\x01\xfd\x5d\x59\xf5\x7f\x88\xaf\x6f\xf9\x2f\xba\xea\xf5\xd7\xd5\xdc\xac\xfc\xf0\x43\xef\x3b\xad\x63\x7e\xba\xb8\x3c\xf8\x63\xc1\xd1\xea\xff\xdf\xae\x19\xed\xb3\x22\xc7\x6f\xfc\x31\xe8\xe6\x76\xbe\xdf\xf0\xb4\x9f\xa0\xab\x54\x5f\xfc\xf5\xb7\xfa\xe5\xbf\xf2\xfb\x44\xe1\xbd\xf9\x7f\x5f\xbd\xff\x3c\x82\xb2\xfe\xb9\xeb\x34\x3f\xf0\x4d\xee\xc7\xf0\xbe\x09\x7c\x8e\x39\x05\x9b\x02\x00\xec\xf8\x23\xf6\xf0\xf9\xeb\xeb\xc5\xfa\xe5\xdf\x58\x70\xfe\xf6\xfd\x70\x49\x54\x1f\xde\x6f\x7f\x0d\x6f\xf7\x7f\xfa\xd4\xd5\xfa\xeb\xe2\xe9\xfb\xfb\xab\xb9\x72\x41\xc7\xea\xff\x5c\xb8\x1d\x27\xaf\x4f\xf8\x66\xff\xd5\xfe\x1c\xe7\xba\xa6\x9f\xfe\x13\xaf\x96\x52\x5f\x86\x77\xd6\xdf\xfe\x4f\x47\xe1\x6e\xd5\x17\x5d\x1f\xfd\xe9\xfe\x16\xf2\x9c\x9e\xdf\x77\xd3\xfe\x1d\xf5\x4f\xd3\xfb\xeb\xfc\x3d\xea\x4c\xfe\x73\x6f\xfe\xfe\x08\xae\xfd\x57\x53\x03\xe6\xf7\x5d\x62\xf9\x7b\x75\xc9\xe6\xfe\x7a\xfb\x7f\xc2\xb0\xdf\x5d\x16\xfb\xe2\xf4\x5e\x33\xdf\x27\x5a\xe1\xcf\x43\x5b\x2f\xfc\x13\x50\xb5\xe8\x37\xae\x08\x76\xfe\xc0"
+// rtp header (incoming) : [M ] ssrc=0x22788197 pt=126 tstamp=3858074287 seq=8479 size=855(843,843)
+#define SAMPLE_ULPFEC1_MEDIA3 "\x80\xfe\x21\x1f\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x61\x00\x35\x49\xa0\x00\x80\x67\xf0\xe7\x4e\xaf\xfd\x5c\x95\xeb\xab\xcd\x72\x6f\xea\x79\xd3\xaf\xd7\x5a\x97\xab\xf8\x38\x5c\xbe\xb9\x7f\xff\xfb\x5b\xfc\x55\x53\xd9\x7f\x59\x7c\xf5\xfa\xfe\xfa\x2f\xae\xae\xfd\x49\xb3\xfd\x6b\xe7\xaf\xaf\xf5\x8a\xba\xf4\xbc\xbd\xb9\xba\xd4\x57\x7e\xc6\x4d\x02\x4f\x7e\xbe\xb2\x9b\x5d\x7b\xc9\xd7\x2e\x1a\xc9\x87\x56\x52\xec\x18\x3d\x05\xec\x9c\x3f\xff\x04\xdd\xba\x2f\x97\xc1\x0e\x5a\xf5\xf0\xd5\x68\xab\xfd\xbd\xc9\x65\xb5\xe0\x93\xdb\xd7\xc1\x1f\x95\x09\x1c\x7c\x35\x29\xc9\x9f\x56\xff\xae\x26\xff\x7f\xac\x1f\x5e\x92\xeb\x2b\xea\xe1\x5f\xe0\x93\x5f\x09\x3a\xbf\xd5\xfe\xaf\x5c\xdd\xe6\xe1\xae\xc7\x57\x7b\xfa\xe5\xda\xfc\x2b\xd7\x7d\x74\xbf\xea\xde\x96\x57\xd7\xa4\xbf\xa2\x5f\xee\x59\xea\xfa\xeb\x55\x07\x95\x39\x73\x7e\xb5\x7d\x71\xfe\xba\xd7\x83\xd5\xd7\xb5\xaf\x86\x3b\x69\x68\xb8\x14\x9f\xa6\x83\x5c\x33\xa7\xaf\xb3\xa3\xf8\x6a\x62\x17\xba\xfb\x7f\xcf\xd7\xfa\xae\x08\xfa\x77\x1e\x7a\xb3\xff\xeb\xdf\x3d\x5b\xfe\xf9\xe5\x53\x9e\x1f\x5d\x6b\xdd\xf5\xaa\xcd\xf3\xd5\xd7\xff\x57\xad\x9f\xaf\xb7\xdf\x58\xbe\x08\xaf\xea\xba\xd5\x75\xaf\xab\x7c\xd7\xfd\x17\x6b\xd5\x65\x7d\x7d\x27\x26\x9e\x4d\x3d\x7e\xc1\x17\x4f\x97\x55\xcb\xd0\x24\xf7\x8c\x7c\x37\xde\xbb\x7f\xc1\xa7\x85\x6b\x85\xf5\xc3\xc1\x87\x86\xfc\x29\x58\x9b\xe6\x4e\xff\x9a\xcf\xbe\x1c\xb7\xd7\xb7\xeb\xac\xbe\xba\xfa\xd4\x9c\xf5\xdf\xe5\xea\xdf\x5a\xae\x7f\x6b\xff\xa9\xda\x6a\xd7\x08\xfb\x3a\xfa\x55\x57\xb5\xae\xf5\xfc\xba\xeb\xac\xa7\xe2\xfd\x92\x1f\x13\x0e\xfe\x09\x3b\xcc\x9c\x3f\x5c\xb8\x23\xae\xbe\x7d\xf7\xff\xd6\xaf\x05\xfe\x0d\x7c\x17\xf8\x31\x04\x5e\xf0\x7c\x36\xe9\x6b\xfb\x3f\x9e\xde\x9f\xfa\xb7\xc1\x77\xa2\x7e\xe3\xcf\x5d\xbf\xf9\xea\xdf\xf1\x3c\xd7\xfe\x6e\xf2\xf0\xe5\xf6\x35\xb2\xff\x73\xf5\xbf\xfe\x08\x7d\xbf\x8f\x09\x7b\xd7\xf7\x7f\xef\x6f\x5c\x12\xed\x75\xfb\xeb\xd5\xcd\x44\xd7\xe4\xd2\xfd\xf9\xea\xb8\xbb\x3f\xd3\xf1\x3a\xed\xf7\xc5\x74\xe9\xd3\xae\x1b\xf6\x97\x5f\xf8\x4f\xbf\xb1\xf8\x43\x63\xfb\x1d\x2f\xc9\xd8\xef\x97\x5a\x6b\xab\x7d\x59\x7f\xbd\xf5\x6f\xfd\x7b\xd9\xeb\x4f\xf7\xc3\x3d\x6a\xdf\xf5\xca\x9a\xfe\x5d\xfe\xeb\xac\xa7\xe7\xca\xcb\xff\x86\xbb\xf2\x92\x1f\xc4\x75\xae\xb5\xc9\xed\x79\xb4\x7f\x62\xfb\x7d\x97\xc4\xd3\xfd\xaf\x2f\x49\x5f\x7b\x7f\x89\xeb\xed\x93\x9e\xb5\xff\xcf\x5e\xdf\xba\x82\x7c\xd4\xfa\xf5\xf0\x43\xdb\xe5\xf3\x76\x37\x13\xe5\xf2\xf5\xef\x7e\xef\x9d\xf7\xf7\x9f\xad\x7c\x11\xfb\x9c\x34\x56\xc3\x5e\x55\x11\x7b\x3f\x5a\xf8\x4b\xa5\xb5\xae\x6d\x2f\xc5\xd1\x76\xbf\x82\x1e\xd7\xbe\x0b\x7d\xab\x7f\x7b\x15\xec\xf4\xab\x84\xbd\x52\xfe\x5f\x4f\xc5\x6f\xe9\x77\xae\x0c\x3c\x93\xa3\xd6\x9a\x7f\xf0\xb7\x96\xd2\xf5\xd7\xfe\x08\xab\xf5\xf1\x78\xef\xbf\x6b\xa9\x7b\x4c\x1f\x89\xa0\xfd\xef\xea\xf7\xcb\xed\xfa\xf7\xc9\xbe\x4f\x2f\x9b\xab\xc9\xcf\x5f\xe9\xbd\xdf\x5a\xae\x7a\xf5\xff\x58\xa6\xd1\x63\xe7\x5f\xd4\x12\x7a\x3c\xbe\x5e\x8f\xe0\x9f\xd6\x87\xc5\xf2\xd0\xee\xc1\xf9\xab\xa3\xdc\x31\xa3\xa5\xb1\xd7\xfb\x7e\x08\xfb\xa4\x6a\xb8\x9f\x6f\xb5\xdf\xa7\x6b\xf8\x42\xbf\xaa\xff\x26\xbf\x84\xab\xf5\xf8\x46\x9b\x5f\x5e\xd7\xbd\x2f\xc1\x25\xbf\x2e\xc2\xcb\x5d\x7a\x9e\xac\xbf\xf9\xbb\x1f\xcd\x7e\x4e\x59\xff\xf1\xdd\x85\xaf\x4b\xea\xf8\xbb\xe8\xfb\x6f\xfb\xae\x6e\xd4\xb9\x22\xa0\xa3\x1d\xc5\x2e\xab\xd5\x57\xbd\xd5\xcd\xbf\xe1\xbf\x55\xdb\xff\x93\x4f\x5d\x5e\xbb\xaf\x5c\xde\xd7\x93\xd2\xf0\x45\x43\xf1\x7c\xf5\x7f\xfb\x86\x68\x7d\x6f\xff\x97\xd3\xf1\x1b\xfc\xd4\xf1\x1d\xae\xb7\xc9\x7e\xfb\xed\xdf\x7a\xeb\x71\x1c\xbd\xeb\xaf\x7b\xa8"
+// rtp header (fec) : [ ] ssrc=0x22788197 pt=22 tstamp=3858074287 seq=8480 size=1021(1009,1009)
+// fec header : [ M] pt=0 tstamp=0 seq=8476 recovery_len=175
+// fec level header : protection_len=995 mask=0xf00000000000
+#define SAMPLE_ULPFEC1_FEC0 "\x80\x16\x21\x20\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x00\x80\x21\x1c\x00\x00\x00\x00\x00\xaf\x03\xe3\xf0\x00\x00\x9a\x46\x0e\x86\x7c\x84\xe9\x6d\xa3\xdc\x0f\x94\x24\xf4\xbf\xa3\xe4\xcd\x86\x4d\x16\x20\xa3\xe6\xbf\xce\x1c\x4f\x7d\x24\x3d\xc1\x8c\x65\x83\x83\xe2\xff\xe5\x69\xc7\x2c\xc0\x69\x8a\x4c\x93\xa8\x08\x0a\x2f\x9f\x51\x45\x0d\x45\x61\xea\x7d\x0f\xe7\xc7\x9f\x34\xab\xb3\x8f\x67\x7c\x15\xbe\x09\x67\x87\x7b\x38\xfc\x04\xe9\xd4\x3a\x66\xe0\x37\xd7\x45\xa5\xa9\xd7\x71\x1a\x88\x7d\x3c\x00\x37\xee\xac\x7f\x54\x92\x75\x15\x21\xf2\xf1\x9a\x23\x66\x6d\x90\x83\xfe\x3a\x31\xf3\x42\x34\xa4\x30\x39\xa8\xbb\x5f\xea\x63\x4b\x86\xe3\x0e\x6a\x46\x2c\xbf\xc1\x1a\xfb\x8a\x5a\x59\xfc\x55\xf0\x13\xe9\x53\x7a\xd9\x58\x83\x15\xfb\xbe\x99\x6e\x1c\x59\xc1\x1e\xbc\x9a\x89\xd7\x57\x4c\x47\x9a\x45\xd8\x18\xaa\xf9\x3e\x24\xf6\xe9\xf3\xa4\xc4\xd2\x39\x34\xc5\x4b\xb4\x64\xcc\xc1\x20\xdc\x49\x7f\x3d\x97\xb5\xc6\xe0\x11\xff\x00\x4c\x9e\x8f\x86\xc0\x93\xb9\x3a\x61\x4e\xbb\x68\x68\x16\xfb\x4f\xde\x77\xc2\x11\xbb\x93\x53\x75\x91\x42\xe8\xed\xfb\xd8\xdb\x61\xe5\x93\x23\x58\x30\x80\x5f\xeb\x27\x15\xd8\xaa\x09\x6e\x21\x04\xf6\x0a\xda\x69\x4f\xad\x85\x28\x20\x8a\x28\x1a\xf7\x06\xf5\xd1\x1f\xb3\x7e\x91\xae\x90\x9c\xdd\x4c\xeb\x60\xdb\x10\x85\x4a\xd8\xc2\x1a\x02\x9c\x1c\x9c\x0d\x0f\x4c\x12\x68\xa8\x58\x5e\x81\x46\x62\x00\x2a\xfd\xcd\xd3\xbd\x01\x21\x03\xa6\x6c\x77\xa5\x75\x51\xd1\x91\xae\x47\xac\x3d\xfd\x2c\x94\x6e\xb4\x7f\x2a\x3e\xb3\x88\x82\x69\xd2\x6d\x5d\xb9\x4c\x36\x26\x40\xac\x91\x48\x53\x82\xa9\xf8\x2e\x6d\xd5\x9e\x84\x98\x37\x23\x92\xc9\x19\x5c\xcc\x45\xf0\x9b\x51\x45\x55\x68\x5f\x80\xbb\x03\x06\x75\x83\x0a\x4a\x30\x47\xa3\xc3\xc1\xe6\x6d\x3d\x2b\xff\x13\xc5\xac\x09\xca\x45\x62\x6f\xcf\x6b\xc4\x06\xbe\x34\x07\x80\x3b\xe2\xf9\xb8\xea\x4b\x75\x7c\x92\x76\xed\x71\xf4\x8b\x15\xbb\x1d\x24\xcd\xf8\x5c\xdd\xd3\xa3\x4a\x22\xb1\xe4\xfe\x18\x6d\xfb\x2c\xeb\x0e\x97\x98\xe3\xcb\x30\xc7\x2f\xc2\x1d\x67\x97\x5a\xb1\xba\xd4\xdd\xc9\x29\xdb\x83\x7b\x1e\xd9\x5f\x32\x64\x79\xf0\x46\x09\xb7\x9f\x57\x3c\x84\x2c\x7d\xd7\x5a\xc1\x5d\xd8\xbb\xe6\xbb\x66\xe9\x93\x03\xf3\x7a\x64\x81\xb0\xec\x13\x54\x25\xa6\x5a\xd3\x7b\xa8\x23\x37\xfb\xfc\xff\x5e\xfd\x2b\xe3\x4f\x05\x8f\x40\x71\x26\xde\x25\xaf\x71\x27\xbe\x9a\xfb\x42\xfd\x1c\x02\x0f\x73\x27\x97\x9d\x14\xd3\xef\x12\x6b\x1f\xa4\x57\x23\x81\xf8\x68\x51\xa3\x1e\xf4\xdd\xcd\xa2\x61\x69\xae\xa1\x8d\xfe\xfc\x72\x8a\x02\x36\x21\xf5\xf9\x79\xbb\xaf\xa5\x89\x82\xc8\x97\xb0\x76\x92\xd0\xcf\x2a\xe0\x64\x63\x5a\x11\x23\x04\x81\x53\x4f\x43\x45\xda\x95\x59\x59\xa1\x69\x48\x98\x67\x7e\xa3\x07\x58\x2d\x91\x1c\x94\x99\xb7\xad\xf4\x07\x5a\x75\x5c\x5d\x92\x95\x06\x83\x0e\x9c\xb5\x54\x48\x24\x5a\x23\x49\xbf\x03\x02\x3c\x55\xb5\x3a\x2d\x2d\xcb\x51\x1f\x61\x64\x09\x60\x1c\x51\x12\x1c\x18\xb7\x24\x49\x3d\xba\x34\xb2\x5d\xde\xd6\xbc\x0f\x69\x36\xf2\x05\xb9\x7b\xc7\x1b\xa4\x34\x30\xff\xa6\x4c\x10\x29\x08\xbd\xa2\x1e\xe5\xb4\x6b\x44\x70\xa2\x62\xfc\x60\x10\x63\x91\x6a\xd3\x75\x7e\xf9\xb7\x4d\xf6\x3b\xcb\x8a\xb3\x94\xd0\x51\x37\x0f\xd0\x6f\x37\x8b\x6e\x23\x1c\xb8\x3a\x55\x23\xbc\x52\xda\x3c\xb5\xa4\x8d\xdc\x60\xa3\x29\xb4\x9c\xd8\xc9\xb6\xb6\x2e\x88\xc8\x59\x84\x6e\xb8\xaa\xda\xdc\x90\x43\x47\x6b\x62\x41\x06\xdc\x78\xe9\x5b\x1b\x19\x68\x96\xc2\xb6\x55\xca\x16\xa4\x76\xed\xe1\x64\xf1\xb0\x84\x1d\x84\xfc\x52\xf8\x0c\x7f\xbc\x90\x6e\xb4\x5c\xfb\xcc\xa9\x9d\x8b\x29\x19\x22\xd1\xbd\xce\x5e\xbe\x51\xdb\xd4\x86\xba\x8e\x37\x5e\x91\x4d\xf7\x51\x82\xb6\x26\x0f\xb9\xc2\x18\x6c\xf3\xe3\x46\xdf\x10\x03\xaf\xbe\x5a\xa3\x54\x38\x4f\x90\xf2\x2e\x4f\x27\xf8\x62\x24\x25\xe6\x1b\x3b\x61\xf5\xa8\x80\x9a\x3f\x52\x98\x5c\x26\x21\x13\x15\xbf\x6c\xc9\x41\x2d\x3c\xdd\x1a\xbf\xe7\xcb\x0d\x19\xdc\xdd\x53\x8c\x86\x3e\x2c\xc0\xa7\xe2\xa0\xf5\x1f\x8e\xc3\x73\x2b\x04\x3a\x93\x41\x5f\xe4\x76\xee\xd1\x1e\xe3\x36\x9e\xc5\xe3\xcd\x49\x19\x68\x0b\xcf\xde\x5f\x11\x75\xb5\x64\xfa\x1c\x71\xff\x97\x95\x96\x24\x0f\x05\x12\x61\x31\xb6\xb8\x2f\x6c\x4e\xfa\xe5\xfc\x0a\x80\x9d\x3e\xb7\x63\x68\x10\xc6\xed\x3c\xba\x9a\x82\x7c\x2c\x4e\xc8\x4a\xa4\x8e\xaa\x67\xa2\x7a\x16\x02\xb3\x19\x4e\xc1\x2e\xb4\x7e\xdf\x45\x6a\xfa\x30\x1a\x5a\xc7\x6c\x33\x62\x39\x10\xd9\xc1\x20\xd7\xc3\x9e\xd7\x7f\xa2\x80"
+// rtp header (fec) : [ ] ssrc=0x22788197 pt=22 tstamp=3858074287 seq=8481 size=1021(1009,1009)
+// fec header : [ ] pt=0 tstamp=0 seq=8476 recovery_len=63
+// fec level header : protection_len=995 mask=0xc00000000000
+#define SAMPLE_ULPFEC1_FEC1 "\x80\x16\x21\x21\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x00\x00\x21\x1c\x00\x00\x00\x00\x00\x3f\x03\xe3\xc0\x00\x00\x9a\x59\x6e\x86\x7c\x84\xe9\xe8\xaa\x84\xd7\x92\x25\x0a\xab\x8d\x52\x66\x11\x48\xb6\x0d\x3b\x52\x1e\xb4\x6c\xf8\xad\x86\xdc\x85\x52\x47\xe9\x5c\x0c\x36\x33\x45\x4e\xcc\xc3\x7b\xdf\xed\x99\xce\xfc\x0a\x8f\x97\xa4\x56\x91\x7b\x3c\xb2\x72\x72\x92\x67\x88\x76\x0b\x69\xad\x78\xd2\x2a\x94\xb4\xd9\x6d\x12\x6f\xaa\x86\x2c\xbe\xd9\x43\x2d\x43\xb5\xdd\x14\x7e\x3e\xda\x4f\x7f\x89\x14\x79\x8d\x4a\xe6\x05\x8a\x78\x46\xc1\x0b\xc1\xc4\x70\x61\xe6\x46\x98\x33\x71\x85\x52\x84\x42\x4a\x00\xc9\x1f\x48\xd2\x82\x38\x75\xa8\x6e\x0a\x4f\x32\x15\x7c\xfc\x57\xa7\xdc\x51\xf2\x17\xfa\xc5\x01\x68\x40\x65\xc2\xa9\x90\x62\xb4\x30\x38\x21\x77\x92\x72\x8d\xd0\x26\xc9\x25\xfc\xdb\x65\x32\xd4\xfc\x63\x44\xae\xd0\xd9\xde\xfe\xe4\xc3\xb6\xfa\x01\xa0\xcc\x4e\xc2\xaa\xfa\x43\xf0\x31\x1c\x48\x06\xcd\x89\x24\x4a\x3e\xf6\x02\x45\x0c\x2a\x8a\x15\x2a\x44\x60\x04\x2e\x20\x9f\x12\x74\x4b\x1b\x84\x4a\x5e\xc5\x95\x06\xe2\xd6\xb5\x38\x06\xa8\xc5\x00\x7a\xd5\xdf\x09\xef\xa9\xbc\x9a\xaa\x45\x77\xe4\x35\x7d\xe2\x0b\xe1\x6d\x46\x24\x26\x89\xea\x45\x03\x33\xa9\x16\x8c\x8c\x8b\x88\x44\x2f\x84\x34\x10\x72\x94\x29\xbb\x14\x67\x1a\xf3\x65\x59\xfa\xc2\x9e\xb3\x05\x8c\xbb\x12\x57\x67\x64\x4a\x03\x7f\xbb\x20\xbe\xb5\x56\x2f\x76\xc3\x51\xa6\x7b\x06\x87\xa9\x92\x8f\x9e\x3c\xa4\x0e\x07\xf5\xe8\xf0\xe4\x3d\xf8\x3c\x5c\x5c\xc5\x64\x88\x29\x70\x06\x76\x21\x6b\xa1\x5a\x77\x1b\x3b\x68\x77\xa4\x49\xaa\x03\xc7\xf8\x62\x17\xfd\x4b\x93\xd7\x16\x9e\xa4\x1d\x2a\xa3\x8a\x3a\x9f\xa5\x40\x14\x0f\xb4\x94\x04\x2e\x98\x33\x90\xad\x58\xfa\xff\x66\xe9\x49\x8c\x2a\xde\xca\xa5\x6c\xb4\x2c\x83\xbc\x53\x54\x2a\xb9\x59\xaa\x00\x5b\xe1\x27\x7c\x4c\xbe\xfe\xee\x87\xd7\x66\x51\xad\xfb\xd2\x7a\x8e\x60\x26\x50\x33\x57\x91\xea\x11\x57\x13\x54\xce\x90\xe8\x2b\x92\x8a\x82\x04\x14\x9a\x9f\x08\xed\xcb\x2e\xc7\xe1\xef\x08\xe9\xc4\xf4\x2a\x01\x0d\xbd\xb1\x8d\x81\xe2\xf1\x4e\xc9\x55\x07\x38\xa2\xa6\xf1\x12\x9d\x36\xd6\x40\x68\xe1\xa9\x02\xf4\x62\xa3\xf1\x52\x9c\x9d\x0a\x40\x3f\x38\x0e\xa8\x9e\xdb\x68\x98\x27\xdd\xc1\x6a\x44\x0e\x1e\x81\xe8\x61\xef\x7b\xf0\x1b\xdc\xdd\x61\x92\x47\xcf\x05\xe2\x45\x03\x44\x19\x99\x19\xa9\x6c\x2e\x7c\x6f\x9b\xa7\x1d\x7b\x63\x48\x24\xad\x6d\x36\x0c\x20\x28\xbb\x9b\x7a\xda\x26\xc3\x6c\xb4\xe9\xa0\x6e\x6d\x14\x6f\xce\xb1\x0f\xbc\x14\x09\xae\x34\x06\x0b\x3f\x24\x5f\x8b\x6d\xcc\x7c\x69\x61\x26\x4f\x61\x46\x9b\xa8\x08\x11\xd6\xe1\x98\xc8\x5a\x36\x17\xcf\x50\xe5\x8b\xc3\x2d\xa3\x45\x13\xc7\x88\xb0\xa4\x0f\x8b\x63\xb1\x34\x6f\x00\x4c\xc0\xb0\x98\xd4\x1b\x4d\x41\x90\x79\x22\x1c\xc9\x26\x14\xc7\xf5\x3f\xea\x22\x2e\xf4\xcf\xb3\x05\xd2\x49\x2c\xce\x82\xa8\x7d\x98\xcd\x84\x82\x1f\x00\x03\xd5\x3a\xce\x37\xab\x24\x89\xdb\xf2\x30\x50\x93\x61\x9f\x5c\x05\x4f\xe0\x82\x9a\xe2\x90\xca\xe3\x74\x87\x9b\x22\x09\x9b\x20\x11\x15\x3e\x75\x96\x94\xc1\x28\x13\xb2\xd4\x26\x38\x43\x92\xec\x33\x67\xf8\x00\x00\xf0\xe4\x1e\x00\xf7\x85\x41\xdc\xa4\xd9\xdc\x1b\x1f\x4c\x84\xd9\x4a\x5a\x3b\x67\xc3\xec\x54\x8f\x4c\xb4\x71\xb0\xa7\x80\xa0\x84\xee\x7c\xd0\x70\xcb\x8d\x0a\x9a\xca\x75\x80\x43\x30\x2d\x6b\xf5\xf8\xc8\xba\xc1\x54\xae\x1e\xc7\x7e\x78\xc5\x67\x01\x21\x4c\x2f\xc5\xbd\xfa\x57\x41\x0b\xd3\x18\x70\x13\x47\x07\x0e\x55\x2f\x4c\x53\xf0\x35\x40\xca\x24\xd2\x97\x7d\x88\x52\xde\xe5\x81\x21\xa5\xdf\x4e\xb4\x99\x89\x68\xfb\x82\xd5\x91\x79\x54\x8f\x14\x5d\x7d\xf7\x03\xb5\xf7\x32\x0b\xf0\x50\x47\xb4\x28\xb6\x20\xe2\x8b\x72\x6a\x3b\xd0\x06\xd8\x62\x90\x04\xd1\x96\x4e\x21\xc3\xbb\xe7\xd9\x83\xa0\xc4\x02\x35\xbc\xf2\x49\xdf\x03\xc4\x63\x11\x0b\x5e\x7d\xea\x76\x06\x87\x82\x49\x5e\x1e\x7a\x48\x13\x33\x95\xf8\xc6\x36\xf8\x56\x1c\x30\xa6\xa0\xae\x9c\x94\x66\x79\x62\x94\xdd\x80\x4d\xef\x0d\x79\x71\x16\x8d\x37\xe3\x80\x35\xde\xa1\xf7\xd9\x78\x83\x41\x65\x41\x48\x1a\x1d\x82\x0e\xf8\x06\xde\xd8\x83\x40\xec\x9c\x4b\x72\x08\x80\xef\x20\xe0\x46\x68\x39\xfa\x4a\xc1\x9a\xda\x4a\x85\xc5\x20\xb0\x89\x8a\x02\xf4\x88\x33\xc3\xe0\x30\x6b\xf6\x31\xb0\x5e\x43\xe1\xf7\xb5\xca\xb0\xb2\xb1\xdb\x4c\x1a\xb8\xff\x6c\xed\xe0\x47\x47\x7d\x1e\x09\xee\x9f\x10\x06\x31\xd5\xcc\x09\x0a\x72\x84\x04\xcc\x31\x66\x27\x01\x20\xd7\xc3\x9e\xd7\x7f\xa2\x80"
+// rtp header (fec) : [ ] ssrc=0x22788197 pt=22 tstamp=3858074287 seq=8482 size=1014(1002,1002)
+// fec header : [ ] pt=0 tstamp=0 seq=8477 recovery_len=7
+// fec level header : protection_len=988 mask=0xc00000000000
+#define SAMPLE_ULPFEC1_FEC2 "\x80\x16\x21\x22\xe5\xf5\x8a\xaf\x22\x78\x81\x97\x00\x00\x21\x1d\x00\x00\x00\x00\x00\x07\x03\xdc\xc0\x00\x00\x00\x73\x4f\x20\x02\x81\xf8\xb4\x9d\x25\x48\x2c\x73\xde\xa1\x67\x82\xc0\x28\x50\xee\xbc\xcf\x2c\x80\x81\x90\x10\xbf\x6d\xf0\x81\x7f\x23\x86\x2b\x71\x41\xe9\x4a\x07\xa2\x00\x84\x5f\xc2\xf6\x03\x27\x2d\xaf\x2a\xbf\xc2\x08\x5c\x9b\xd2\x5e\x38\xa2\xe0\xf4\x78\x0c\xb3\xb9\x05\xef\x04\x1a\x09\x07\x88\x84\x75\xb0\x5b\xdd\x9c\xce\x94\xbd\x43\xc4\xa7\x20\xb0\x0e\x6b\x64\xf1\xb3\x68\x11\x3b\x84\xe4\xee\xe4\x84\xc1\x96\xa9\x78\x35\x2d\x17\x89\x23\x0e\x1f\xa5\xa0\xdc\x92\x70\x00\xc0\x4a\xe5\x77\x7d\x97\xe4\xfe\x01\xee\x69\xcb\x8b\x41\xd0\x78\x32\x1c\x4a\xce\xfb\x0a\x74\xf8\x6e\x17\x21\x87\x0f\x31\x23\xc8\xc7\x48\xf0\xb6\x20\x1f\xe0\xe8\xd0\x1a\xe9\xec\xad\x4e\x02\xd5\x16\xa9\xcf\x2d\xed\x87\x86\x61\x74\x38\xca\xa1\x19\xc2\x97\x48\x60\x0b\x7e\x73\x40\xba\x4b\x56\xca\x78\x6c\x0e\xe9\xe9\xf6\xd8\xed\x2c\x9d\x02\x31\x95\x2f\x72\x9a\x6b\xe9\xe0\x76\x3f\x45\x0b\xda\x5f\x0b\xb7\xc6\x50\x37\x97\x07\x51\x81\xe5\xcf\xf0\x1a\x8f\x46\xf2\xfc\x39\x60\xed\x19\x8c\x54\x06\x42\xfd\x81\x7b\x29\xc0\x6e\x3e\xdb\x2a\x51\x87\xf7\x98\x4b\x9b\x6e\x0c\x0f\xf8\xd8\x76\xa3\x90\x3d\xeb\xbe\xf5\x04\x12\x8a\x64\x78\x13\xfe\x40\xc8\x75\x43\x25\x22\xe2\x0c\x82\xb1\x27\x65\xa0\xf9\x03\x59\xa0\x9f\xf5\x9e\x06\xf8\x89\x3e\x63\xd1\x4a\x4c\x0a\x89\x30\xf6\x08\xe4\x77\x50\xd5\x20\x2b\x2e\xea\x4c\xe0\x12\xe0\xb3\xa2\x03\x6e\x1a\x3f\xf6\x03\xdf\x73\x80\x36\x45\xcf\xc1\xc1\x23\xd8\x0d\xa7\xe8\xee\x9c\x7f\x21\xeb\xb2\xfa\x2d\xd4\xf9\x49\x36\x53\x7f\x9a\x8c\x27\x57\x97\x56\x77\xa4\x43\xfa\x5b\x85\x58\xd6\x99\x9c\x9d\xde\x83\x86\xcb\xa6\xe0\x59\xbd\x68\xef\xa5\x92\xfc\x6e\x37\xa5\x69\xc4\x0b\xa1\xfb\x9e\xf3\x43\xd7\xf4\x3e\x63\x63\xfe\x1e\x39\x8b\xae\x23\x76\x19\xed\xee\x35\x0b\x6a\xd5\x6b\x10\x76\xc4\x51\xeb\x25\xd2\x25\x93\xa8\x18\x16\x38\x46\x79\xed\x0a\x43\x0a\x82\x3c\x91\x4c\x37\xfd\xf9\xc4\x1d\x54\xe0\x6a\x9c\xa4\xbb\x55\x4a\x27\xb4\xca\xab\x38\x74\x2b\x18\xf0\x25\x0f\xb0\x58\x07\x7a\x59\xe0\x6c\x8b\xdd\xc7\x28\x4e\xe3\x50\xbe\x4e\x7a\xe1\x8c\x09\xa3\x06\x95\xe3\x83\xb6\xce\xe7\x73\xae\x30\x7e\x24\x0e\x10\x88\xd7\x11\x39\x8e\xac\x97\xdf\xa0\xe0\x00\x0b\x6e\x58\x4c\x31\x01\xa3\xa8\x64\x13\xdb\x43\xc9\x95\xcd\x5c\xf0\xae\xe5\xfc\x65\x3d\x4a\x76\x52\x00\x12\xfd\x4c\x2f\x77\xf8\xbc\x54\x87\x73\xed\x40\x9e\xd0\x77\x53\x6b\xf4\x86\x88\x7b\x6b\x81\xc3\x2f\x95\xbd\x9e\xb7\xc2\x0c\x0c\x9c\xb7\xbb\x43\x54\x04\x31\xc2\xcf\x69\x02\x8a\x24\x5e\xba\x60\xbe\x0f\x76\x65\xa9\xc3\x08\x14\xfa\x16\xf9\x26\x3b\xdb\x8c\xc0\x08\x0e\xd2\x00\x6d\xbf\x10\x8d\x8f\xf9\xd5\xeb\x67\xb4\x40\xa8\xd0\xc7\xdd\xa6\x81\x2c\x89\x94\x0c\x1c\x11\x96\x43\x10\x3a\x6a\xed\x3d\x39\xc2\xee\xaa\xc2\xc9\x49\xa0\x00\x00\x0c\x1a\x44\x51\x3a\x4e\xa9\x88\xdd\x1e\xd0\xa6\x01\x29\xf7\x3f\x3a\x83\x63\x7b\xf5\xd2\x61\x96\x75\x8c\x84\x34\x09\x60\xda\xeb\x4c\x8b\xaf\xd9\x00\x0f\x95\xa9\x47\xa9\x56\x7c\xbf\x3c\xb9\xf1\xa2\x8c\x78\x8e\x12\x30\xd4\x32\x47\xfc\x9e\x51\x6a\x89\xc6\xdc\x5b\x76\x5d\x40\xa0\xe4\x9f\x3a\xce\x92\xf8\xe5\xc7\xa2\xb4\xa2\x7f\x8e\xe7\x78\xa0\x0c\x28\x1d\x7d\x86\x9d\x61\x38\x28\x16\xf5\x01\x8b\xe6\x4e\x6b\xe9\x98\x5a\x2b\x4c\x5e\x1e\x09\xc0\x22\x33\xf9\x53\x0d\xa8\x16\x46\x08\x34\x35\x43\x02\xc0\xd7\x27\x0a\x3f\x37\x40\x24\x7e\xe6\x90\x89\xcc\x30\xfc\x07\xbf\x0c\x34\xa1\x9b\x70\x1e\x3e\x09\x83\x04\x29\x24\x17\x2b\x1c\xa8\x0e\x68\x30\x4e\xb9\x46\xa2\xb6\x8a\x94\x56\xa2\x73\xdd\xfb\xd1\x76\x29\x8b\xf2\x33\x73\x63\xae\x5d\x01\xec\x91\xf2\x0a\x5b\x7c\xb5\xfe\xcf\xce\xf6\x59\x16\x13\x60\x2e\x33\xa1\x1b\x6a\x8c\xa4\x41\x74\xc6\x2f\xe9\xe7\xe4\x4d\xf1\xca\xf2\xae\x81\xb8\x36\xbb\xe8\x0b\x76\xe6\x2b\x18\x77\xcb\xe6\xd5\xb4\xa8\x71\x69\xd5\xcb\x34\xb5\x17\x7f\x15\x90\x14\x2e\x83\x62\xed\x01\x76\xa9\xe1\xcb\x54\x71\xfd\x71\x79\xf1\x39\x24\x49\xb0\x3c\xe6\xed\xaf\xe0\x23\x88\x6e\x89\x49\x4f\x4b\x77\x2b\x20\x40\x60\x29\xf8\x02\xbc\xa8\xd4\xc4\x9c\xc3\xb4\xc3\x19\xdc\x24\x02\x40\x87\x61\xa0\x78\xaa\xb9\xb3\x36\x7a\x09\x51\x34\xeb\x74\xd9\x83\x18\x74\xa3\x3e\xf5\x40\x1c\x69\xff\xed\x4b\x3d\xeb\x34\xdc\x65\x80\x56\x9a\x8b\xc5\x77\xa0\xae\xbd\x83\xcc\x4f\xc6\x92\x06\xad\xff"
+
+
+// rtp header (fec) : [M C] ssrc=0x000003ea pt=123 tstamp=526831506 seq=28470 size=144
+// fec header : [E ] pt=122 tstamp=0 seq=28450 recovery_len=112
+// fec level header : protection_len=112 mask=0x800000000000
+// fec level header ex : [ ] fec_count=1 fec_index=0
+#define SAMPLE_AVMCU0_FEC "\x81\xfb\x6f\x36\x1f\x66\xcf\x92\x00\x00\x03\xea\x00\x00\x00\x09\x80\x7a\x00\x14\x00\x00\x00\x00\x00\x70\x00\x70\x80\x00\x00\x10\x7e\xc0\x80\x0f\x22\x00\x00\x00\x2d\x06\x05\x2a\x13\x9f\xb1\xa9\x44\x6a\x4d\xec\x8c\xbf\x65\xb1\xe1\x2d\x2c\xfd\x01\x00\x00\x00\x00\x00\x00\x00\x01\x10\x05\x00\x02\xd0\x05\x00\x02\xd0\x00\x26\x25\xa0\x20\x00\x00\x00\x00\x1e\x06\x05\x1b\xbb\x7f\xc1\xa0\x69\x86\x40\x52\x90\xf0\x09\x29\x21\x75\x39\xcf\x01\x00\x64\x01\x18\x01\x18\x00\x00\x00\x00\x00\x18\x06\x05\x15\x05\xfb\xc6\xb9\x5a\x80\x40\xe5\xa2\x2a\xab\x40\x20\x26\x7e\x26\x01\x03\x02\x8c\xb5"
+// rtp header (recovered): [ C] ssrc=0x000003ea pt=122 tstamp=526831506 seq=28450 size=128
+#define SAMPLE_AVMCU0_MEDIA "\x81\x7a\x6f\x22\x1f\x66\xcf\x92\x00\x00\x03\xea\x00\x00\x00\x09\x7e\xc0\x80\x0f\x22\x00\x00\x00\x2d\x06\x05\x2a\x13\x9f\xb1\xa9\x44\x6a\x4d\xec\x8c\xbf\x65\xb1\xe1\x2d\x2c\xfd\x01\x00\x00\x00\x00\x00\x00\x00\x01\x10\x05\x00\x02\xd0\x05\x00\x02\xd0\x00\x26\x25\xa0\x20\x00\x00\x00\x00\x1e\x06\x05\x1b\xbb\x7f\xc1\xa0\x69\x86\x40\x52\x90\xf0\x09\x29\x21\x75\x39\xcf\x01\x00\x64\x01\x18\x01\x18\x00\x00\x00\x00\x00\x18\x06\x05\x15\x05\xfb\xc6\xb9\x5a\x80\x40\xe5\xa2\x2a\xab\x40\x20\x26\x7e\x26\x01\x03\x02\x8c\xb5"
+
+// rtp header (fec) : [M C] ssrc=0x000003ea pt=123 tstamp=526831537 seq=28472 size=69
+// fec header : [E ] pt=122 tstamp=0 seq=28471 recovery_len=37
+// fec level header : protection_len=37 mask=0x800000000000
+// fec level header ex : [ ] fec_count=1 fec_index=0
+#define SAMPLE_AVMCU1_FEC "\x81\xfb\x6f\x38\x1f\x66\xcf\xb1\x00\x00\x03\xea\x00\x00\x00\x09\x80\x7a\x00\x01\x00\x00\x00\x00\x00\x25\x00\x25\x80\x00\x00\x10\x1e\x80\x00\x03\x22\x00\x03\x00\x1c\x06\x05\x19\x13\x9f\xb1\xa9\x44\x6a\x4d\xec\x8c\xbf\x65\xb1\xe1\x2d\x2c\xfd\x01\x00\x00\x00\x00\x00\x00\x00\xfc"
+// rtp header (recovered): [ C] ssrc=0x000003ea pt=122 tstamp=526831537 seq=28471 size=53
+#define SAMPLE_AVMCU1_MEDIA "\x81\x7a\x6f\x37\x1f\x66\xcf\xb1\x00\x00\x03\xea\x00\x00\x00\x09\x1e\x80\x00\x03\x22\x00\x03\x00\x1c\x06\x05\x19\x13\x9f\xb1\xa9\x44\x6a\x4d\xec\x8c\xbf\x65\xb1\xe1\x2d\x2c\xfd\x01\x00\x00\x00\x00\x00\x00\x00\xfc"
+
+// rtp header (fec) : [M ] ssrc=0x90a56b52 pt=123 tstamp=448313726 seq=25047 size=108
+// fec header : [E ] pt=122 tstamp=0 seq=25042 recovery_len=80
+// fec level header : protection_len=80 mask=0x800000000000
+// fec level header ex : [ ] fec_count=1 fec_index=0
+#define SAMPLE_SFB0_FEC "\x80\xfb\x61\xd7\x1a\xb8\xb9\x7e\x90\xa5\x6b\x52\x80\x7a\x00\x05\x00\x00\x00\x00\x00\x50\x00\x50\x80\x00\x00\x10\x7e\xc0\x80\x0f\x22\x00\x1f\x00\x2d\x06\x05\x2a\x13\x9f\xb1\xa9\x44\x6a\x4d\xec\x8c\xbf\x65\xb1\xe1\x2d\x2c\xfd\x01\x00\x00\x00\x00\x00\x00\x00\x01\x10\x03\xc0\x02\x1c\x03\xc0\x02\x1c\x00\x18\x6a\x00\x20\x00\x00\x00\x00\x18\x06\x05\x15\x05\xfb\xc6\xb9\x5a\x80\x40\xe5\xa2\x2a\xab\x40\x20\x26\x7e\x26\x1e\x03\x02\xa1\x4e"
+// rtp header (recovered): [ ] ssrc=0x90a56b52 pt=122 tstamp=448313726 seq=25042 size=92
+#define SAMPLE_SFB0_MEDIA "\x80\x7a\x61\xd2\x1a\xb8\xb9\x7e\x90\xa5\x6b\x52\x7e\xc0\x80\x0f\x22\x00\x1f\x00\x2d\x06\x05\x2a\x13\x9f\xb1\xa9\x44\x6a\x4d\xec\x8c\xbf\x65\xb1\xe1\x2d\x2c\xfd\x01\x00\x00\x00\x00\x00\x00\x00\x01\x10\x03\xc0\x02\x1c\x03\xc0\x02\x1c\x00\x18\x6a\x00\x20\x00\x00\x00\x00\x18\x06\x05\x15\x05\xfb\xc6\xb9\x5a\x80\x40\xe5\xa2\x2a\xab\x40\x20\x26\x7e\x26\x1e\x03\x02\xa1\x4e"
+
+// rtp header (fec) : [M ] ssrc=0x90a56b52 pt=123 tstamp=456286218 seq=40845 size=108
+// fec header : [E ] pt=122 tstamp=0 seq=40827 recovery_len=80
+// fec level header : protection_len=80 mask=0x800000000000
+// fec level header ex : [ ] fec_count=1 fec_index=0
+#define SAMPLE_SFB1_FEC "\x80\xfb\x9f\x8d\x1b\x32\x60\x0a\x90\xa5\x6b\x52\x80\x7a\x00\x12\x00\x00\x00\x00\x00\x50\x00\x50\x80\x00\x00\x10\x7e\xc0\x80\x0f\x22\x05\x32\x00\x2d\x06\x05\x2a\x13\x9f\xb1\xa9\x44\x6a\x4d\xec\x8c\xbf\x65\xb1\xe1\x2d\x2c\xfd\x01\x00\x00\x00\x00\x00\x00\x00\x01\x10\x03\xc0\x02\x1c\x03\xc0\x02\x1c\x00\x18\x6a\x00\x20\x00\x00\x00\x00\x18\x06\x05\x15\x05\xfb\xc6\xb9\x5a\x80\x40\xe5\xa2\x2a\xab\x40\x20\x26\x7e\x26\x1d\x03\x02\xfb\x56"
+// rtp header (recovered): [ ] ssrc=0x90a56b52 pt=122 tstamp=456286218 seq=40827 size=92
+#define SAMPLE_SFB1_MEDIA "\x80\x7a\x9f\x7b\x1b\x32\x60\x0a\x90\xa5\x6b\x52\x7e\xc0\x80\x0f\x22\x05\x32\x00\x2d\x06\x05\x2a\x13\x9f\xb1\xa9\x44\x6a\x4d\xec\x8c\xbf\x65\xb1\xe1\x2d\x2c\xfd\x01\x00\x00\x00\x00\x00\x00\x00\x01\x10\x03\xc0\x02\x1c\x03\xc0\x02\x1c\x00\x18\x6a\x00\x20\x00\x00\x00\x00\x18\x06\x05\x15\x05\xfb\xc6\xb9\x5a\x80\x40\xe5\xa2\x2a\xab\x40\x20\x26\x7e\x26\x1d\x03\x02\xfb\x56"
+
+
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12511 size=49(37,33)
+#define SAMPLE_AVMCU2_MEDIA0 "\x81\x7a\x30\xdf\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5e\x84\x80\x0f\x22\x12\xac\x00\x18\x06\x05\x15\x05\xfb\xc6\xb9\x5a\x80\x40\xe5\xa2\x2a\xab\x40\x20\x26\x7e\x26\x7c\x01\x02\x88\x87"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12512 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA1 "\x81\x7a\x30\xe0\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x81\x9a\x02\x2f\xff\xf2\x26\x9c\x53\x3d\xbf\xf3\xb6\x9f\xae\xa2\x3d\x0e\xb4\x5e\x26\x5b\xd4\x6a\x2d\xef\xb4\x01\xfc\x45\x3b\xb0\xae\x1f\x1c\xf7\x06\x45\xc3\xc7\x2f\x64\x11\x61\xfa\x57\x2a\xae\xb2\xc4\x5a\xd0\xfe\x4a\x55\xdb\x97\x0b\x44\xca\x23\xaf\x36\x49\xc0\x1e\xd8\xd6\x68\xf7\x10\x0b\xba\x8e\x1a\xfc\x84\x0b\x13\x75\xb5\x29\x4f\x75\x2b\xc1\x8b\x30\xd3\xf4\x85\xcb\xf4\xd3\xbb\x28\x24\xc2\x5e\x8c\x8b\xd0\x80\x19\xf1\xf6\x53\xa8\xf3\x9e\xeb\xd1\xb8\x75\x9e\x67\xe2\x77\x40\x37\xa1\x74\x3b\xfb\xc6\x94\xd1\xd9\xb3\x33\xf5\xc3\xe3\x41\x38\x90\xd3\x7e\x9e\x01\xb8\x02\xae\xb7\x63\xf2\x1b\x53\x01\x49\xd3\x96\xb1\x5e\x1a\x4d\x46\x9a\xed\x3f\x32\xcc\x70\x99\xcc\x52\xa9\xe3\x02\x33\xbd\x37\x9e\xdd\x94\x0c\x00\x3a\xe7\x3b\x7c\x01\xe7\x00\xdc\x96\xd8\x55\x14\x1c\x70\x3f\xc0\xa7\x39\xe2\xff\xba\x8c\x79\xc0\x87\x95\x43\x9b\xf7\xc6\x7b\xe0\x9a\xd6\x59\xf5\x7f\x0b\x24\x9b\x8e\x56\xe2\xd0\xb2\x83\x20\xe8\xca\xa8\xd6\xcb\xf8\x4a\x32\xb7\xa5\x41\xea\x76\xb4\xfd\x53\x58\x4c\x7e\x0e\xe4\xd6\x4d\xe0\x55\x00\x63\xaa\x99\x20\x72\x1f\xa5\xad\x9d\x5a\xb1\x4c\xff\x7d\xe6\x2a\xa2\x00\xf9\x7b\x80\x39\x74\xfb\xcd\x89\xa6\x5c\xfa\xd5\xcb\x7e\x30\x0c\x94\x01\x39\x82\xb0\x72\x77\x72\x79\xba\xf2\xaa\x3b\x29\x67\x23\x1d\x1e\x53\x04\x83\x5d\x48\x36\x7d\x8b\xc2\x6b\x28\xc3\xe9\xc7\x97\xf5\x84\x8c\x34\xc9\x82\x11\xce\xab\x79\x28\x39\x8b\xbb\x99\xd4\x0d\xae\xa3\x43\x3d\x6d\x77\xd6\x80\x21\xbf\x20\x1e\x97\xfd\x7e\x00\x29\x25\xa1\xcd\x7c\xaa\x65\xf2\xfc\x32\xa2\x86\x8e\xed\xaa\x26\x08\x6b\x2b\x37\xdd\xcb\x5f\x6d\xcf\x55\x7c\xdd\xc3\xa9\x36\x9c\xda\xa7\x58\x4b\x57\xed\x91\x2a\x65\x27\x3f\xfc\x7d\xad\x1d\x63\x23\x89\xec\x00\x95\xdb\x9a\x5e\x5c\x41\x1d\x23\x17\x94\x30\x1a\xe3\xb8\xdf\x98\x6e\x21\x71\x9b\x54\x7c\x9c\x6c\xf2\x31\xc7\x3d\x56\x55\x0e\x30\xd4\xfe\x42\x95\x98\x5d\x89\x3b\xf4\xe2\xeb\xd0\x87\x89\x7e\x96\x52\x93\x95\xf0\xad\xde\x27\x24\xd6\x18\x9a\x5d\xa3\xcd\x26\x7e\x3a\x85\x4b\x83\x89\x72\xe0\x20\x4e\x13\x63\x7c\xa0\x1b\x8c\xf3\x83\xd1\x07\x45\xad\x6f\xd6\x71\x08\x6f\x31\x0e\xf5\xfc\x77\x69\x2c\xa6\xf7\xb9\xe2\x1b\x30\x0a\x60\x35\x26\xa3\x0b\x1f\x01\xc3\x93\x92\xab\xd2\x93\xa3\x3f\xb5\x82\xb1\xa7\xd7\xb0\xd1\xab\xe1\xe4\x0c\x3a\x83\x16\x03\x3d\x55\x84\x4f\x95\x0d\xd2\xf2\x7d\x43\xe6\x52\x30\x94\x1f\xf0\x97\x21\xb8\x3f\x9a\x25\x85\xa7\x76\xbb\x30\x00\x9c\x97\xb3\xbe\x4f\x12\x09\x3a\x8b\x25\xeb\x42\x34\x26\xdd\xda\xfc\xea\x59\xef\x47\x9f\x16\xc2\x3f\x65\xfd\x5b\x22\x4d\x74\xb4\x51\xf5\xb2\x56\xbe\x43\xe2\xbf\x74\x47\x62\x72\xc2\xc3\x2a\x7e\xfc\x6a\xe7\x18\x4c\x22\xaa\x59\x27\x34\xaa\x94\x7d\x67\x24\xbe\x0b\x68\x0d\x35\x9c\x8b\xd7\xc2\x6f\xd0\xb7\xab\x66\x59\xb0\x55\xf5\xc2\x5b\x2d\xe6\xb8\x2e\x12\x49\xf1\xe1\x4e\xdf\x3a\xb1\x97\x94\x7e\x1d\x34\x18\x3f\x7f\xf3\xa7\x32\xa7\xbc\xf7\x70\xbc\xda\xd2\x1d\xae\xf7\xdf\x3a\x86\x9b\xe3\x6e\xce\xb0\xe2\x80\x37\xe0\x98\x33\x97\x28\x50\x37\x98\xa3\xa4\x10\x3b\xe0\x79\x44\xf9\x30\xd8\xc1\x3d\xfb\x79\xb3\x8d\xe4\x6f\xf4\xa2\xf5\xd9\x03\xec\x1b\xb3\x22\x78\x5e\xc0\x64\xb5\x0a\x54\x55\x12\xe5\x2a\x19\x40\x9e\x0d\x77\x24\x7a\xe4\xde\x25\x02\x63\x25\xbe\x00\xc7\x02\x91\x21\x1a\x22\x59\x45\x8f\x34\x62\x41\x7d\x78\x9c\xb3\x46\x77\x44\x49\x2c\xe7\xee\xe5\x9e\x5b\xd3\x51\x93\x1f\x62\x56\xa1\x91\xd1\xc2\x20\x71\x43\x94\x92\x1c\xd1\xd5\x0a\x68\x84\xac\x0c\x2d\xd2\xb6\xc6\x64\x37\xa2\x82\xaa\xda\x38\x1c\xb4\xc8\x3d\x4c\x79\x2c\x5f\x95\x07\xaa\x89\xca\xf8\xd3\xa0\x04\x1c\x8d\xa8\xa2\x6e\x09\x19\x9e\x3f\x34\xef\x88\x19\x17\x00\x9a\x22\x8a\x0b\xf4\x61\x45\xcf\x62\x63\x3b\x9f\xe9\xbd\x7a\x3d\xb6\x3c\xef\x6a\x56\x9a\x84\xd0\x50\xa7\xb6\xbd\x48\x62\xea\xba\xd6\xd2\xa4\x23\x0b\x95\xc0\x38\xca\x84\x38\x64\xd9\x14\xa7\x01\xe8\x07\x01\x93\xbf\x4b\x2c\xfc\x3d\x18\x9a\x33\x43\x13\x2b\x69\x42\x87\x57\x37\x98\x6d\x1e\x31\x28\xca\x24\x7e\x19\x74\x5e\xf9\x26\x95\x7f\x7c\x91\x13\x05\xbc\xa0\xd9\x7d\x8b\xf6\x2f\xd6\x1f\xed\xc4\x7f\x47\x9b\x7e\xab\xf7\x12\xe9\xb1\x13\x88\xb8\xcf\xd0\xa9\xe5\xf2\xa1\x9b\x97\x50\xaa\xe9\x31\x66\xf1\x51\x3c\xf4\x13\xce\x03\x81\x13\xcd\x0b\xbb\x8c\x4b\xbb\x54\xff\x59\x4b\xd5\xd2\x7d\xeb\xc6\xf9\x0a\x5e\xe1\x6f\xc9\x42\xad\x86\x88\x37\x38\xd9\xbb\xc9\xd3\xd9\xa3\xef\x38\x0f\x15\x9d\xcf\x0d\xf7\x23\x03\x56\x13\xc8\xeb\x46\x98\xa7\x58\xdb\x46\xa2\x58\x3d\x77\xc1\xeb\x30\xcb\xd3\x9f\x14\x37\x1f\x8d\x9b\x2d\xd4\xfb\xec\x70\x5f\xb2\xda\xa9\x1d\x12\xa3\x1b\x16\xda"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12513 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA2 "\x81\x7a\x30\xe1\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xcf\x8f\x39\x4f\x2f\x3b\xf5\xab\x31\xcc\xa0\x32\x91\x97\x41\x13\x72\x65\xca\x87\x89\x9a\x34\x48\xbf\xb5\x47\x49\xab\xf8\x58\x10\x4a\x49\x5d\x48\x9f\x3b\xf8\x80\x84\xdf\xf5\x0e\x2b\x7d\xaf\x76\x28\x09\xbf\x29\xc7\x39\xa6\x97\x76\x41\x57\x63\xeb\xe8\xc3\xb1\x24\xcc\xd3\x7a\x48\x1d\x4c\x6a\x9a\xa9\xc1\x96\xec\xd9\xf1\x76\x8b\x04\xa0\xc1\xe6\xec\xa5\xe3\x9f\xe5\xb5\xcf\xde\xa1\x06\x41\xfb\x43\x5a\xe0\x4b\xea\xe5\x67\xda\xf5\x81\xc4\x15\xae\x9e\x95\xbd\x6a\x54\x40\x2b\x2a\xd3\x52\x40\x29\x12\xaa\x55\xd1\x5c\x40\x80\xa2\x2d\x08\x15\x04\x7e\xb8\xf1\x81\x6a\x74\xd5\xbe\x4d\xd9\x8c\xfe\x96\xef\xd3\x2f\xa7\xe8\x85\x78\x27\xf6\x5b\xd0\x22\x65\x0e\x66\xd2\xe4\x5e\xe9\xda\xbc\xed\x58\x5d\xa2\x2f\x9b\x5c\x9c\x92\xdd\xf0\x69\xdc\x30\x7c\xab\x4e\x1c\x23\x16\x76\xfe\x36\x46\xa1\xe7\xbb\x36\x8d\x04\xaa\xc5\x92\x15\x51\x74\xe5\xd3\x37\x7c\x1e\xc8\x1c\xe9\xe3\xda\x90\xe8\x07\xde\x46\x07\xce\x40\xed\x1f\xb2\xd7\x84\x25\xd4\xff\x6d\xc1\x0e\x33\x75\x52\xed\xd6\x72\x0f\xd3\xdd\x33\x91\x4f\x2a\x67\x06\x8d\x09\x0d\x2a\xca\x86\x91\xb3\xe7\xbb\x90\x1d\xbe\x99\x86\x0d\x13\x58\xea\x50\x2b\x19\xfe\x2a\x1a\xf2\x34\x1d\xae\x13\xb2\x3b\xc7\x09\x31\xef\x4b\x37\x3e\x0e\x60\x53\x16\x58\x0a\x1b\x21\x16\x24\x50\xa5\xf8\x88\x66\x1d\xff\x6a\x7d\xb2\x9b\x91\x15\xc6\xc4\x8c\x96\x6c\x94\xf4\x6c\xdc\x7c\x7e\x97\x22\x6d\xc5\xe5\x2b\x22\x93\xda\x81\x7c\xe2\xd9\xa6\xf4\x7b\x83\xba\xfe\x04\x6d\xfe\x8f\x70\x9d\x8c\x25\x1f\x4c\x39\x72\x5a\x33\x2a\xd4\xf5\x3a\xbd\x49\x82\x8d\x5e\xed\xa7\xc1\x59\xa3\x32\x9f\x87\xae\xe1\x33\xd2\x48\x59\xa7\x85\xf8\x33\xb4\xe1\x9e\x04\xff\xf9\x37\x8f\x6e\x94\xd3\xcd\x19\x0a\x06\x0e\x76\x69\xbf\x53\xf4\x70\x4f\xb8\x20\xcc\x4b\x36\x46\x18\xbb\xce\xca\x82\x1b\x61\xc1\x8e\x81\xb0\xbf\x94\x63\x23\xad\xe5\xf3\x83\xa0\xf2\x42\xfd\xf3\x5b\x04\xf5\xa5\xd6\x5f\x41\x4f\xf0\x53\x7e\x70\x3b\xc8\x54\xd8\x29\xe9\x19\xf3\xc1\x6c\x67\xd2\xc8\xb6\x70\x50\x9f\xb8\xf1\x3c\x09\x0d\xf5\x40\x98\x3a\x5e\xaf\xc0\xb5\xcf\x78\x27\x1e\x01\x93\xc8\xdd\x76\xd9\xe4\xe2\x48\x21\xc6\x6d\x8e\x07\xb0\x68\x84\xa2\xd6\x21\x5c\x25\x44\x27\x85\xad\x14\xff\xf3\x1d\xe6\x53\x27\xdf\x3d\x9a\xe5\x79\x2a\x6b\x7e\x6c\xc8\xae\x11\xeb\xf4\x92\x9f\xa1\x1c\x1c\xb2\xad\xa9\xb9\xbf\x50\xc8\x5a\x21\x3a\x9e\xea\xa6\xc2\xb2\x34\x27\xdf\x68\xab\x1b\x55\xd7\x7e\xc1\x80\x81\x25\xb5\xa5\x3e\xb4\x2e\x87\x0b\x3f\x27\x53\xca\x1e\x37\xc3\xc9\xf9\xde\x45\x0c\xb5\xa4\x75\xf1\x78\xcf\x8f\xb8\xa1\x09\xda\x7a\x2f\x60\xf1\xf3\x8e\x51\x93\x9a\x16\xea\xaa\x1b\xd5\xdd\x20\x55\x23\x09\x68\x2f\x12\x15\x90\xce\x44\xfe\xe1\x12\x6a\x04\xe8\xab\x3b\xc4\x23\xa3\x31\x4a\x87\xc2\xd8\xa2\x3f\xaf\x50\xa1\x4e\xb5\xd8\xc6\x7b\x8b\x05\x7d\xa9\x10\xf4\x2f\x00\x6a\xd3\x41\x49\xcf\xbd\x34\x2f\x87\x07\x96\x1b\xcc\x00\x3f\xfa\x6a\x9e\x42\xde\xf3\x1d\x10\xab\x0d\x2c\x09\x49\x7c\x14\x51\x2d\x56\x3d\x39\xfe\x03\x12\xae\x3b\x52\x22\x7f\x0a\x45\xa1\x28\xaf\xf3\x92\x23\x39\x82\x23\x6a\xc2\xe2\x0c\xe0\x2f\xb3\x3b\x44\xdd\x5a\xe4\xa8\x34\xcc\xff\x49\xca\x0a\x1e\x88\x76\x90\x74\xff\xc9\xd4\x53\x8f\x3b\x4d\x0d\x81\x2e\x47\xfe\x4e\xa0\xec\xba\x5c\xec\x85\x73\x47\xb0\xef\xbc\x80\x3a\x54\xc2\x47\x12\xff\xba\xcd\x64\x03\x00\xbe\x2b\x48\x7c\xc8\xc1\x6e\x75\x50\x27\xae\x17\xbb\xf1\x3f\xf4\x3c\x1b\xbf\xd2\x70\xba\x34\xf8\xa5\x0b\x7f\x91\x65\x87\x4b\xdd\xe3\xc5\x00\x58\xe4\x91\xee\xeb\x36\xd0\x50\xff\xea\x1c\x83\xd0\x77\x6f\x51\x78\x9b\x7f\x10\xcb\x16\xd9\x2d\x0e\x92\x4f\xbf\x51\x06\xf7\xa3\x9e\xf1\xb7\x86\xc2\xc1\xed\x66\xe9\x4b\xf3\xe8\x4d\x01\x47\x01\x10\xcc\x00\x07\xc1\xa8\x87\xac\x3e\x85\xd6\xd3\x74\x6c\x31\x82\x22\xb6\xac\x42\xaf\xbb\xa7\x0e\xe8\x25\x37\x70\x92\xfd\x50\x05\xf3\x05\x62\x67\x4d\xd4\x70\xde\x75\x92\xdd\xd3\x54\xa3\xb1\x31\xe1\xac\x15\x1c\x8a\x51\x7d\x4d\x18\x06\x0a\xe7\x06\xb2\x34\x20\x11\xfc\xb5\xbc\x11\x6a\x6d\xc7\xc6\x8d\x19\xcc\xd3\x3a\xf8\xe1\x50\xe5\xcc\x65\x7b\x43\x39\x04\x7a\x01\xc6\x04\x6d\x0e\x6c\x9f\x34\xa4\x22\xe3\x79\xca\x12\x4f\x63\xa7\xce\x50\xa6\x2c\xca\xdb\x10\xb1\x0c\x7d\x2b\x6b\xb6\xa0\xb0\x7d\x9f\xbe\xc4\x9b\xe1\x5e\x9f\xf5\xad\x4f\x63\x26\x75\xc8\xf3\x2e\x1e\x08\xb2\xca\x1b\xd5\x8e\x9f\xf0\x26\x54\xd8\xb7\xa3\xf4\x9a\x3f\xdf\x46\xab\x08\x36\x5a\xa0\x5a\xd7\x1d\xc4\x8c\xae\x18\xc6\xe6\x75\x04\x41\xf0\x44\x29\x1a\x19\x5c\x8e\x1e\x67\x09\xa7\x55\xc1\x7e\xeb\x9b\x4c\xc2\xa0\xbc\xec\xae\x1d\xba\xd2\x85\xce\xb2\xf7\xc9\xea\x1a\x33\xb8\x52\x55\x41"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12514 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA3 "\x81\x7a\x30\xe2\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xfe\xa9\x6a\xb0\xca\xc0\x98\x7d\xbf\x56\x4e\x9d\x4c\xa5\x1d\x61\x0b\x0c\x27\xb2\xf8\xf9\xab\x7d\x6e\xea\xdf\x05\xff\x9b\x61\xb9\x81\x5e\x11\x5b\x51\xc0\x56\x26\xf8\xb4\xb0\x09\xb5\xe4\x0e\xde\xac\x5f\x56\x74\x68\x27\x41\xfb\x55\xd6\x7b\xdf\x67\x58\x7c\xba\xb3\x28\x71\xf9\x39\x7b\x76\x0b\x37\x5c\xc7\x24\x69\xef\x55\x25\x80\xfd\xec\xd2\x12\x46\x71\x51\xd7\x4e\x48\xdd\xa6\xd5\x0a\x13\x51\x99\x29\xde\x0e\x0d\x36\xd3\x06\xea\x60\x45\x39\xf3\xa2\x35\x11\xbc\xa1\x9b\x39\xed\x10\xfa\x73\xc1\xa3\xe9\x72\x5a\x23\x80\x0c\x8c\x77\x02\xf6\xb5\x73\xb8\xc8\x7e\x1b\x84\x75\x4c\x5b\x46\x7b\x24\x97\x02\x04\x94\xde\xd6\x33\x23\x46\x9f\x3b\x9e\x35\x91\x64\x71\x81\xb3\xc7\x7e\x83\x35\x7f\xe3\x62\x66\x7a\x1d\xfc\xca\x54\x75\x55\xfd\xaf\x8b\x99\x92\xb6\xd6\xd4\x89\x8c\xe9\xbc\xcf\x21\x0f\x77\x2f\xae\xec\x99\x09\xd6\xaa\x18\xe4\xb8\x87\x81\x52\xe1\xcd\x56\xb0\x0d\xe4\x58\x71\xf6\x19\x1a\x6f\xb9\x7e\x2d\xc3\x77\xca\x81\x0a\x17\x72\xc4\x99\xc5\x22\xbd\xb9\x17\x51\x86\x35\xab\x12\xc3\x8d\x42\xb4\x3e\x42\x1c\x31\x50\x78\x8e\x85\x99\xb8\xe6\x0b\x56\x0c\xc9\xaa\x78\x57\x4d\x19\xa8\x47\x3e\x21\x13\x2e\x72\x74\xfb\x59\x3e\xd7\x40\xbe\x07\x17\x54\x19\xee\x83\xff\xaa\xfa\x2f\x4d\xdf\xcb\x55\x34\xea\x4a\x5d\x43\x95\x5e\x6c\x56\x67\xef\x26\xaf\x36\xe0\x9d\x3d\xc4\x0e\xa0\x45\xfd\x48\x3f\xf3\xe2\x0f\xab\x25\xb5\xb6\x04\x06\x46\x19\x2e\x77\xd9\x52\x6b\xbe\x86\x58\xc9\xe1\xbe\xb7\xa2\x31\x30\x28\x2e\x8e\xc0\x23\x35\x17\x36\x79\xba\xad\xc9\x5b\xe0\x8e\x00\x93\xdf\x4f\x68\x01\x79\x0c\xe0\x21\x3e\xf9\xe3\x3b\x49\xbe\xe9\x79\x4c\xe7\x1e\x36\x4d\x57\x9c\xf4\x1f\x5e\x70\x32\x07\x8f\xdb\xdf\x45\xff\x85\x88\xd7\x15\x6f\x90\x5a\xfc\x48\x30\x94\xc6\x1e\x47\xf1\xc0\xd8\x7a\x54\x01\x77\xb4\x84\xa1\x77\x1d\x66\xfc\x7e\x03\x05\x13\xec\x84\x8d\x1e\x47\xa9\xea\x20\x2e\x13\xfb\x7f\xde\x82\x40\x50\x11\x0d\x36\x37\xb0\x06\x2a\x85\xe1\x74\x99\x38\x66\xa7\x41\x2d\x3b\x6f\x23\xee\xb3\xdf\x7c\x59\x3b\x24\xf0\x1b\x46\xe1\x80\xa5\x9b\xcd\x12\x3d\x22\xd9\x89\xa4\x90\x35\x1d\xfa\xa1\x6c\xa8\x98\x88\x22\x27\x77\x79\xc9\xf8\xd5\xeb\x7f\xef\x83\x27\xff\xb2\x75\x4b\xfd\xbd\x24\x74\x0f\x63\xb0\xd9\x48\xcc\x32\x9d\x44\xa7\xd0\xbd\xfa\x2f\x54\xa5\x9e\x2c\x1a\x99\x7d\xf7\xe5\xe3\x39\x15\x30\xc1\xa5\x7c\x6a\x83\x6a\x9c\xc8\x4d\xd4\x7a\x77\x36\x86\x59\xc4\x06\xea\xa2\xf2\x57\x03\x5a\x90\x5e\xa4\xce\x9f\xa9\xa4\xcb\xd8\xc0\x46\xff\x02\x11\xce\x5c\x82\x80\x32\x1f\x00\xcc\x29\x7d\x73\x67\x06\xd2\x51\x36\x99\xe2\x92\x40\xd1\x70\x29\xe4\x9b\xe3\x5e\xf0\xfe\x99\x4a\x43\x1d\x0a\x97\x34\x4b\x13\x7d\x73\xec\x3b\x5e\xc0\xd1\xf5\xd9\x86\x8c\x0d\x4c\x9b\xe7\x5b\x60\xa2\x94\xf9\x1d\x90\x45\x95\x33\x16\x48\x0a\xd0\xde\x24\xc6\x0b\x02\xf5\x9c\xde\xf3\xe1\xa4\x4a\xb4\x8b\x20\x79\xab\xa5\x58\x33\xd3\x08\x04\xc1\xc1\x1a\x63\x48\x0b\x48\x42\xe9\x5b\x78\xeb\x11\xaf\x9a\x24\xd9\xc1\x9c\x8e\x71\x3f\xe9\x0e\x52\xb5\x78\x10\x55\xb1\x3d\xeb\x26\x38\x11\x11\xa2\x4b\xd5\xd6\xca\x46\xe4\xed\xd4\x25\xf5\xcc\x7b\xdb\xe7\x5c\xa1\xee\x4f\x76\x80\x2c\xe2\xe2\x29\x18\x9e\xa6\x2c\x19\x0e\xd4\xd5\x11\xb2\xfb\xfb\xaf\xa9\x23\xde\xde\x99\x1d\x16\x76\xbc\xc3\x4b\xcc\xcd\xa6\xc0\xa9\x6e\xc1\x93\x06\x7f\x1b\x5a\x03\x3b\xad\x1f\xba\x3c\xf6\xca\x6e\x2e\x54\xa4\x7a\xdd\xfb\xb9\xff\x7d\x79\xb3\x82\x43\x96\x7d\x93\x29\x9c\x50\x7e\x4c\x16\x27\x3f\xf5\x4a\x92\x88\x93\xc6\xf2\xf3\x29\xb4\x97\x94\xd8\xba\x54\xc1\xc0\x43\x10\xf7\x4f\xb9\xe2\x20\x7b\xcf\xa8\xb1\x96\xde\x1f\x59\x51\x80\xb2\x2e\x1c\x48\x7c\xd8\xf9\x15\xdc\x3b\x4c\x14\x08\x72\x60\xea\x64\x9e\x41\x50\xf8\x0f\xb2\x42\x6f\xf7\x06\x46\xc5\xfa\x78\x4e\xcd\x20\xc4\xd1\x25\x3c\x88\x0c\xde\x96\xc3\xf2\x43\x21\x3b\x90\xb5\xf7\xd7\x5c\x58\x9e\x92\x90\xf5\x13\xe7\x7d\x79\xb9\xa8\x45\xd7\x6d\xbf\xda\xa5\x7b\xbd\xbb\xb8\x70\x30\x08\x32\xef\x25\x3a\xb0\x1f\x0f\x09\x00\x3d\x84\x04\xb5\x96\xc5\x8f\xd9\xed\xef\x43\x1b\x35\x4d\x4f\x8e\x03\x1b\x51\x2e\x66\x9d\x12\xf3\xb7\x63\x2f\x3c\x91\xad\x34\x79\x26\xc6\x17\x76\x72\x49\x8a\x73\x09\xb3\x01\xd6\xf6\x90\x5f\x52\x6e\x1e\x5d\x8a\x2e\xcd\xb9\xf6\x66\x87\xd5\x8f\x35\xe6\xc0\x85\x13\x48\xbb\x36\x55\x4c\xf8\xf7\xcd\x75\x56\xcb\xb6\x57\xb4\xc1\x1b\x20\x9b\x71\x27\x17\x87\x5d\x04\x9a\x5e\xec\xf4\x40\x59\xb9\x9f\x75\xf1\xdd\x6d\x75\x48\x59\xcd\xb3\x63\x55\xfa\x5f\xcc\x2b\x0f\xa0\xf5\xc3\xd8\x2a\x8d\xd2\x67\xad\xa4\x8d\x3d\x4a\xb0\x3d\x52\x58\x20\x54\xf6\x0b\xd2\xa6\x55\x09\xf4\x97\x46\x51\x18"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12515 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA4 "\x81\x7a\x30\xe3\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x0f\x12\x27\x1b\xde\xf2\x88\x7a\xd9\xa0\x1b\xd8\x63\xeb\xe6\x03\x61\xf9\x16\x68\xc3\x57\xc3\x4f\x4f\x38\x70\xc1\x4e\xd4\xb9\xf9\xcd\x7f\x17\xac\x58\x06\xc8\xfc\xb8\x9b\x3d\x9d\x09\xe5\x5a\xfd\x92\xf3\x3e\xde\x14\x89\x36\xcc\x62\x8a\x9c\xa2\xcb\x8c\x21\xa4\xf5\x5e\x13\xf9\x32\xdf\xe3\x33\x33\x23\x23\xc6\xb6\xed\x3e\x13\x34\x5e\xf4\xc6\x33\x3f\x42\x95\xbf\xff\x54\xed\xd2\x34\x0a\x33\x07\xf7\xe3\x65\x99\xce\xe3\x7e\x2f\xb0\x55\xaa\xff\x27\x82\x45\x5a\x5d\x27\xf7\x71\xa3\x83\x08\x74\x54\x0c\x9a\x9b\xe6\xd3\xbb\xcc\x54\x2b\x6e\x93\xa4\xad\x21\xcb\x8a\xda\x48\x27\x0b\x2a\x61\x87\xc8\xbc\x4e\xa9\x8a\x5e\x69\xa9\xa4\x7e\x3b\x2c\xf7\xef\xc3\x6f\x0b\xe8\xe5\x1e\xe9\x4b\xaa\x1e\xa0\x14\xa4\xb5\x43\x14\x8c\xc6\x49\x6d\xae\xbf\xcb\x8d\xb5\xc3\x48\x21\x48\x9d\x75\x3b\xf9\xfd\x26\x98\x50\x2b\x91\xfd\xce\x47\x38\xe8\xee\x3d\xfb\x86\x3e\xe5\x9d\x56\xa1\xa3\xc9\x67\x1d\x80\xdf\x8d\x02\x7f\x99\xbc\x58\x5d\xac\x4b\xb5\x1f\x91\xb9\x86\x1a\xa5\x32\xf4\xc6\x45\xc4\xdc\x81\x8c\xfa\xda\xa2\x9d\x72\x9c\x51\xb0\xb8\xe8\x2f\xee\x5e\x91\xe9\xbd\xd0\x88\x90\x3e\x8f\x6a\xf5\x7f\x7c\x09\xa6\xf8\xc6\x30\x3e\xcc\xbc\xfd\x37\xe5\x3c\x3d\x02\xf1\x97\xcf\xfb\x01\x4e\x94\x60\x84\x07\x7e\x60\xd0\x04\xf5\x71\xca\x48\x85\xd0\xb6\xa3\xa3\x0f\x94\x78\xf2\x8c\xe0\xd6\xb2\xe6\x32\x6c\x65\x27\xb2\x11\xd8\xf8\x27\x74\x21\xeb\xa7\x58\x08\x1d\x41\xa9\xc3\x8e\x79\x46\x24\xd3\xc6\x84\x0a\x58\x1e\xfd\x59\x3f\x2f\x7d\x16\xc8\x2f\xc9\xa1\x25\xf7\xbe\x0e\xe1\x78\x64\x42\x09\x07\xee\xaf\x5b\xf6\xdd\x64\xc7\xc3\x38\xe4\xd4\xeb\xdf\x52\x9e\x80\xf4\x9b\x02\x1e\x79\xf0\x54\x83\x22\xab\xf2\x13\x46\xe9\x3b\x60\xf9\xd1\x5c\x95\xe2\xc9\x97\xe2\x16\x5e\xac\x4c\xfb\x4f\x50\xd6\xbf\x3a\x55\x8f\x3c\xfa\x41\x91\xf8\x22\xd4\xa5\x90\x6b\xe9\xc3\xc5\x7e\xc1\x27\x34\x31\x47\x8f\x42\x36\x41\x33\x42\x13\x89\x23\x1a\xa8\xdd\xa6\x97\x87\xb7\x9d\x07\x22\x25\x91\xb2\x77\xbd\xb8\x6b\x03\xce\x40\x6b\x1a\xc7\xe9\x92\xc8\xbd\x0d\x58\xaf\xd9\x71\xf5\x61\x02\x62\xe1\xe2\x8a\xc1\x0e\xfb\x01\x88\xa8\x7f\x37\x69\xb4\x62\x06\x98\x27\xc2\x5c\x24\x76\x77\xa1\x3e\x62\x38\x14\xc9\x8f\x3a\x39\xff\x9b\x30\xfb\xaa\x88\x29\xdc\x9f\x69\xa4\xe4\x74\x96\xb8\xab\x13\xcd\x52\x36\x4d\x9c\xd7\xfd\xfe\x46\xcf\x25\xa6\x99\xfa\xf8\x55\x72\x57\xd0\xe8\x59\x57\x54\xaa\xf4\x35\xe1\x89\x8a\x68\xb4\x46\x19\xf2\x7b\xb1\xac\x98\xe7\xe4\x0d\x51\x91\x3a\x1d\x6f\x9e\xef\x54\xdb\x56\xce\x83\x08\x9e\x17\x22\xe3\x58\x4f\xac\x61\x51\xbb\x04\x89\xcf\x8f\x02\x6a\xc0\x19\xbb\x17\x4b\x4b\xb7\x70\x3e\xf6\x8e\xcf\x64\xce\x0b\xc1\x5d\x9d\x74\xde\x78\xa7\xaf\x49\x13\x18\x94\x9e\x27\x01\xec\x3c\xd1\xa6\x8c\xf8\x62\x31\x01\x98\x50\xe6\x01\x6f\x91\x84\x55\x76\xbb\xf6\x0e\x90\xd4\x8c\x63\x1e\x1e\x85\x92\xaa\x5d\x09\x54\xef\x27\xbd\x88\x9a\x91\x5b\xae\xb8\xda\x35\x0e\xcc\xc5\x38\x68\x54\xa4\x3d\xb3\x65\xd1\x5e\x7f\xdc\xa7\x9b\x01\xd5\x01\x30\xf0\xa1\xae\x0e\xfd\x48\x1e\x7f\x53\x75\xf6\x00\x00\xbc\x91\x0d\xfa\x82\x8e\x1a\xb8\xd4\x9e\x5a\xdf\x35\x05\x2e\x15\x1a\xe4\xc1\xcb\x68\x81\xf2\x3f\xef\xe4\x55\xd3\xd6\x27\x00\x6e\xe9\x56\x16\x78\x84\x64\xf1\x13\x75\x8e\x67\x92\x49\xbc\xdb\x37\xf3\x50\x83\xb3\xe5\xe1\xb0\x5a\xcc\xf7\x49\x03\xf2\xee\xe5\xec\x54\xf4\x41\x5e\x63\xcc\x85\x6b\xa5\xce\xbb\x89\xfc\xa2\xde\xc0\x1a\xb7\x0a\x66\xc8\x06\x97\x31\xf5\x77\x01\xe6\xba\x36\x2c\x37\x44\x1b\xcd\xeb\x07\x35\xd2\xdf\xee\x64\xeb\xe4\xe9\xd7\x27\x89\x55\x40\x0f\xb2\xa7\x2b\x24\xb0\x9b\x9b\x61\x9d\xff\x8b\x4a\x4a\xc4\x8c\x68\x3a\xea\x51\x40\x93\x2a\x76\x8c\x1b\x13\x70\x0b\x26\xc6\x25\xf2\x65\x2c\x7a\xca\x33\x0b\xd7\xda\xa5\x76\x9f\xa4\x71\xb2\x4f\x92\x67\xb0\xc5\xbe\xe7\x0c\x69\xff\x4c\x2f\x1e\xe2\x70\xe3\xb4\x99\xa6\x39\xda\x93\x7d\x79\x9d\x99\x2e\xe5\x5a\x91\x4c\x71\xa8\x84\x44\x44\x7d\x38\x5d\xfc\xf1\x5e\xdc\xa1\x12\x09\xc1\xcc\x55\x53\x09\xe3\xc2\xf6\xd0\x88\x9f\xe7\x43\xcd\xd5\x59\xd4\x59\x4d\xcf\x7b\xd5\x19\xc2\x60\x9a\x42\xa1\x19\x9d\xb1\xf4\x50\xb0\xfd\xaa\xe4\xf7\x41\xbf\x8d\xb3\xda\x11\x04\x6d\xa8\xa2\x4a\xb9\x34\xa5\x08\x65\x09\x9e\xd8\xc4\xbd\x45\x3d\xb7\x6e\x0a\xf8\xb0\x95\x2b\x47\x5c\xcf\xec\x80\x58\x28\x2b\xa4\x1f\x67\x08\x46\x03\xae\x00\x6e\xe5\xf3\x5c\xc7\x31\xce\x67\xdc\xaf\x00\x21\xe3\xfd\x1f\x81\x1b\xbf\xee\x3d\xa0\x2f\x0e\x1e\x85\xed\x8d\x47\x07\xfb\x11\x22\xdc\xed\x38\xc4\x23\x17\x7c\x9b\xa8\x62\xf2\x3b\x35\xdd\x7b\xbd\x97\x03\xed\x7d\x82\x4b\xbe\x8e\xef\x2e\x06\x77\x8f\x4e\x0b\xf6"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12516 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA5 "\x81\x7a\x30\xe4\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x93\x91\xa8\xea\x2b\x80\x5e\x61\x8d\x79\x4f\xfe\x4c\xcf\x6f\xa7\xf6\xb2\xe1\x46\xb6\xf1\x58\xf6\x4e\xfa\x62\xe2\x32\xc9\xa1\xf7\x59\xfc\xe4\x23\x85\x31\xa1\x88\x08\x4e\xc6\xeb\x67\x8f\xc0\x41\x88\xc9\x32\x6d\x5f\xc0\x9c\x37\xc9\x53\xf9\xe4\xaa\x30\x13\xcc\x8b\x16\x83\xda\xe8\x44\x70\xb5\xe5\x83\xa6\x2b\xa4\x8f\x94\x19\x30\xf6\x09\xf4\x66\x74\xcd\xa0\xaa\x45\x3b\x9b\xe4\xad\xd7\xcd\xc7\xb1\x56\x56\x0c\x48\x5c\x4a\x8a\x20\x64\xc3\x6f\x73\x48\xff\x43\x06\x85\x12\x92\xe9\x42\x0c\xa7\x1f\xbd\x51\xf0\xf0\x3b\x43\x8c\x10\x71\xa1\xbc\xeb\x51\xf9\xfa\x13\xaf\x67\x00\xf5\x7e\x03\x19\xa2\x48\x7a\x71\x3b\x97\x87\x51\x3b\x0c\xc2\xe7\xd7\x1e\x0a\x94\x04\x95\xe9\xdf\xc5\x73\xb5\x5b\xe5\x80\x7c\xcf\x9d\xbd\x21\x63\xc2\x6d\x41\x4e\xda\xc6\xfa\xcc\xba\xca\xe9\x5a\x44\x3a\x21\x76\xdd\x78\x30\x5e\x0a\x79\x96\xa2\x18\xc1\x3d\xe7\x13\x5b\x26\x0d\xf7\xbd\xfa\x08\x43\x7a\x37\x84\x8d\x9b\x04\x35\x1b\x80\x00\xed\xa8\xed\x01\xcd\x76\x59\x2e\x91\x3a\xeb\x4d\xc7\xc5\x4d\x3f\xce\x5e\x7c\x23\x86\xa5\x77\xe2\x15\x92\xe0\xf4\xbe\x0d\xd2\xc7\xc6\xbe\x9a\x3c\xee\x72\x06\x70\x99\xa6\x70\x92\x73\x18\x17\xae\xef\xf0\xd7\x04\x64\x19\xc3\xfa\x3d\x76\x74\xe1\xf1\xfe\xa0\xef\x17\x12\xfb\x38\x6e\x62\x82\x0e\x2c\xc2\x5a\xac\x4a\x25\x1d\x71\xda\x15\x36\x65\x09\x4e\x86\xf7\x8e\x89\x6d\x4c\xf1\x27\xf7\x2f\x8a\xb1\x9b\xd2\x06\x4d\x76\x6b\x91\xe1\xe3\x31\x2a\xef\xa2\xe9\x85\xa7\x31\x94\x8f\x97\xef\xe9\x8a\x0a\x7d\xd5\x9b\xfb\xcd\x70\xc5\xff\x98\x12\x6d\x96\xa4\xd2\x0d\x58\x6a\x7b\x7c\x65\x88\x3d\xc3\x92\xca\x2a\x06\x51\x31\xa1\x08\xe4\x92\x8c\x78\x54\x00\xcb\x9f\xa0\x78\xbc\xc5\x75\x1b\xc6\x85\xda\x9f\x99\x21\x8e\xf3\x15\x84\x30\x89\xa5\xcd\x6f\xe7\xde\xd0\x28\x28\x45\xcf\xd2\x22\x87\xb1\x89\x18\x0f\xa3\xf6\x70\xf0\x17\xdf\x1a\xab\x71\xfb\x63\x56\x52\x18\xbd\xfd\x31\x61\x2b\x15\xfe\x2b\x27\x57\xa4\xb4\x70\x59\x90\x8c\x9a\xe1\xb3\xac\x59\x88\xe5\x2e\xcb\x1a\x1e\xab\x57\x16\x6f\xa0\x27\x31\x63\x7c\x02\x1f\x26\x6a\x3e\x31\x59\x6d\x15\xe5\x71\x32\xf0\x2d\x66\x44\x60\xd3\xef\xf7\xf9\x0c\xf2\xb1\xd4\x2c\x6a\xa5\xb1\xe2\xc2\x0b\x92\x82\x2f\x20\x25\x23\x83\xd7\x84\x2a\xe6\x45\xbb\x70\x69\x58\xc7\xe4\xfb\x2b\x57\x6f\x5b\x31\x08\xce\xad\xcc\x41\x4e\x37\x0f\x45\x17\x7f\x49\xae\x2d\x1a\x74\x1a\xcb\x63\xd7\x18\xc7\x7e\x1f\x60\x54\xe5\xe5\xe4\xdb\x2d\x6b\x46\x10\x93\xe9\x4c\x90\xf9\x60\xca\x70\xfc\x0f\xbf\x0e\xb0\x2c\x9e\x27\x9c\x0e\x59\x13\xcf\x8f\x85\x07\xed\x7d\x04\xed\xa8\x4f\x13\x28\xac\x66\x8d\x94\x79\x01\x17\x7b\x87\xe2\x94\x51\x6f\x10\x0d\xa2\x55\xa8\xf2\xf0\x97\x5f\x97\x38\xd8\x1e\x34\x01\xa1\x36\x4c\xa8\xbb\x0a\x52\xa8\x0d\xb1\x11\x2e\x12\x0e\x47\x37\x01\xdb\x01\x93\x74\xda\xf0\xa0\x97\xa1\x01\x7c\xa4\x4f\xa3\x0d\x59\xad\xf2\x50\x5d\x36\x45\xf1\x31\x69\x62\xbc\xf9\xee\xd0\xdd\x25\x6c\x3c\xd7\x72\x69\xc9\xa5\x5e\xf9\xbe\x33\xcc\x51\xff\xdf\xcf\xa6\xa0\xce\x1e\x76\xce\xd5\x27\x12\x58\x46\x63\x46\x4f\xac\x57\xef\x0e\x5d\x20\x92\xc4\xfe\xf4\x98\xf7\xd4\x1a\x06\x22\xb8\xb1\x4c\x20\xdb\xff\xb6\x57\xa0\x01\x66\xdd\xf5\xb9\x42\xf3\x96\xfb\x69\x53\x14\xce\x6d\xaa\xa6\x66\x10\x5d\xf2\x03\xc6\xac\x6c\xb5\xc0\xf7\x32\xb4\x7d\xbc\xd1\x9f\xb2\x1b\xa8\x2c\xb5\x24\xe2\x8f\x23\xb2\xae\xd2\x2e\x80\xa9\xe2\x93\x2c\x98\xbd\x72\xad\xfe\x9a\x1c\xaf\xcc\x57\x38\xbb\x71\x9a\x92\x6d\xa4\x9d\x1d\xc2\x79\xd3\x5a\x7d\x1d\xb0\xf3\xc8\xf2\x6f\x93\xbd\x1e\x1f\x09\xc8\x56\x7b\xa2\xec\x4a\x12\x6b\xbb\x83\xd7\x54\xd8\xa7\xef\xa3\x46\x8f\xaf\x28\x19\xa2\x25\x2f\x5f\x3d\x4a\x0f\x9e\x33\x36\x59\x64\x38\x7b\xa5\x13\xb0\x70\x5a\x41\x62\x81\x9c\x46\x3b\x8c\x32\xe8\x6c\x6f\xeb\xf1\xb2\x1b\x8b\xc4\xf6\x9e\x33\xd2\xd3\x8a\x90\xad\x8a\xf4\x9a\xe9\xa9\x3c\x62\x55\x20\x1a\x60\x4d\xf6\xe0\x0f\xba\x49\x90\xb8\xcd\x8a\xcc\xec\x93\x7f\x49\x84\xa4\x95\xa9\x3f\xa4\x39\x01\x77\x78\x3a\xbd\x62\x8d\x5d\xb3\x68\x4b\x0b\x09\x2c\xc7\x33\xa9\x16\xb5\xfa\x47\xf4\xa8\xae\xd3\xe1\x6b\xc2\xec\xc1\xca\xdb\x3f\xe1\x17\xa8\x27\xea\xbf\x5a\x6e\x31\x34\x71\x03\xf9\xed\xab\xae\x92\x81\x72\x21\xd4\x9e\x92\x6b\xf5\x86\x87\x1a\xdd\x41\xee\xec\xaa\xcd\x57\xf1\x8b\x87\x68\x04\xaf\x94\x05\xbc\xa2\x07\x86\xf5\x61\x19\x78\xb7\x1f\xe4\x7b\xf4\x7c\x09\x95\x72\x3d\xec\x13\x4e\x68\xef\x43\xc5\xec\x62\xbc\xc4\x4d\x45\x47\xcd\xbc\xd2\x1c\x01\xaa\x2c\x4b\x4f\xe6\x35\xa3\xcd\xb2\xc6\x01\x56\x5d\xf2\x5c\x27\xb9\xaf\xf8\xe9\x0d\xb6\xe1\x02\xa7\xfa\x2d\x98\x7d\x19\x9f\xe9\xf6\x42\xcc\xa8\x9c"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12517 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA6 "\x81\x7a\x30\xe5\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x13\x1d\xe9\x05\x50\xaa\x7c\x0e\x8a\x24\x5d\x17\xf2\xfa\x14\x25\x26\xe4\xf5\xd1\xe3\x7d\xe3\x14\x92\xb3\xec\xe2\x48\xdb\xeb\x89\xdc\x46\x77\x5b\x79\x79\x9f\x06\xc0\xd2\x37\x67\x2a\x57\xc6\x87\x8a\xb0\x01\x61\x33\x06\x44\x41\x67\x19\x51\xf9\x67\x61\x37\x18\x62\xf3\x80\x16\x10\xc0\xa4\xc2\xe2\x89\x0a\x1f\xfe\xd7\xe3\xbf\x17\x5b\xb3\x23\xbf\xb4\x43\xa8\x13\xcf\x4a\xce\x39\xf1\xaa\xa8\x07\x3b\xba\x27\x53\xf9\xd5\xb7\x98\x9d\x42\x3c\x41\xe0\x95\x3e\x6e\x8f\x3e\x04\x04\x35\x12\x8a\x46\xe9\xb6\xe9\x8b\xc4\x1e\xd3\x70\x20\x40\x8b\x98\x33\x14\xc7\x98\xdc\x15\xb7\xe2\x23\x67\x1d\xbd\x8c\xde\xa1\x43\xe8\x19\xad\x16\xb5\xf9\xba\x25\xe3\x24\x12\x99\xe2\x7f\x01\x66\x93\x76\x0f\xd1\xea\x92\xba\xef\x19\xed\x38\x49\x85\xd4\xb2\x45\x59\x24\xbe\xae\xf1\x2e\xc8\xf8\x20\x5c\x31\x06\x60\x1a\xae\xd4\x82\xcb\xc7\xd7\xa4\x1e\xc1\x4f\xd2\x45\xc9\x85\xcf\x6e\xae\x10\xb2\x58\x65\x66\x16\x01\x7f\x2d\x23\x64\x6a\xf0\xfd\x87\x5e\xf0\xec\x3d\x47\xa7\xa2\x0b\x72\xb4\x56\xee\x8a\x96\x2a\x73\x8b\x54\x3a\xdd\xe8\xda\x8b\x8e\xed\x7c\xba\xee\xc5\x1c\x1d\x20\x93\xbc\x8c\xb6\xcb\x1c\xb9\xf1\x8d\xcb\xb3\x0b\xdd\x0e\x1c\x9e\xd8\x44\xe1\x59\x07\x71\xbf\x08\x64\x4b\xfb\x7b\x2e\x16\x16\x8c\x7a\x5b\x80\x92\xe8\xfe\xcb\x74\x9e\x86\x24\xfc\x35\x40\x6d\x8e\x52\x2c\xa3\x24\x69\x6d\x93\x1f\x29\x7b\xe6\x9d\xdd\xa1\x8f\xf0\x62\x53\x69\x39\x84\xba\x14\xd5\xe1\x22\x9c\xff\xcd\x88\xd6\xd4\x59\xca\xd0\xbe\xfd\x3d\x98\x49\xb7\x04\xa1\xeb\x69\x1c\x02\x59\xa9\x0b\x93\x7d\x6e\x2d\xb8\x91\x3c\xf2\xab\x5d\x4c\xa7\xfd\xcf\x0e\xc3\xfd\xc4\xc9\x8e\x2f\x54\x80\x0c\xdf\xf2\x3b\x08\x53\xd3\x25\x96\xcd\x09\xf5\xd6\x8d\x22\x90\x78\x52\x77\x5d\x37\x85\xfa\xd4\x41\xf3\xa6\xaf\x4e\x0d\x5f\xd0\x91\x8b\xf0\xe5\x11\x75\x68\x93\x26\x96\xb5\xbb\x30\x67\x66\x8a\x94\x97\x55\x04\x79\x68\x33\x79\xfc\xac\x1c\x9f\x91\xb2\x26\x58\xa4\x54\x07\x50\x4f\x86\x12\x1f\xca\x14\x90\xe7\xc8\xbf\xfa\x62\x34\x55\xe1\x60\xef\x75\xc1\xfb\x30\x01\x2a\xd9\xc7\x61\x1c\x4d\x51\x99\xc3\x0a\xea\x94\xf5\x62\x71\x6e\xfe\x5a\x29\x99\x8a\x41\xbc\xa8\xff\x04\x68\xf0\xef\xce\x23\xb7\x0c\xe5\x45\x67\xf9\xb1\x7a\x21\x13\x50\x72\x50\x73\xda\x9b\x51\x5c\x26\x45\x66\x1c\x6a\x36\x00\xb8\x72\x44\x0f\x07\xbe\xf2\x34\x18\x17\xa4\x81\x34\x7f\x76\x9f\x87\xb9\x13\xb1\x06\x72\x50\xbb\x9b\xa9\x6d\xe6\x5f\x35\x04\xa5\x49\x9f\xf4\x5c\x31\xe7\x00\x2c\x8b\x48\x85\x50\xae\xb8\xa9\xeb\x2d\xa7\x55\x60\x62\x95\x1a\x61\xc8\x10\xf5\xdc\xd1\x25\x94\xaa\x33\xd2\xa3\xaa\xe2\x01\xdd\x3d\xef\xa8\x38\x6a\x78\xa2\x61\xc3\x04\x61\xaf\xac\x9a\x29\xc3\x1e\x93\x50\x07\x24\xe5\xbb\x4f\x28\x78\x28\xc6\x74\xd8\x2c\xbb\xf9\x16\x61\xb1\x24\xf2\x1f\xfd\x46\x03\x2b\x45\x0c\x2b\xf9\x09\x7b\x5b\x53\x4f\x90\x49\xcc\x0b\xbe\xe3\x31\x38\x88\xae\x34\x31\x71\x97\x1f\x2a\x18\x40\xab\x92\xdf\xc9\x8d\xa9\xa8\xcd\x16\x76\x6a\x4c\x61\x24\x89\x0c\x00\xc7\x64\xf7\x0a\xb7\x95\x0e\x37\xb8\x81\x3c\xa0\xfa\x8b\xad\xb9\x03\xaa\x9c\x0e\x8a\x85\x23\x33\x92\x70\xbb\xf6\x70\x4b\xfc\xa8\xff\x50\xb8\xce\xb8\xc0\xfb\xf6\xc9\x30\x97\x1e\x37\x31\xd8\x83\x99\xfe\x23\xf4\x22\x0c\xb3\xd1\x02\x3c\x61\x4d\x1e\xcb\xc8\x54\xa8\x91\x09\x42\x57\x65\x32\x8f\x06\x7b\xf9\xaf\xc9\x1b\xea\x1b\xcf\xc1\xb1\x2a\x51\x60\x34\x52\x6a\x08\x50\xe9\x49\xdf\xbb\x50\x08\x5b\xf9\x2a\xd4\x9d\xd8\x06\xe3\x2d\x37\x0d\x72\x68\x15\x70\xa0\x10\x55\x23\x44\xf0\x0a\x8c\x38\x65\xbd\x28\xa4\x9c\x82\x18\xbe\xcd\x0f\x31\x54\x11\x72\xb9\x4a\xf8\xc4\xd2\x89\xf3\x4a\x6a\xd0\x80\x26\x8f\x60\x0e\x71\x7d\x83\xa2\xc4\xb9\xdb\x12\x51\x06\x20\xf1\xba\x69\xb5\xaf\x59\x45\xd3\x9a\x59\x0f\x5e\x6a\x17\x67\x57\x2c\xe3\xd0\xe6\x8d\x94\x1d\x8a\x03\x7c\x71\xc5\x94\x98\x63\x47\x44\x45\x52\x99\xae\x66\xf0\xd0\xe1\xaf\xed\xcf\x14\x55\xf0\x67\x3f\xc9\x65\x8e\x6f\x2d\x32\xc0\x44\x2e\xc2\x2c\x9b\xc3\xc8\xd0\xd2\x71\xf2\x8f\x89\xf9\xd3\x2e\x5a\x63\x0c\xd3\x2c\x70\x70\xa4\xd0\xba\x86\xfe\x58\x32\x78\x93\xc4\xdc\x99\x90\x91\xd9\x9b\x6f\x89\xde\xe7\xeb\x4b\x35\x07\xde\xa8\x6c\xfd\x86\xb3\x12\x23\x03\xff\x2f\xb0\xfc\x24\x19\xde\x1e\x6c\x8e\x66\xa6\x4a\x59\x5d\x4a\x56\xe4\x65\x1f\xd3\x78\xb0\x85\xd1\xb1\xe6\xbd\x1a\x10\x78\x3e\xeb\xc8\xb1\xef\xfb\x70\xe1\xa1\xb3\x06\x32\x71\x9d\x46\x15\x6b\xef\xee\x12\x23\xa6\x61\x8f\x06\xad\x76\x71\xbf\xeb\xa1\x36\xb9\xff\x7b\x39\x2f\x54\x51\x08\x73\x62\xc5\xb8\x3a\x32\x7a\x61\xf4\x4c\xae\xcb\x9f\x51\xb3\x5d\x54\xf9\x79\xc9\xeb\x57\x32\x43\x88\x9e\x72\x49\x82\x00"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12518 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA7 "\x81\x7a\x30\xe6\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xb5\x42\xaa\xaa\x1c\x17\x2c\x2b\x56\x1b\x0a\xc5\x1c\x58\x92\x8a\xbe\x41\xfc\x8c\xcb\x3c\x62\x8f\xea\x58\x8f\x0b\x65\xa0\x26\x16\x62\x17\xbb\xda\x82\xb7\x9b\x27\xf3\xaa\x41\xae\x3e\x81\x9c\x7e\x3c\x2a\x9d\x5c\x87\x31\xeb\xcd\xb7\xd2\x18\xfe\x4e\x69\x1e\xb1\x68\xad\x31\xc0\x9c\xe2\xf7\x98\xd0\x3f\x2b\xa7\x95\x13\x10\xf4\x9c\x74\xa8\xdc\x87\x0f\x6e\x1d\x87\x58\x26\xd5\xb6\x65\xee\xe6\x6d\x4d\x14\xfa\x74\xd5\xee\x21\xe1\x5c\x7f\x43\xbf\x67\x37\xe2\x2f\x88\xbb\x3a\x6f\x3f\x2a\x4a\x9d\x81\x43\x8d\x21\x30\x11\xdd\xcf\x01\x06\x37\xf5\xcb\xa1\x19\xf5\x3f\xa1\xd5\x6d\x3f\x41\x3e\x5b\x7a\xe6\x8c\x01\x83\xfc\xd1\x7b\xf7\xbe\x5b\x3e\x52\xa2\xfe\x7e\x68\x6e\xcd\x4f\x0f\x66\x4e\xbe\x80\xd8\x82\x79\x97\x8d\x02\xaa\xa9\x04\x47\x38\xc5\xbd\x26\x31\x32\xc9\xc4\x35\x6f\x51\x9a\x2a\x5b\x6d\xbc\xb9\xb0\xce\x43\x96\x4b\xa4\x36\xee\x31\x45\x79\xb6\x9e\xeb\x81\xdc\x7b\x7b\xf3\x2e\x17\xeb\xe0\x13\x00\xd3\x0e\x77\xf3\xf7\x72\xff\xf7\x42\x7f\x5a\x30\x83\x0b\xad\x22\xcb\x24\x8d\xf6\x7d\x6e\xb9\xdd\xd4\x9f\xd4\xc7\xb4\xcd\x09\xe2\x72\x37\xbe\x03\x0e\x0f\xba\xeb\x29\x69\x11\x87\x41\xaf\xb5\x4a\x79\x20\x74\x65\x21\x71\x5b\x5b\x0a\x22\x82\xb3\xf1\xfb\x45\x21\x58\xe2\xeb\xfb\x02\x27\x97\xe6\x12\xfa\x5f\x5f\x6f\x8b\x2d\x66\x27\xd1\xca\x41\x7c\x89\xf6\x8c\xf8\x5c\xdd\x3e\x89\x7a\x42\xce\x71\x75\xa7\xec\x2b\xf2\x46\xf9\x80\x4c\xdd\x69\xa0\x84\xd6\x7f\xfd\x85\x70\xb7\x60\x18\x49\x5e\x16\x14\x6d\xfe\x1d\x87\x0a\x72\xaa\x25\x4b\xf3\x79\x5e\xc0\x6b\x20\x97\x94\x78\xd4\x23\xee\xd6\x62\x85\xfa\x8d\x25\xcb\x38\x6f\x1d\x60\xe8\xdb\x36\x7d\xaf\x56\x8a\x4c\x32\x5e\x24\x56\x9b\x06\xcc\x8c\x6b\xda\x36\x61\x37\xbb\x7c\x4b\xc2\xc2\x80\xf6\x08\x0f\x07\xfa\x4e\x3c\x4d\x65\xd9\xa9\xfc\x12\xf4\xb8\xfe\x6a\x33\xb8\x38\x4e\x7a\x46\xd8\xfa\x75\xc4\x7d\x9a\xee\xad\x0d\xa4\xc8\xcb\x7e\xfe\xba\x01\xb2\x5c\x47\xe5\xd9\x1b\x84\x37\xd0\x35\x78\x2e\x92\xe9\x82\x68\x76\xec\x95\x3a\xec\xf5\xfb\x8a\xa7\xe6\xdf\x25\xd2\xc3\xc2\x82\x84\x6c\xcb\x3b\x79\x05\x2f\x07\xe0\x81\xd6\x27\x73\x5d\x2b\x24\x2e\x75\xb3\xa7\x55\x7b\x95\x77\x4c\xe7\x9a\x23\x05\x3f\x05\x61\x20\xdc\x59\xcf\xde\x6d\x75\x15\xf0\xf9\xe2\xbd\xa7\xc2\x6f\xe8\x51\x9e\xbd\x47\x4f\x0d\x12\xb9\x7a\xf9\xc3\x26\x48\xb2\x69\x1d\xc7\x64\xde\x28\x9d\xf8\x57\x3d\x93\x93\x87\x8c\x79\x67\xb7\xd9\x6b\x40\x00\x74\xa8\xcd\xce\xdf\x04\x5b\x16\xb8\xf8\xbd\xda\x1c\x43\x10\xcd\xa6\x2f\x65\xf2\xba\xad\x1f\xab\xa8\x79\xc5\xed\x8d\x0d\x6f\x59\xee\x64\x11\x38\xfb\xff\xde\xd7\x09\xf8\x80\x7b\x55\x12\xff\x06\xfb\xea\x14\xf7\x79\xdc\x5c\x5d\x35\x7f\x86\xcf\xcd\xc1\xfa\x3d\x2d\x20\xd3\x12\x7c\x8b\xa4\x34\x15\xcb\xa8\x17\x37\x56\x52\xf2\x30\xcd\xb6\x5d\x35\x30\x9d\x9c\xca\xf7\x3d\x5d\xc3\x01\xad\x7f\x99\xdd\x23\x36\x8b\x1d\xee\x11\x30\x17\xbd\xe9\x5c\xc1\xa8\x33\xd6\xb1\x40\xf1\xe7\xff\x92\x95\x43\xfd\x8e\x17\xb4\x4d\x65\x72\x01\x4d\x1b\xf3\xf2\x45\x3f\x07\x19\x48\x86\x35\x7a\x80\xf3\x49\x8f\x51\x5e\x5c\x8c\x3d\x73\x8c\x2c\x13\x91\x95\xd6\x73\x1d\x62\xf5\xf1\xf8\x2e\x82\x8a\xe0\x1d\x4f\x73\x46\xac\x37\x3f\x37\x72\x63\x4f\xb1\x9e\x72\xc3\x51\x5c\xc9\xa5\x04\x04\x66\x38\x8e\x28\xcb\x50\xaf\x0d\xc4\x33\x11\xc2\x36\x05\xbb\x69\x6f\x0f\xbe\x43\xdf\x4d\x66\xc2\x08\x17\xf5\xfd\x9d\xba\x37\x25\xdb\x6a\x3a\x53\xd0\xbd\xc7\xe0\x1d\xd8\x74\xa5\xf5\x92\xe0\x4e\x18\xbd\xc2\x08\xbe\xa7\xd1\x62\x86\xb1\x5c\x6a\x71\x0a\x94\x15\xfb\x4f\xb0\x61\xf9\xcd\x0e\x5a\x92\x5f\x2d\x0f\xeb\x5e\xb0\xd8\x8d\x29\x80\x4d\xb7\x38\x3a\x78\xf7\x6c\x4c\x1a\xdc\xcc\xc9\xfd\x2a\x31\x98\xde\x51\x5d\xf9\x3e\x1d\xaf\x5b\xd9\x3d\x8b\xf9\xb7\xb3\x26\x7a\xe1\x7e\x88\x2d\x1d\x3c\x65\x49\x94\xa3\xa8\x7f\xc6\x02\xd6\xaa\xa9\x58\x22\x0a\x11\x0c\x70\x53\x69\x29\xb0\xeb\xc8\x0a\x4b\x17\x6a\xc6\x7a\xc5\x4d\x8f\x96\x50\x8a\x38\x53\xa1\xe6\x63\x09\x8e\xbf\xd7\xcd\x33\x08\x7a\xae\x35\x10\xf2\xd9\x3c\x24\x07\xf0\x1e\x17\x5e\xe0\xa5\xa4\x2f\xbe\x6b\x13\x80\xa9\x23\x4a\xdd\xe3\x8d\xf0\xa5\x6c\xc0\x05\x3f\x84\xa9\xb9\xfe\x7b\xac\x4b\xfe\x9c\x70\xeb\x50\x9f\xc9\x64\xec\xd6\x41\xbc\x09\x0c\x7b\x33\xe9\x56\xf9\x09\x2d\xfc\xf5\x30\x3c\x28\x64\x3d\x7f\xcf\x60\x62\x38\x8b\xff\xf2\xd5\x12\x4f\xfc\x0a\x2c\xa7\x53\xa9\x14\xf2\x91\x9a\x65\x80\xdd\xfd\x0b\x43\xe0\x50\x10\x29\x9f\x9d\x0c\xdd\xf8\xb8\x3a\x01\x5c\xa8\x09\x69\x93\x47\xfe\xf6\xcb\xc3\x75\xdf\xdd\x32\x91\x20\x53\x9c\x23\x4a\xfd\x7d\x21\x04\x50\xde\x47\xeb\x72\xe8\x6f\x8d\xe5\x13\xbc\x4a\x6c\x39"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12519 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA8 "\x81\x7a\x30\xe7\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xbd\x1f\x32\x61\x7c\x38\x31\x8a\x4e\x6b\x4e\xc0\xf6\x78\x6f\x4e\x83\x2d\x81\x86\xa8\x04\xf5\xfc\x64\x7a\x57\x65\xf1\x30\x78\x75\x87\x9e\x69\x4c\x1c\x04\x3c\x8e\xa5\x70\xa0\x25\xb5\x48\x2a\x02\x9b\x1c\xa9\xfd\x7f\x72\x41\x88\xdb\xd8\x18\x24\x00\x7b\x22\x7b\x40\xc5\x3a\x05\x05\xeb\x22\xb6\x35\xda\xb7\x8e\xa2\x30\x97\x2d\x8d\x7c\x90\x4c\xcd\x98\xcc\xdd\xc3\x2c\x59\x37\xfa\xc4\x2b\x98\xf1\x68\x26\xc4\x1b\x5a\x5e\xd6\x15\x19\xb4\x4a\xcb\x76\x4f\xa9\x9c\x7b\x21\xc5\xc8\x8a\x09\x45\x60\x1e\xa7\x53\xf6\x42\x96\x34\x26\xab\x93\x45\xc6\xd8\x33\xfc\x57\x0e\xea\x2e\xa1\xe2\x52\x4a\x7e\xdf\xe3\x27\x5a\x52\xe4\x55\x94\x6c\xea\xfb\x60\x72\x46\x2b\x6e\x1e\x21\x83\xb5\x2f\xcd\xad\x1b\xda\x9d\xd4\xbc\x5a\x21\x1a\xa4\x10\x7c\xba\xd9\xa5\x61\x63\x33\x46\x22\xc8\xac\x89\x80\x92\x62\xd2\x0d\x13\xb3\xfb\x6b\xb5\x2f\x8f\x64\xa8\x00\x0c\x3e\x85\x41\xc5\x06\x5b\xbe\xbf\xbc\xe1\x0e\x0c\x91\x2d\xcf\x29\x21\xd9\xbf\x47\x15\x28\x33\xfd\x86\xb1\xd0\xfe\xe9\x45\xa2\x52\xa3\x74\xbc\x7d\x7a\xba\x9b\x92\xed\x29\xd4\xac\x99\x38\x90\x9e\x68\x51\xef\x43\xdd\xc6\xa4\xe1\xf0\x5b\xd9\xdb\x32\x5f\x42\x41\x96\x18\x2d\x6d\xd1\x45\xa8\x95\xf4\x57\x4d\x1a\x4b\x61\x23\xf0\x9a\x52\xc8\x66\x40\xa2\x82\x44\x53\xf0\xbd\x2e\x8e\x8c\xf4\x2d\x1d\xed\xea\x03\x9b\xca\x55\xaa\x0e\xf8\x56\x9b\x68\xad\xfe\x2f\x53\x13\x52\xe5\x6c\x2b\x83\x6e\x27\x77\x13\x23\x80\x8e\x68\x41\x19\xd7\x94\x24\x58\x5c\x1b\xf1\x81\x38\x8b\xf5\x3b\x6e\x47\x49\x15\xc2\xd1\x4a\xeb\xbd\x00\xac\x9e\xfc\xab\x31\x19\x4c\x41\x18\x99\x92\x8f\x91\xe7\xfd\x5b\x86\x6d\x70\xf8\x73\xd4\x51\x10\x45\x07\x32\xb0\xbb\x53\xe6\x83\x3e\x65\x24\x61\xcb\x39\xe8\x8f\x57\xc5\x8e\xe6\x1f\x0d\x9a\xef\xe2\xb8\x7e\x78\x89\xfd\xb7\x23\x97\xfe\xf1\xd3\x54\x2c\xce\x6e\x6d\xff\x05\x61\x9b\xe6\xa4\x68\x82\xb2\xe4\x48\xc3\x54\x57\x66\x19\x36\x95\x8c\xa8\x7d\x98\x5b\xfb\xb9\xef\x87\x8d\xeb\x6b\x94\x6d\x3d\x86\x0d\x83\xd4\x28\xba\xb1\x9b\x50\xce\xd0\xe6\x30\x45\x7f\x25\xb9\x30\xe0\xb3\x37\x50\x3c\x2a\x62\xdb\x27\x39\xbd\xff\xb5\xfc\xee\x0b\x84\xb8\xa7\xb4\x71\xac\xc3\x38\xca\xe8\x4a\xd7\x58\x68\x3b\xd7\xe3\xf2\xb1\x65\x12\xed\x13\x3f\xb3\x62\xaf\xb8\xf0\x94\xce\xa3\xcf\xb1\xfb\x1f\xfd\x3d\xa3\x80\xd0\x3b\x2d\x6b\xda\x9d\x9c\x27\x4d\xed\x1f\x3a\x1f\x94\x4f\xa0\xd9\xcf\xe8\xd3\x52\xe6\xa9\x0f\xf0\x99\x55\x50\xfb\x41\xf4\xa3\x54\x38\xab\x04\xa6\xc7\x45\xcf\x3d\xab\x5e\xbc\x48\x50\x99\xb5\x12\xe4\x4c\x55\xab\xeb\x27\x93\x67\x9f\x41\x5b\x96\xa6\x59\x20\x4e\x73\x43\x98\xf4\x3a\x7b\xc8\x27\x51\x5d\x1f\x70\x8c\xa1\xe4\xf8\x76\x9f\xf0\x02\x81\xdc\x5b\xea\x6c\x7e\x8d\x72\xef\xd6\xe3\x9b\x3b\x06\xd9\x6e\xec\x8f\x8a\xcd\xfc\xe9\xf8\x83\x72\x5d\x5d\xd9\xb0\xd9\x7f\x44\xa0\x5a\xca\x14\x8d\x75\x94\xa2\x65\x4d\x63\x61\xa7\x55\x4e\xf3\x46\x80\xf1\x00\x57\x96\x74\x68\x94\x6a\x39\xa0\x54\xe0\xed\xa4\x11\x22\x0d\x88\x42\x99\x35\x7b\xa7\xff\xc8\xd7\x5d\x33\x06\x0d\x0e\x0b\xf0\x58\x0a\x3a\x3b\xdd\xcc\x69\xbd\xc0\x5f\xdc\xe7\x82\x3d\x56\x7a\x51\xd1\x8a\x5d\xab\xc9\xe5\x9a\x06\x10\x07\x93\xc7\x26\xed\x27\x39\x35\xc7\x94\x02\xca\xed\x0c\x5e\xf5\x70\xb6\x41\xf8\x7e\x98\x01\x82\x22\x49\x32\xef\x14\xd7\x31\x59\x8a\x8e\x50\xe8\x63\xc6\x83\x81\x6c\x1d\xb0\x7d\xf0\xae\xaa\x97\xca\xf0\x00\x01\xee\x43\xe6\x74\x45\x1d\xe3\x3c\x9a\x8d\x85\xfd\xc6\x66\x72\x4d\x2f\x67\xe8\x89\xbe\x6b\xbb\xa8\x02\xe6\xe7\x78\xcd\xae\xb5\x80\xb4\x4d\x7d\xef\x2e\x7b\xce\xe3\x80\xbc\x70\x40\x2a\x88\xc3\x72\x11\xe7\x56\x2a\x87\x7b\xad\x4b\x0a\x30\x9c\xa4\x80\x73\x92\x59\x5d\x8d\x4c\x74\x3b\xc4\xd3\x2b\xbc\xe6\x5b\x18\x61\xdb\x73\xa8\x2e\x85\xa1\x6e\x14\x9c\x07\x82\x0a\xf1\xb3\x1b\x16\xdd\x58\x8f\x8a\xb8\x21\xb1\x3a\xfb\x60\x3f\x47\x96\x59\x34\xfd\x1a\x60\xc3\xa8\x7f\x35\xb6\x55\xea\x5f\xb2\x8f\x02\xe3\x45\x33\x34\x58\x59\xd8\x15\x8a\xb5\xdf\x3b\x48\x64\xd3\x01\x67\x05\xdd\x64\x23\x7c\xf2\xc7\x79\x59\xba\x96\xc3\xfa\x14\x3a\x98\xbd\x9d\xd7\x6f\x5c\xa4\xe0\x78\x00\xcf\xf7\x58\x3d\xe1\x7a\x7b\x9b\xb9\x7b\x42\xfb\x84\x34\x65\x2b\x1e\x5c\xc3\xad\x3e\xea\x62\xd4\x71\x42\xe3\x66\x0e\xff\x2f\x31\x7b\x51\x4f\x86\x88\xda\x3f\x02\xc7\x5f\xc9\x7c\x55\x3c\xde\x40\x54\xc3\x4a\x2a\x68\xb8\x4c\x66\x65\x9f\xe7\xaf\x1e\x2a\x7a\x0c\x11\xa2\xa3\x4d\x3b\x5e\x71\xca\x25\x54\x06\x5b\xae\xf4\xc5\xf6\x6f\x98\xcb\x7e\x6a\xd2\x9a\xae\x05\x3e\xe7\x9b\x84\x8a\xc2\x88\x16\x00\x4c\x48\x93\xe0\x66\x56\x6d\xbc\xb4\xf7\xd4\xf8\x81\x58\xeb\x16\xdf\x24\xcd\xd0\xaa"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12520 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA9 "\x81\x7a\x30\xe8\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xf0\x82\xda\xdc\x93\x8c\xa8\xd3\xf3\x8d\xf7\xc3\x3b\xd0\x5f\x2f\xdc\x11\x57\x35\xd3\x75\x61\xe0\x3a\x2a\xef\xf0\x9b\x92\xcc\xc1\x9d\x60\x11\x11\xd3\x31\xde\x09\x74\xc8\x2d\xe3\x2c\x0a\x2c\x50\x08\xd8\x1a\x07\x4d\xef\x27\xf3\x93\x86\x33\x3c\x14\xe4\xd2\x14\xb8\x11\x77\x13\x45\xff\xf4\x8f\x29\x3c\xd5\xa9\x63\xec\xc7\x2d\xe8\xc0\xfa\x13\x36\x9e\xfc\x7d\x5d\x6e\x12\x9e\xe0\xea\x62\x0c\x09\xb4\x57\xcc\xe4\xfc\x17\x6e\x2f\xa2\x1d\x5d\xcb\xf0\xd8\x72\x14\xf4\x00\xf5\xcf\x68\x4b\xfa\xad\xd9\xb5\xb6\xb5\xea\x0e\x5e\xb2\xaf\x0e\x46\x76\xf9\x92\x2e\x3a\x9c\xad\x7e\x79\xe3\x4f\xd3\x18\x20\x00\xd4\xa6\xe5\x1c\x95\x14\x4d\x66\x44\xe6\x69\x88\xcf\xf1\x2c\xe8\x1c\xef\xa8\xb0\xe5\xe5\x13\x12\x87\x34\x52\xa7\x77\x8e\x86\x04\x2a\x49\xc7\x72\x62\x85\xa8\x71\xb9\xc8\x1a\xf1\x5c\xb9\x6f\x57\x8f\x03\xb9\x32\xe4\xfc\x7f\x68\xcb\xfb\x2d\x9f\x7d\xdf\x13\xb7\x00\xa9\x86\xa5\x00\x8f\x3d\xf2\xff\x59\x34\x93\x7c\x01\x11\x44\xc9\xe8\x24\xdf\x14\x76\xc3\x91\x0f\x93\x1b\xda\xdd\xbd\x02\x89\xfd\x68\x0b\x8c\x5a\x57\x40\x9b\xad\x6a\x05\x47\x6e\x2a\x0e\x22\x63\xfa\x29\x3c\xfd\x8f\x08\xe1\x62\x12\x7b\x22\xb5\x8f\xb8\xdf\x67\x35\x25\x22\xb9\xeb\x4e\x30\xba\xd9\x90\x4d\x4b\x6b\xbf\x6e\x01\x32\x17\x33\xd9\xa5\x80\xda\x1f\xb7\x9c\x29\x76\x8e\xe0\x7d\xd4\xfd\x50\x7d\xa7\xc7\x46\xea\x44\x3a\x7e\xf7\x40\x03\x65\xa6\x8f\x24\x17\x5d\xa8\xcf\x32\x38\xa2\xdd\x4d\xcb\x22\xd0\xf5\x46\xf4\xca\xd6\x27\x1e\x5f\x88\x9d\xba\x44\x35\x94\x33\xf8\x41\xd9\xbc\xd4\x35\xc3\xd7\xae\x9c\xc0\x0f\xae\x40\x01\x37\x34\x51\x4a\x51\x0d\xc7\x62\x65\x2c\x08\xc6\x68\xb2\x06\xc8\x82\xd7\x16\xf5\x5d\xa0\xf8\x1c\xba\x7e\x7f\x39\x70\x4a\x8a\xda\xc1\x6e\xda\xb5\x87\x55\x0a\x1b\x89\x77\x9f\x81\xb9\x10\x60\x41\xd1\xa7\x63\x85\x31\x02\xa3\x74\xc4\xa5\xda\x00\x9b\x94\xc0\xce\x62\xa1\x50\x40\x33\x43\xbe\x06\x2e\x61\xa6\x8b\x33\x51\x11\x23\x0e\x06\xe2\x61\xac\xd2\x10\xb2\xe2\x7e\xad\x07\x2c\x59\x75\x72\xb0\xdb\x19\x80\x10\x90\xdd\x4b\xa7\xa7\x5d\x38\x55\x5d\x89\x63\x56\x28\xf4\x12\xa8\x13\xdc\x81\xc3\x88\xaf\x9d\x64\xc0\xb0\xde\x62\x07\x17\xb3\xb7\x68\x24\xb0\x77\x7c\x9b\x8e\xd3\x2b\x6b\x3f\xe6\x21\x37\x3b\xf9\x50\x95\x23\x54\xc8\x7c\x0f\x7a\x34\xfb\xa3\x1c\x89\xdb\xf4\xbd\x43\x55\x9a\x6a\x6c\x96\x41\xfe\x02\xa6\x0b\x70\xf3\x94\x6f\x0c\x08\xef\x56\xef\x78\xa6\xf0\xcf\xbd\x74\xeb\x9e\x55\x06\x1e\x03\xa1\x7f\x1d\xc7\x49\x9c\xd8\x50\x61\xf5\xec\x62\xe8\xf3\x5b\x0e\xc3\x04\xbd\xb0\x09\xb9\x60\xd6\x86\xdf\x71\x2d\xcc\x98\xe1\x38\x93\x53\xe3\xee\x69\xd7\xb2\x74\x07\xc4\x5f\x56\xc8\xc0\xf5\x18\x66\xca\x21\x62\x79\x41\x17\x8e\x8a\x30\x6e\xae\x37\x92\xef\x31\x30\x72\x02\xfe\x93\x99\x44\xe6\x1d\x20\xfb\xd1\x5d\xa1\xa2\x8b\x9e\x4b\x93\x7d\xd0\x03\x0a\x85\xfe\xc1\xb5\xc3\x48\x62\x71\x07\xb4\x64\xd0\x63\x14\x36\x3a\xdb\xdc\xb3\xa7\xe7\x49\xb0\xc3\x89\x97\xce\x64\xca\x6d\x7b\x65\xc1\x31\x44\xc5\xb1\xe7\x34\x66\x4f\xc5\x7a\xb6\x54\xd6\x7e\xc4\xea\x1d\x22\xee\xc4\x89\xe2\xdf\xcc\x45\xab\x49\x4d\xc6\x59\x8e\xe8\x39\x50\x73\x4d\x43\x9e\xe9\x0a\x98\x49\x20\xd9\xe5\xcf\xaa\xb1\xef\x38\xc6\x1f\xc7\x6c\x9f\x49\x10\x9a\xc4\x51\xfa\x9c\x53\x7b\x28\x0b\x45\x59\xb3\x6e\x19\xda\x78\x47\x74\xe9\x05\x24\xc1\xed\x39\xd5\x01\x92\x80\xd1\xcd\x54\x2e\x10\x21\xaa\x3b\xd2\x63\x10\x44\x9f\x1f\x37\x53\xbb\xdc\xcc\xc2\x01\x5a\x01\x32\x6e\x9b\xbf\x76\x1d\xbe\x90\x0f\x79\x47\xd2\x5c\xe3\xea\xcf\x9d\x5f\x29\x02\xd1\xb1\x3f\xfb\xf1\x04\xa8\xe9\xf0\xa2\xc7\x0f\xc3\xd2\x8c\xb9\x92\xcc\x19\x08\xe9\x60\x09\x64\x1d\x50\x22\x35\x50\x71\xcf\xbe\x2d\x10\x37\x6f\x82\x6c\x77\xb7\xc9\x2b\x79\x5b\xae\xc6\xfa\xa8\x7d\x1e\x85\x17\x2a\xef\x3a\x4c\xee\xfc\x42\xbc\x86\xa4\xaf\xd1\x0b\xd1\xa9\x77\x1d\x22\xfa\xdb\xcc\x6c\xc2\x08\xbf\x58\xd7\x5c\xdf\x9d\x5d\x71\x64\xed\x77\xc1\x53\xa4\xfa\xde\x4e\x4d\x4c\xc5\xfb\xda\x0d\x38\xaa\x08\x5e\x12\x01\x0e\x6f\x64\xcd\x91\x3c\x7a\x7d\xb5\x39\x04\x3b\x28\xcf\xc9\x24\x34\xe6\x98\xd0\x79\xa8\x75\xea\x8a\x74\x78\xaa\x9b\x8f\x98\xca\x47\x51\x34\x6a\x69\x52\x7d\x85\xfd\x34\xab\x3e\x62\x04\xb5\xc0\xee\x2c\x3f\x34\x64\xdf\xa9\xcf\x34\x11\xd0\xa8\x1b\xbb\x2c\x3d\x6f\xab\xec\xff\xea\xde\xc6\x8b\xcb\x20\x96\x2e\x32\xa3\x66\x21\x05\xa1\xbd\xcf\x5c\x1c\x75\xc3\xf5\x27\x8d\xd8\xf5\x11\x7e\x93\x0b\x8f\x59\x89\x11\xc7\x34\x0e\x30\x51\x64\x79\xdf\x45\x8c\x93\x12\x26\xeb\xef\x7d\x49\xfa\x16\xac\x0a\x28\xf3\x93\xb3\xcd\x73\x46\x58\x39\x92\xbe\xb6\x4f\x9d\x7d\x36\x77\xdf\x46"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12521 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA10 "\x81\x7a\x30\xe9\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x89\x07\x25\x32\x32\xa6\x17\xb3\x75\x66\x65\x64\xb8\x3c\x3b\x6b\x78\x54\xfd\xa5\xa2\x12\x8c\x09\x20\x3b\xf4\x77\x1c\x28\x6d\x21\x14\xc9\x80\xdb\xd2\xb3\xb4\x32\xad\x49\x18\xcb\x3d\x35\xc1\x6a\x8a\xfc\x78\x3f\x44\x80\xcb\x64\x09\x43\xea\x3f\xf8\x39\x1f\x0d\xa8\x1e\xfb\xc5\x50\x56\xa1\x8f\xb5\x3c\x0b\xce\x97\xd7\xa7\xd5\x70\xdc\x16\x5f\x97\xf3\x5a\x98\x16\x6c\xa7\x1f\xf1\x86\x65\x79\x10\xc5\x93\x62\x53\x50\x31\x5a\x41\x4f\x69\x09\x82\xc9\xd7\xdc\xf0\x5c\xf0\xb8\x25\x61\xad\x65\x7b\x52\xee\x0a\xe7\x31\x38\x35\x76\x4b\x8b\xf7\x66\x1d\xc0\x4a\x0b\xf3\x8b\x3b\xe1\x13\x31\xc2\xcc\x22\xde\x3a\x06\x00\xd3\x2b\x79\x63\xbb\x13\xca\xe2\x8a\x8e\x01\xdd\xb1\x80\x73\x92\x7a\xc2\xe2\x4f\xed\x8d\x3c\xd0\xf2\xba\xb1\x18\x89\xe1\xaa\x8a\x9a\x06\x34\xf5\x7a\x94\x37\x63\x3e\xf7\x35\xac\x98\x16\x91\x23\x85\x40\x0a\x94\xdb\xae\xd4\x57\x56\xef\x2a\xb8\x9d\xac\x81\x21\x43\x5b\xb4\xe6\xd2\xbf\x52\x71\xf4\x81\x19\x30\x1f\x7a\x32\x33\x79\xa6\xb7\xba\xaf\xcf\xc9\xbf\x72\xb6\xd3\x7b\x42\x14\x7f\x6b\x91\x2a\xfc\xd5\x05\xb1\x6f\x24\xaf\x12\xf5\x23\x8d\x2a\x92\x21\x17\x1c\x75\x6a\xbd\x33\xbc\xbd\x23\xc3\xb5\xbe\x26\xce\x06\xd6\x17\xaa\xf0\x40\xb1\xe8\x63\x04\xec\x34\xe8\x89\x23\xf7\x7d\x66\xf3\x1d\x93\x0c\x3b\xb6\x84\xdc\xbf\xb0\x97\x30\x1f\x52\x7e\x71\x4a\x28\x1d\x35\x9c\x12\x61\x0a\x0a\x7d\xee\x87\x18\x1a\xad\x7c\xcf\x0b\x5c\xcc\x71\xae\x10\x4d\xcc\x79\x00\x51\x7b\xd7\x2c\x70\xb6\x8d\x7c\x92\x28\x74\x5e\x64\x59\xf3\x07\x37\x9c\x1c\x90\x4a\xfe\x0a\xe9\x1d\x0a\x97\x0b\xf4\x35\x69\xde\x9d\x20\xed\xeb\xee\x53\x8b\x12\xf6\xca\x40\x94\x30\x89\x0d\x33\x3c\x26\x15\x55\x68\x0c\xbd\xe4\x97\x1d\x44\xd1\x9a\x70\x83\x39\xd4\x89\x79\xd0\x14\x12\xab\xae\xe6\xac\xa2\xdb\xef\x57\x70\x1f\xfc\x58\x1b\x65\x7d\xc1\x6c\x07\x13\xe5\x1c\xc3\xdd\xa9\xca\x24\x48\xe1\x30\xb1\xe7\x42\xf6\x5a\xda\xc3\x10\xc0\xe2\x5c\x57\x30\x32\xc4\x22\x33\x7d\x5b\x51\x7f\x9c\x49\xcd\x1c\xc2\x63\xef\xac\xf1\x4a\x65\xb0\xce\x99\x2f\xf3\x46\xe2\x3e\xea\x1d\xf1\xc7\xd9\xc6\x6a\x5c\xf0\x8b\xae\x91\x98\x7f\x94\x17\xe9\x0e\x19\x18\xea\x81\xc1\x53\x40\x95\xad\x53\xc6\xc5\x29\x68\x15\xce\x17\xd0\xf2\x3a\x17\xb0\xcc\x58\xf5\x98\x47\xdc\x3f\x96\xfe\x55\xf8\x59\x4f\x8c\x8e\x16\x15\xa5\xd2\x83\xfa\xcb\xf0\x79\x42\x5a\x7b\xf5\xe1\x31\x22\xb9\x97\xca\xd3\xc2\x51\xeb\x56\x44\x8f\xed\x7e\x26\x60\x4a\x0c\xeb\x1a\xfd\x43\xc6\x23\x38\x27\x97\x62\x02\xdf\x03\x3c\xf0\x2f\x18\x89\x7c\x00\xc0\x81\x5c\x03\xf3\x8f\xcd\xe5\x84\x75\xbe\x40\x46\x3f\xf1\x4a\xdb\x4f\xc2\x70\xef\x29\x35\x44\x97\x63\x2d\x65\x01\xcf\xb8\x0c\x53\x6d\xf6\xc6\x75\x12\xe7\x84\x41\xf9\x1d\xf4\xa6\x65\x26\x81\xd4\xa8\x63\xa3\x23\xe5\x8e\x2e\x5d\x6b\xf0\xbd\x79\x51\x44\x7d\x07\xce\x9e\xfc\xe2\xde\x3f\x3d\x27\x99\x7a\x6b\xe7\x7c\x10\xa2\x75\xf3\x43\x9f\xbd\x1a\x1f\x01\x7e\x86\x54\x5a\xd5\xb1\x70\xde\x50\x37\xdc\x49\xa5\x16\x68\xb9\xea\x56\x3a\xb5\x66\x47\x75\x6d\x8b\x45\x99\x9f\x75\x6e\x9a\x2d\xc1\x1f\xe0\x38\xae\xfb\x89\xb9\xbc\x43\x55\x9b\x3a\x40\x45\xb6\x54\xf8\xe6\xcb\x11\x00\x91\xc0\x09\xdf\x93\xd0\xe3\x8a\xb7\xdd\xab\x3f\x35\x35\x73\x29\x03\x87\xe3\x99\x71\xb2\x84\x3a\x17\x68\x9d\x07\xf8\x93\x45\x1d\x57\x05\x04\x9d\x08\x54\x52\x76\x48\xd4\xe2\x6f\x85\x57\xc6\xeb\xbe\x85\xd9\x28\xee\xb1\x00\x5a\x14\x13\x88\xed\x6c\xc1\x64\x6b\xdb\x82\x16\x41\xed\x47\x1c\xea\x90\xb5\x98\xb4\x03\x28\xab\xa9\xcc\xf3\xea\xd3\x8a\x35\x51\x81\x72\xb2\xe2\xf4\xcb\x75\xdc\xbb\xbe\x5d\x72\x00\x72\x64\x59\xf5\xf0\x3d\x94\x69\x24\x1c\x4b\x2e\x66\xf2\x0e\x81\xca\x53\xd5\x89\xc8\x2b\x92\xde\x80\xbf\xe7\xb2\xf4\x4c\x8a\xc5\x8f\x11\xf0\x6a\xdb\xd4\x9f\x6e\xe7\x19\xe2\xdb\x34\xcb\x1d\x1e\x37\x80\x45\xb9\xaa\x42\xdc\x91\x0c\x8e\x2d\x83\x55\x3c\xf7\x8b\x90\xca\xc3\xc3\x22\x14\xcc\x84\xef\x33\x99\xba\x4a\xe2\x93\xd2\x27\x9e\xf0\x91\x09\x0d\x36\x99\x38\xf7\x51\x0d\x58\xdd\x34\x88\xa3\x5e\x78\x47\xaa\x2b\xdd\x92\xab\x97\xa4\x6f\xd0\x71\xb3\xed\x63\xc9\xaa\x87\x36\x71\x39\x03\x31\x81\x9e\x62\x58\xbd\x22\x3d\x39\x19\xb6\x8e\xf0\x19\x47\x7d\xe0\xf8\xc9\x59\x2f\x7b\x75\x32\x16\xcb\xac\x85\x0f\x3b\x24\xc8\x1a\x91\x8d\xa4\x71\x74\x4b\x5e\x44\x81\x8d\x1e\xc1\x03\xc2\x6d\x73\xd9\x95\xb1\x83\xa6\x11\x6d\xcb\x3b\x7d\x9e\x60\x0c\xf4\x15\x81\xe1\x0e\xe5\x9f\x3d\x81\x3e\x4a\x5d\x70\x70\x95\x4d\x5e\xe3\x4c\x34\x7b\xbf\x5e\xbe\xc1\xc2\x7d\xb4\xa2\x5a\x9f\xc4\xe4\x0c\x09\x03\xe3\x87\xbe\xb4\x04\xa7\xee\x80\xbb\x8c\x60\x87\x93\x17\x10"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12522 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA11 "\x81\x7a\x30\xea\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xae\x12\xf7\xa0\xfd\x2a\x68\xb8\x08\xbe\xb2\x43\x9e\x17\x79\x5a\xb5\x47\x78\x39\xcb\x5c\x6b\x54\x86\x00\x40\xe4\x1f\xac\x66\x64\xc3\x34\x5f\x30\xea\x7a\xcb\xdf\x45\xf4\x5c\xe4\xe2\x87\x09\xab\xbe\xc8\xfb\x9e\x79\x41\x8b\x28\xb1\xbd\x20\x8b\x8f\x1b\x3d\xe2\x12\x0d\x5c\x7d\x60\xad\x69\x32\xfb\x63\x1a\x35\x45\xc2\xbf\xf2\xe3\x53\x14\x87\x23\xab\xe9\xd7\x1b\x6e\x34\x7e\x1d\xe5\x6e\x4d\x63\x50\x01\x1f\xfc\xb7\x4f\x44\xd9\x56\xdb\x40\xef\xda\x0e\xd5\xf2\xeb\x6d\xac\xee\xe2\x5e\x5c\xf7\xba\x18\x40\x89\x80\xcc\xb5\xb6\xeb\xca\x13\x7a\x15\x3c\xf3\x0b\x8c\x1b\x6d\x2b\xff\xc5\xab\x18\x46\x37\x19\x62\xdf\xc0\xb4\xcb\x67\x94\x40\x74\x9f\xcf\x0b\x6a\xb5\xd4\x5f\xe4\x61\xe0\x17\xac\x73\x74\x7d\x86\xcf\xfa\x22\x75\x30\xe0\x01\xf5\xc4\x51\x6e\x07\xb2\xd0\x29\x91\x38\x91\x5a\x20\x59\x18\x6b\xcc\xca\x22\x35\x34\x56\x18\xee\x1e\xea\x5f\x17\x4a\xe3\x32\x79\x80\x0d\x9e\x75\x66\xa1\x5a\xad\x57\x91\xc3\x72\xb3\x02\x98\xa3\xe7\xa5\x99\xc9\x76\x7b\xec\x48\x3b\xdf\x09\x66\x86\x92\xbf\x5c\x06\x51\x32\xe1\x38\xd8\x93\x45\xe2\xf3\x50\x01\xc0\x48\xe7\x08\xb4\xcf\x38\x75\x80\x35\x0a\x25\xba\x9e\xb2\x6c\x63\x9f\x74\xf7\x8c\xb2\x6e\x72\xac\xf8\x07\xd8\x2e\xc3\xd5\x42\xf3\x28\x66\x33\xe4\x52\xb8\x3b\x7b\x24\x12\xc7\xbf\x20\xd6\x74\xc0\x8c\xce\xf6\xa7\x6d\xe1\xf9\x59\x83\x37\x69\xca\x29\x02\x1c\x53\x9d\x1b\xe5\x93\xc4\xb9\xcd\x84\x32\x0d\x36\xb0\x3b\x70\xeb\x44\x65\x46\x6d\xd6\xb3\xb7\xda\xf5\x6d\x56\x9b\xb2\xf3\x3d\x6d\xed\x87\xb6\xd5\x17\x12\x49\x6c\xd9\xbc\xee\x0a\xc7\xc2\xfb\xf5\x53\x0d\x7d\xa8\x9f\x24\xdf\xde\x81\x44\x1c\x0f\xe1\xc4\xdd\xe1\x6e\x21\x8e\x0d\x58\x4c\x21\x06\x23\x21\xfc\xff\x6e\xda\xf0\xc9\xc3\x7d\x58\x9f\xdf\x96\xed\xb4\xe7\x45\x9d\x80\xe1\xd3\x7d\x88\xf0\xcc\x29\x8b\xfd\x06\x74\x45\x87\x9b\xc1\xc6\xf2\xd2\x1b\xee\x19\x26\xa2\xa7\xa5\x67\x0c\x6b\x91\x3d\x0f\x9e\xf6\x2c\x10\x10\x51\x14\x70\x15\x6a\x19\x93\x40\x96\x71\x9c\x89\x2c\xb2\xf5\x86\x7b\xbe\x85\xe9\xcd\x63\x5f\xa1\x56\xc2\x0d\xd7\x7f\xa6\x64\x09\x9b\x59\x47\xeb\xaf\x74\x1a\xb5\xc9\x7b\x6d\x4d\xc6\xcc\x35\x76\x7a\xf2\x04\x47\x91\x1e\x61\xcf\x13\xe8\x09\x6c\xd4\xe0\x0c\x8b\xdd\xa1\x31\x30\x87\x1f\x6c\x4b\xde\xf6\x43\xa9\x29\x90\x3b\xaf\x92\x86\x88\x35\xb1\x82\xaf\x64\xf4\xa8\x41\x13\xf9\x25\xed\x9c\x45\xb6\xf9\x1e\x74\x09\x24\x4d\xa7\xc9\x9e\x55\x43\x09\x2b\xca\x20\x2f\x4c\xe4\x42\xa2\x00\xf1\xdb\xf8\x01\x22\x59\x67\x80\xbf\x4d\xa5\x94\xf9\x64\x27\xa3\x3e\xb9\x92\xe5\x76\x75\x90\x13\x58\xca\xfc\x99\x41\xa9\x39\xdb\x26\xcb\xcb\x7c\xd5\xe3\x2c\x64\x17\x8c\x43\x6d\x8d\x6e\x91\xa5\x34\xe1\x5d\x75\x81\x7b\xfb\x48\xce\x45\x2d\x02\x12\x0b\x50\x37\x88\x91\xae\x59\x88\x47\x50\x6e\x28\x5e\x5e\xb8\x7d\x02\x05\xf3\x9e\xc4\x08\x42\x8e\x42\xd4\x81\xe8\xde\x35\xb6\xa5\x8f\x4e\x7e\x02\x0d\x8c\xad\x69\xda\xc1\x0b\x82\xae\xa7\x19\x20\x58\x9c\x74\x67\xcd\xe6\xed\x84\x5c\x37\x5b\x56\x6d\x5e\x53\x03\xdb\x87\x79\x43\x95\x16\x56\xda\x21\xc3\x5e\xc9\xa2\xb7\x54\x8f\xf2\xdb\x06\x1a\x1f\x46\xcb\xe3\x67\xca\x30\x9f\x13\xd3\x07\xa5\x58\xb3\x93\x8e\x14\x2f\x1f\x30\x9a\x3b\xc7\x8f\x86\x79\x28\xb9\xcb\x7e\x8a\xe1\xfa\x4c\x99\xcb\x09\xe8\x31\x56\x62\xdb\xb0\xe7\x75\xf3\xf8\xee\x0b\xae\xea\x19\xce\xea\x72\x19\x8d\x90\x78\x4d\x84\x89\x3c\xfb\x19\x63\x2f\xa7\xc7\xaf\x85\xe0\xc0\x67\x2d\x65\xe2\xb1\x4f\xb0\x3c\x92\x72\xa6\xcf\xd2\xa0\x0b\x5b\x3e\xfc\xa6\x44\xf8\x7e\xbc\xd5\x26\xc5\xcd\x12\xf4\x26\xf5\xf4\xa4\xd0\xd5\xc4\x5c\x2b\x18\x26\x79\xb0\x1b\x76\xae\x40\x3b\x31\x4d\xa1\xbc\xc1\x3c\xfa\x60\x44\x2a\xa8\xa1\x8a\xc5\xf5\xc2\xd7\x3d\xc1\x06\xef\xd6\x16\x1f\xad\xc1\x68\xd6\x62\x7b\xf9\xff\xb9\xcc\x31\x07\x94\x24\x03\x6f\xd0\x25\xdd\xfc\x71\xc2\x24\xbf\x1f\xf2\xd1\xe8\xaa\x38\x50\x55\xf6\xa2\xe4\x02\xaa\x3e\xb0\x0f\x3d\x44\x0c\x38\x96\x35\x8b\x91\x93\x63\xd5\x67\xe6\xa9\xd9\x0f\xa9\xff\xf2\x43\x7f\xfe\x83\xd3\x53\x6e\x23\x28\xd9\x49\xf2\x63\x23\x1d\x8d\xe4\xd3\x07\x98\x9b\x32\x28\xe9\x67\x0d\xa4\x1a\x95\xcd\x65\x14\x11\x68\xe2\x1c\x0b\xfb\x66\x51\xd9\xbf\xa4\x43\x3e\x60\x91\xdf\xe5\x78\xff\xf2\x8c\x0d\x93\x82\xeb\x85\x77\x89\x03\x1f\xfd\x9c\xdb\xe3\xb3\x32\xa4\x0c\x05\xdf\xc1\x07\x22\xd9\x7c\x2b\x87\x6c\x5e\x60\xa5\x78\xdb\x0f\x80\xfd\x85\x08\x79\xe6\x2e\x06\xa5\x9a\x85\x69\x0c\x76\x62\x91\x3f\xf6\x22\x94\x22\xa3\xa7\x75\xdb\xee\xf2\xee\x16\xd6\x14\xce\x4b\xaf\xb0\x43\x7a\x66\x8e\x68\x83\xf6\x3b\xe4\x76\x3d\x0b\x22\xb1\x35\x27\xc5\x50\x11\xdf\xf2\x7f"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12523 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA12 "\x81\x7a\x30\xeb\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x98\x49\x87\xa3\xf7\x26\xc1\xe3\x0f\xef\x9d\xd7\x33\x92\x95\xe0\x95\x10\x7d\x72\xfd\x58\x0b\x4b\x52\xf8\x94\x3f\x6e\x16\x20\x9f\x97\x82\x4e\x32\xd0\x87\x6e\xe7\xaf\x17\xdb\x4a\x76\x46\x44\x4a\xce\xcc\x68\x76\x39\x26\x93\x4a\xb2\xf0\x33\xa2\x81\xef\xe1\x6f\xb2\xdb\xec\xed\x95\xc0\x2f\x93\xeb\xe4\x14\x50\x46\x2b\x82\x45\xce\x63\x13\x3d\x6e\xa2\x68\x3f\x9b\x64\x3a\xf5\x91\xd1\xf5\xcc\x0e\xbf\x67\x0f\x5b\xb1\xe9\xb3\x83\x61\xc0\x73\xe2\xae\xe0\x0d\xa7\xa7\x33\x36\x42\x07\x56\xba\xcc\xb9\xce\xc0\x63\x9e\x15\x47\x47\x55\xf6\x01\xe7\x76\x33\xf2\xdd\x26\xbe\xbd\xda\xc5\xea\xcd\xe5\xed\x20\x34\x6f\xeb\xd7\x62\x95\xa9\xd7\x79\xe2\xb9\xa8\xb9\x93\xd6\x91\x46\x97\x7d\x30\xef\xa8\xc1\xd8\xeb\x17\x18\x07\x7a\xa2\xce\xbc\x87\xd1\x0b\xa6\xf7\xe7\xf6\xb9\x92\x35\x43\x07\x11\xca\x66\x1a\x37\xc0\xbb\xb5\xcf\x0b\x79\x1f\x35\xe3\xd3\x54\x93\xb5\x4c\xd9\xa9\x53\xa2\x56\xbc\x97\x7c\xf3\x77\x75\xee\x63\x5f\x5d\xee\x93\x94\x3b\xba\x87\x48\x6f\x92\x9e\x5f\x12\x4b\xa7\xf0\xea\x33\xdb\x2d\x3d\x95\xe0\xcb\x99\xda\xf8\x50\x21\xca\xcc\x1e\x59\x5a\xd5\xe5\x65\x4e\xbe\xfa\xb9\x8a\xa1\xf5\x24\xd9\x4f\x63\x45\x0f\x7b\x81\xd1\xa8\x7c\x9e\x01\x4a\xeb\x62\x74\x39\x2a\xfc\x24\x5a\xe8\x1c\xc5\xed\x33\x75\x2f\x39\x8f\x2e\x6e\xdc\xfc\x6c\x8e\x67\x65\x58\x1c\x46\xd8\x54\x97\x4e\xa6\xa0\x01\x63\xe3\x07\x72\xbf\x41\x56\x75\x0d\x34\x7e\x08\x06\xad\x23\x3b\x1e\x96\x66\xfc\xb9\xef\x39\x6f\xa8\x85\x9c\x30\xb5\x25\xfa\x53\xc4\xbd\x7b\x23\x00\x13\xfb\x8f\xd4\x70\xaf\x70\x24\x61\x2e\x41\xe1\x00\x96\xbb\x6b\xdb\x96\xeb\x5f\x8b\x37\xd6\x75\x8f\x16\xe8\xac\x1c\xd4\xa4\xce\x08\xca\x74\x19\xfa\x93\x82\x15\x5c\x65\x98\xd4\x5e\xe6\x12\x88\x2d\x7a\x1f\x1c\x41\xac\xc0\x67\xc8\x81\x3f\x7e\x9a\xee\x37\x04\xf2\x47\x17\x62\x81\x4c\xff\x9b\xa9\x24\xfa\x5f\x3b\x7c\xbc\x96\x4c\x38\xc3\x85\xdb\x61\x4b\x03\x53\xb0\x7f\xf0\x6a\x5a\xf1\x71\x81\x7b\xa0\x33\xdd\x79\x47\xba\x87\x7d\x12\xaf\xe6\x54\x0f\x05\xc9\x23\x16\x38\xc8\xf7\x48\xac\xef\xcf\xa4\xf7\x4d\x27\xe3\xe5\x6f\x70\xdd\xa6\x70\x42\xad\xd2\xbe\x60\x91\x43\xc8\x31\xc2\xfe\x4f\x38\x90\x31\x0d\xe8\xf1\xcc\x62\x50\x2a\x3b\x3b\x76\x83\xea\x0a\xca\x60\x17\x86\x67\x18\x45\x39\xd1\xe8\x90\xa4\x9f\xb7\xa0\x98\x00\x70\xc6\x92\x26\x72\x9d\xcd\x06\xad\x38\xf5\xe6\xe9\x20\x14\x63\x7f\xcb\xe8\xe3\x64\x50\x59\x1c\x74\xa9\x6f\x13\x95\x5d\x69\x23\x75\xc8\x81\xda\x42\x51\x61\x6a\xda\xcd\x5a\x54\x98\xe3\x55\xb5\x5d\x50\x76\x8f\xa1\x7c\xc8\x7e\x70\xbf\xd7\x74\x73\x8c\xef\x1b\x1c\xd8\xc2\xad\x58\x13\x58\x4f\x0f\xda\xc7\x60\x26\xad\x0d\xf5\x9c\x8f\x56\x82\xd2\x71\x0c\x6b\xcd\x19\xc6\x57\xff\x79\x66\x71\x83\xc9\xd9\x1b\xf7\x20\x2d\x92\xc4\x49\x72\x6c\x98\x9a\xae\x11\x5b\x84\x3e\x2e\xa3\xce\x18\x04\x9f\x07\x95\xd8\x2f\xf0\xe5\x53\x2a\xce\xd1\x71\xa9\x16\xbb\xf2\xa1\x99\x15\xf0\xb3\x60\x71\xdf\x10\x43\x72\x7a\xb9\xef\x5a\x43\xa8\xd1\x2a\xf9\x2f\x96\x9f\x45\x78\x0c\x9c\xac\x7a\x7a\x5a\xbf\x75\x8b\xc3\xa4\x29\x92\xbd\x66\xeb\xab\xb1\xef\x1d\x19\xe3\x6d\xdf\x74\xd7\x9c\x74\x8f\x50\x73\x4a\x9b\x49\x4c\xb5\x47\xe8\x0e\xad\x39\x35\xab\x43\xfd\xec\x1d\x71\x8b\x2a\xad\xd7\x7b\x4d\x29\x2a\xa3\xfd\x9f\x95\xf2\x96\x42\x04\x9d\xb5\x00\xf8\x58\x1d\x07\x44\xb4\x99\x87\x55\xfc\xf8\x33\x40\x54\x0e\xf4\x4b\xfe\xa0\x80\xea\x75\xbb\x85\xce\xee\x37\x95\xfa\x48\xa7\x44\x8a\x14\x2b\xb4\x79\x03\xe7\xe2\xd8\x84\x69\xb2\xe6\x85\x46\xf2\x41\xc6\xd7\x1b\xce\x74\xde\xa6\xa9\xeb\x38\xf7\xa6\x57\xf8\x0a\xfb\x4c\xa4\x6d\x3c\x38\x46\xdc\x3c\xbf\x1d\x38\x1b\x86\xd7\x85\xb3\xcd\x71\x21\xae\x72\x29\xde\x58\x05\xf1\x7e\xce\xb5\xc5\x5d\xa0\x9f\xc5\xba\x06\xb8\xa9\xb8\xbf\xe5\x19\xea\x5b\x1d\xee\x94\x7e\x44\x12\x7b\x34\x10\xa8\x89\x99\xb0\x09\x73\x2e\x16\xae\xa1\x25\x71\x95\x39\xed\x60\x7a\xfa\xcf\x4b\xee\x60\xe7\x55\x50\xb6\x0d\xc3\x49\xcf\xae\x2a\xbe\x8d\x2b\x21\x6c\x73\x16\x38\x97\x94\x60\x06\xbb\xf3\xb5\xe0\x04\xf9\x17\x7d\xd7\xaa\xaf\x41\x92\x17\xce\xb4\x61\x93\x68\xf9\x98\x63\x0f\x63\x2f\xbf\x24\x30\xd8\xe9\x10\x23\x4c\x98\x4b\x09\xfb\x04\x1f\xd1\x65\xf6\x14\x57\xa8\x68\xfa\xf2\xd4\x01\xa5\xcd\x31\x63\x79\xae\x95\x2c\xfb\x17\x2d\xa6\xe0\xbb\x3e\x62\x2f\x23\xdc\x1b\x9e\x5a\x38\x9a\x21\x7e\xd0\x06\xf1\x66\x50\xfa\xc4\x39\x2c\x5f\x3a\x9f\x2a\x7a\x81\x17\x6d\x47\x98\x93\xca\xd9\xdd\x47\xf1\xe8\x1e\x4d\x75\x37\x6f\xad\x50\xbf\xa2\x9e\xfa\x41\x25\x80\x3d\xba\x86\x60\x6d\xc3\x82\x61\x1b\x72\xaf\xf5\x0c\x1c\x9c\x21\x3e\xe4\xa6\x83"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12524 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA13 "\x81\x7a\x30\xec\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x6f\x2a\x94\xc7\x2c\x60\xed\xa9\x1a\x77\xb0\x7d\x30\x3e\x50\xd8\x3f\xf4\x37\xe1\xfb\xac\x2e\xf2\xde\x53\xa4\x85\x23\x86\x5d\x0c\xa0\x10\xee\x71\xd1\xa4\xe0\xb6\x1c\xd7\x8c\xc6\x4e\x1e\x2c\x62\xfa\xba\xb3\xc3\xf0\x5c\xd3\x72\x3e\x94\xdb\x44\x3b\x00\xb0\x79\x01\xfe\x4d\xe8\x72\x97\x2e\x50\x22\x9e\x90\xa2\xfe\xe8\x8e\x61\x06\x82\x2c\xa7\x06\x0b\x52\xb2\xc4\x54\x59\x7f\x57\x3f\x90\x3e\xfb\x74\x0c\xa9\xa3\xed\xf3\xa5\xb3\x2e\x6f\x9d\xa5\x84\xed\xb5\x4f\x17\xa2\x72\x8e\xb7\xa8\x35\xfd\xc7\x66\xf5\x9b\x01\x63\x2a\x7e\xe5\x68\xa0\x99\xe6\x79\xcf\x3c\x1c\x9e\xa7\x27\x2f\x19\x6c\xdd\xfc\x8c\xa4\xe9\xc9\x33\xea\xbe\x79\x16\x89\x70\x12\xa5\xe6\x27\x1a\x9d\x3c\x0e\x74\x82\x52\xa2\x8c\x8f\xf8\x11\x2a\x9b\x16\xbd\x1e\xdc\xb9\x4f\xe6\x76\x00\xc2\xd1\xa9\xfe\xb4\x07\x0d\x8b\x92\x1c\xd2\xa5\x01\x17\xb3\x63\xbb\x37\x80\x01\x51\xe5\x5c\xfa\x44\xc0\x27\xa8\x12\xa4\xf2\xef\xea\x4c\x92\xee\xd2\x76\xbd\x2b\x21\xe5\x2d\x18\x34\x18\x9c\xfd\x2d\x9a\xa6\x24\x71\x2d\x97\x37\x55\x14\x45\x16\x33\x85\x4f\x37\x08\x9c\xae\x4d\x37\xeb\x46\xb5\xf0\x0d\x2c\x96\x69\x05\x61\x54\x1b\x68\xed\x7f\xb5\xef\xff\x14\x99\xc3\x47\x07\x5c\xf7\x7c\xff\x59\x40\x75\x6d\x09\xb2\x3a\xe7\x74\x93\x0d\x7c\x45\x5b\x70\x40\xa8\x2b\x92\x6f\xcc\xe0\xfc\xea\xa7\x18\x08\xe5\xa4\x03\xeb\x97\x6b\xaa\x6e\xa8\xc1\x19\x89\x56\x4d\x04\xf5\x53\x04\x5e\xbf\x3d\x0e\x1a\xba\xe8\x43\xe4\x33\xd3\x88\x9e\xd6\x43\xb2\x14\x44\x25\x53\x33\x2d\x9b\xe7\xee\x68\x49\xdc\xd9\x28\xa7\xe7\xed\xe4\x42\x97\xd4\xf4\xbb\x45\xfe\x05\xcc\x8c\xb0\x0c\xef\x4a\x13\x79\x90\xf4\x7c\x4f\xe5\x2d\x85\x6e\xfe\x51\x7f\xf4\x9c\x85\x7e\x03\x54\x0a\xc8\x09\x67\xb0\xd8\xb2\x49\x58\x3b\x58\x13\x19\x45\x34\x6b\x34\xb2\xd9\x7e\x86\xb9\x29\x0b\x96\x01\xf3\xac\x9d\x0f\xdf\x73\xec\x26\x20\x29\x63\xc2\x5e\x4d\xbe\x9e\xe5\xec\x69\xad\xc9\xbb\x5e\xae\xa5\x26\xc8\x5f\x3e\xac\xae\x04\x32\xc6\xb9\x76\xf4\x4c\xe3\x3b\x83\x82\xbf\x33\x2e\x4f\xec\xec\x94\x00\x0d\xc5\xb1\x50\xfe\x01\x55\x4e\x14\x57\xa0\x75\xda\xbb\x35\x61\xbe\x5d\x18\x2f\x48\xc5\x2a\x74\x9e\x93\xd5\xcc\x79\x1e\x5e\x7b\x81\x10\x83\x22\x2e\x60\xda\x1c\x50\x97\xba\x2d\x82\x09\x8d\x22\x3b\x03\xb7\x04\x37\xcc\x96\x86\x3b\x40\xdb\x01\x62\x22\x73\xfb\x8e\xf7\x3d\xae\xe8\x1b\xe4\x43\x63\x13\x59\x26\xef\x51\x9a\x32\x74\x12\xc7\x3a\xc3\x25\x92\x15\x95\x9f\xd3\x1d\x17\x07\x56\x33\xf4\xa9\x5c\x81\xe7\x27\x80\x5c\xf0\xa7\x15\x69\x72\xfe\xe4\x4d\x06\x57\xfa\x7f\xb2\x84\x3b\x7a\xee\x64\x14\x81\xe1\x9d\x68\x07\x3b\xff\x1b\x4d\xb9\xaa\xa5\xec\x44\xf6\x99\xe5\xe0\xd9\x5c\xa2\x9e\x73\x2c\x61\x16\x0b\xbb\x6a\x40\x78\xbd\x50\x42\x2b\xcb\x1b\xbb\x60\xab\xca\x6c\x90\xcc\x51\x99\xc6\x54\xbc\x4d\x1c\x7b\xb1\xcb\xcc\xaa\x04\x2c\x89\x50\x9a\xef\x7f\x9b\x26\xa8\xc3\xcd\xe2\x89\x15\xea\x9a\x82\xb8\x9e\x49\xf1\x90\xbf\xad\xf1\xac\x73\xd0\xe0\x47\x87\xb4\x3e\x39\xf6\xbf\x92\x7c\xcf\x35\x9f\xc1\x3d\xf9\x08\x89\x13\xbe\x0d\x96\x2e\x0b\xac\xc6\xfc\x7e\x8c\x8f\x14\x1c\x26\x3d\xe8\x93\xbc\xd1\xf2\x69\x56\xcd\xf3\xee\x40\xfd\xd7\xcd\x44\xd3\x49\x03\x0e\x8b\x87\x93\x4e\x32\xf7\x9c\x34\x5a\x71\x7d\x6f\x16\xcb\xf1\xbc\x1d\x55\xab\x71\xf4\x11\xcb\x74\xa3\x42\x0a\x79\x7f\x67\xbb\x3f\x73\x55\x72\xb9\x32\x53\x9e\x79\x45\xa0\x8a\x3a\xab\xf9\x50\xbd\x5f\x38\xe0\x76\xe6\xce\x0a\x49\x17\x6a\xdd\x96\x4c\xe9\xa8\xee\x10\xd0\xa7\x9a\x7e\x6d\x2f\xbe\x43\x74\x01\x80\x26\x35\x6c\x3d\x28\x22\x35\x5f\x30\xe6\xa4\xcf\x3e\x93\xef\x0d\x09\x93\x3a\x50\x50\xae\x86\x71\xee\x4b\x6c\x4b\x40\x73\x3e\xc8\xec\x08\x3f\xde\x7c\xcb\x89\x93\x91\x54\x86\xc3\xf9\xc0\x8a\x68\x70\xd1\xf2\xdc\x47\xa9\xe4\xb4\xec\x8f\xec\x9d\xe1\x83\xe5\xb2\x60\x18\xda\x5f\xe4\xdf\xad\xd4\xae\x8c\xb6\x3f\xd8\xde\xf1\x9e\x7f\xba\x1e\xb7\x8f\x5d\x09\x0d\x66\x62\xfc\xc6\x14\xeb\x3d\xb4\x96\x1c\x29\x1f\x57\xb3\xe7\xcd\x22\xdb\x42\xb1\x99\xc5\xa6\xa3\x7b\x87\xa1\xf0\xa0\xff\x11\x7a\xd7\xcf\x41\xdb\x8e\xb2\x54\xe8\x11\x3d\xeb\x59\x6b\x79\xf7\xba\x09\xf6\xc0\x50\xea\x3d\x4c\x70\x4d\xa7\x10\xd7\x27\x56\xa3\xda\x06\x88\xec\x89\xe4\x41\x42\x1b\xd4\xa1\x46\xb7\x1b\xea\xa5\x28\x58\xf8\xdb\x2b\x64\x04\x7c\xd1\x5f\x59\x60\x10\xb8\xd9\x61\x03\xe1\xdc\x84\x36\xd3\x7e\xb9\x1c\x53\xe2\x5a\x00\x03\xfa\x09\xa2\xa7\xbf\x01\xaf\x51\x55\xd6\xd0\x8b\x52\x5f\x23\xd1\x9a\x6b\x5b\xe0\xe6\x47\xab\xf0\x19\xe1\xe6\xc2\x1d\xfe\x89\x84\x4b\x49\xec\x2f\xa9\x08\xae\x60\x57\x8c\x09\xd7\xeb\x8b\x54\x66\xbf\xd2\x26\x2c\x5e\xb3\xe1\x34"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12525 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA14 "\x81\x7a\x30\xed\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x49\xd7\xe0\x0b\x44\xa9\x38\xec\x43\x4a\x57\x06\x80\xf8\x92\xa4\x07\xce\x7e\x18\x71\x00\x33\xc8\x9f\x5d\x26\x01\x08\x5c\xa8\xbd\x3a\x17\x2a\x39\xa1\x19\xe8\x35\xea\xc1\xcf\xc3\xf1\xf5\x75\xe4\x02\x67\x43\xd6\x46\x1f\xfd\x3d\x85\x5a\xa9\x25\x4e\xfb\xcd\x7a\x07\x07\xee\x77\x9d\x9b\xad\xb5\x88\x1a\xee\x4a\x8b\x3b\x15\x73\xae\xfd\x41\x76\x37\x75\x95\xe9\x6f\x17\x31\xa4\xb8\xd9\x88\x0b\xa2\x2f\x5a\xc9\xac\x68\x32\x9f\x70\x2a\x71\x86\x75\xd9\x19\x6a\x16\x42\xe1\xe5\xdf\x2e\xbf\x32\xac\xe0\x96\x6f\x10\xff\x78\x71\x53\xb4\xc3\xf6\x4b\x02\xca\xe1\x91\xee\x06\xbe\x7f\xe7\x8b\xd0\xed\x8c\x54\x09\x4a\x38\x8b\x53\xe2\x0b\x5c\x0e\x5f\x35\xef\xcd\xbf\xd0\xd0\x0d\x8d\x89\x84\x0d\xa2\x90\x3b\xdc\xd6\x76\xe7\x95\xc5\xbe\xc0\xc4\x32\xe8\xdd\xc5\x18\x40\xb6\xd4\x0a\x57\xdc\x1c\x0d\x78\x86\x26\x34\x7b\x6e\xcd\x51\x71\xeb\xdb\x1f\xc3\x3c\x56\xb3\x70\x6e\xb2\xfe\xeb\x74\xfa\x8e\x77\xe8\x6e\xea\x4e\xa7\x4a\x29\x7a\xc3\xcc\x12\xba\x25\x29\x75\xb8\x9b\x60\xfe\xd4\x13\x97\x1f\x4a\x80\xc5\xd9\x1c\xbf\x1a\xc1\x03\x3f\xc8\xb8\xa1\xd2\xdd\xa4\x53\x23\xe9\x29\xad\x5e\xa8\x04\x65\x0f\x62\xcb\x68\xd1\x4b\x78\xfe\x94\xc7\x71\x28\xbb\x99\xcd\x45\x4f\x77\xdb\xbe\x33\x31\x15\xed\x28\xcd\x53\xcf\xf6\x4a\x33\x11\xe4\x87\x1b\x87\xa3\x2a\xee\xe2\x88\x5e\xf0\xa9\x25\x7b\x49\xf0\x52\x6f\x05\x1c\x46\x55\x76\xf0\x71\xb8\xad\x59\xe0\x65\x40\x5c\xbb\x5d\x27\x06\x15\x5c\x4c\x65\x72\xb9\x70\x84\x1f\xab\xa1\x38\xde\x93\xc5\xbf\x50\x25\x24\x53\x90\xdc\x4e\x85\x86\x2c\xdf\xdd\x6c\x1f\x0b\x78\x62\xc7\x84\x98\xe9\x37\x22\xe6\x1d\x66\xdc\xca\x57\x41\xbc\xc2\x8e\x90\x17\xd7\x45\x48\xee\x08\x40\x81\xd8\x61\x16\x0b\xcf\x0c\x4d\x2a\x76\x91\x55\xf9\xd9\x16\xf9\x0e\x12\x41\xe8\xb0\xcd\x39\x7a\xf2\x21\x6a\xef\x6d\xcd\x4a\x65\x64\x80\xf5\xe0\xfc\xca\x23\x5f\x1a\x14\x64\x14\x2d\xe6\xb8\x1f\x88\xed\x4b\x92\xfd\xd7\x0d\xe9\xeb\x9e\xb5\xdf\x70\xfb\x6d\x20\xb3\xe3\xf0\x67\xce\x05\x2e\x20\x9b\x01\x6d\x30\x0b\x19\xb0\x29\xb2\xc1\x74\x27\x1d\x4c\x1d\x89\x77\x4c\x9c\x1e\x1d\x29\x26\xd8\x31\x81\x60\x2e\x21\xcd\xdc\x57\x06\x06\x16\xaf\x4f\xf4\x24\xc1\xd1\x96\xef\x32\xfd\xe8\x6a\x7d\xa7\x11\x9c\xde\xd7\xcb\x10\x8d\x5a\xd8\xa0\x60\xaa\x09\x63\x5b\x28\xe9\x1a\x38\x24\x40\x13\x18\x2b\xdb\xd1\x76\x62\xf8\x8d\xeb\x4e\x0f\xaf\x98\x42\x04\x49\x1c\x2d\xff\x1c\xf2\xdf\x40\x5c\x32\xa6\x57\x8e\x7a\x60\x68\x06\x04\xf1\xd6\x2a\xa4\xc7\x57\x57\xc8\xd7\x12\x21\x19\xb5\x4b\xa2\x7a\xd5\x58\x06\x88\x01\xf3\x17\x36\x43\x35\x9d\xe3\x05\x94\xf1\xb9\xf1\xdf\xdb\xa0\x1f\xc7\x83\x31\x6e\x79\xed\x88\x2f\xc3\x30\xae\xb6\xbf\x77\x48\x90\x01\xe4\xda\xe6\x74\x69\x83\x22\xb1\xaa\x4a\xb3\x94\x8c\x4b\xa0\xd2\x91\x57\x6e\xa0\x0c\x57\xf5\x7f\xda\xd2\xa6\x4a\x38\xbe\xd8\xd4\x4f\x3e\x9d\xa7\xa0\xb9\x4d\xc9\xa4\x52\x0f\xf8\xfb\xf5\xa2\xeb\x46\x36\x47\x20\x24\x7b\x1d\x06\x36\x97\x75\x88\x82\xc1\x96\x9a\x59\xbd\xca\xea\x2b\xfd\xf9\xff\xef\xb1\xb4\x2c\x62\x04\x49\x1d\x18\x2c\xb0\x16\x3d\x02\x64\x79\x2f\x7f\x74\x60\xbb\x31\xa6\xa5\x1d\x46\xb3\x4e\x50\x17\x39\x48\x77\x26\xa7\x92\x82\xa1\x67\xe7\x97\x62\x14\x5b\x46\xdc\xb1\x3d\x0a\x35\xdb\x5c\x55\x42\x10\x27\xf3\xe6\x82\x95\xa6\x61\xd4\x6b\xca\x47\x69\x4c\x91\x7c\x93\x38\xa3\xbd\x9a\xb4\x03\x1f\x3d\xe1\xb4\xdb\x52\x05\x95\x80\xe7\x84\x52\x03\x1a\xf4\x7c\x10\x87\x21\xc1\x84\xbc\x20\xb2\x23\x6d\xb0\x4c\x0a\xc4\x19\x93\xd0\x16\x4d\xc0\x02\xab\xb1\x9d\x83\x3e\xa1\xba\x14\xcf\x5e\x5e\xd4\xdb\x7a\x28\xee\xf0\x2b\x32\x51\xe9\x4f\x2e\x7d\x88\x1b\x93\x56\x13\x6b\xa8\xf3\x02\x1a\x10\x9a\x75\xe7\x09\x9a\xe5\xc5\xb2\x73\xfb\x38\x01\xae\x7a\x59\xb2\x5f\xb8\x86\x14\xd7\x71\xc1\xac\xbb\x41\x32\x2b\x21\xdd\xd6\xd8\xc8\xda\xff\xdf\xfe\xf5\x43\x0a\xa5\x33\xe6\xe6\x62\x8d\x5d\x59\x8e\xcd\x19\x4a\x26\x60\x73\xf0\x6c\xe2\x36\x5e\xcb\x33\x0d\x25\xf9\xd3\xf0\xbf\x9f\xaa\x67\x42\xea\x51\xe4\x27\x50\x55\xc9\xe8\x3a\x33\x5c\x21\x66\x04\xe5\x79\xfc\x34\x9c\xa8\x80\x5d\xd3\xa1\x79\xb5\xca\x52\x7d\x8e\xc0\x30\x89\x37\xcb\xbc\xab\x41\x15\x61\x84\x21\x11\x24\x9b\xdc\x01\x14\x14\x66\x57\xac\x1c\x12\x0c\xfc\xcc\x13\xef\x0a\xb5\x21\xa0\xf2\xf3\x56\x4e\x6f\xd5\xb3\xa5\x32\x39\x0a\x22\x9b\x8c\xfc\x50\x63\xd7\xf6\x93\x97\x01\xc5\xbb\xe3\xd2\x29\x1f\xa8\xad\xf6\x21\x71\x3d\xec\x6f\xf9\xc6\x74\x9e\xb2\xf3\xca\x94\xa1\x69\xc6\x9d\x7c\x20\x8e\x5d\x50\x44\x3b\xad\xfc\xc5\xb0\xf9\x11\x49\x66\x39\x80\x2a\x7b\x33\x80\x79\xbb\x45\x9b\xea\xae\xd3\xe3\x02\x89\x0d\x1e"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12526 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA15 "\x81\x7a\x30\xee\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x27\x82\x7f\x41\x41\x60\xa2\x4c\xb5\xc8\x24\x63\xac\x2d\x08\x26\xfa\x00\x95\x5f\x1b\xde\x7c\x30\x83\xa0\xd2\x91\xe8\x0f\x7e\x76\x3e\x05\x32\xa8\xbd\xbd\x45\xd6\x07\x74\x69\xbf\x09\x18\x17\x03\x6e\x88\x56\x39\xb1\x33\x9b\x64\x6c\xdb\x7f\x97\x45\x7f\x25\x6d\x9e\x44\x0d\x03\xd3\x41\x35\xc7\x1c\xc5\x8d\x70\xec\x24\x09\xfe\x94\x36\xec\x58\xce\xbc\xd4\x53\x12\x0a\xed\xe7\x0e\xd0\x90\x1b\x00\xb7\xc1\x75\xaa\x95\x7d\xf8\xbd\x85\x81\xa8\xb0\x16\x91\xc3\x0e\x62\xdf\x84\x8d\x8d\xd9\xd5\xa7\x5a\x8d\x0d\xc0\x4b\x5d\x12\x0c\x1d\x90\xa3\x38\xa8\xfd\xa2\xd6\x63\x0f\x00\x9d\x6e\x2c\xe9\x3f\x2d\x70\x33\x7d\x23\x68\x1e\x68\xe1\x7e\x75\xb3\xea\x0d\x49\x01\x43\xa9\x0e\xeb\x30\x8b\x73\xfd\x11\x60\x75\x4b\x70\xb6\x99\xa1\x91\x7e\xd8\x87\x75\x74\x70\x66\xc8\xc5\x92\xcf\x33\xe3\x76\xb1\xef\xdd\xab\x71\x50\x37\xda\xf4\x18\x55\x03\x08\xad\xdb\xc9\xfe\x76\x5d\x0b\x8e\x01\x48\x01\x8b\x14\xcc\x2b\x2e\xf8\x99\x7e\xf1\xc0\x2e\x64\xe5\xb8\x3c\x53\x81\xc8\x06\xa3\xfa\x39\x04\x6b\x20\xe4\xa0\x2a\x75\x3b\x6b\x9a\xe2\x42\x74\x4f\x2d\x51\xc2\x37\xb4\xcb\xa7\x4a\x89\x86\xfc\x74\xdd\xf4\xd4\xcc\xff\xdd\x91\xa9\x77\x04\xcb\xa6\x1b\x75\xd1\x3b\xd0\xdb\x81\x15\xe5\x4a\xb7\x68\x5e\x4e\x35\xf1\x5e\x14\xfd\x8a\xdc\x00\xfd\x75\x89\x32\x14\x0f\x40\x09\x8c\x74\x93\x43\xb0\x66\xfd\x56\xce\x25\x0b\x14\x65\xc8\x05\x7d\x7a\x02\xd7\xdc\x3e\x22\xd2\x66\x29\xdf\xfe\x51\xa7\x85\x25\xeb\x25\x9a\x7c\x37\x1b\xc1\xe9\xc8\xdc\x6f\xa5\x2b\x4d\x65\xbf\x98\x6f\x4d\x87\x8c\x32\xa2\x13\xd3\x11\x61\x22\x84\x80\x5f\x08\x72\x01\x39\xc3\xb1\x6d\x4e\xe5\xad\x6e\xc1\xd8\xd3\x21\x95\xef\x76\x1b\x2e\x46\x2b\xf0\xc1\xf6\x92\x2c\x08\xf2\x15\x0f\x01\x7a\xd0\x60\xa9\x93\xdd\x6b\x07\x5e\x97\x1d\xf0\xb3\xc6\x66\x67\x1d\xe0\xe3\xb4\xd2\xac\x65\x44\x20\x8c\xb7\x69\x2a\x5b\xbb\x87\x45\xfe\x34\x12\x98\x04\x99\xe8\x85\x7a\xfe\x7b\x4c\x1f\x1f\xd7\xa8\x4d\xf1\x72\xab\x3d\xe1\x8c\x08\x31\xe6\xed\x86\x70\xcf\xa9\x92\xe3\xee\x85\xd9\xa7\xcd\xf0\x0c\x22\x04\x40\x23\x3a\xb6\x75\x96\xbf\xa8\x1f\xda\x38\x3c\x6b\xe9\xad\x18\x00\x6e\x9d\xa4\x48\x1a\xf9\x20\xa4\x97\x1f\x24\x5e\x4c\xcf\x08\x58\xb5\xd1\xc7\xff\x17\xf1\x36\x92\x85\xce\x19\x87\x5f\x6f\x31\xb4\x23\x91\xeb\x6c\xf7\xa7\xca\x6f\x18\xa5\xec\x11\x24\xa8\xcb\x85\xa3\x3d\x94\x83\x0d\x82\xe8\x64\x51\x5b\xc9\x04\x2c\x74\x5a\xa0\x9e\x5d\x9d\xb3\x56\x9d\xb7\x13\x8a\xbd\x44\x24\x8e\x01\x2b\xa2\x7d\x18\x1c\xff\x99\xa3\xb6\x8d\x45\x9a\x84\x7e\x2a\x1c\xe6\x8a\x41\xd2\xd2\x51\xaf\xa0\x83\x20\xe4\x40\xb2\xe5\x9a\x9f\x4e\x64\x5f\x3d\xcc\xd1\xe2\xa1\x07\xbc\xf6\xfa\x9a\x28\xaf\xdc\x78\x4e\xd7\xed\xcd\xfa\x51\x94\xf8\xb2\x9f\xe0\x27\xe7\x17\x3b\x39\x20\x8e\x93\xf7\xd7\x0a\x92\x9d\x31\x78\x93\x32\x29\xf4\xc8\x5b\x25\x08\x69\xd5\x06\xca\xd9\x49\xd2\xe0\x84\x68\x36\xe1\x39\x24\x4f\xc5\x19\x4d\xa2\x10\x01\x96\xa3\x63\x0d\xec\x53\x6d\xff\x75\x2b\x51\x38\x53\x92\xc1\xee\x43\x55\xff\xed\xe6\xeb\x43\x23\xcd\x48\xea\xb0\x1e\x57\x4a\xc6\xab\x1d\x7d\x53\x2e\x64\x1e\x7a\x4e\x4e\x91\xb5\x96\x75\x67\xc7\x88\xf0\x1f\xe7\xab\x44\x71\xf5\xb6\xae\x07\x93\x62\x20\x71\x62\x0c\xd6\x03\xfb\x65\x9b\x20\x8f\x01\x1c\xd6\x6e\x76\xbd\x67\x29\x87\x18\xc4\x02\x07\xb3\x65\x70\x7d\x97\xa7\x5a\x1f\xc4\xd9\x35\x03\xee\xae\x02\x0c\xfb\x5d\xdc\xe7\xd0\x3b\x34\x9b\xe9\xf4\xe5\x72\x2c\x25\x9b\x0a\x74\xf7\xc8\x82\xa0\x99\xf0\x7f\xdb\x47\xcd\x4a\x8f\xfc\xd8\x50\x56\x57\x8c\x46\xe8\x02\xc5\x32\x57\x8f\xf4\x66\x4f\x72\xe8\xc5\x15\x99\x8d\xb4\x85\x08\x4c\xf0\x99\xe5\xe0\x4e\x86\x9e\x41\x32\xae\xe9\x12\xc8\x30\x5a\xcb\x27\xd4\x9d\x80\x30\x6c\x02\xad\xa4\x13\xb2\x0d\xd8\x5a\x87\xa9\x41\x6d\xce\x91\xff\x83\xa5\xd6\x05\xe1\xc2\x67\xd5\xb3\x15\x45\x60\x16\x7f\xfe\xfa\x33\xdf\xe0\xe2\xc6\xd5\x96\xee\x64\x88\x76\x83\x12\x06\x01\x50\xbf\x6c\x36\x3b\xcc\x4b\x06\xbb\xf6\xc2\x7f\xe2\xd6\xa9\xd7\x07\xaa\xc0\xde\x24\xed\xfe\x2a\x6f\xc8\xd1\x63\x63\x04\xc4\x12\x30\x49\xf0\x7c\x20\x5c\x7a\x53\xa4\x1c\x4d\x8b\xa4\x97\xa1\xd9\xd8\xe3\x03\x2e\x28\xfe\xc2\x0a\xab\xf6\x13\x4b\x31\x2b\x34\xf2\xcc\xa5\x96\x0f\x4e\xa6\xcb\x6b\x4e\xc2\x5b\x72\xdf\x06\x23\x55\x9a\xf0\xf3\xd8\xba\xfc\x3b\x4b\xa4\x43\x98\xb9\x1d\x85\x08\x69\xc3\xc0\x59\x80\x34\x9e\xc9\xfd\x30\xb5\x06\xae\x36\xc7\xca\x0a\x7c\xcc\x75\xd6\xb5\x74\x61\x02\x10\xe1\x1c\x39\x6c\x42\x5b\x67\xc6\x11\xec\x5a\x55\x3e\x55\x6d\x6b\x67\xd7\xca\xff\xee\xc4\x6f\xac\x52\xe1\xa7\x95\x1b\xaf\x63\x0c\xf6\xc6\x4b\xd3\x1f\x68\xa9"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12527 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA16 "\x81\x7a\x30\xef\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x94\x4b\xc2\x7d\x25\x48\xba\x03\x8d\xa1\xf8\x67\x12\xad\xb9\xd4\xba\xe6\x36\xc3\xc0\xbd\xd4\x53\xd4\x96\x50\x14\x85\x19\xd0\x5a\x82\xcf\xb6\xa9\xad\x7c\xb5\x5e\x87\x09\xe4\xf1\xd9\xf4\xab\x0f\x75\xb6\x92\x02\xba\x21\x8e\x63\x1a\x7f\xde\x5c\x36\x77\x61\xe2\xf3\x1b\x99\x8e\x00\x27\xa9\x92\x12\x7b\x5c\x2c\x8a\xd0\x3b\x37\xee\xb5\x1b\x9b\x6e\x07\x89\xd3\xe3\x76\xb3\xb5\xdf\xa5\x8f\xd9\xa4\x8b\xed\x85\x74\x71\x96\xe3\x94\x33\xb5\xc4\x90\xe5\xaa\xff\x84\x05\x49\xde\x9c\x37\x47\xe4\xfc\xa4\x55\x86\xc2\x91\xa5\x84\x26\x5e\x0d\x0d\x02\x06\xb8\x80\x9f\xf7\x8b\x2d\x31\x18\xa2\xb3\x28\x3f\x96\xf3\xba\x36\xf1\xb5\x4b\x57\x68\x52\x86\x5a\x03\x0d\x58\xfb\xa3\x0e\x6f\xc6\x58\xdf\xd7\xdf\x10\x74\x46\x25\x3e\x17\x09\x84\xb3\x7d\x3b\x6d\xaa\x96\x7f\xad\x71\x08\x52\x76\x1a\x3b\x0b\xba\xd2\xbd\x53\xd9\x27\xbe\x53\x6e\xfc\x2b\x8b\x36\x0b\x72\xcf\x14\x92\xbd\x94\x54\x97\x49\x16\x67\xd3\xe3\x30\xe1\x81\x9d\x57\x84\xe3\xa4\x21\x64\x33\xa4\x4b\xea\x3d\xf1\x68\x31\xe3\x45\x3f\xb0\xd7\xe0\x34\x29\xbf\x14\x86\x7d\xa1\xc1\x94\xbb\x0e\x86\xeb\xf5\x7d\x93\xcb\xc7\xae\xe2\xef\x08\x7e\x9f\xb1\x39\xc1\x9a\x07\x00\xe3\x09\xd7\x30\xb0\x71\xbe\x77\x45\x2f\xbb\xcc\xf4\x0c\x52\xfe\x57\x0b\xdc\xc4\xb8\x99\x83\x10\xc6\x48\xad\x42\xa9\xe7\xb4\x49\xb7\x78\x0d\xc8\x4b\x63\xe7\x39\xd2\x72\x5d\xf7\x66\xb0\xc8\x90\x2f\x8c\x43\xda\xce\xe5\xb1\x9a\xa7\xdc\xfa\x5a\x7d\x98\x8d\x4c\x58\x5b\x3e\x21\x5c\xb1\x95\xcc\xa3\x3e\x28\xea\x84\x0c\xb2\x46\xdd\x63\xf1\x7c\x0a\x1a\x70\x6a\xbe\x86\x7d\xd5\xa8\x7f\xc7\x1a\x08\x89\x8a\xa6\xe2\x12\xe8\x7c\x69\x8d\x0d\x92\xe4\x26\x33\x90\x60\x3d\x40\x56\x6f\xc7\x48\x81\x9f\x76\xd8\xf8\x1e\xb2\x8a\x45\xff\xbf\xd5\xff\x87\xb0\x0d\x8d\x6e\x07\x57\x51\xad\x2e\x07\x53\x8c\x84\xa5\x34\xf0\x9c\x3e\xd4\x51\x6a\x0a\xd6\x09\x0c\xa7\xbf\x94\x14\x8b\x07\xf4\xc8\x62\xd4\x2f\xce\x74\x46\x5a\xd9\xaa\x8a\x46\x13\xc1\x33\xc0\xe0\x56\x71\x78\xc8\xa0\x06\x60\xb7\xb4\xd4\xd1\xc9\x92\xe0\x6b\x40\xf0\x4d\x0c\xe3\xf1\xa2\xef\x6b\x75\xb2\x22\x03\x17\x7b\x98\xa9\xbf\x3f\xc6\xa0\xd7\x29\xd9\x47\x2b\x59\x9e\x26\xde\x78\x30\x74\x1f\xa5\xcf\xb4\xad\x00\xed\x56\xb6\xe5\x95\xe3\x89\xa2\x3d\xad\x64\xf5\xf3\xb9\xb1\x27\xba\x9a\x6b\xfa\x18\xe8\x94\xd0\x46\x6a\xdb\x68\x9e\x43\x14\x4d\xec\x85\x56\x92\x3d\x13\x95\x7d\x00\x72\x4e\x7a\xdd\x23\xe2\x61\xa8\xa6\x87\xea\xe0\xba\x50\x6e\x8f\xa0\x61\x0a\x47\x34\xc2\x9d\x58\xa6\xa3\x4a\xbf\x9c\xd5\xb1\x2a\x89\x88\x48\xa1\xb7\x77\x3f\x88\xec\x0b\x6d\x0f\xf6\x32\x18\x19\xca\xa1\x4a\x78\x6e\xdd\x34\xe0\x29\x54\x7a\x3c\xac\xe9\xf7\xe7\x9a\xc1\xff\xb7\x8c\xa5\xc0\x9a\xae\x29\x11\xc9\xe8\xd3\x81\x10\x12\xa1\xf0\xce\x12\x29\x2e\xbe\xe6\x75\xab\xf1\xdc\x2e\xb8\xf2\x4f\xf1\xd4\x68\x56\x99\xf3\x70\xa9\x4c\xc5\x23\x85\x16\x7b\x27\x49\x30\xd3\x30\xcb\xd3\x26\xbd\xb7\x1c\xa9\x1c\x7a\x29\x76\x65\xbc\xc6\x9c\x44\xb8\xab\x26\x96\x06\x63\x91\xad\x29\x99\xee\x93\x6d\xd2\xb4\x45\x92\x49\x82\x1b\x33\x83\x88\xad\x79\x06\x43\x53\xd4\x20\x59\xb4\x4e\x4b\x9a\x20\xa7\xe4\xed\xdb\xbd\x3f\xfe\xf9\xfa\x63\x5f\xf4\x62\x6b\x4e\x73\x8b\x37\x7e\xd0\x42\x0c\xb2\x04\x33\x24\x16\xc7\xe1\x70\x40\xef\x5d\x32\x6e\x2e\xd7\x99\x3a\x41\x3a\x3d\xc9\x3a\xd6\x57\x68\x12\x0c\xaf\x6e\xa4\x75\x47\x70\xda\x9b\xee\x91\x32\x01\x67\x3b\x10\x1a\xeb\x80\x07\x77\x19\x58\x2d\xcc\x51\xc8\x38\xa4\xea\xcd\xad\xf4\x22\x18\x76\xf0\xea\x20\x8b\x8e\x82\x67\x6a\x38\x8b\x36\x9a\xe5\x37\x80\x47\x30\x78\x14\x63\x3d\xe6\x91\xc4\x48\x40\x28\x94\xfd\xf5\x0b\xb7\xb5\xba\xcb\x22\x4e\x72\xf1\xb8\x16\xce\xcf\x97\xe0\x8e\xd7\xfe\x54\x13\x7b\x91\xc0\xf1\x21\x31\xfe\x95\xb8\x08\xf9\x6c\x63\xf9\xda\x86\xd0\xc8\xd7\x5e\x94\x61\x8a\x49\xf1\xbb\x04\xb2\x27\xcf\x44\x7e\xed\x1d\x7f\x6b\x34\xa1\x10\xd3\xc2\xee\x99\x8e\x0c\xd4\x01\xd2\x2f\x7c\x2f\x0c\x96\x1a\x57\x98\xd2\xd3\xc5\x9b\x1c\x7f\x39\xe4\x43\x80\x4e\x58\xdc\xe2\xc6\x89\x22\xc8\x7f\x8d\x5c\x84\xa8\x8f\x7c\x99\xd1\xdb\xf5\xf5\x76\xbf\x79\xe2\x82\x83\x0e\xf8\x40\xe1\x49\x35\x37\xa4\x17\x51\x2c\x32\x2b\x16\x53\x7c\xdc\xe3\xad\x99\x0f\xfb\x5f\x41\x74\x41\x4a\x56\x6c\xe0\xc8\xcb\x38\x4d\x44\x73\xbc\x8b\xca\x0f\x2c\x6d\x70\xaa\x29\xa3\xb1\xbe\xf7\x72\xd5\x77\xba\x27\x76\x05\xaa\x5e\xe6\x4b\x8c\x7b\xe0\x37\x04\xf7\x4c\xe7\xfc\xaa\xfa\xf5\x60\x85\x5b\x2b\x62\x15\x0d\x92\xa0\x77\xad\xf2\xa5\x9e\x62\xb0\x36\x5e\x6d\xb7\xa2\x01\x15\xbd\x6b\x47\x1c\x55\x28\x35\xb6\xcf\x96\x24\x5d\xa9\xfa\x25\x01\x89\x52"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12528 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA17 "\x81\x7a\x30\xf0\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x4c\x99\x32\x58\x38\xe9\x23\x44\x22\xfd\xe8\x86\x9a\x6a\x2d\x2c\x63\x8b\x3a\x11\x8d\xbd\x4b\x4d\xf3\x1b\x71\xe1\x35\x32\x1d\xb2\xcc\x24\x23\xae\xe9\x94\xdf\x96\x86\x4b\xb5\xc0\xe7\x23\x58\x30\x60\xf1\x71\xc3\x72\x52\xd5\xd6\xb7\x3d\x26\x55\x72\x89\x73\x1e\x5e\x2f\x2d\x21\xca\x68\xa9\xe0\xe3\x02\x73\x06\x32\x8e\xb4\x85\xb9\xbb\x17\x55\x58\xe2\x37\x86\x6b\x43\xf8\xbc\xcc\x51\x53\x99\x75\xf0\x32\x5b\xe4\xb8\xaa\x9a\x9b\x1c\x9c\x83\xf9\x61\x9e\xf7\xe5\xad\xaf\xac\x17\x21\x7e\x63\x01\x99\x0a\x09\x2f\x27\xa7\x87\x4c\x7d\xba\x16\xa4\x32\xd2\xce\x20\x9c\xd1\x81\x02\xc7\xd7\xe0\x35\xa6\xf0\x53\x5c\x72\x35\xa6\xdf\xcd\x89\xbb\x7f\x0e\x2c\x32\x2e\xcc\xc0\x77\x98\x52\x65\xbf\x98\xd5\xdf\x84\xed\x8d\x03\x87\x6a\xf7\xf8\xe8\xd4\x8a\x73\xb0\xfc\x87\x87\x54\x01\xd2\x93\xb5\x3d\x45\x2b\xc8\x70\x12\x0e\x8f\xdd\x2e\x3e\x30\xfa\xb7\xaa\xbd\x5f\x29\x47\x63\xbd\xde\x68\xc5\x2a\xfd\xfc\x92\xc4\x84\x1b\x48\x8b\x1f\x6f\x0f\xba\xba\xe6\x38\x03\x2c\xdd\x9b\xf3\xc3\xc0\x7c\x83\x1e\xab\x1d\xe6\x06\x1e\x71\x02\xec\x37\x90\xce\xe0\x58\xb5\x6b\x8c\x30\x87\x55\x90\x3e\x61\x6c\xae\x28\x87\x83\x94\x1e\x08\x40\x5d\xb8\xa8\xd7\x8d\xfc\x78\x19\xf9\x54\x0b\x7e\xe3\xe9\x87\xd1\x4b\xba\x58\xdc\x65\xe8\xe9\x20\x3b\x77\xdb\x9f\x80\xd9\xb8\xf5\x39\xc2\xdc\x6a\x4b\x73\xeb\x9b\xcc\x51\x4b\x00\x98\xa8\x5e\xcd\x9e\x74\xa9\xe6\x9b\x10\x51\xaa\x7d\x07\xa5\x50\x4f\xb6\xa1\x8b\x89\x88\x8c\x49\x66\x81\x27\xf7\x56\x54\x98\x9e\x0b\xd4\x01\xa2\x2b\x4e\x09\xfc\xc5\xf0\xd8\x34\x32\x45\xe2\xcb\xd0\x98\xce\x8e\x8b\x71\x43\xa9\x12\x5b\x69\x21\xb8\x43\x05\xfa\xe9\x33\x7b\x08\x06\x3e\x65\xa2\x1d\x0b\x46\x18\x13\x41\xf8\x1c\x2d\x4d\x59\x8c\x36\xc9\x30\x28\x3b\xdc\x8f\x4f\x43\x38\x8e\x0d\xee\xf8\xee\xad\x99\xb9\x8c\xdd\x1f\xb9\x09\xdf\xd8\x41\x3e\x5a\x0f\x4d\x67\xb9\x51\x55\x24\xb6\x43\x77\xec\x72\x65\xfd\x55\x82\xca\x55\x2c\x4d\xf6\xc9\x2e\x56\xa5\xaa\x9a\x5a\xc2\xf0\xe3\xf8\x34\xa2\xa4\x28\x5d\x0d\x05\x55\x11\x0b\xec\x84\xac\x30\xec\x32\xec\x09\xd8\xba\xf4\x3d\x4e\xfd\x08\x54\xe9\x66\x47\x32\x69\x54\x15\x82\x8a\x59\x3f\xec\x8f\x26\x6f\x6f\x83\x98\x9e\xcd\x73\x4a\x71\x29\x84\xed\x6b\xdc\x06\x97\x58\xa2\x9d\x97\xf6\x7f\x2d\x0d\x6b\x8d\x23\x35\x88\x24\x88\x8a\x24\x91\xcb\x57\x68\x6f\x79\x76\xad\xdf\x5b\x6c\xc2\xa3\x40\xb3\xe9\x00\xce\xcd\xd9\xab\xed\x8c\x78\x25\x05\x61\x3f\xfe\x25\x59\xc4\x74\x1f\xe1\x3e\x7f\x4b\x30\x5d\xd5\xc6\x78\x7d\x48\x49\x1c\x2c\x9b\x0e\xb8\x2f\xd2\x69\xa9\x07\x65\xb2\x28\xe1\x8c\x2a\xd4\xcb\x38\x13\x41\xd2\x4c\x75\x60\xb2\x7d\x78\x1b\x69\x7b\x60\xd8\x4b\xf3\x06\x98\x2e\x1a\xcd\x73\xb9\xee\x93\x00\x42\xf0\x40\x70\xef\x2d\xe7\x06\xfc\xb0\x39\x7f\x8c\xba\x34\xd6\x5f\x8c\x5d\x81\x9d\x6b\xb3\xac\xe6\xee\x5f\x53\x1d\x6b\xdd\xb1\x95\xd5\x7a\x15\xbf\x0f\x6f\x9f\x4a\x87\xed\x30\x0d\xfa\xda\xaa\x98\x1c\x1d\xd5\xd3\xf1\xc5\x18\x97\x56\xf2\x97\x22\x47\x3f\x06\x9d\x34\xbb\xf4\x21\xd5\xdb\x90\xe7\xea\xa8\xca\x1e\x0c\xff\xd0\x98\xb6\xc8\xed\x16\x52\xf2\xff\xad\x55\xd2\x01\x53\xde\x97\xa4\x21\x99\x75\xa4\x28\xd1\x9d\xda\x1e\x23\x48\x14\xa2\xf8\x7f\x1f\x5c\x26\x10\x7b\xd9\x23\xbc\x61\x90\x1c\x46\xfe\x43\xc5\xb3\x13\xdf\x76\xa0\x0d\x26\xc0\x94\xe1\xfd\x04\x8b\x8e\xdd\xa8\xf6\xaa\x6c\x5a\xb7\xef\xf8\x66\xef\xf4\x52\x93\xed\x08\xe4\x16\xab\x3b\xff\x16\xee\x6f\x61\x76\xee\x44\xf5\x5e\xda\xaf\xd4\xc9\x38\xe3\x9f\xef\xfd\x1c\xec\x25\x9e\xe9\xe0\x4f\x5f\xdd\x4b\x44\x78\x72\x17\x48\x11\x89\xa5\x5c\x17\x13\xe8\x2e\x77\x72\xb0\x3f\xcb\x1a\x77\x85\x8a\x31\xdc\xc9\xa6\xb6\x7d\xdc\x81\xa4\x58\x80\x7d\x5d\x57\x8e\x0e\x5b\x67\xa1\x37\xaf\x4c\x2c\x3b\xed\x30\x09\xc4\xe7\x56\xcb\xe5\xc5\x31\xff\xbb\x3c\xb5\x34\x2f\xad\xf7\x0b\xfa\x29\x55\x68\x86\xa2\x95\x32\xcd\x30\x43\x45\x24\x52\xc4\xf8\x0d\xc1\xb7\xfd\x45\x04\x4c\xe1\x09\xb0\xab\xe5\x80\x8c\x13\xc2\x5c\x5c\x03\x39\x84\x2c\x76\x3f\x4b\x11\xdc\xeb\x85\x1a\x62\xba\x5d\x0b\xc7\x8f\x46\x90\x64\xfb\x25\x56\x4f\x0b\x26\x3d\x5f\x51\x6b\x26\x07\xf5\x68\xc0\x52\xd9\x5e\x26\x9b\xd1\xda\x64\x20\xf6\x69\x56\x2e\x01\x30\xb6\x39\x4a\x81\x84\xe2\xac\xf0\xb6\x68\x29\x07\x15\xe4\xdf\xd6\xb9\x10\x0c\xc0\xed\xa3\x03\x34\x4d\x10\xc1\xc0\xd6\x35\x7b\xc5\x89\x59\x70\xcd\xa5\x33\x85\x86\x76\xb5\x35\x5c\xa2\xb7\x7b\x23\xc7\x71\x17\x05\xa1\x2b\xe3\x50\xfe\x4c\x91\x46\x07\xe2\x8d\x94\x34\xeb\x7c\x35\x2b\x17\x9b\x95\x9d\xf6\x7a\x82\xfb\xfe\x2e\x59\xa2\x2e\x9e\x67\x13\xf1\x67\xdc\xf3\x3e\xf5\xc7\x88\xfd"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12529 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA18 "\x81\x7a\x30\xf1\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x37\x36\xc8\x84\xa5\x52\xa5\xa5\xa4\x9d\xba\xb2\xb0\x0c\x2f\x19\xe6\x2a\xcb\xa9\x9b\xd8\x74\x0c\x4e\x48\xea\x15\x2e\xc3\xe5\x22\xd8\xf3\xbd\xaf\x2f\xa0\x25\x61\xf1\x52\x14\x51\x9b\x6b\xb2\x66\x1e\xbe\xd5\x66\x42\x28\x55\x2b\x91\xdd\xb0\xe3\x3b\xd2\xe3\x78\x02\xb5\xfe\xcf\xe3\x16\xfe\x69\x9c\xf0\x6e\x85\xc4\xaa\x32\xeb\x0d\xeb\x82\x63\x14\x76\x7f\xc4\x85\xcc\x1c\x39\x51\x7d\x2e\x2f\x68\x48\xd2\x00\xb7\xad\x92\xe7\x5c\xf4\xb5\xac\x58\xa3\xb3\x9b\x1c\x1d\x33\xe6\x25\xe6\xb3\x5b\x66\x0e\x70\x59\x07\x6f\xc5\xd9\x50\xe6\x24\x5b\x5b\x35\x7d\x3b\xbd\x11\xde\xb5\xcb\x41\xdf\x03\x63\xfd\xc8\xa5\x2d\x2b\x3a\xb6\xba\x4e\xe9\xbf\x7a\xc1\xe9\xe7\x25\x15\xc3\x0d\x81\x04\x4c\xb8\xd2\xaa\x06\xe1\x25\x40\x38\xe5\xc9\x35\x7c\xa3\x97\xfa\x12\x5a\x4f\x8f\xae\x9b\xe0\xfc\xca\x7e\x48\xf8\x72\x3c\xf6\xe4\x8f\xb4\x5f\x21\xd5\x85\xc5\x84\x04\xe2\x97\x29\xd1\x77\x03\x49\xfc\xa4\xd8\xe6\xe8\xd3\xfa\xef\x44\x1b\xae\x0f\xb0\x83\x39\xbf\x0c\x29\x20\x90\xec\x06\xb3\xff\xac\xf9\x63\x93\xa1\x80\xf4\x5e\x50\x33\xe1\x1e\x69\x01\x7f\x2c\x1f\x7c\x27\x38\xf1\xfa\xe8\xae\xea\x9c\x50\x6f\xd1\xb2\x77\x88\xee\x94\xf7\xaa\x9c\x63\x4a\x72\x54\xc7\xaa\x35\xba\xa5\xf8\x02\x26\x56\x2f\x39\x28\xd5\xf7\x65\x6d\x4a\xee\x75\xd7\xd7\xeb\x5a\x4f\x35\x4a\x16\x24\xc2\x7c\x38\x4e\x24\x4a\x8c\x6e\xdf\x92\xa7\x28\x90\x4e\xb6\x4d\x9b\xe6\xf2\x0c\xfb\x28\xa9\x49\xc1\x07\x73\x67\x3b\x5a\x8e\xdc\x28\x5e\x5a\xe4\x04\xfc\x35\x47\xbc\x67\x61\x5e\xfe\xf9\x5d\xba\xe4\x96\x4d\xe9\x58\x6a\x4e\x4a\xaf\x9c\xf6\x90\x16\xed\xf1\xcb\x8d\x6f\x7b\x1a\x59\x16\x76\x59\xf4\x34\x27\x7b\xf3\xb6\xf1\xd2\x43\xd5\xc5\x31\xd4\xb6\x6e\x6d\x10\x99\x04\xd6\x52\xe4\x3a\x4c\x16\xf1\x59\x37\x36\x1e\x77\xb9\x8e\x3f\x02\x22\x75\xd9\xb0\x2f\xf4\x61\x33\x53\xe1\x23\x6b\x67\x3f\x89\x94\x8a\x14\xdc\x18\xf1\xc7\xf7\xbf\xec\x78\xc4\x0e\xef\xaa\xf5\x16\xef\xb8\x1f\xb3\x62\x62\x48\xeb\x50\x89\xab\x35\x26\xdd\x78\xc5\x9f\x06\x42\xa1\x91\x4c\xe4\x85\xae\x33\xfa\x31\xa3\x93\x60\x29\x1b\x14\x51\xfe\xc8\x14\x5f\xeb\xd8\x04\xe9\x9b\xeb\x06\xda\xfa\xfd\x82\x14\xad\x60\xe3\xa4\x7c\x87\x1b\x47\xb8\x22\xee\x42\x7b\xd2\x42\xff\xb7\x14\x30\x76\x4a\xce\x09\xea\x03\xd3\xf6\x18\x3b\x1f\xe2\x05\x53\x3b\x53\x56\xc1\xfc\x88\xbc\x55\x21\xf5\x51\x4a\x4d\xab\x42\x3b\x17\x4a\xaf\xdf\x41\x53\x7d\x37\xb1\xab\xec\x3d\x3a\xb4\xc0\x31\xcf\x9a\xe0\x15\xc7\xf9\x6d\xcc\x58\x64\x9d\xd3\xcf\x10\xeb\xbd\x0c\x3d\x54\xcf\x96\x19\x80\x01\xcb\xed\x9d\x72\x06\x64\x2b\x5f\x87\x8d\xaa\x19\xd6\x2f\x23\x75\x6a\xe4\x1f\x75\x97\x8c\x88\x56\xd3\x0c\x60\xce\x3a\x38\xd2\x78\x4c\x7a\x35\x6e\xd2\xb0\x88\xd5\xa1\xd7\xed\xa4\x93\x46\xe7\xbd\x67\xf8\x93\x81\x4a\x90\x21\x76\xed\x80\x55\x62\x6e\xea\xbf\x98\x13\xb3\x2a\xdb\xf0\x0a\xa8\xef\xbf\xc4\xf8\x92\x3f\xfc\x31\x0e\x80\x3f\x13\xe7\xc9\x56\xf8\x08\xe0\x7b\xda\xec\x87\x21\x19\xd9\x56\x16\x97\x89\x31\xfa\xe4\x51\x01\x2b\x68\x45\x6d\x3b\x20\xd6\x35\xb2\x94\x2d\x2a\x7f\xe5\x71\x2b\xf0\x36\xde\x1a\x22\x05\xde\xbb\x9d\xd4\x9a\xbd\x8e\x16\x46\x9c\x15\xd8\x0f\xf2\x09\xc0\x8c\xed\x03\xe2\x9f\x51\x05\x7d\x11\x35\x8c\xe2\x8d\xa4\xbe\x93\xfc\x6e\xfd\x31\xf5\xac\x4a\x32\x30\xde\xa5\x39\x2e\x38\x9c\xcc\x47\x63\xe8\xf9\x66\x4f\x3b\x39\xdf\xe6\x0c\x09\x47\x0a\x72\x22\xb3\x13\xd4\x7f\x8b\x3f\x95\x9c\xac\x05\xad\x30\x3f\xdf\x28\xa5\x6e\xc7\x95\x6f\x67\x1a\x9f\x70\x29\xba\x59\x21\x61\x3b\xbe\x3a\xac\xe8\x0a\xb3\x20\xd7\x05\x9a\x10\xd9\x70\xef\x36\x49\xba\x7c\xa9\x14\xc6\x1c\x9b\xe6\x18\x01\x4b\x81\xf8\x09\xcf\xf9\xd8\xc4\xe9\xe0\x73\x65\xea\xf3\xe6\x95\xef\x44\xbe\x74\x21\xa4\x93\x0e\x72\x22\xb6\x05\x03\x3e\xc7\xd0\xbb\xa0\xa6\xc3\xa9\x6d\xbf\x87\xda\xe9\xc7\x75\xf0\xbe\xb6\x56\xd0\x28\x79\xd8\xa4\xae\x9e\x37\x24\x2f\xa6\x09\x99\x26\x9b\x7f\xc5\x7d\x77\x78\x64\x03\xfd\x54\x94\xb6\xe4\x4f\xe4\x59\x48\x55\xf3\xc7\xd2\xce\x42\x50\x0d\x39\x5c\x07\x8d\x54\xb4\x8e\x85\xe4\xe1\xf4\x3c\xf2\xf2\xb1\x37\x65\x6e\x99\xa4\x77\x42\xd0\xd3\x6d\x0a\x25\xde\xe2\x23\x3e\x0f\x19\x9c\x29\x55\x50\x34\x55\x4b\x93\xa2\x5d\xe3\xbb\xfd\x06\x72\x0d\x74\x56\x9a\xe3\xab\x49\x6c\xdb\x0d\x3f\x2c\xeb\x2c\x49\x63\x0d\xb7\xb3\xdf\xdc\xb9\xcc\x72\x68\xed\x17\xff\x6d\x14\xbf\x79\x51\x50\x3c\xb2\xd6\xc9\xa7\xb9\x23\xb9\x50\x2c\xbb\xd5\xfb\x20\x65\x54\x03\x85\x37\x3b\x1d\x0b\x15\xa5\xf4\x49\xdf\x33\x56\x32\x9a\xc1\x35\x6f\x29\x8f\x44\x8c\x11\x7c\x0d\xb4\xfc\x0b\xf6\xb2\xe4\xe9\x7a\x3b\x00\xc0\xd8\x3b\xc2\xef"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12530 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA19 "\x81\x7a\x30\xf2\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x82\xbe\xb7\x65\x34\x80\x77\xfc\x8e\xec\x62\xa8\x9a\x53\x9f\xfd\x91\x27\x59\x07\x49\x1a\xf7\x2a\xcb\xcd\x34\x85\x46\x6f\xd9\x51\xd5\xad\x13\xe0\x6a\xa1\x0c\x09\x66\x27\xcb\x75\x7b\xa6\x39\xd7\x63\x58\xdb\x4c\x20\xe6\xf3\x74\x5b\xf5\x1b\x6a\x26\x72\xd3\x54\xd6\x9b\xb0\x34\x9d\x80\x44\xa8\x52\x18\xed\x7d\x54\xb1\x08\x78\x98\x00\xb1\x43\xc4\x17\x7d\xee\xf8\xbc\x4d\x26\x47\xdd\xde\xd1\x7b\x3e\x30\x21\xc4\x1b\x17\xcc\xa0\xaf\x39\xa3\xfa\xfb\x21\xf0\x96\x87\x74\x60\x5f\x00\x4a\x34\xf2\xc5\x8a\x5b\xf0\x72\x93\x8d\x78\x83\xab\x28\xdd\x52\x2c\x1a\x2f\x25\x43\x77\x9b\x00\x79\x14\x21\x0c\x92\xfd\x4d\xd3\x08\x68\xba\x3a\xf2\x6d\xf2\x1e\x6b\xb2\x89\x4d\x23\xa9\x44\x7d\x0a\xf4\x7b\xb8\x98\x51\xc7\x05\x8f\x82\xdd\xae\x2e\x88\x00\xcf\xe8\xc9\x7d\xc8\x99\xd3\x06\xa3\x80\x91\x42\xc7\xd1\xaa\x36\x59\xb8\x90\x83\xed\xf4\xf0\xbf\x52\xbb\xdd\xe6\x33\xcb\x1e\xaf\x69\xfe\xed\x5a\xe6\x48\x4c\x39\x1e\x7b\x55\x8c\xb5\xb7\x30\xf8\xa9\x6a\x5f\x5a\x4e\x34\xf8\x99\x54\xd7\x9f\x53\x42\x55\xe5\x57\x2e\x86\x6c\xeb\x8f\x21\xc6\x77\x67\xf7\xb8\x3a\xa2\xaa\x51\x88\x5e\x34\xa7\xf1\x1a\xdf\xf6\x56\x91\xed\x2e\x5f\xfe\xb3\x23\x67\x0b\xf4\x21\x43\x1d\xfb\x3b\x39\xd0\x25\x57\xc7\xe2\xbc\x7c\x31\x76\x80\xef\x35\x1c\x68\x0d\xb7\x7c\x9c\xcd\x66\x66\xc1\x99\x9d\x8a\x8f\xe6\xed\x9a\x7c\xa8\xb0\xc5\x0c\xf4\xc8\xcd\x7e\x2e\xec\x3c\xfb\xea\x35\xc8\x94\x78\x6b\xad\x1c\xc8\x2a\x41\xd8\x7f\xf1\x59\x65\x3d\x52\x51\xd4\x58\x22\x94\xf8\x1b\x05\x35\x7a\x6c\x36\x5d\xaf\x4e\x85\x39\x4b\x7d\x2d\xab\x12\x79\xab\xa6\x59\xd7\x65\xa5\x14\xf4\xf0\x5e\x14\x00\xc1\x45\x85\x2c\x7c\xc5\x7d\xf6\xbb\x33\xa4\x8b\x3e\xb1\x68\xd4\x8a\x82\x79\xe4\xf8\xac\xdf\x90\x94\x2d\x31\xfc\x8e\x21\x41\x84\xf6\x8a\x54\x8f\xf2\xb0\xae\x6c\x46\xe7\x5c\x16\x62\x10\xdd\x17\x4a\x48\x6d\x51\xb1\xc8\x93\xee\x69\x61\x4e\x44\x1c\x9f\xdb\xcf\x04\x69\xc4\x66\xad\x92\x9b\x74\x34\xea\x6f\x79\x37\xc0\x97\xba\x69\xd9\xd2\xf7\xe9\xff\x77\x27\x77\x04\xee\x4c\x7d\x9e\x15\x8f\x50\x21\x21\xf3\x48\x53\xd6\xde\x64\x7f\x43\x7d\x09\x0f\xb8\x98\xbc\x6a\xcd\x7d\xd7\x86\xc4\x8d\x59\xa5\xe7\x3b\x99\x1a\xa7\x03\xf1\x7e\xe5\x43\x07\x71\xe8\x79\x20\x90\x3f\xce\x9e\x95\xfa\x5e\x52\xc9\xe0\x96\x11\xc5\xa7\xe6\xdd\x34\xcf\xe0\xc4\x20\xc1\x6c\x8a\xfa\x4e\x92\x58\x99\x7c\x56\xc6\x2f\x14\x00\xe5\xda\x14\x77\xe5\xf3\x33\x82\x0e\xdd\xf5\xd2\xf6\x4a\xcc\xd8\xd6\xde\x05\x18\xfd\x0a\xe4\xf5\x7c\x14\x7d\xe9\x8a\x0a\xd4\x2e\x2c\x60\x4f\x1d\xe0\x2d\x55\x3f\x6b\x52\x65\x21\x36\x75\xbe\x48\x6a\x2d\xba\x81\xd2\x7d\xa4\xd2\xa6\x28\x59\xb7\x85\xd9\xc3\xd1\xd4\x15\xeb\x23\x7a\xb3\xd8\x0e\x30\xfa\xe5\xa1\x0f\x9b\x5b\x15\x9e\x50\x49\xcb\x56\x77\xf1\x18\x1b\xd1\xe7\x87\x55\x38\xa0\x88\x2f\x27\x56\xe3\xd7\x66\x92\x41\xcc\xf2\x3b\xcb\xa1\x82\xb5\x4e\x4e\xc6\xc9\x42\x1f\xdc\x47\x25\xf1\x23\xd8\xbe\x6b\x8c\x2c\xe2\x10\x6f\x97\x95\xfa\x26\x8c\x84\xa0\xbf\xfa\xb5\xa6\xe4\x39\x12\xe0\x83\xda\xc6\xd6\xf3\x46\x87\xd4\x40\x65\xf6\x70\x3b\xd1\x46\x27\x4a\x19\xf2\x46\x0e\x51\x9a\x37\xc0\x6a\x70\xe5\xf4\xf4\x4f\xcf\x0e\x51\x3b\xfb\xbb\xf2\xd7\xbb\x07\x73\x9c\x50\xc4\x1f\x10\x07\x87\x3a\x1c\xb0\x37\x1a\x22\xd9\x4d\x82\xbd\xa8\xff\x67\xe4\x0f\x8a\xb3\xa5\x0a\x0c\xc4\x97\xad\xe4\xc5\xd8\x78\x12\x98\x4e\xdc\xd7\x46\x06\x34\x3d\xa6\xe4\x75\x97\xd7\xe5\x3e\x77\xae\x5d\x1e\x08\x1e\x42\x9c\x8b\x6d\x0b\xe9\x99\xa6\x04\x58\x0e\x0f\xe5\x78\xb4\x54\xed\xba\x5f\x09\x5a\x49\x15\xb8\xb5\xff\xc9\x52\x37\xdc\xdc\x26\xf0\xe8\x5e\xd8\xff\x00\xa4\xd5\xf7\x36\xc7\x9a\xf9\x68\x71\x89\xa1\x31\xac\xe2\x85\x6b\xa5\xa8\xd6\x72\xd7\x99\xf7\x07\x03\x7b\x94\x59\x7e\xd0\xce\xf5\xbe\xca\x62\x58\x04\x12\xa6\xf7\xee\x69\x2f\x6e\xe0\x8e\x25\xe4\x49\x88\xef\x7b\x32\x1f\x03\xc2\x2e\xa2\x94\xb4\x3d\xbb\x4b\x49\x59\xd0\x1d\x3d\x58\x1f\x98\x4b\x3d\x34\x98\x28\x32\xeb\x55\x98\x41\x5a\x6d\xdf\x15\x0c\x93\x76\x83\xc8\x45\x01\xd2\xd8\x56\xb8\x1c\x45\x35\x6b\x9a\x55\xd0\x5b\xf7\xfa\x3c\x10\x3c\x9d\xb7\xf0\x59\x5c\x16\xc0\xc4\x41\xec\x64\x87\xd4\x4d\x1b\x30\x09\x7c\xb6\xa1\x66\x51\x04\xd5\xbd\xb5\x7b\x75\x59\x2d\xc0\x85\x0b\xa7\xef\x55\x92\xd2\x19\x5c\x58\x00\xf0\x85\x6d\x06\x4f\xf7\x6e\xd1\xd9\x31\x10\x65\x12\xea\x0b\x1d\x98\x07\x85\xba\x71\xf9\x01\xeb\x0b\x89\x16\x7d\x98\x2f\x93\x95\x74\x69\xf1\x05\xff\x01\xad\x24\x9a\x98\x31\xb3\xa2\xe4\x3d\xa3\x2f\xa9\xf1\xb3\x25\xa1\xdb\x25\x03\x08\x7c\x77\x56\x86\x02\x4a\xba\xbe\x7a\x83\x8b\xa6\xde\xb9\xec\x61"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12531 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA20 "\x81\x7a\x30\xf3\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x56\x28\xaf\x5a\x77\x5e\x4b\xb2\x3c\xd5\x4c\xb3\x3d\xb2\xdc\x0f\xa7\x8f\x82\xb4\x65\xad\x07\x9d\xb8\x3e\xbc\x69\xb0\x35\x01\x12\xf0\x8f\x00\x07\x2c\x9f\x02\x75\x28\xeb\x1c\xa4\x74\x8a\xc8\x25\x5e\x37\x10\x07\xf7\x56\xa1\xe0\x1a\xa0\xda\x14\x64\x14\x51\x53\x88\xf0\xc6\x83\x77\xd3\x6f\x97\x09\xf8\x4d\x29\x4a\x61\x55\xc3\xb3\x34\xee\x58\x64\x41\x84\x4d\x13\x2d\x90\x66\xe9\xa0\xa4\xaf\x10\x05\x6b\x3d\x0d\x76\x9c\x61\xd2\x88\x13\x61\x39\x30\xae\x4b\xb6\x49\x04\xe7\x3f\xcc\x24\xb0\xf6\xc6\x8c\x7e\x3b\x48\xa9\x00\x98\x01\x4d\xe4\xe3\x0c\x24\xdc\x58\xff\x37\x55\x34\xbe\xde\x18\xc1\x39\xc8\x54\x70\xf5\x2f\x8d\x2a\xb6\x33\xef\x6d\xdd\xd8\x30\x34\xe4\xf4\x6d\x85\xd0\x2c\x0d\x5e\x81\xb8\xba\x82\xd4\xc7\x6d\x77\x5d\x30\x3c\xc3\x4f\x31\x36\xe7\x36\x63\xc1\xfc\x64\x64\x4e\xb9\x15\xeb\x9a\xf4\x31\x53\xa6\x06\xcf\x2a\x2b\x86\x8b\xd4\xbf\xc0\xba\xaa\x33\x12\x80\x12\xc4\x8e\x3e\xb2\x2a\x3c\x05\xc0\xdd\x10\x05\x60\x3a\x53\xf8\x25\x7a\x7c\xd5\x9e\xdb\xed\x9a\x9e\xb8\x39\x16\x70\xfd\x63\x8c\xa7\x64\x19\x92\x40\x81\x87\x2f\xa1\x29\x63\x61\xa0\x62\x4f\xaf\x5c\x6f\xcd\x66\xd3\x64\xc1\x29\x00\xad\x4a\xd9\xaa\x99\xcf\xb9\x06\xea\xe0\x74\xd5\xa4\x17\x62\x6b\xe7\xdb\x43\xc1\x9e\x1f\x89\x20\xb5\xe9\x18\xb5\xbe\x44\xd4\xb7\x06\x7e\xc3\xa8\x8c\x4f\x87\xac\x72\x59\xf0\x32\x85\xe1\xf5\x3e\x16\x14\xbd\x8d\x49\x4e\x00\x75\xde\x80\xdd\x42\x34\x42\xe7\x6f\x2e\x3f\x0f\x13\x5a\x9e\xc2\x1e\x7e\xa8\x49\x9f\x72\x4a\x64\x0b\x00\x14\x1e\xcd\x0b\x35\x78\x21\x9d\xd8\xd4\xd4\xec\x44\xf9\xbc\xbd\xb4\x1b\xcc\xb8\x49\x7a\xeb\x04\x1f\x08\xb9\x44\xba\x81\x56\x65\xf4\x79\x4c\xc8\x06\xc5\x37\x82\x37\x57\xcf\xee\xe0\xda\xf6\xa4\x13\x13\x14\x89\x63\xfe\x2d\x92\x57\x82\x05\x22\xed\xd0\x7e\x0b\xe0\x43\x82\x0d\x02\x0a\x80\xc3\xe3\x63\xd8\xf8\x4e\xa5\xab\xa5\x84\xcb\xc2\x94\x34\xe9\x80\x27\xed\x3d\x3f\xd9\xcd\x78\x39\x77\x4b\x3c\x30\x24\x66\x6d\x2f\x2f\x76\xbb\xad\x93\x02\xea\x6a\x51\x2f\x1d\x72\x2e\x36\x94\x96\x48\xc2\xbb\x82\xeb\xde\xe3\xb0\xfd\x74\x25\xa8\xc8\x0c\x8d\xf2\x11\x61\xc1\x37\x95\x1a\x6f\xba\x0e\x77\xcd\x4f\xb3\x5c\xa5\x19\x48\x8f\xac\x19\x70\x3a\xd3\x12\xbf\x07\x0b\xe5\xc4\xa9\xcc\x5b\x54\xbf\x06\x31\xe0\xfa\x45\x43\x38\xd8\x98\xf5\xb0\x13\x6e\xea\xb8\xcf\xbd\xe9\x7a\x33\x17\xe8\xf2\x2b\x1c\x94\xcb\xc3\x2c\x13\x17\x76\xd2\xc6\x39\x58\xfd\xa6\x0e\x45\x96\xcc\x36\x1d\x73\x7a\x91\x77\x59\xfa\x08\x1c\x05\xb8\xdc\xdd\x8b\x29\xef\x98\x83\xcf\x1b\x0a\x5c\x17\xa1\xf8\x5b\xfc\x09\x35\xd6\x79\x80\x4b\xcd\x96\x7b\x96\x52\x2f\x5b\xe8\xb1\xb3\xb5\xe4\xb9\xe4\xce\x93\x39\x97\x3d\x7b\x09\xdf\xcb\xfa\xc7\xb7\xe2\xf0\x14\x32\xe7\xc9\x40\x9e\xe0\xfc\x94\x2e\x80\xc5\xba\x35\x27\xa5\x67\xc8\x81\x12\x72\x67\xff\x16\x3b\x19\x69\xe0\x82\x50\xb6\xcc\x94\xbb\xcb\x74\x6c\x41\xca\xb3\xaa\x40\x06\x38\x93\x6f\x7a\x4c\xff\xca\xb0\x3d\x8f\x20\x23\x54\xb3\x8f\x9f\x57\x12\xac\xdc\x67\x47\x43\x6a\x43\xeb\x7f\x82\xf8\xd6\x3c\x69\xee\x00\xb8\x01\x4a\x8f\x65\x40\xfb\x93\x34\x7e\x34\x62\x4f\x3b\xdf\x17\xe9\xb3\x98\xb6\xa7\xb6\xf6\x4e\xba\x30\x61\x5d\x5f\x53\xd2\x29\x31\x7c\x2e\xff\xb7\x7e\x23\x73\x4f\x57\x7b\x8d\x07\x89\x68\x05\x96\xee\x5a\x72\x05\xf8\x79\x21\xa7\x08\x6f\x54\x24\x9e\xb2\x52\x22\x0b\xa9\x4b\xd6\x3d\x92\x3e\x32\x71\xb4\x11\x37\xc9\x86\x7f\x66\xd2\xff\x4a\x2d\x14\x2f\x03\x88\xd0\x1a\x83\x7a\x6c\xc6\x41\xb1\x23\x88\xe5\x5e\x7f\x1e\xf8\x9e\xb1\x39\x19\xa7\x90\x00\x99\xdb\xeb\x31\x9b\xaf\x41\xa5\x0f\x5f\xc3\xa0\x1c\x28\xc2\x85\x19\x36\x9d\xe8\x67\x16\x7c\xc8\x82\x2a\x91\x48\x30\xe7\x0c\xb4\x07\x7f\x90\x6c\x91\x98\x4d\x49\x81\x36\x88\x12\x19\x97\x02\x90\x97\xf0\xa2\xe9\x48\x65\x84\x42\x33\xa5\xbf\x4e\x6d\x86\xbf\xd7\x35\xa6\x4e\x43\x24\x43\xf5\x82\x94\x6d\x07\x79\x9a\xd2\x1a\xdb\x8f\xc1\x80\xb3\xc0\xa5\x18\x21\x35\xb6\x58\x0b\x5d\x22\xdf\x20\x30\xad\x2e\x13\xd3\xba\xb8\xb8\x32\x96\xf1\x87\x48\x84\xce\xc3\x2e\x9d\xd8\x7f\x3f\x13\x33\x48\xd1\xa5\x7e\x36\x0a\xe9\x5f\xc2\x51\x79\x03\xff\xd8\x28\xcf\x25\xcb\x1d\xb4\xa0\x7d\x30\x84\xf9\x32\x7b\x5a\x65\x00\xcd\x51\x5d\xa7\xbb\x90\xa0\x09\x71\x1d\xab\xcb\xe7\x25\x01\xbf\xf3\x9e\xe1\xfe\x51\x2d\x61\xa0\x88\xb6\x66\x42\xc9\x8a\xb9\x17\x8e\x73\xc1\x1b\xce\xf3\x72\x4b\xa8\xe8\xd5\x54\xa8\x62\xfd\xe9\xc6\x31\xe6\x58\xda\x75\x9f\xd3\x3a\x5e\xfc\x85\x00\x6f\x62\x17\x84\x74\xb0\x20\xe4\xee\xd1\xfe\x41\x31\xc4\x33\xc6\x4d\xa8\x69\x9b\x04\xd2\xfc\xff\xb0\xbe\xbb\xdf\x50\x28\x56\xa2\xf4\x22\x9c"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12532 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA21 "\x81\x7a\x30\xf4\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x80\x5c\x6b\x65\x7b\x11\x4b\x8f\x2a\xc0\xef\xae\x4c\x64\x51\xd5\x47\xfe\x48\x61\x95\xf2\x3e\x57\xaa\x0b\x19\xd9\xa3\x36\x7d\x87\x06\xc3\x33\x30\xb0\x98\xa4\x95\xdd\xc6\xc5\xa1\x95\x1d\xf1\xa3\x93\x9a\xcd\x78\x5b\xb4\x8c\xac\xa3\x63\x5d\xde\x5c\xe9\xc4\xcf\x70\x28\x9c\x34\x9f\x27\x94\xae\x1e\x90\xdd\x7c\x74\xf7\x86\x57\xcc\xa2\xb9\xc7\xa7\x46\x4e\x7d\x13\xf5\x2c\xb3\x54\xba\x21\x31\xf8\x5e\x09\xc5\xa1\x4e\xeb\x61\x1c\xb4\x2e\xbb\x01\xc7\xf7\x39\x8f\x5b\x31\x3e\xfa\x3c\x51\x21\x60\x1e\x7d\xdb\xaf\x4f\x9b\xcb\xa3\x1c\x0e\xbd\xe8\x6f\x7e\x0f\x52\x2f\x71\xcf\x3a\x27\x82\x09\x33\x11\xa4\x4f\x6e\x6b\x96\x32\x73\x05\x7e\xe1\xe7\x10\xe0\x28\x12\x09\x5e\x66\xb5\xe2\x78\x14\x81\x30\xbd\xec\xa2\xef\x3b\xae\x0f\x7a\xe4\x0d\xa9\x81\xdd\xa4\xb6\x62\x1a\x0f\x48\xf3\xc3\xce\x2b\x38\xb4\xd7\x45\xe3\xed\x70\xb6\xe9\xc2\xc2\xe3\xb0\x3f\x27\x60\x48\x4f\x56\x02\x52\x6c\xf9\x43\xd6\x6a\xfa\xbb\xa6\xec\xa4\xf3\xb3\xfc\x68\x8a\xd7\xc7\x8a\xb0\xe0\x4a\x07\xd7\xd4\x13\x6c\xd4\xe7\xbe\x41\x7e\x5e\x5c\x7f\xe3\x51\x31\xe2\x7a\xa3\x97\x24\xce\x68\xd0\x58\x9b\x62\x30\x9f\xbb\xf7\xaf\x05\x2a\x06\x68\xdf\x1f\x96\x88\x3c\x9f\xbd\x14\x29\x66\xc3\x4f\xd1\xbc\xa2\x32\xbe\x20\xab\x5c\x5a\xa2\xba\x2d\xb5\xc5\x3e\xa6\xeb\x34\xa4\x08\x9c\x22\x52\xc6\x40\x27\xe3\x25\xe4\x6b\x31\x65\x75\x75\x6c\x5d\xf3\xb4\x80\xab\x39\xfd\xb6\x18\x7e\xdd\x92\xcf\x3a\x57\xbe\x31\x5b\xc6\x1a\x0c\xb2\x2f\x3c\xc0\x06\xbc\x9e\x4c\x69\x9d\x55\x31\x6d\xce\x12\x38\x4a\x6d\x10\x81\x18\x71\xe0\x3b\xd4\x84\x40\xee\x30\x97\x8a\x8a\xe1\x6c\x8c\xbd\x95\x4a\x45\x2c\x99\x0f\x53\xed\x49\xa7\x6d\x80\x01\x10\x14\x36\x77\x3b\x86\x4c\x35\x7d\x2c\x44\x68\x91\x15\x36\xbb\x00\x1d\x15\x74\x5d\x7d\xf5\xa6\x12\xa7\xd4\xed\x82\x9e\x8e\xd7\x6f\x95\x52\x0d\x17\x28\xdc\x29\x57\xa7\x47\x65\xf4\x15\x3e\x81\xeb\x93\x74\x8e\xd6\x47\xe1\xed\xb3\x9a\x84\x21\x49\xfd\xff\xd8\x6a\x70\x8d\x1f\x35\x09\x9a\x4a\xfa\x96\xe1\xc0\x82\xde\xca\x5b\xb3\x42\xc3\x69\x6f\xbf\xb9\x52\x8f\x9a\x8b\x10\x6f\xbf\x54\x13\xc3\x8c\x3d\xc7\x87\x3d\xc1\x81\xe9\x07\x7c\x5a\x9b\x7a\x00\xfc\x6e\xaa\x3d\x18\xc3\x77\x54\x40\xf5\x37\xe1\x6a\x4c\x87\x34\x3b\xad\x8e\x03\xfe\x23\x4d\xda\x79\x6f\xc4\x84\xf2\x02\x85\x54\x3a\xe4\xca\xf7\xa2\xbc\xd7\x5c\xa7\x59\x0c\x3e\x69\xd3\x6b\xd3\xb5\x21\x10\x5f\x93\xb1\x32\x72\xb1\xa1\x93\x88\x60\xcd\x85\xc9\xd1\x8f\xef\xc4\xed\xa3\x29\xc9\x65\x40\x1f\x8d\x1f\xcb\x1a\x4b\xa5\x30\x30\xd2\x23\x6e\x37\xd5\xe0\xf4\xb0\xd6\x35\xfa\xcb\xdc\xc9\xc2\xf5\x4e\x4f\xca\x6e\x80\x3a\xc0\x7d\x2e\x28\x76\x2c\xa0\x60\x9d\x82\x2b\x43\x55\x12\x0a\xed\x9a\xb4\xc1\x44\x68\xd5\xfb\x08\x8c\x4b\x00\x84\x9a\x84\x7d\xc9\x00\xa2\xda\x47\x65\xc1\xca\xf2\xb1\x37\x1a\xb8\x31\xa7\x0f\x7b\x6f\xb5\x32\x56\xdf\xa8\x0c\x0a\x69\xf4\x13\x37\xc1\x60\x8f\x17\xf5\x0e\xa9\x6d\x40\x3a\xbd\xcb\xd6\x6f\x12\x71\x67\xda\xd8\xa9\xc2\xea\x19\x33\xe6\x8f\x88\x12\xad\x33\x85\xb9\xa2\x65\x0c\x02\x31\xf8\x75\x3f\x45\x38\x67\x7e\x5e\xa5\xf8\xe5\xe2\xec\xf5\xd7\x82\x0d\xc8\x1a\x5c\x6b\x73\x25\x58\xe1\x98\x6b\xc0\xb7\x17\x91\x3c\xe8\xb1\xc7\x9e\x88\xac\x77\xcb\x7e\x9f\x78\x1b\xcb\xce\x55\x2b\xb6\xe6\x68\x7a\x6d\x5f\x86\x29\x23\x22\x90\x03\x3d\x47\x5e\xb5\xf5\x29\x7e\x79\x23\xba\x73\xcf\xf4\x15\x20\x82\xbf\x92\xd2\xbe\x1f\x95\xfb\x6d\xa6\xa0\x2c\xc2\x5c\x67\x5d\x0e\x83\xca\x63\x08\xfa\xdc\x8c\x29\x7a\x26\xc4\xef\xd6\xfb\x6c\xcd\xb1\x98\x55\xb4\x40\x28\xd0\xce\xc2\xb5\x46\x78\x02\x9b\x0b\x6f\x5a\x4e\xe4\xc9\x83\xe9\xa7\x7c\xbc\x81\xd4\x4b\x03\x25\x90\x56\x36\xc7\x70\xd4\xbf\x60\xeb\xed\x3f\xc9\xc5\x45\x7f\xb9\x02\x5c\x59\xfa\x53\x88\xfd\xd2\xd8\x38\x13\xf3\xa5\x72\x81\xbd\xf7\xbb\xdb\x74\x77\x75\x8f\x0b\xf9\x8a\x12\x61\xeb\xa2\xab\x9e\x72\x8e\xba\x86\x05\xc4\x81\x2f\x99\xfd\xd1\x9c\xb6\xdc\xb8\x57\xb4\xdc\xf1\xa2\x67\x1e\x14\xe0\x1a\x54\xb1\x25\x3c\x2d\xef\x07\xf2\xbd\xef\x90\xe0\xcb\xae\x5f\xe8\x4a\x23\xdb\x95\x18\xc7\x00\xa2\x58\x98\x92\xa0\xac\xcd\xab\xd8\x29\xa9\xb6\x5a\x3e\x47\x3b\x2b\x91\x45\xc0\x91\x7d\x77\x8b\xac\xde\x7b\xee\xad\x43\x38\x20\x02\x75\x27\x57\x6e\x84\x2b\xdc\x5a\x79\x11\x40\xd1\xc9\xd1\xc9\x73\xc8\x3b\xe9\x40\x77\x4e\x60\xf0\xc1\xbc\x8c\xcb\x16\x6e\xb0\xae\xb5\xb6\xdd\x46\xe3\xee\xb5\xc5\x4a\x87\x0e\x5d\x8b\x3f\xeb\x74\x7d\x02\xf2\xbf\x26\x6a\x79\x4b\x9f\x41\x0c\xf5\xb5\x3b\x3b\x6e\xa7\xf5\x4d\xb9\x44\xb6\x98\xf6\x13\xbd\x56\x6d\x34\x8c\x51\x5f\xc7\x7b\xe6\x20\x97\x95\x57\xb9\x42\xf5"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12533 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA22 "\x81\x7a\x30\xf5\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xd3\x61\x57\x79\xda\x89\x7e\xb7\xbf\xf6\x13\x18\x6c\x0e\xc2\x98\xa5\x7e\x78\x47\x17\x02\xed\x01\x95\x45\xa0\x36\xce\xed\xb9\xaa\x81\x5c\x91\xfe\xe6\x6c\x67\x38\x53\xeb\x54\x86\x8f\x51\x85\xd3\x49\x2e\x80\xde\xc2\xd5\xc1\x0d\x6d\xbd\x1a\x84\x88\x6e\x03\x49\x1d\xda\x24\x65\xa2\xb2\x88\x03\x13\x99\x2d\x05\x1d\xbf\x1d\xb0\xb1\x1e\x28\x01\x31\x2e\x03\xdb\x79\x84\x0f\x43\xcf\xf3\x46\xdd\x65\x62\xfa\x71\x62\xcb\xbe\x4e\x3b\xb8\x7e\x9d\x10\x81\xbb\xbe\xf8\x59\x10\x65\xcb\xc2\x4c\xb9\xec\xb7\x93\xba\x6b\x6a\x44\xbc\xf1\x03\x4f\x87\x42\xf7\x5c\x7a\x3c\xaa\x4d\x14\xee\xa8\xd9\xed\x97\x83\x35\xa6\xff\x01\x7d\x81\x0a\x4f\x0f\xe7\x56\xe4\x87\x1b\x9f\xd8\x86\x29\xa6\xca\xb6\x3c\x0f\x2a\x57\x58\xb3\xf1\x01\x78\x57\xa3\x35\x96\x89\xe0\x36\x36\x7c\x7d\xcb\x26\x04\xed\x0a\xba\x77\x8b\x7a\xcc\xb7\x08\x20\x24\x25\x6d\xbc\x27\x2c\xd9\xbc\x31\x0d\xc1\xa0\xa3\x3d\x2b\xf9\x7e\xb0\xdf\xa1\xc3\x5b\xf8\x40\x7f\x07\x4f\xa8\x3f\x2d\x12\xc0\x43\x05\x53\x9d\xc6\xb7\x07\x2f\x42\x13\xe1\xed\xd9\x93\x0e\x0a\x0a\xdb\x6a\x74\xb7\x61\x41\xea\x26\xf8\x89\x8e\xd4\xc1\x87\x5a\xb3\x83\xe9\xae\xc3\x1f\xe3\x0e\xcf\xae\x12\xcb\xed\xde\x42\xdb\x0e\xec\xe4\xbb\x8f\xde\xb3\x67\x1e\x57\x5d\xf8\x9e\xea\xe8\x19\x19\x8e\x8e\x55\x50\x8f\x37\xa0\x21\xf1\xfe\xee\x6b\xdc\x21\xe7\xe6\xee\xc6\xed\x76\xff\x90\x08\x22\xd5\xb4\x5f\x83\x7e\x37\x21\xc8\xc0\xd8\x6f\x73\x44\x6b\xca\x73\x37\xdc\xb7\xc4\x0f\x7a\x37\x57\x6c\xd7\xd3\x41\xd6\x59\x5d\x53\xc5\x73\x4e\x60\xb9\x2c\x25\x35\xb1\x53\x9f\x74\xcc\xcf\x27\xeb\x32\x1b\xa9\xef\x00\xad\x66\x81\x3d\x62\x1e\x7c\x13\xcb\x48\xf6\xc4\xaf\xf9\x19\x0f\x6b\x23\x86\x4e\xa1\x0f\x51\xd7\xfa\x61\xea\x1c\x88\x00\x4e\xf2\x28\xc5\xaa\xa4\xb8\x94\x73\x84\x54\x20\x94\x81\x3c\x9d\x49\x5b\xe3\xca\x5f\xf6\x08\x03\x61\xa4\xc3\x68\x42\x6b\xf3\x70\x71\x8b\xa2\xec\xdd\xf3\x5f\x07\x89\x3a\xec\x07\x41\x73\xb4\x48\x0c\x61\xfc\xe8\x61\xd5\x4a\xb8\xbc\x69\x20\x5c\x52\x83\xfa\xdf\x31\xee\x95\xc4\x85\x35\x42\x9b\x07\x53\xca\x8a\xbb\x88\x33\xb4\x95\x3e\x4a\x85\x2d\xa9\x90\x55\x1a\xe0\x50\x9a\xaf\x9f\x1a\x08\x7f\x56\xcd\xbb\x57\x3f\x91\xf4\x5b\xc3\x1a\x0c\x2c\x08\xf8\xab\xce\x88\x35\x6c\xc7\x31\xbe\xa9\xfb\xe8\xd9\x96\x11\xb7\x74\x89\x5e\x6c\x1b\x6a\x2b\x02\xe1\xd8\x3f\x26\x2f\x36\x3b\x00\x70\x2f\xcd\x09\x9b\xa0\xd5\x65\x3c\x8f\x02\x38\x8a\xbb\x00\x5c\x11\x8c\xca\xe6\x37\x26\xec\x04\xe7\x57\xdf\x23\x33\x24\xdb\x2a\xb5\xc6\xfa\x1b\x91\x92\x00\xd4\xbe\x56\xbd\xc8\xb8\x28\xc7\x9f\x2a\x18\xc3\x97\x39\x84\x33\x41\x63\x85\xcd\x61\xb0\xdd\x3f\xf9\x87\x37\xb5\x25\x00\x38\x76\xf2\xff\x40\xe2\x9f\x43\xa9\x1b\xa1\x8d\x53\xc4\xa0\x16\x83\xbc\x38\x17\xd4\xca\x4e\xac\xe8\xe4\x9c\x8f\x8d\x18\xd9\x14\x14\x9c\x2f\x52\x99\xab\x63\x9b\x3a\xdc\x06\xf7\x3e\xdd\xdb\x1e\xaf\x82\x02\x38\x4e\xe5\xbd\x66\xe8\x11\x32\x65\x74\x15\xd8\xfc\x90\xf9\x31\x2b\xe2\x9a\xb3\xc0\x77\x44\x41\x2b\xdf\xaa\xbb\x47\x01\xff\xe9\xdf\x90\x64\x93\x45\x66\x3b\x08\x81\xa1\x67\x1f\x9b\xa7\x23\xfc\x33\xae\xf3\x02\xfd\x7d\xac\x31\xbe\x90\x1c\x1c\xa6\xe5\xa6\x21\x39\x32\x52\x00\x82\xfe\x9c\x3a\x4d\x87\x6d\xa4\xf8\xff\x95\x06\xac\xcf\x77\x38\x6b\xff\xe6\x2d\x99\xc3\x57\x4e\x2b\xa8\x12\xb7\x6d\x66\xde\x7b\xda\x26\x13\x97\xfc\xb8\x9c\x8a\x90\x81\xcc\x2d\x49\x14\xb8\xfd\x54\x6a\x87\x1b\xc5\xc4\x74\xfb\xda\x0e\xa1\x8c\x38\xf0\xf6\xa3\xc7\x67\x70\x6e\x6f\xfa\x5b\x59\x44\x10\x55\x01\xdc\x32\x8e\xd9\x7f\x92\xa9\xcf\x51\x30\x87\xbc\x5e\xe7\x7e\xd1\xc2\x61\x7d\x44\x82\xa1\x05\xa8\x6d\xd0\x23\x78\xf0\xa8\x9e\x21\x2a\x34\x27\xc0\x4a\xc2\x55\x4b\x72\x4a\x9f\xee\xa2\xc8\x86\xf6\x1a\xfb\x04\x77\xd6\x20\x42\xad\x62\x3c\x8e\xc9\xca\xd5\x12\xb6\xfd\x03\x15\x81\xc6\xc3\xaa\xdb\x61\x05\x82\xed\xe5\x31\x42\xa9\x86\xbc\xf1\x1a\x5c\xc8\xe3\x90\xb5\x89\x24\xb2\x48\x18\x80\xc1\x35\x7a\x85\xe0\xe7\x0c\x29\x82\xee\x87\x0c\xf4\xcb\xbf\x9c\x17\x0a\x38\x57\xc3\xb3\x3d\x24\x05\x7c\x05\xcc\xb3\xdc\x31\x52\x0d\x9a\x0f\xec\x68\xff\x92\xcc\x1f\xde\x32\xad\x66\xdf\x5b\xe2\xd2\x24\xd6\x9f\xd6\xd9\x6c\x01\x07\xf1\x2b\x6b\x66\x64\x65\x41\x4f\x7c\x6b\x0f\x46\x1d\xb8\xc5\xd5\x29\x00\x3e\x71\xc6\xc6\x94\x76\xf8\x02\x6a\x8b\x0b\x2e\xc5\xbe\xd8\x44\x40\xbe\x3c\x17\xfd\x82\x76\x69\x33\x73\x96\xca\x1b\xba\x75\xde\x1f\x71\x22\xce\x71\xcf\x0d\x57\x15\x77\xec\x3e\xb1\x7c\xd8\x11\xdf\x78\xd9\x48\x1f\x60\x2f\x56\x9e\x9e\x6b\x30\xa3\x2c\xee\xf3\x1d\x02\x15\xd0\xf8\x1a\x6a\xea\xe5\xbb\xaa\x60\x34\x98\x2f"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12534 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA23 "\x81\x7a\x30\xf6\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xd5\x7b\x58\xbd\x43\x8c\xca\x2f\xaa\x55\x1b\x63\x80\x57\xa2\x58\xdc\x0b\x7c\xa9\xb6\xba\x80\xf6\x7a\x07\xae\xc8\xd1\x0c\x42\xdc\xb0\xa7\x25\x2a\xbb\xf2\xf5\x10\x8e\x89\xdf\xc8\x6d\x69\x76\x21\xf2\x6e\x2b\x7d\x67\xc1\xe2\xcf\xa8\x1d\xa3\x4b\xa0\xf0\xf1\xc6\x89\x3c\x33\x5a\xc3\x69\x0f\x6c\x82\x65\x06\xdc\xc1\x59\xca\x90\xfe\xb3\x0d\x6f\xf9\x40\x87\xb2\xeb\xa9\x54\xfb\xfd\x60\x76\x38\x5c\x5a\x5d\x1e\x33\xf8\x70\xc5\x5f\xd2\xa7\x94\xca\x82\x75\xf9\x12\x18\x9e\xc8\x24\x1c\xc2\x2d\x78\x34\x9f\x72\x84\x1a\xc9\x23\xac\x06\xc6\x96\x19\xec\x07\x3a\xbc\x29\x4a\x02\x64\xc8\xda\x23\xa8\xbb\x2e\x33\x92\xa5\xba\xa4\x47\x62\x51\x4a\x0d\x3c\xcc\xb7\xd9\xf8\x7a\x6a\x43\x3e\x94\x52\x54\x35\x89\xff\x84\xd7\x7b\x40\x53\x90\x20\x9a\xbf\x7f\xc1\xb4\xbb\xf3\x30\xe1\x1c\x11\x36\x5b\x75\x01\x1e\xd9\x7c\xde\xf7\xe6\xc7\x70\x23\xf9\xe1\x63\x6e\x45\x31\xca\xf5\x09\x90\x9a\x13\x95\x62\x4b\x44\x06\x6f\xd1\x10\x9b\xf3\x05\xdb\xf8\x13\x87\x26\xcf\x2a\x04\xc6\x04\xbf\xf6\xa6\x24\xdd\x2b\x59\x75\xc5\xe0\x21\xf4\x15\x7b\x55\xdb\x3c\x4e\x03\x9f\xc6\x07\xe3\x23\x61\x5e\x5a\x8a\xd5\x5d\x43\x15\xdf\xc3\xa8\x2a\x84\x8e\x58\x4f\xcb\x95\xab\x2f\xed\x7a\xa1\xbc\x0b\xa2\x11\x6a\xd1\x4f\x5d\xdf\xd7\x85\x88\xf0\xdd\xf1\x23\x1a\xb6\x2f\x12\x6c\xe4\x11\xb2\x35\xae\x76\x78\x14\x42\xcd\x74\x2c\xf0\x8a\xff\xc7\xa4\xab\x92\x39\xb1\x16\xd4\xb1\x3d\x95\x02\x67\x61\x99\xd4\x0b\x9b\x3f\x6b\x19\x39\x3a\xa7\x58\x4c\xcd\xbe\x57\xb6\xb8\xb0\x75\xe8\xe5\x33\x8d\x32\xdb\x81\xb8\x4d\x1e\x90\x3a\x42\x89\x36\x5e\x31\xb3\xc1\x7f\xbb\x75\xaf\xef\xaa\xa4\x65\xd2\xbd\x59\x06\x1a\x7f\x97\x51\x6a\x0f\x06\x6c\x15\x18\x27\x8f\xcf\x45\x4b\xc2\xa2\x38\xc8\xf1\x5d\x39\xf6\xed\xe4\x67\xc9\xf9\x10\xae\x3d\xf8\xe6\xd1\x3f\x1b\x57\x21\xe8\xd0\x26\xe8\x1a\xe9\x73\x1f\x02\xc8\x93\xe7\xe1\xbd\x2c\x9f\x56\xdb\x76\xb3\x96\x00\x74\x95\x52\x7b\x11\xab\x8e\xa9\x5a\x83\xb4\xa3\x75\x46\x3b\x97\x9c\x81\xd3\x28\xf8\x1d\x7d\x6d\xd3\xfa\xde\x51\x7d\xa5\xe9\x28\xad\x2b\x84\x57\x00\x93\x60\xca\x09\x8b\x8a\xe6\x12\x1b\x40\xdf\xc9\xa4\x20\x66\x2f\x90\xf0\x74\x99\x9d\xe8\x49\x36\x72\x6e\x10\xe0\x49\xc1\xca\x1d\x4c\xc6\xdb\x9e\x19\xad\x8b\x1d\xe0\x13\x38\x48\xfc\xe2\x31\xeb\x48\xd5\x5a\xac\x76\xa1\x74\x4f\x95\xc3\x28\x0c\x6f\x34\x08\x90\x9a\xc1\xee\x9f\x8c\x34\x9c\x47\xb6\xa8\xfc\xa7\xd5\x08\x41\x78\x99\x25\x86\x49\x41\xd2\xb0\xcd\xc4\xf8\x43\x36\xe8\xf8\x45\xc4\xf1\xec\x6e\x07\xd9\x03\x65\x14\x86\x26\xed\x47\x80\x24\x85\x3a\xf1\x84\x3c\x36\x1e\x49\x7e\x23\xcb\x50\x3b\x11\x10\x96\x7b\xe2\x87\x87\x82\xdb\x54\x41\x80\x63\x4c\x9a\x96\x76\xff\xb6\xa6\xd9\xa6\x9d\xc6\x63\xf4\x9a\x97\xbb\xba\x4a\xb0\xe3\xe9\xa4\x12\x98\x1d\xd5\xe3\x41\x79\x69\x54\x0c\xcd\x53\x39\x18\x2b\x82\x18\xf1\xc3\x8f\xa9\xff\x44\x24\xfc\xdf\x71\x7e\xe6\xf4\x10\x96\x02\x3e\xc6\x40\x86\xac\x48\x9b\x8b\x54\xda\x28\xd3\xe7\x41\x5a\x77\xb6\xd4\xaf\xf8\xb6\xd0\x26\xd6\xba\xb9\x40\x6e\x80\x55\x95\x46\x05\xa3\x45\xf3\x28\xc8\xe4\x4c\xd9\x5d\xb7\x69\x48\x0b\xa7\x44\xc6\x49\x76\x64\x58\x49\x26\x4e\xa7\xc5\xa0\xc2\x28\x86\x1f\xdd\x32\xe5\xad\x58\xf2\xf6\x1b\x80\x61\x63\x35\xe5\x90\x42\xe8\x03\xc8\xe3\x72\x8f\x6f\xee\x06\x34\xa8\xff\x31\x19\x97\xe5\x27\x73\xc4\x5a\xfa\x30\x30\x13\xda\x04\x83\x5d\x8f\xce\x8d\x0c\x63\x5f\xb0\x2d\x95\x50\xca\x8b\x2c\x92\xa8\xef\x90\xbf\xb2\x3c\x43\x9a\xad\x3b\xec\xa6\xf7\x67\x99\x25\xd3\x9e\xa6\xc7\x4d\x57\x06\x95\xdb\xb0\x88\x8f\x7f\xbb\x66\x8c\x88\x8c\x6d\x34\x0b\xdc\xaa\x8f\x34\xec\x71\x95\xbc\x06\xf7\xf1\xee\xe0\xe0\xb5\x34\xf6\x45\x62\x7e\x16\x01\xf8\x55\x66\xab\x01\x2b\xaa\xd6\x6b\x65\x30\x7c\xcc\xa1\x3e\x08\xdb\xfa\x43\xf7\xa4\x92\xed\x32\xdc\xbb\x73\x7a\x0d\x03\x55\x04\xca\x47\xa0\x3a\x94\xf5\xd6\xe8\x4b\x24\xf6\x02\x86\x88\xda\x7b\x7f\xff\x9f\x08\xcb\x8d\xf7\x5f\x92\x97\xf1\x0c\x55\xc0\x01\x1c\xe1\x3a\x0a\xbc\x74\x17\xaf\x04\x7e\x37\xd5\xbf\x6a\x18\x8e\xd5\x33\x19\x7a\x08\x0a\xbb\xa7\x00\xa7\x47\xd7\x5a\x3c\xd7\xca\x21\xbc\x08\xa8\xd3\x27\x5c\x3a\x89\xfe\xea\x4f\x7d\xfd\x8c\x19\x47\x83\xe6\xb9\x65\x4c\xa7\x85\x7c\xa7\xb7\x84\x9e\xba\x94\xb9\x48\xc0\x04\x7f\x2e\x06\x2a\x6d\x18\xc4\xc3\x3a\xfc\xb1\x96\x0d\x05\xbc\x17\x7e\xe9\xe0\x6d\xdb\x05\x51\x5d\x8f\x34\x4e\xd1\x6f\x95\x6a\x60\xd0\xd4\xec\xd5\xa5\x7e\x57\x23\x93\x07\x6d\x32\x98\xe7\x5c\x91\xf9\xf6\xf3\x4b\x92\xe4\x84\x5b\x98\x15\x81\xa6\xf0\xc0\xc9\xf3\xb9\x20\xcd\x24\x47\xad\xbe\xcc\x98\x70\xe3\x02\xd9\x9e"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12535 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA24 "\x81\x7a\x30\xf7\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x8a\x7d\xb6\xa2\x17\x1e\xf5\x12\x19\x19\x67\x28\xac\x03\x33\x19\x6a\x66\x92\xa6\x91\x38\x31\x2a\x76\x09\x4d\x95\x47\x7e\xae\xdc\x34\xfc\xcd\xf8\x42\x63\x30\x79\x1b\xb5\xaf\x1e\xed\x89\x9f\x67\x46\xd4\x44\xba\x53\xf7\x2c\xc7\x21\xf9\x24\xd1\x79\x0d\x92\x93\xf5\x7e\xab\xdb\x2c\x35\xd1\xa9\x46\x8f\xc3\x28\xd7\x32\xc3\x49\xf2\x98\x43\xd3\xe1\x37\x9a\x61\xc1\xa1\xd9\x2a\x09\x6a\xa8\x29\xdb\xb4\xd5\x00\x54\xe6\x12\x84\x76\x81\xd5\xc9\xff\xee\x5a\x75\xe8\x33\x25\x72\x22\x73\x35\x5f\xc6\x99\xa1\xea\x12\x32\x91\x43\xaf\xb1\x86\xff\x60\x58\x91\xbb\x7d\x43\x68\x62\x56\x78\x0e\x69\x94\x5e\x6a\x43\xf4\x89\xf8\x7b\xa0\xd8\xb8\xe0\x52\x11\x66\xe8\xf3\x15\x00\xc8\x3a\x3d\x36\x40\xc3\x88\xbb\x19\xbb\xab\xdb\x54\xe5\xc3\x6f\x57\x66\xe3\x91\x84\xd0\xdd\x2f\xe0\x56\xdd\xdb\x83\x7f\x60\x6c\x34\xe6\xae\xec\xdf\x6f\xf4\x66\x10\x66\x4e\xe3\xd6\x9e\xf4\xa9\xd6\x4c\x91\x8b\x41\xf9\x43\xdf\x0a\x89\xff\x44\x2b\xb6\xb9\xe4\x79\x4a\x94\xcf\xdb\x25\xd7\x8e\x9b\x5a\xfd\x77\x85\x32\x11\xbe\xad\x3d\x57\xe3\xae\xa5\xe3\x12\x51\x96\x52\x33\x0d\xb3\x60\x21\x72\x1b\x1a\x88\x04\x16\x3b\xe8\x1a\xac\xc3\x84\x0c\x00\xa5\x97\x67\xcb\x37\x42\x8b\x61\x9d\x55\x24\x21\x0c\xba\x87\xe7\x24\x72\x6b\xa8\xb6\x6e\x77\x47\x93\x58\x27\x1e\x44\x15\x95\x96\x50\xff\xf4\x74\xb9\x31\x6b\xfc\xc9\xfd\xfb\xe8\xa4\x3f\x93\xad\xff\x51\x13\xdc\x3a\xfa\xea\xb0\xff\xd4\x3a\x53\x22\x13\x2f\xbd\x9a\xf8\x23\x9b\x1f\xb3\x53\xdc\xe8\x77\x87\x32\x41\x5e\x86\xc7\xf2\xe1\x5c\xa3\x33\xbf\xf3\xbc\x1e\xdf\x1f\x30\xdc\xfd\x9d\x72\xa9\x5a\x79\x62\x58\x92\x9c\x1f\xb5\xd9\x65\x85\x89\x02\x3a\xcc\xbf\xb3\x87\xf0\x63\xf0\x5b\x11\x8c\xa2\x34\x5e\x6b\x96\xcb\x19\x1d\x5a\xb7\x87\xb7\x0e\x4a\x40\x6f\x74\xbd\x0e\x73\x69\x71\x3e\xc7\xf8\x4e\xa6\xe6\xb5\x38\xfb\x7b\x77\x20\xcd\xe5\x5f\x76\x31\x1a\x86\x7a\xe0\xaa\x4b\x4d\x6b\x25\x8a\x69\x43\x7b\x7d\x6a\xe7\x8d\xa4\xf6\x95\x7c\xba\x32\x64\x51\x62\x24\xaf\x03\x0b\x01\x03\xc3\x5a\xb4\x20\x14\x4e\x4f\x5a\xbb\xb2\x93\x91\x19\x97\xcc\x8b\x2a\x61\x03\x49\xbd\x01\xe3\x80\x12\xd7\x71\xf7\xe0\x9d\x30\x1c\xaf\xd5\x25\x2d\xf0\x10\xef\xbe\x1f\xa3\x32\x77\x21\xc3\x8b\xc6\xb2\x7d\x97\x5e\x10\x13\x6f\x4e\x3d\x54\x18\xd7\x17\x3a\x10\x9f\x11\x55\xfb\x19\x1f\x53\x34\x96\x32\x95\x20\x26\x4c\x54\x2e\x26\x2b\xa3\x8c\xf9\x43\x37\xf5\x14\x9c\xdf\x67\xf2\x41\x16\xb3\xd9\x7e\x17\x6c\xde\xf8\x41\x13\x51\x87\x6a\xa4\xfa\xa6\x49\xb5\xc7\x00\x64\xf9\x26\x46\x02\x15\xf5\x28\x16\x3f\xeb\xb1\xfe\x0d\xad\x2e\x62\x8e\xeb\x67\xdb\xf8\xd9\xa0\x47\x6e\x7a\x67\xad\x3c\xd7\x3c\xfe\xb3\x2f\x3f\xb2\x8d\x5c\xf4\x3f\x60\x29\xde\xba\xcd\x7a\x1c\x0c\xb8\x30\x50\x2a\xd3\x9f\xfd\x7d\xd1\x49\xc7\x22\xef\x50\x12\x24\xa6\x57\x5e\xfc\xc6\x9e\x87\xa4\x41\x55\xaa\xd7\x3b\x77\x2a\xa3\xcf\xd7\xe5\xff\xe9\xf1\xd0\x71\x17\xe3\x81\x56\x08\x00\xb5\xf3\x46\x7a\x13\xc4\x60\xc0\xaa\x33\xff\x84\x22\x60\x5c\xe1\x04\x43\x6e\x7c\x94\xd2\xe3\x89\x5d\x25\xb7\x83\x75\x3b\x84\x9a\x37\x57\xb4\xb0\x2a\x2c\x49\xba\x70\x51\x6a\xdd\xb9\xf8\xf2\xf0\x8c\x45\x2e\x0e\xa3\x7c\xd9\x4b\xae\x15\x3d\x75\x83\xf0\xc9\x77\xa3\x91\xdd\x52\x93\x6f\x21\x59\x9d\x60\xf0\x3c\xa7\x7c\xde\x61\x63\x5d\x08\xb1\xa9\xa3\x57\xa7\x8a\xdd\x0f\xb1\x77\x84\x0b\x26\x91\x03\xe9\x37\xd4\xb6\x05\xff\x32\x1a\xaa\xc6\x59\xf7\xf1\x59\x61\xcb\x86\x82\xb5\x24\x3b\x9c\x6b\x32\x7e\x3f\x08\xf8\xf4\x42\x08\x5b\xf5\x94\x1a\xe9\xc1\x09\x30\x11\xf2\xcf\xb7\xeb\x9f\x45\xf9\x16\xba\xa7\xa7\x55\x0d\xd4\x8d\xd3\x3b\xe2\xea\xe7\xea\x41\x42\x13\x35\xe9\x89\x19\x48\xcb\x2b\xcf\x7f\x78\x36\x76\xca\xb3\xb3\x35\xc0\xf8\x07\x0e\x49\x50\x0c\x2f\x82\xd9\xfe\x1d\x0f\xa2\xc5\x58\xc3\x5a\x99\xc9\x26\x72\xe3\xb3\x6b\x0d\xee\xf6\xf2\xc0\xc5\x6c\x76\xab\xdf\xfd\x66\x7d\x37\xc5\x0f\xe9\x92\x5c\x67\x7e\xf7\x03\xcb\xe5\x3b\x80\xc9\xcf\xe2\x3d\xc9\xde\x07\x13\x74\xd2\x00\x0a\x9a\x08\x60\x65\xfc\x91\x85\x7c\x0b\x30\x23\x3f\xf1\xb9\xdf\x97\x94\x7d\x58\x70\x5b\x02\xb1\x7f\xa6\x8b\xad\x35\xd3\xbf\xf2\xea\x9e\xef\x8f\xec\xd9\xaa\x2c\xc7\xd0\x9b\x35\x25\x97\x00\xdf\x93\x08\x39\xff\x25\x24\xa2\x48\x77\x39\x12\x69\x31\x2d\x50\x82\x36\x1a\xd3\x76\x2d\x5e\xcf\xe7\x21\x0f\x56\xef\xfe\x29\x2d\x26\xbe\xec\xd0\x4e\x51\xac\x17\x14\x39\x6f\xab\xb3\x2c\x36\x30\x5d\xe5\xee\x82\x2a\x57\x87\x5b\x11\x80\x4f\xfe\x00\x77\xa3\xcf\x12\x6d\x2d\x38\xcd\x0b\x0f\x01\xa2\x71\x67\xb7\xba\x60\xb2\x7e\x07\x10\x40\x07\x18\xfa\x30\x89\x81\x63\xf6\x9e\x7d\x31\x78\xba\x4e"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12536 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA25 "\x81\x7a\x30\xf8\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xa4\x2f\xf7\xa1\xa8\xd6\xd1\x73\x60\xa0\x25\x28\x25\xea\x7f\xc8\xb7\x34\x70\x05\x0c\x03\x9c\xa8\x4f\xed\x1f\xb3\x3f\x42\xbf\x30\xd4\x18\x6c\xcd\xa7\xa3\x34\x70\xde\x1f\x11\x16\x30\x84\x5d\xea\x95\x06\x78\x43\x28\x11\xd3\xe7\xe6\x16\x7f\x52\x2e\x54\xe0\xd2\x14\x7c\x75\x97\x2b\x5a\x8c\x83\x64\x93\x35\xc5\xf3\x95\x8d\x60\x17\x32\xcd\xf4\xc3\xa1\x0e\x94\x50\xc8\x27\x80\xdd\x9e\xa7\xc2\xcb\x72\x9c\xf5\x2b\xcf\xd5\xc5\xf4\x09\x5e\x0f\xe3\x38\xe9\x2d\x44\x25\x2f\x7a\xf9\x87\xb9\x65\x3c\xf9\x5f\x7e\x1e\x6a\x2a\x38\x41\xb6\xb1\xc9\xbf\x22\xd9\xfa\x42\xf3\xbd\x81\x4f\x93\x00\x4d\xc2\xf7\xc9\x08\x01\x93\x96\xbb\xc7\xfb\x18\x48\xea\xa4\x08\x5b\xff\xf7\xbf\x1b\xf7\xb6\x95\x85\xcd\xd3\x32\x29\xd4\x5d\xc9\x43\x01\xe2\xb1\x80\xca\xbe\x98\x3c\x2e\x51\xf7\x18\x85\xb7\x2a\xf3\xc5\xea\x89\x9c\xb8\x63\xe6\xfa\x79\x21\xc4\x44\x79\xb6\xf1\x32\x97\x6a\x4f\x97\x6a\x43\xc1\xa7\x8c\x24\x8f\x1e\x98\x8f\x8a\x58\xae\xe3\x94\x91\x62\x2b\x5b\xff\x4d\xcc\x05\xfd\x4f\xe7\xa6\xf3\xe2\xbf\x5c\x94\xa5\x5b\x2c\x31\xfd\x27\x97\x51\x5a\x8b\x86\x70\xbc\xa3\xfd\x85\xdf\xe9\xb6\xa5\xfa\x64\xe9\xc3\x9a\x15\xff\xc3\x16\x15\xe0\xf4\x4c\x65\xe9\xbb\x42\x02\x91\x03\x61\xdf\xe3\x3a\xa3\xb1\x88\xab\xb8\xb3\x3a\x3f\x7c\x32\xd9\x83\x3f\xaa\xbc\x4c\x19\xe8\xf1\xd4\xa2\x08\xe9\x9c\xa5\x49\x51\x5b\x9b\xd2\xdc\x55\xf2\x2e\x1b\x87\x68\xd0\xc1\x9b\x83\x1a\x88\xf0\x61\x1b\x9a\xe7\xcd\x7b\xca\x2e\x2b\x61\x9e\xdc\xdd\xc6\x0c\xa2\x27\x38\x95\x44\x81\xa6\xd2\x92\x78\x02\x48\x88\x35\x6e\x98\xb7\x44\xaf\x8d\x1c\x52\xac\x94\x20\x1f\x0c\x87\xd4\xd9\xf0\xb1\x5b\x29\xfe\x7e\x3a\xdd\x76\xb2\xee\xfd\x23\x51\x9c\x30\xf1\x46\x4a\x64\x10\x7b\xf9\x10\x45\x4b\xd6\x86\xe3\x9c\xaf\x07\x39\xd4\xa5\x5a\xda\xaa\x2f\xfa\x04\x26\xd3\x75\xa4\xc2\x52\xba\xae\x31\xdb\x76\xa2\x07\x8e\x4b\xb2\x40\x47\x60\x31\x7d\x3c\x64\x6f\x15\xf0\x35\x32\xd5\xe8\x8d\x03\x12\x97\x75\x26\xb4\x39\x0e\x6e\xc8\x0f\x46\x1f\xfc\x21\x9a\xc9\xe8\x64\x63\x98\xc9\x75\x95\x8c\x8d\x50\x06\xef\x1e\x46\x06\xfb\x79\xc8\x43\xd4\x1a\x1f\x09\x46\xff\x52\x28\xff\x80\x1f\xe0\x92\xe0\x0f\x3c\xb5\xf0\xa0\xfa\xfa\x63\x83\x0d\x0a\xbe\x9c\xbf\x38\xeb\x19\xdd\xa7\x43\xc7\x0a\xeb\xed\x69\x09\xf6\xc4\x98\x24\x93\x89\xfe\x8f\x45\x44\x2c\x8a\xe2\x80\x05\x09\x30\xbb\xf3\xde\xeb\xf5\xf6\xca\x07\xcf\xd2\xf3\x4e\xb3\x87\xbb\xf3\x3a\xb8\xd0\x57\xaf\x26\x6d\xd8\x7d\xad\x54\x97\x2a\xd2\x9f\x25\x06\x7f\x85\x7f\x9e\x46\xa1\xfc\xea\x47\x97\x7f\x0a\xe5\x4f\x67\xdb\x53\xbf\x44\xa0\x8d\x83\x83\x24\x87\x52\x64\x0a\x0e\xb2\x64\xaf\xa4\x26\x20\x24\x83\xa2\x0d\x08\x21\x1b\x64\x8c\xd8\x25\x78\x38\xe0\x24\xb6\x84\xc1\x52\x8b\x40\xe4\x74\x7f\x5c\x7b\x1a\x5f\x9a\x3f\x1c\xfc\xc1\xbb\xd5\x34\xa1\xec\xb4\xb3\x01\x7f\xfd\x99\xa6\x77\xe9\xd6\xc5\x6a\x77\x31\x7a\x4e\xc7\x54\x6a\xf7\xf3\xf2\x0e\xec\x5b\x27\x80\xfa\x4f\x50\xf1\x96\xea\x2f\x6f\xb9\xce\xe5\x8a\x51\x9b\xdf\xa8\x60\xc3\x98\xde\xdb\xef\x02\xad\x05\x24\x5d\x4b\x46\x5d\xf3\xfc\xaf\xdf\x2f\xb6\xfc\x22\x2d\x80\x63\x3e\x29\xa3\x3b\xcf\xbb\x6d\xa3\xa7\x0b\xe1\xb1\xdb\x73\x45\x8e\x0d\x51\x0a\x02\xec\x0f\x17\x8a\xd7\x6f\x68\xdf\x17\xf1\x64\x68\x0e\xa2\x22\x7a\x03\x25\xd8\xaf\x0b\x62\xb8\xea\x06\xe6\x94\x21\x99\x1c\x2f\xb4\x65\x7c\x71\xa3\x5c\x3f\x33\x28\x63\x09\xbb\x66\xeb\xcf\xd8\x77\x5f\x7e\x42\xee\xb8\x77\xb3\x8f\x7c\x8c\x8a\x1b\x5e\x3e\x78\x82\xdb\x16\x7c\x20\x2a\x99\xfb\x1d\xd6\xb0\x57\xc8\x44\x51\x88\xd4\x98\x67\xfe\x61\xdd\xb1\x24\xef\xa9\xad\xe6\x86\xf0\xbc\x0e\x97\x13\xca\x80\xa4\xf5\x00\x2d\x7a\x7d\x4f\x9e\xdb\x1b\x99\x15\x60\x47\xe5\x10\xce\x3d\x9a\x05\xf2\xa8\x61\xeb\x2f\xaf\xcc\x1e\xf5\x61\xdd\x04\xde\xe0\xb5\x03\x41\x32\x17\x35\x01\xbf\x0f\xff\x99\xf5\x42\x27\xdb\x2a\x55\x55\xc5\xe8\x6b\xf9\x3e\x67\x19\xb0\xc9\xa9\xbb\x0f\x83\x66\x8a\x74\x6c\xb2\x99\xcd\x2a\xcd\xb3\xf4\x7e\x53\xc6\x1c\x03\x86\x3d\x5c\x50\xe5\x53\xe9\x77\x4c\x0b\xfa\x69\x33\x35\xcd\x09\x30\x3b\x1e\x8a\x19\x70\x6c\xc1\x39\xca\x68\x89\xb1\xf5\x55\x62\x2b\xc7\x16\x8d\xe2\x9d\x02\x74\x9a\x3d\x06\x38\xb1\x24\xa6\x31\x65\x85\x72\xf7\x4e\x45\xa1\x1f\x97\x51\x7c\x3e\xf6\xf1\xd5\x33\x40\x7e\x98\xee\x5a\xe1\x60\xf9\xf2\xc1\xec\xe6\x44\x8a\x5b\x9a\x2e\x20\x00\x4f\x7a\xb4\xff\xd0\x8f\xd4\x55\x3d\x30\x16\x65\x22\x1d\xeb\x9f\x22\x6f\xfc\x78\x8a\x66\xcc\xdd\x42\xb3\x74\x96\x83\x10\x95\xcc\xc8\x26\x0e\x39\x00\xe7\xaa\xeb\xe6\x69\x18\x9e\x55\xbf\x59\x11\xaf\xdb\x2b\x71\x7f\xda\x87\xd7\xe9\xa6\xe3"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12537 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA26 "\x81\x7a\x30\xf9\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x94\x00\x4a\x3e\xad\x8f\x0e\x7d\x8f\x71\xcb\x78\x18\xe2\x88\x02\x45\x8a\xc2\x97\x24\x12\x91\xc1\xfc\x69\xce\x01\xbb\x7f\x73\xac\x55\xdc\x5b\x80\x20\x9f\x68\x43\xc2\xd7\xcf\x03\x6e\x1a\x6e\x7c\x9b\xd7\x28\x38\xb1\x47\x52\xe3\x9e\x6b\xa5\x3b\x95\xd3\x81\xd2\x5f\x82\x7a\xdb\xcf\x99\x2c\x02\xfa\x0d\x82\xd8\xb2\x33\x08\xec\x43\xca\xe9\x90\x7e\xbb\xb5\x04\xa4\xf7\xbd\x0b\x3d\x95\x2e\x90\xa8\x53\x3b\xe0\x6a\x60\x8b\x8e\x05\xd7\xe9\x25\x94\xb2\x7e\xb0\xc7\x99\xe9\x47\x61\xc2\x1b\x94\xed\x5a\x5b\xa2\x0e\x46\x5c\x47\x4c\x7f\x64\x2c\xb5\xc4\xfa\x90\x85\xba\xb3\xf6\xc3\x4e\xd6\x6d\x1e\x5b\x69\x09\x40\xc1\x22\x81\x6f\xc5\x7c\x8e\xdc\x4c\x42\x03\x4e\xdd\x80\x1a\x73\x51\xdb\x07\x1c\xfb\x0e\x59\x44\x93\xa4\xbc\x25\xe3\x3d\x5a\x7a\x2b\x32\x5b\x1b\xd0\xc9\xe5\xee\x35\x42\x95\xe0\xf0\xe9\x95\x41\x9e\x81\x79\xdc\x31\xda\x5c\x24\x82\xd2\x04\xa1\x3f\x84\xe3\xb7\xa6\xfe\x8f\x67\x7e\x7a\x12\xc5\x25\xed\x19\x99\x86\x57\x36\x79\x3f\x9b\x4d\x5e\xe4\xb8\x92\x22\x92\x5b\x3f\x77\x37\x9d\xa5\xa5\xa8\x16\x59\x4a\x05\x94\x6a\x4a\x01\x27\xa2\x9b\xba\x62\x14\x81\x0c\x0e\x05\x8a\xbc\x64\xba\x7e\x7d\x26\xd9\x9f\xe5\x66\xaa\x95\xef\xd9\x8b\x8b\x79\x40\x7e\x7d\x78\xb3\xb8\xf7\x72\x6d\x7d\xe7\xa9\xe8\x1c\x63\xe0\x9a\x24\x3b\x63\x49\xf3\xd4\xa7\x69\x92\xdb\xdf\x2c\x61\xe3\xa5\x4a\x48\xb0\xa2\x93\x79\x98\xc6\xb1\x7c\xfa\x5b\x09\x33\x2c\xae\x0f\xa6\xe0\xda\x4f\xee\x15\xc9\xd6\xc7\xf7\xa8\xf4\xcc\x0b\xfb\xb9\x98\x6c\xd9\x9f\xa9\xab\x59\x30\xdb\x0f\x61\x26\x60\x20\x3d\xd2\x81\x4c\x9b\xd6\x81\x2c\x36\x8d\x0b\x7e\xb9\x7e\xed\x8c\x82\x1b\x72\xa8\xbd\xe3\xc5\xc0\xdd\x6f\x4d\x38\xdc\x72\x0f\xf9\x68\x96\xfb\x16\x1a\x43\x7d\x9f\x8b\x6a\x53\x50\x51\x79\xc2\x74\xb0\xb6\x81\x4c\x15\x3b\x55\x61\x15\x10\x5d\x9b\x82\xce\x35\x71\xe4\x5c\x5d\x53\x28\x22\xdd\xc0\xc7\xb6\x85\x95\x40\x8e\x79\x5a\xb9\x29\x28\x64\xd3\xf1\xe7\xaf\x11\x81\xf7\x2f\xc3\x37\x92\xfc\xbd\x47\x41\xa6\x08\x5d\x5d\x66\x42\x92\x42\x54\x1b\x66\xe3\xd8\xe7\xab\xcb\x6b\xe2\x90\x57\x69\xaf\xf0\x09\xe1\xd4\xfc\x6d\x28\xc2\x30\x4b\x88\x8a\x66\x94\xae\xb0\x0b\x68\x30\x99\xea\x82\x9b\xba\x20\x0a\xb2\x0d\x4c\xea\x41\xc2\xfc\x44\xf1\xb7\x87\x30\xcd\xf8\xf4\xe3\x9d\xb5\x05\x93\xbd\x59\x68\xde\x40\x44\xb3\xac\x2d\x2a\xca\x31\x06\x54\x54\x2c\x04\xbc\xda\xc2\x43\x13\xb7\x45\xe5\x38\x8e\x93\xd0\xd1\xfe\x80\xea\xed\xe2\xff\x64\x9a\xec\xaa\x0b\x5a\x3f\x34\x85\x37\xb2\x45\x60\x5e\xef\xbc\x98\x4e\x0c\x76\x37\x1a\x68\x66\xb0\x87\x2b\xf5\x7f\x90\x67\x5a\x42\x58\x84\x5c\x9a\x67\xd3\x3a\xa7\x95\xff\xe6\x88\x3e\x65\xbd\x1a\x0a\xff\x59\x9d\x6a\x38\x96\xcb\x15\xe6\x60\xc3\x25\xd4\x90\xe8\xa1\x17\x66\xa0\xd0\xba\xd9\xc2\xc6\x2b\x6f\x1b\x76\x51\x75\x42\xd2\xba\x18\xc9\x06\xf4\xe0\xdd\x49\x7d\x04\x15\x5c\x09\xb2\x44\x86\x47\xe1\xa2\x2e\x71\x67\xba\xa9\xfe\xef\x41\x76\xd4\x09\xa4\xcd\xc3\x42\xbf\xcc\x5e\xd9\x6b\xc9\x60\x86\xf0\x4d\xd5\xd4\x7f\x39\xca\xa0\xfe\xbb\x56\x5d\x5f\x74\x8a\x2a\xda\x10\x7c\x36\xe8\x6c\x13\x3f\x14\x29\x6e\xfa\xf0\x0b\x75\x35\xac\xe6\x9b\x7f\x0e\x41\xc2\x2d\xf0\x73\x29\x73\xea\x93\x04\x84\xbb\x86\x54\xd0\xa0\x38\xa3\x6d\xf2\x6c\xb2\x59\x1b\x99\xb1\x60\x79\x6b\xa1\xd0\x1c\xe6\x2b\x57\x73\xcd\x9f\x52\x3c\x64\xbd\x3b\xc6\x1d\xc9\x54\x61\x8a\x4e\xda\x63\x6c\x7d\x37\xf2\xdd\xaa\x42\x28\x0d\x15\xb9\x34\xc0\x02\xbf\xe6\xe7\x6a\xbb\x1b\xce\x8d\x13\xd0\x69\x1b\x71\x3b\x77\xe6\x9c\xb6\x44\x1a\x26\xb4\x06\x88\x91\x9e\x7e\x35\x13\x10\x1f\xde\x55\xbc\x50\xe5\xcc\x59\x46\x5a\xb3\x31\x13\x9f\x27\x8d\xe1\x4c\xb3\xaa\xd0\x8c\x2c\xf1\x06\x5f\x51\xf9\x87\x41\xe3\xbd\xef\x02\x8b\x15\x12\x6c\x88\xa1\x84\x37\x47\x15\xa2\xc0\x21\xb6\x43\xa0\x99\x08\x09\x04\x77\x75\xb5\x65\xa6\xfd\xdf\x53\x9b\xa2\x34\xbf\x8e\xb4\xb2\x92\x02\xbb\x53\xf4\xd7\x2f\x00\x54\xc8\x34\xbf\xd4\xd3\x8f\xcd\x26\x81\x9e\xc3\xa5\x72\x61\x17\xa2\xfc\x15\x81\x61\xfc\x45\x25\x37\xaa\x7b\x38\x0e\x64\xfd\xa9\xd7\x50\xcc\xa1\xc3\xff\xad\xf8\x85\x09\xca\xf7\xa5\x6b\x54\x0e\x63\x93\xcc\x50\xb5\xec\xf9\xae\x8e\x87\x0f\x68\x1c\xf8\x6d\xdc\xf1\x17\xa0\xaf\x61\x9c\x18\xa1\xa8\xb6\xd0\xeb\x0b\x2b\x28\xe0\x58\xae\x49\x6f\xce\xd1\x60\xf9\xd6\xdb\xff\x18\xc3\xf9\xc4\xd3\x18\xfb\x9d\xc3\x1b\x98\x6e\xee\x3c\x3d\xe1\x8c\x65\x9b\x46\xca\x5c\xbc\xec\xba\xe8\xf9\x2e\x3a\x00\xb9\xda\x5b\x9e\x3d\xbd\xbe\x5d\x12\x67\xc9\x1b\x82\x24\xaf\x14\x2e\x0f\x40\x35\x47\xd9\x58\xd3\x0f\x8d\x47\x60\x80\xeb\xdf\x38\x70\xc1\x7c\xf2\x1a\x34\x7d"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12538 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA27 "\x81\x7a\x30\xfa\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x3e\x0a\xf1\xb9\xe3\x81\x69\xfe\xeb\x65\x5c\x2b\xbf\x8c\x22\x36\xf4\x41\xfd\xef\x48\x5c\x95\x5a\xbf\x7c\x42\x51\xc3\xd9\x35\xf8\x8f\x80\xba\xd7\x6f\x97\x0b\xcf\x25\xd5\xe7\x8f\x95\x55\xbc\x78\xba\x75\x9f\xb9\xf2\xd6\xe2\xdb\x2f\x42\xa2\x04\x2a\xa3\x66\xca\xc5\x9e\xa0\x9a\x5a\x08\xa2\x8e\xd0\x3c\x89\x3a\x02\xd8\x7c\xd8\x4a\x7e\x0b\xd1\xbb\x59\xa5\x45\x17\x64\xc2\x49\xc2\xd0\x00\xb3\xd5\xfb\xbb\x61\x71\xeb\x24\x42\x3d\x23\x91\xcb\xc7\x51\x09\xd8\xc9\x49\x6e\x8f\x78\x14\x73\xe7\x00\x74\x6c\xdc\x12\xd3\xe6\x3e\x86\x95\xaf\x09\xef\xdb\x4e\x44\x55\x81\x7f\x65\xe1\x8c\xb5\x9b\x59\xda\xdd\xfa\x45\x6f\x4b\x71\x41\xb6\x42\xa4\x47\xf2\xcd\x48\x8e\xb3\xe1\x14\xf5\xe4\x4a\x57\xad\xde\x83\x26\xf3\x76\x0b\x6d\x72\xf6\x26\x86\x39\x59\x4e\xbf\x35\xcf\xd7\x3a\x16\x11\x4e\xfc\xf9\xf7\x8b\x20\x1f\xc2\x82\xb6\x52\xdd\x96\x71\x11\xb6\xc4\xdf\x7b\x26\x1e\x13\x2c\x9e\xa9\x86\x6d\x20\x4a\x20\xdb\x39\x90\x7b\xde\xf1\x2a\xce\x08\xf3\xc5\xdf\xad\xd8\x47\x3d\xe6\x64\x6d\xc1\xc6\x68\xf3\x1c\x2f\x86\x0f\x7a\xe4\x73\x53\xdd\x14\x5f\x76\xbf\x88\x46\x5c\xe7\xf8\x6f\x7b\x18\x62\x46\x26\x8e\x63\xef\xed\xcd\xb4\x25\xa8\x01\x23\xc9\xd5\xca\x61\x86\xe5\x6a\x27\xb6\x94\xf7\x43\x20\x0a\x79\x18\x89\x7d\x8c\xeb\xd5\xd2\xed\x4f\x17\x49\x67\xdb\x5e\xd0\x16\x7d\xcb\x2b\x01\xd6\xf1\xec\xf8\x81\xbc\xc6\x21\xd6\x1b\xa8\xc4\x21\xe3\x5e\xbb\x90\xd3\xfb\xeb\xbd\xc5\xac\x24\x35\xbc\x8a\x09\x05\xbe\x01\x32\xa5\xb3\xfd\x83\x44\x70\x5c\x3f\x98\xef\x16\x1b\x61\x84\x9d\x42\x58\xcf\x81\xd4\xb4\x61\xdb\x2c\x6e\x3e\x9e\x45\x5f\xe8\xbd\x5b\x11\xc5\x25\x7a\x19\xdc\x9b\x20\x98\xda\x9b\xe3\x7c\x97\x36\xae\xc4\xb8\x36\xd6\x56\x3b\x3a\x46\x01\x04\xb8\x0c\x17\x57\x36\x68\xec\x83\x15\xd7\x43\x5e\x8a\xae\xc8\x57\x0e\x46\xcf\x53\x8a\xaf\xc6\x53\x41\xb6\x54\xac\x17\x7e\x89\xd9\x16\x50\x49\xaa\xe7\xe6\xad\xbe\x00\xe4\x5f\x63\x3a\x0e\x49\x35\xe0\x13\xc9\x4c\x3b\x88\xc6\x77\xf8\xb5\xa7\xa1\xc2\x18\xfa\x3a\x01\x43\xb3\x30\xe3\x2f\x44\xb8\x4a\xb3\x07\x80\x6a\xd5\x77\x85\xa0\x96\x03\x3f\xfa\x79\xd3\xf4\x34\xfd\x4a\xdf\x84\x94\x10\x96\xde\xfa\xdf\x05\xe2\xb1\x58\x3c\x23\x31\x4b\x42\xce\x49\x20\xd1\xa0\xe6\x2e\xf5\xca\x25\x01\x29\xa2\xd4\x01\xd5\xd6\x15\x64\x01\x1c\x08\xe1\x24\xcc\x50\xc9\x3b\xcb\x86\xbd\x15\x34\x20\xc2\x46\xc9\x16\x38\xb6\xf9\xaa\xd9\x5e\x9a\x67\x05\xb2\x0d\x33\x98\xed\x67\x42\x31\x5b\xd0\x35\x6a\x33\x59\x08\x78\xf6\x16\x62\x3d\x94\x32\xd7\x8a\x1a\x69\x60\x2e\x71\x4e\x48\xfa\x7b\x02\x2e\x7f\x34\xc5\x6c\xf2\x23\xc6\xa6\xc1\x81\x89\x85\xc9\x1c\xff\x9a\x5b\x63\xf1\x23\x9b\xe3\x47\x8e\x6a\xdb\xb8\x62\xcf\x3b\x03\xe1\x7f\x7e\xe0\xe3\xaf\xe9\x83\xc2\x1a\xc4\xcc\x86\x69\xd1\x85\x5f\xfb\x0c\x1f\x49\x00\xad\x16\xcb\x8e\x22\x6b\xe4\x6c\x75\x0f\xde\xb2\x68\x28\x38\x6d\x7b\x7d\xca\x0f\xc0\x72\xef\x73\x5c\x00\xb3\x01\xd4\x37\x0c\xc2\x7d\xdd\x54\x0f\xc6\x47\xb0\xe1\x87\x58\x80\x0b\x1a\x4d\x90\xf4\xd2\x03\x8f\xb4\xc7\xf4\x44\xe8\x01\x6a\x11\x2b\xb1\x7d\xb3\x7b\x61\xe8\x3a\x0a\x12\xe3\xa5\xd0\xcc\xfe\x15\x1d\xf1\x1b\xb0\x68\xc9\x2f\xae\x61\x05\xcc\x61\x06\xdf\x81\x0b\x10\x58\x89\x2d\x0b\xf8\xde\x44\x4d\xb1\x9c\xb1\x93\x97\xd1\x17\xfc\x72\x9d\x85\x27\xe7\xef\xdb\x9f\xc6\x60\x6f\x88\x46\x18\x15\xeb\xaf\x1b\x80\x7d\x0f\xff\xca\xba\xeb\x92\x39\xb3\xb1\x10\x67\x2d\xf2\x56\x7e\x5e\x70\xf6\x64\xe8\x13\x23\x11\x69\x84\xd8\xd6\x07\xaf\xc4\x21\x93\x44\xf1\x23\x2b\x82\x2b\xdd\xd2\x54\xea\xb2\x0b\x28\x80\xc1\x71\x42\x7f\xa2\x1f\x77\xd7\x83\x4b\x4c\xa5\x15\x26\x52\x37\xe8\x7a\x89\x5e\x2d\x02\x97\xf4\x2f\x1b\xc3\xec\xa0\xbd\x9c\x1f\xe6\x1c\x0a\x6e\x45\xed\x38\xee\x5f\xc6\x38\x43\x9d\xbc\x4c\x16\x86\x6f\x7c\xf7\x65\x8a\x1b\x05\x7f\xa7\xf4\x9e\x84\x5f\x8d\x59\x75\x60\xf9\xa9\xe4\x19\x95\xb7\xd2\x28\xb3\xdd\xce\xbd\x9e\x15\xa0\x4e\x1b\x1a\x98\x9e\x3b\x23\xd0\xb7\xda\xd0\xc6\x0b\x97\xb8\x5f\x8e\x45\x2b\xa6\xb5\x7f\xa6\xda\xef\x9b\xe1\x90\xba\xeb\x9b\x10\x3e\x34\x6e\xc3\x96\xc5\x00\xff\x08\xb7\x20\xbd\x96\xa0\x65\x16\xda\x9f\xcb\xf3\x34\x93\xb2\xcf\xd0\xb7\x4e\x87\x7f\xcc\x28\x0a\x7e\x3f\x05\x89\xe3\x2c\x79\xaa\x88\x7e\xf0\x34\xf0\xaf\xad\x36\x06\xad\xd9\x29\xe5\x67\x57\xec\xbc\x77\xa6\x13\x44\x3d\xc6\xea\x42\x06\x65\x8b\x3d\x97\xa1\x6e\x14\x61\x1f\x2b\xf2\x69\x74\xc8\xba\x24\x7c\x66\xe0\x3f\xe8\x7a\x11\xf8\xab\x40\xf2\x1d\x0c\xcd\xbd\xa4\x0b\x0b\xec\xe2\x3b\x16\xfe\xd5\x39\xb4\x2d\xe4\x53\x99\x23\x6c\xae\x85\x73\xd3\x24\x63\xca\x9a\x51\xc0\xa5\x13"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12539 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA28 "\x81\x7a\x30\xfb\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xc6\xaa\xe3\x97\x8c\x48\xee\x8d\x70\x54\x73\x87\x63\x11\x2a\xe1\xf7\x76\x21\x86\x38\x09\xf6\x9b\xa4\xc7\xc2\x26\x9c\x5f\x5c\x7a\xb7\xc0\x6f\xca\xb7\x45\xeb\xa9\x46\x3a\xae\x57\x1b\x77\x7d\x9f\xe3\x64\xa9\x5c\x4e\x74\x80\xfe\x5e\xb4\x9e\xa8\x82\xd7\xc2\xbc\xf8\xf1\x1d\x22\x9d\xb8\x20\x54\xa1\xf1\x39\x29\x7b\x24\xbf\xa4\xd0\x88\xc7\x8c\x19\x4a\x2e\xe8\xb4\x1c\x98\xee\x19\xf1\x4b\xbb\x11\xc2\x1f\x31\x0a\xcb\x8c\x28\x75\x13\xf1\x3a\xc6\xfe\xf7\x57\xcf\xc8\x2d\x6e\x48\xcd\xa0\x4c\xd8\x3d\xd7\x4c\x1d\x89\xd5\x3d\x32\xec\x63\xc8\x6c\xc4\x9b\x0e\xb5\x97\x42\x10\x4d\x95\x74\x92\x2a\x21\x0b\xb2\xba\x57\xbf\x03\xb4\x4e\x37\xd7\x7f\x58\x72\x96\xac\xcd\x25\x45\xf3\xcc\x58\xa1\xbf\x54\x32\x37\xc3\x5c\xf1\xed\x94\xb5\x13\xc0\xdb\xc8\x3a\xe6\x74\x3d\xcd\xa8\xb1\x73\x1d\xf4\x19\x86\x57\x5e\xea\x33\xf5\xdf\xda\x2a\x10\xed\xf1\x14\x0d\x87\xa9\x15\x91\x75\x3e\x32\x79\xf8\x8d\x3b\xf2\x77\xce\x12\xd1\xed\x7f\x4e\xe6\xd1\x1e\x21\xa1\xfb\x60\xb4\x20\x74\xd9\x40\x37\x96\x49\xbb\xed\xbd\x4b\x9f\x59\x2f\x2d\x07\xe5\xb9\x55\x28\xf6\x2f\xd6\x9c\x19\xb1\x5c\xc6\xe6\x1a\xce\x8b\x5f\xbb\x85\x9e\xd2\x2f\xd6\xe0\x6d\x4b\xae\x63\x86\x88\xe6\xce\x4b\x80\x83\xcd\xb1\x88\xca\x80\x9a\x72\xcc\x0e\xd6\x30\x6a\x4f\x05\x9b\x81\x43\x87\xb9\xf7\x2f\xc2\xfc\x1d\xc4\xca\xd7\x31\x2a\x00\x13\x34\x8e\xf5\xb8\xed\x28\xd8\xe1\x2b\x13\x0d\xa7\xcd\x43\x38\xf1\x58\x6e\xd2\x4e\x62\x15\xf4\x34\x60\xea\x49\x0c\xa7\x37\xd7\x73\x90\xc1\x99\x65\xe1\x1d\x11\xe6\xb3\x7a\x3b\x80\x62\xb9\x49\x00\xa2\x89\x89\x23\xb9\x91\x8e\x66\x45\xde\x65\x83\x65\x06\x70\x01\x27\xae\xca\xde\x36\x88\x8a\x31\x16\xfe\x1a\x1b\xec\xd5\x21\x75\x35\x9e\x60\x6d\x23\x6c\x53\x6a\x46\x03\x02\xa3\xc4\xf8\xef\xa2\xb9\xb0\x68\x32\x97\xce\x17\x0c\xac\x63\x62\xee\x1f\x93\xcb\xc0\x08\xff\x0b\x45\x7b\x63\x7a\xc3\x9f\x60\xc1\x28\x75\x37\x85\xea\xbf\xe1\x62\xf7\xa0\x65\xed\x98\xe7\x81\xb3\x6b\x0f\xbb\x5b\xa9\x8c\x25\x5d\x43\xa5\x20\x6e\xf2\x6b\xe1\x6d\x4c\xed\x7e\xd7\x35\xd1\x57\xaf\x12\x30\x7d\x5e\x09\x48\xa2\x88\xf8\x3c\x00\x36\x77\xbb\x8f\x79\x44\xda\xa4\x49\xc4\xed\x08\x37\xdf\x28\x25\xb1\x72\x37\x0f\x74\x6e\x7f\x9b\x38\x0b\x44\x27\x6a\x5e\xfe\x47\x24\x15\xfb\xe2\x4e\xff\xb7\x32\xf4\xed\xb0\xb5\xc0\xe7\x85\x2d\x5d\x93\x09\x2e\x0a\x13\x5d\x1e\xe6\x70\xf5\xfa\x79\xd6\xd0\x27\x6c\xb6\xf4\x54\xd4\x57\x94\xab\xc3\x0e\xe9\xa1\xd1\xa0\xc6\xbf\x4c\x2a\x96\x2d\x28\xac\x57\x98\xd1\xb6\x0d\xe3\x01\x51\x46\xba\x88\xbc\x5b\xf2\x92\xe7\xb6\x2f\x21\x9a\x16\x48\xdc\xe2\xdc\xaa\x41\xaa\xcd\x2b\x49\xf9\x8f\xd8\x90\xa8\xc0\xbe\xcf\xbf\xeb\x36\x1c\x85\x0e\x93\x83\xc8\x3d\x71\xaa\x5a\x66\xb8\x65\xda\xc3\x0b\x17\x5e\xaf\x4e\x5b\x40\x58\x71\x57\x0c\xa6\x39\xb8\x89\x57\xbe\xe7\xdf\x66\x0a\xfb\x09\x11\x2d\x24\xdb\x08\x6f\xd8\x56\x7e\xa0\x56\x06\x23\x9e\x3c\x5a\x11\x8d\xe6\x5a\x5f\xe3\x73\xe2\xa6\x52\xd1\xa4\xda\x73\xf7\x2e\x54\xd5\x50\x78\xc9\xf0\x6f\x9d\x12\x30\x8a\x00\xc9\x83\xb5\x58\x47\x25\xe6\x54\x53\x60\xd5\x60\xb2\x2c\xcc\x2d\x3b\x27\xf6\x05\xff\xe5\x95\x67\x93\xb2\x7c\xbd\xf8\xbc\x67\xeb\x10\xb2\x51\x01\xed\xc0\x56\x9d\x3b\x0a\xd3\x91\x2f\xdf\x79\x0b\x50\xd0\x98\x54\x7c\xec\x0b\x4e\xce\x02\xdc\xd9\x45\x0e\x24\xe5\x92\x3d\xa8\xcc\x89\x1e\xe2\xf3\xe6\x51\xe4\xfc\x12\x69\x54\x01\x4d\x1e\x10\xd2\x51\x87\x4f\x2f\x48\xbd\x0e\xf2\x73\x73\x00\x34\x7e\x38\x77\xff\x6b\x0f\x7f\x0a\x9c\xb6\x30\xda\x6d\xad\xaf\xca\x7e\xb9\x68\x79\x01\x51\x58\x4a\xe9\x86\x1b\x77\x9e\xab\xcb\xa6\x44\x85\x7a\xcc\xa4\x6c\x8a\x5c\x1d\x50\x01\x11\x87\x5a\x9c\x54\x3d\xad\xfd\x23\xf1\xd5\x4d\x1b\xc8\x96\xdb\xb9\xfb\xc2\x12\x3a\x26\x1b\x90\xaf\xaf\xe2\xd9\xdf\xce\x0a\x6e\x2b\x68\x56\xa5\x30\x68\x62\x4a\x19\x07\x2e\x16\x7e\xbc\x69\x49\x80\xf1\x3b\xaf\x9b\xd1\x77\x67\x9d\xa1\xb7\xf5\xda\xbd\xb6\xb6\x97\x4d\xc6\xae\x41\x99\x99\x7f\x5b\x62\xf6\x13\xd3\xcf\x17\x65\x7c\x4f\x4e\xce\xd1\x55\x6c\x84\x2a\xc8\xa5\x29\x0f\x50\xe2\x70\x32\x04\xb6\xa7\x6d\x70\x02\xcd\xa7\xa4\xdf\x28\x56\x4f\x3d\xc7\xa9\xd7\x4e\x54\x6e\x8a\x13\xfd\x34\x59\xb9\xa0\xea\x96\x16\xea\x8b\x73\x9c\xf1\xe3\x74\xb7\x3e\x11\xb6\xee\x7a\x0f\x61\x8a\xec\xa4\x99\xdf\x00\x3b\x03\xf3\xae\x05\xcd\x93\xc6\xc9\x7d\x1a\xb5\xcd\xa0\x6c\x1a\x37\x3f\x2e\xbd\x7d\x2d\x6b\x95\xee\x8f\xa7\x45\xe2\x74\xa2\xdd\x23\xc8\x71\xcf\xba\x79\x57\x78\xf3\xbd\x7f\x04\xb0\x3c\xcf\x1d\xf8\x89\xa4\xd5\xc5\x5a\x88\x52\x4a\xce\x6a\xbf\x6f\x56\x98\x02\xb5\x2e\x3e\x62\xe3\xa8\x5c"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12540 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA29 "\x81\x7a\x30\xfc\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xe7\x75\xf7\xb3\xfa\x5c\x20\x2b\xfc\x94\x20\x9c\x9f\xa9\xd8\xbd\xf1\xdc\x77\xbd\xc4\x84\x0b\xac\x55\xb8\x98\x0b\x08\x8a\x5e\xbe\x94\x80\x91\x72\x69\xb5\xb4\xbf\x75\x05\x8d\xdb\xe6\xe8\xc8\x4c\x3b\x5e\xf8\xa1\x58\x8c\xdb\x91\xe3\x64\xe4\x84\x84\x3c\x1c\xcc\xfb\xb0\x72\xce\x9f\x97\x3e\x70\x37\xb8\x07\x64\x25\x5a\xa4\x56\xf9\x3d\x5e\xad\xd8\x93\x9c\xf6\x31\xc1\x34\xa1\xf1\xf3\xf8\x09\xa4\xfd\x32\xe6\xef\x5a\x02\x75\x25\x50\x80\x72\x1a\x5c\x82\x6a\xab\x3e\x85\xcf\xd7\xd0\xea\xf8\x7c\x23\x89\x7f\xdd\x8a\x71\x87\x7e\xe2\x5b\xdc\x18\x82\x20\x37\xa7\xa9\x2f\x39\x07\xd9\xe8\x28\x13\xad\x9e\x5e\x9e\xb4\x15\xe5\xa6\x0b\xc1\x87\x27\xed\x4e\xe4\xd9\x81\x33\x05\xce\xc9\x62\x90\x7d\x3d\xed\xde\x16\xf9\x33\x8d\x8b\xe1\xa4\x12\xe6\x01\xab\x5f\x85\x6c\x1b\x31\x76\xb6\xdf\xed\xd2\xf1\x07\xf9\x85\x15\x05\x0f\x42\xa0\x30\x0b\x8a\xd2\x8f\x6c\xf2\x90\xd8\xaf\x0c\xa1\x3a\x7f\x44\x92\xe9\x5b\xa7\x7d\x1e\x18\xf5\xff\x6e\xf7\x27\x38\x3d\xb0\x34\x14\x91\xb0\xf9\x72\xf3\x35\x06\x98\x8d\x55\x10\xac\x08\x5c\xb9\x34\x90\x34\x56\xee\xf7\x8c\x5a\x98\x98\xb7\x3b\x44\x03\x77\xfa\x8d\x08\x54\x90\x82\x1c\x57\x99\x88\x13\x9b\xf1\x0f\x18\x00\x74\x52\x7a\x13\x19\x24\xd3\x40\xa0\x73\x10\xce\x8f\x2c\xa6\xbd\xff\xc5\x73\x84\x10\xa3\xa8\xab\x90\x0a\x83\x7f\x79\xde\x0c\xb5\xc7\x93\xcf\xca\xcc\xb2\x8e\x53\x8f\x19\x83\xa0\x83\x1a\x18\x1b\x24\x13\xf6\x6e\x32\x8f\x46\x0c\x55\x27\xa2\xb6\x9b\x1b\xad\x57\xd8\x77\x27\x6e\xab\xe1\x29\x68\xaa\x63\x29\x27\x1f\x34\x13\xe5\x7a\x47\x85\x41\xdc\xf0\xb9\x80\x5f\x5f\x70\xba\x1c\x8a\x04\x98\xf6\x20\xb9\xc0\x58\x7f\x1d\x8b\xfd\x99\x76\x78\xfe\x3c\x05\x02\xf6\x5a\x89\x08\x51\x28\x4a\x7b\xec\xb5\x5e\x23\x19\xa2\x6c\xf9\x90\x32\xc1\x8b\xfe\xc4\x2f\xf4\x35\xff\xa8\xa4\x7a\xac\x87\x86\x57\x92\x55\xd5\x0b\x0b\xfb\xcd\x08\x05\xb4\x52\x51\x09\xa3\xc7\x5a\x57\x12\x43\x73\x3b\x2a\x1b\xb4\x4e\xf8\xea\xa1\x08\x47\xf9\x26\xf4\xa0\xb2\xdd\x00\x2d\x9e\xf2\xc6\x27\x82\xda\xcd\xaf\x9f\xf8\xe6\xde\xad\x46\xde\x35\xc7\x4b\xcb\x84\x1f\x2d\x7d\xd6\x89\x52\x66\xbf\x85\x59\x27\xe7\x6a\x04\x6f\x12\xea\xb9\xbc\x51\x88\x85\xa5\xb9\x6b\x15\xab\xfd\x7c\xb4\xb9\x91\x64\x35\x09\xdd\x26\xd6\x82\x68\x83\x94\x2e\x07\x95\xa9\x9c\x16\xf7\x5a\xf1\x5d\x34\x15\x3f\xb8\x88\xe5\x07\x73\x14\x38\x2e\x5a\x3b\x8c\x87\x7b\xfe\x1f\x39\x14\xfb\x3b\xc3\xfc\x2a\x47\xcf\xa4\xe7\xa5\xfc\xfd\x69\x13\x71\x9e\xb8\x16\x75\x28\xdb\x73\x6f\x6a\x6c\xba\x02\x38\xc3\xa6\xe6\xca\x9a\xa8\x31\x2f\xa3\xf5\x68\x96\x03\xd4\x49\x5e\x20\x82\xb7\x08\x8c\xed\xd7\x7d\x88\x7d\xdf\x4e\x43\x9e\x79\x30\xc1\xd2\xd3\xac\x18\xa8\xd4\xb3\xb5\x23\xc1\xcc\xa5\x26\x3d\x00\x8c\x46\x81\x1a\x01\x1b\x0e\x92\x72\x5a\x47\x4f\x1d\xac\x84\xa8\x9b\x19\x15\xf1\x77\x18\x7d\x91\xca\x6c\xc4\xb0\xb0\xad\x67\x2c\x47\x00\xba\x5e\xb2\x1b\x03\xc5\x65\x4e\x7b\xd8\xb0\x53\x69\xb0\x87\x0d\xc7\x31\xd4\x1b\x46\xdd\x0e\xaa\x50\x50\x97\x56\x23\x44\x20\xdf\x42\x8b\xf1\x05\xdc\x49\x9f\x01\x66\xe8\x86\x81\x35\x2e\x78\xaa\xac\x2e\xf2\x94\x07\x31\xfa\xee\xe3\x24\x39\xac\x5e\x1a\x32\x9f\xf9\x59\xf3\x58\xf3\xfd\x94\x27\xd5\xa4\xfa\x79\x92\x51\x72\x8b\x7c\x0e\xa2\xdd\xb4\x93\xbd\xa7\x2d\xcf\x3c\x52\xaf\x35\x31\x06\xe8\x06\x43\xa2\x0f\xbb\xcc\x0d\x93\x86\x61\xa5\xe3\x74\x38\xb6\xf0\xe6\x42\xc9\x94\xa3\x13\xe7\xc6\x1d\x70\xae\x96\xeb\x0e\xd8\x6d\x79\xec\x21\x4c\x46\x75\x8f\xff\x89\xb2\xe1\x09\x0a\xf0\xd2\xb0\x78\xbf\xdb\x53\x6f\x45\xc5\x7a\xe4\x65\x17\x82\x53\xf2\x9c\xaa\xff\xf6\x38\x9c\xa3\xbe\x0f\x21\x08\xdd\xcb\x2f\xb1\x9e\xe6\xec\xc6\x05\x0d\x6d\x60\x18\xb2\xd1\x0a\xa7\x74\xbe\x85\x5c\xa7\x3c\xf8\x51\x90\xe8\x48\x88\x88\x3a\x8e\xca\xef\xc4\x5a\xc3\x12\xfe\x89\x4a\x19\x9c\x2a\x01\xe3\x54\xdd\x2e\x48\x25\xfc\xf6\x8d\xf8\x66\x08\x61\xeb\x75\x88\x3f\xb7\xb2\x20\x4e\xd2\xbc\xe0\x37\xff\xa1\xf1\xaa\x53\x9b\x0f\x76\x15\xf0\x69\x47\xda\xe1\xc4\xd7\xeb\xd3\x94\xd5\x9c\x74\xf7\x5b\x65\x0c\x67\x0f\x8c\x21\x08\xa7\x04\x20\x73\x50\xab\x59\x7d\x9c\x6b\x30\x9b\x26\xc6\x38\xb8\x59\xed\x19\xa6\xab\x80\x50\x93\x2c\xaf\x5b\x84\x61\xea\xed\xdb\x57\x6e\xfe\x78\xa8\x41\xaf\x0a\x5d\x59\x5f\xc5\x92\x8f\x5d\x11\x6b\xdd\x58\x07\xd0\x3f\xbd\xc1\xdf\x41\x7b\x0f\x93\xa7\x4a\xa5\xaf\xe5\xd4\x49\xe7\x2d\xad\xed\x7b\xf4\x07\x4f\x00\xb2\xe5\x6c\x75\x4a\xa6\x1e\x39\x30\x01\xf0\x7f\x1a\x93\xfb\x03\xf1\x73\xd8\xd3\x66\xaf\xb1\x51\x29\x08\xb5\xf0\x19\x98\x91\x54\x72\x75\x39\x03\x96\x70\x0c\x45\x18\xf3\x91\x34\xe2"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12541 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA30 "\x81\x7a\x30\xfd\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xda\xff\xd3\xa1\x03\x9c\x4f\xf0\x1b\xb4\xd3\x2a\xb5\x4b\x7a\xac\xff\x62\x50\x55\x40\x29\xaa\x81\x4b\x99\x26\xa6\xc4\x50\x62\x4d\xc2\x43\x56\xe1\x4c\x6a\xca\xf5\x37\xde\x5e\xc7\x90\x04\x4c\xa2\x1f\x54\xdd\x4f\xc8\x3d\x5c\x77\x67\xcc\x9a\xd7\x85\xa4\xd0\xc8\x0d\xfd\xd8\xdc\xc0\x4d\x08\xba\xe4\x63\x5a\xd5\xfb\xc8\xbf\x27\xa4\x79\xf2\x27\x23\xf5\x8b\xfe\xb2\x88\x6c\xe2\xa1\x56\xd1\xb1\xaf\x98\xa0\x86\x91\x6f\xc7\xb3\x63\x28\x86\x26\xea\x58\x15\x94\x4b\x96\x9a\x13\x9a\xdd\x11\xb7\x60\xff\x50\xa5\x6c\xd1\x54\x34\xea\x64\xb5\xcb\x8a\x2c\xa3\x2f\x06\x84\x68\xfb\x0b\xd7\xfb\x07\x62\xdc\x40\x1b\x69\x7e\x28\x5a\x12\x40\x1f\xba\x29\x04\xb5\x06\xd7\xfd\x98\x5a\x84\xe5\x13\x47\x3d\xc0\x18\x5e\x57\x0f\x1b\x52\x22\x0a\x79\x5e\xda\x18\x17\x08\xfe\x5f\xdc\xf9\x39\xe7\x70\xdf\x69\x3e\x83\xd7\x6d\x89\x9b\xb1\x2b\xd5\x57\x1b\xd3\xe2\x5f\xf8\x8d\x1d\xa8\x46\x03\x9c\xd7\x48\x15\x45\xc3\x0a\x9f\xa8\x5d\xad\xd7\xef\xbf\x7d\x9f\x1c\xee\x00\x54\x02\x5d\x25\x85\xe5\x95\x10\x96\xbe\xc7\x20\xcf\x06\x0d\x01\x1f\xe2\xe1\xf1\xee\xef\xb0\x80\x3b\x4d\x8a\xdd\x6d\x0b\xa7\xad\xc1\xb5\x29\xb5\x69\xe8\x46\x27\xc3\x1b\x8f\x5b\x3b\xa0\xc0\x54\x00\x8e\xb3\x09\x21\x9b\x35\x2f\x10\x20\x9b\x94\xc2\x8b\x26\xfc\x50\x62\x23\xcd\x1d\xd4\xf4\x0b\xfe\xb4\xfa\x11\x45\x7d\x80\x9a\xd1\x05\x4c\x67\x31\xb6\x44\x40\x51\x13\x09\x12\x08\x3c\xbe\x95\x54\x5e\xa5\x49\x38\x9a\x88\xd4\x45\xbe\x9b\x9a\x78\x7b\x2d\xab\x6f\x84\xd8\xfc\x5b\x67\x10\xc3\xe7\x1b\x63\x5c\x7e\x5b\x7e\x72\x27\xa0\x5c\xc5\x90\xae\x5c\xac\xed\xd4\x8c\xa2\x5d\x38\xfd\x2e\xf3\xa7\x3d\x57\x8d\x50\x3a\x4a\x4d\xc3\x35\xb6\xbb\xd3\x68\x8d\x2d\x56\xa4\x0d\xcd\x00\x85\xb9\x48\x8a\x08\x82\x60\xd8\xba\x56\x6a\x02\xe9\xd5\x01\xd1\xe3\xe8\x6d\x18\xb3\x49\x6d\xab\x46\x3b\x18\x72\x98\xec\x68\x9f\x60\x97\x3c\x85\xd8\xbb\xbb\xcf\xc6\x1a\xb7\x1d\x59\x2c\x05\xa3\x01\x32\x8a\x7d\xe7\x43\x55\x34\x02\xd7\x4d\x8d\x07\xd6\xe3\x40\x7b\xf0\x29\xc5\x60\x7c\x79\xf5\x90\xdc\x60\x8e\x91\x61\xb7\x21\xb6\xba\x72\x7d\x40\x7d\xca\x34\xfe\x48\x4f\xcd\xfa\xf1\xec\xce\xe6\x8b\xf2\xb7\x55\x39\x9b\xa8\xa9\xf2\xcb\x7a\x12\xa4\x0c\x6c\xf4\x09\x5d\xe5\x7f\x2f\xef\x54\x0c\x04\x3e\x68\x79\x92\xf1\xfc\x04\x46\xdb\x8c\xcb\x4c\xb2\xe7\x25\xd0\xbe\xa5\x00\x27\x0b\x6a\x5f\xb3\x77\xf0\x36\x35\xf4\x67\x7d\x87\xd7\x4f\xb5\xf5\xff\xea\x16\x3b\xee\xa0\x36\xaa\xc3\x48\x91\x03\x15\x72\x10\x9a\xe1\xed\x9c\xb7\x1a\x27\x48\x25\xab\x76\xd8\x33\xea\x23\xf5\xd9\x5e\xf0\xcc\x4f\x47\x48\xc9\xa7\x80\x39\xc7\x60\x88\x38\x93\xd1\x01\x8a\xaf\x5c\x9c\x3d\x8f\xf9\x57\x7f\x78\x30\x02\xf0\x22\xf8\x77\x95\x30\xe9\xd4\x43\x0c\x8e\x7f\xb2\x31\xb9\x8e\x6a\xcc\x0d\x11\x6d\x33\x70\x3a\x83\x03\x0b\x94\x1c\x12\x2d\x90\xb5\x43\x61\x75\x8c\x28\xfb\x96\xec\x64\x80\x80\x30\x11\xfe\x1b\x18\x1d\x8a\xcf\x30\x9a\x7d\x06\x16\x9c\xbb\xb3\x36\x88\x62\xe0\x45\xd1\x27\x8d\x80\xd7\x7e\xd2\x6a\x7b\xc2\xb8\x3e\x50\xf0\x8d\xbf\x4e\x77\x61\xb3\x16\x5a\x68\x7c\x28\xd0\xa2\x07\x10\x22\xc4\xcb\x6c\x57\x47\xaa\xf1\x38\x56\xbd\x28\xc3\x28\x20\x5b\x79\x42\x14\x8a\x44\x36\xde\xbc\xb8\xfc\xe8\x90\x5d\xe1\x79\x20\x8b\xca\xf4\x52\x86\xff\x7a\xdd\x7b\x89\xb1\x97\xa8\xcf\xb2\xbd\x5c\x46\x95\xb7\xb7\x44\xd6\x07\x60\xc0\x5f\xc6\x0f\x52\x50\x03\x86\x0a\x40\x52\x7c\x6d\xff\xca\x5e\xaf\x40\x1a\x9d\xd9\x7e\xa9\x46\x25\xbc\xd0\x00\x31\x04\x2f\xaf\x8d\xc9\x9a\xe4\xea\xec\xca\x62\x9c\x18\x83\xf4\x32\x94\x5e\x0f\xb1\xf7\x15\x4b\xe5\xc5\xd9\x8c\xe1\x4a\x32\xe7\x6f\x55\xb7\xf4\x1f\xcb\x71\xfe\xe7\x2d\x21\x03\xfc\x4f\xe3\xc7\x1e\x7a\x45\xb5\x0c\x12\x69\xb9\xc1\x69\x9a\x5e\x87\x9e\xf1\xa5\x47\x20\xa7\xa7\xb3\xe3\x6c\x6f\x7e\x6c\x87\xc5\x12\x1b\x23\xf7\xaa\x4a\x31\x5e\x4e\x73\x19\xcc\x01\xf0\x17\xd2\x7b\x54\x59\xa1\xed\x14\x65\xb2\xe0\x95\xf5\xe1\x3f\x25\x9e\xfb\x65\x3e\x28\x5f\x5b\x92\x52\xaf\xab\xf0\xcb\x92\x8a\xf7\xd0\x6a\xf9\x28\x7a\x26\xec\xbd\xa1\x83\x02\x35\x80\x43\x07\xb2\xa5\xe4\x36\x03\x56\x77\x71\xf6\x69\xda\x17\xf1\xfa\xc6\x7c\x62\xc7\x62\xf7\xeb\xf3\xff\x0c\xf7\x86\x86\x3d\x7d\x33\x8c\xa4\xfe\x92\x46\xd2\x9f\x35\x8d\x5a\x23\xcb\x0c\x18\x7f\x02\x2c\x85\x53\x46\x41\x63\x0e\xe1\x8b\x72\x23\xdd\xde\x17\xe1\x5e\xca\xbe\x3d\xbd\xc2\xf1\x63\xa3\xfd\x3e\x81\xb7\x73\x8f\xa7\x43\x76\x77\x51\x34\xd1\xac\x5e\xbf\xaf\x8d\x89\x93\x84\x81\x29\x02\x8f\x96\x72\xba\xcb\xc0\xf0\x9c\xf2\x3e\xef\x14\x23\x01\x72\x79\x13\xb7\x9f\xfb\x71\xf5\xeb\x79\xbb\x4b\x87\x7b\x9e\x0c\xdb"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12542 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA31 "\x81\x7a\x30\xfe\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x5d\xe1\xee\xc4\x3b\xde\x94\xec\x64\xbb\xd6\x6f\x42\x5f\x39\x79\xe3\x19\x9b\xed\xec\x24\xa6\x19\x05\xbe\xa1\x54\x1e\xd7\x9b\x53\x76\xc5\x66\x70\x07\xf0\x5e\x69\x8f\x62\x1d\x67\xb9\x92\x76\xee\x6b\x1f\xd5\xc6\x74\xed\xd0\x99\x21\x33\xa5\xe1\x7e\xbb\x04\x58\xdf\x53\x99\x33\xe4\xc0\xe6\x7e\x84\xf3\x27\xcf\xec\xb9\x79\x50\xfc\x36\x03\xfe\xe4\xc0\xb7\x37\x72\x54\xfd\x54\x9a\x52\xda\xf0\x2d\xba\x60\x21\xb1\x45\x2b\x8a\x40\x1c\x64\x7c\x9e\x5b\x3f\x0d\x70\xa9\xcd\xac\x56\xf8\xcd\x30\x91\x83\x54\xb9\xc2\xeb\x99\xb0\x2d\xb2\x2e\x7f\xe7\x4b\x31\xed\xcc\x87\x94\x04\xc2\x3b\x4e\x3d\x06\x00\x8a\x82\x1c\xa5\x29\x4f\x50\xbb\x1d\x51\x71\x01\x27\xb6\x85\xe0\xdb\x94\xc3\xc6\x86\x3e\xa3\x7d\x8b\x76\xb7\x8a\xc7\x97\xea\x60\x53\x37\x85\x23\x74\x97\x1b\x11\xf6\xcc\xa6\x96\xc0\x4a\xce\xe4\x7b\x10\xfd\xe4\x27\x64\xc2\xf3\xdb\x1d\xc2\x06\x84\x4b\xc7\xc0\x37\xdb\x60\x97\x8d\x14\x34\x5e\xb0\xf8\x50\x0b\x25\x70\x39\xe5\xc1\xbd\x8f\xa4\xab\x04\xfe\x03\x6c\x36\xff\x1e\xf7\xb7\x4c\x5e\xd3\xcc\xcc\xa2\x6f\xc6\x17\xbb\x5b\x56\xb2\x73\x7d\xde\xcb\xb1\xde\xe2\xd9\xb6\xad\xf4\xf3\xeb\x23\xf3\x02\xe4\xb2\x53\xde\xad\x5b\x7a\xfa\xcc\x1e\x5a\x85\xf5\x15\xc7\xff\xfb\x2b\x7e\x9c\xe9\xa4\x40\xb3\x0e\xa5\x19\x96\x78\x73\x0f\x37\x73\xa1\xd2\x3c\x84\xe5\x09\x47\x3a\x13\x92\x7f\x6a\xbc\xda\x23\xac\x89\x9e\x57\x28\x7b\xf8\xcc\x51\x2c\xa6\xb4\x41\x55\x75\x26\x86\x8c\xda\xf3\x51\x99\xd6\x5b\xe7\xaa\xe7\xeb\x11\x99\x71\x10\x3a\x48\x07\xa5\x2b\x66\x1d\x01\xea\x60\xf7\x7d\xee\x85\xf6\xdb\x44\xa9\x14\x28\x1e\xbf\x77\x97\x6d\xf6\x0c\x97\x86\x6c\x3e\xf8\x3b\xde\x4a\x6d\x90\xca\x0b\x66\x39\x77\x8d\xba\xea\x30\x1c\xe3\xd6\xec\x04\x8d\xa8\x6a\x4c\x25\x27\x6a\xd1\x2c\x33\x5a\x1a\xc5\x68\x13\x55\x81\xb5\xa8\xb5\x40\x15\x52\x23\xc3\xba\x13\xc9\x9e\xf1\xa0\x68\x60\xed\x25\x90\x2a\xf8\x48\xb2\x1c\xad\xc1\x91\x9c\x58\x59\x1a\xce\x4f\x3f\xdd\xe5\x95\x97\x06\x6b\x78\x73\xbc\x85\xa7\xf6\x5b\xf7\x21\x7b\x9b\x7e\x44\x02\xef\x3f\x7b\xba\xe2\x95\x27\x8e\xdb\xaf\x60\xc6\xdf\x88\xec\x27\x3d\xaf\xb9\xe8\x6a\xed\xf0\xc1\x1a\xe1\xe1\xb1\x7b\x67\x30\x04\x71\x47\x94\xee\x6b\x3c\x10\xf5\x27\xdd\x6f\xa4\x21\xa3\x11\x97\xfb\x88\xc0\x57\x14\x45\x6f\xb6\xc7\x11\xa7\xe2\xc3\x1c\x6b\xb6\xf4\x91\xf1\xf6\x41\x42\xc4\xa8\xea\xf0\x69\x14\x67\x62\x3a\xb2\x0d\x0d\x54\x2f\x1c\xdd\xbf\x40\x87\x01\xfc\x19\xaa\x57\x64\xf6\xcd\x0e\xea\x90\xca\xea\xf5\x66\xa9\xd4\x98\xbe\x85\xc8\xaa\xb1\xab\x2f\x96\xfd\xd9\x21\xda\xf9\x18\x22\xcb\xbc\xb0\x19\x40\x23\x16\xc7\xff\x6b\x82\x56\xb2\x56\xcb\x85\x98\xae\x95\x06\x6c\xe4\x74\x3e\x87\x6d\x1a\x41\xaa\xde\x7a\xc3\x95\x57\x8c\x07\x44\x98\x79\xbe\xb5\xd2\x1f\xf3\x95\xea\x8b\xa0\x07\x1a\xdd\x45\x5b\xbb\x62\x87\x91\xdd\x49\xe8\x97\xf9\x3f\xf8\x6c\x4b\xde\x0b\xf2\x91\x38\x45\x96\xc6\x93\xc1\x70\xfe\x65\xf6\x44\xc5\xe2\x05\xe7\xb2\xd5\x20\x22\xc4\x8f\xc5\x74\x1b\xe7\xb7\x5d\xe9\x38\xa3\xc6\x3b\x5f\x1a\x99\xb2\x60\x0e\xa3\x87\x2b\x2e\x0c\x7d\xd2\xdb\x26\xee\x44\x92\x42\xf6\x69\x80\xf2\xb1\x62\x8b\xbb\x8d\xdd\x53\xcb\xed\x62\xd1\x9b\xed\xb9\x58\x48\x89\x8b\xdb\x5e\x4e\x44\x56\x30\x72\xe3\x70\x7f\x7e\x2b\xd6\x5f\x9c\xf3\x0b\x7f\xc0\xa8\x53\x55\xec\x42\xb1\x08\x74\x03\x6a\x4c\x1e\xf6\x49\xde\x28\x52\x5f\x63\xbb\x61\x82\xee\x6b\x82\x62\xc3\x62\x53\xd8\xb4\xdc\xca\xea\x2e\x96\x11\x1b\x7d\xba\x19\x6d\xc2\x89\x39\x84\xa2\x2c\xf4\xca\x58\x02\x61\x6e\x38\x51\xc3\x23\xa9\xbe\x16\xa6\x6c\xfd\x9e\x6b\xfa\xe2\x20\x3a\x62\x3b\x56\xc9\x74\x41\xa3\xfe\x09\x77\x02\x0a\xfd\xf7\xd3\x7d\x40\x20\xcf\x72\x70\x44\xcb\x85\x43\xa5\xbf\x46\xc8\x31\x09\x32\x5b\x88\xc8\xef\xcf\xae\x40\xb1\xcc\xa8\x30\x5d\x59\x5e\x0a\xe0\x8b\xda\xcb\x8e\x34\x12\xbc\x8f\x87\x6a\x83\xca\xfb\x3c\x9c\xce\xb8\xd8\xd9\x75\x4f\x97\x4e\xc7\x65\x74\xec\x0b\xb1\x98\x21\x1e\xf7\xc1\x45\xe2\xf7\x88\x3c\x21\x1d\x97\xc9\x8d\xbc\xa6\x15\x83\x34\xb1\x09\x52\x79\x04\x09\xdb\x94\x22\xb8\xd4\x18\xc7\x02\x68\xd9\x60\xed\x98\x8f\x3e\x6b\xd7\x43\xd1\x49\x8e\xdd\x3c\x37\x39\x30\xa3\xdc\x58\xfb\x86\x2a\xf4\x7d\xd5\x65\xd5\x24\x02\x71\xbc\xcc\x02\x54\x70\x20\x8d\x03\xe1\x2f\xb2\x39\xeb\x9f\x64\x30\x0d\xfb\xc7\xbd\x2b\x63\x93\xd4\x99\x5d\x6f\x75\x9e\x48\xb0\xad\x4c\xa9\x7d\x3c\x0f\x19\x92\xca\xb7\xc1\x1a\x99\x30\x26\xe6\x61\x8f\x1e\x9b\x45\x5d\x36\xaf\x6f\xf1\x1e\x5c\xb6\xb3\x1d\x34\xf2\x2a\x9f\x67\xaf\xfc\xa8\xa7\x0a\x6b\x3c\x61\x61\x27\xa9\x0e\x69\x90\x3c\xd4\xb9\x48\x5b\xad\x29\xec\xf6"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12543 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA32 "\x81\x7a\x30\xff\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xb4\xe8\x9e\xe6\x73\xe2\x02\x62\xf7\xa9\x2e\x33\xe0\x4c\x50\x19\x71\x26\x07\x01\x50\x5c\x10\x3a\x41\xd0\x5a\xe9\x1a\x26\x20\x6a\x98\x5c\x83\xdd\x90\xa0\x7e\x5d\x8b\x5c\x53\x6d\xe0\xfc\xf3\x8f\xa7\xba\xcd\xf0\x08\x32\x95\x5b\xe5\x08\xd6\x30\x48\x50\xcf\x4a\x74\xf5\x10\xed\xbe\x35\xb7\xdb\xab\x2d\x04\x26\x18\xd4\xdf\xb6\x83\x5e\x99\xc5\x08\x0b\x68\xed\xeb\x03\xdb\x14\x37\xf7\x8e\xcc\xae\x7d\x12\xcb\x30\x1c\x95\x56\x36\x02\xd4\x25\x7f\x29\x2a\x10\x38\x31\x5d\x18\x09\x15\x52\x17\xb8\x31\xe3\x5a\xce\xb3\xb2\xdc\xaf\x99\x50\x64\x13\x2c\x87\x6a\xe4\x0e\x87\x7e\xe3\x74\x9c\x73\xdb\xa8\x91\x51\x16\xb1\x7d\x5e\xba\x68\xf6\xb5\xa4\x57\x9f\x3b\xcb\x77\xe6\x61\x7d\x7e\xfd\xce\xbf\x88\x0c\x0d\xcb\xad\xff\x40\xb3\x84\x65\xd6\xe0\xe4\x8e\x11\x02\x60\x46\xce\x93\x8f\xc3\x3e\x46\x11\x6e\x2f\x3f\x39\xde\x8a\xdc\x67\x85\x11\xaf\xe8\x4f\x89\xf9\x25\x0b\x07\x59\x20\xd9\x13\x5e\x54\x91\x50\xdc\x21\x06\xec\x2a\x10\x11\xc2\xcb\x31\xf0\x23\x97\xd8\xd8\xcd\x67\x15\x01\x69\xfe\x7a\x42\x71\xba\x61\x2d\x47\x92\xe4\xaf\x6a\x4d\x9c\x9b\xac\x8f\x12\x6b\x5e\x0d\x4d\x2c\x32\x88\x75\x48\x36\x2a\xfe\x83\xce\x88\x51\xfc\x27\x90\x69\xb9\x78\x01\x4e\xf1\xd0\x74\xd6\xee\xae\xff\xc5\xdc\xc1\x96\xe1\xdb\x42\xb4\x27\x9f\x85\xe0\xe7\x64\xb0\x43\x23\x88\x87\xb1\x88\xff\x4b\x12\x4e\x12\x6c\xe5\xa2\xa6\x1b\x56\xc9\x1f\x00\x0a\x8b\x41\x17\xba\xf1\xbf\x99\x53\x61\x21\x44\xd5\x2d\xdb\xd3\x3c\xf2\xd4\x0b\x30\x0d\xf8\x9f\xe4\x78\x71\x7f\x15\x31\x6a\x7a\x17\xa9\xa3\x6c\xbc\xae\xad\xf5\x5e\x2b\x0b\xf7\xc0\xd0\x0c\xea\xa3\x75\xbc\x02\xba\x01\xf7\x83\xba\x58\x12\xbd\x6c\x3f\xd4\x7a\x5a\xc6\x94\xd0\x2b\xa0\x79\x2a\x96\xb4\x60\x7b\x5b\xa5\xae\xbc\xe2\x2a\x2b\x2d\x2b\x64\xd2\x43\x71\xa0\x40\x06\xb7\xc7\x2e\xee\xcc\xca\xef\x13\x65\xa0\x43\xc9\x6c\x89\xef\xab\x0d\x3d\x4b\xec\xbe\xaf\x4b\x1d\x18\xa6\x0d\x1a\x42\xe3\x47\x4c\x65\x2d\x17\x39\xac\x3a\xca\x7b\x4c\xcb\xa2\x6c\xc9\xd4\x3a\x47\x7d\x8b\x27\x19\xef\xa8\x25\xf5\xe5\xdb\x8f\x5e\x69\x02\x88\x3d\xe7\x7f\x40\xfa\x90\xae\xcc\x99\x2c\x85\x93\xfb\xe6\xce\x65\x45\x02\x60\xca\xb6\x55\xd9\xa4\x9f\x7a\xc0\xb7\xb3\xf4\x3e\x3a\xd4\x22\x04\x52\xa3\xb1\xc5\xe5\xbc\xef\xf4\x38\xae\xef\x50\x87\x12\x1a\xf9\x2c\x25\xa9\x83\xb9\x78\x1e\x81\xe0\x12\xb7\xea\x07\xf4\x3f\x29\xa4\x95\xb2\x08\xe7\x96\xac\xaf\xa9\xef\x31\x13\x9b\xf3\x77\xb4\xf7\xcb\x1d\xbb\xb5\x29\x2d\x02\xd6\xfc\xc2\xea\x57\x1c\x43\x09\x71\xdd\x6c\x15\x6b\xb4\x6b\x0a\x96\xb0\x6c\x49\xf6\x82\x85\xc3\x98\x3c\xa9\xde\x6c\x98\xf8\xff\xfa\xda\x63\x56\x83\xa0\xb5\x66\x2d\x04\xde\x5e\x11\xfc\xe3\xa9\xe8\x5d\xb5\x26\x66\x4b\x85\xba\xdd\x8f\x37\x25\x51\xf3\xa8\x54\xb9\xdc\x5c\xd7\xdb\x30\x37\xae\x34\x7f\x7e\x47\x6e\x14\x08\xfe\xbc\xca\xd1\xec\x15\xb6\x05\xeb\xb4\x37\xe5\x3a\x54\xfc\x5e\x47\x96\xf0\x1f\xb4\x98\x49\x07\x52\xf1\xb2\xb7\x37\x0a\x01\x07\x68\x87\xb1\x7c\x78\x15\xeb\x97\x15\x10\x0c\xdf\xc1\x8e\xfd\x5d\xb9\x4b\x61\xe3\xee\x10\xfd\x5b\x44\xb2\x98\xd6\xe1\x9e\x2b\x94\xa4\xa1\xd5\x9c\xbf\xc4\xab\x59\x21\xd5\x3e\xe4\xb0\x1c\x44\x0c\x4f\xd6\x75\x3c\xab\x7b\xc6\x9c\x50\x8a\x4f\x15\x57\xac\x61\x8e\x78\xec\x2c\xe9\x0d\xfb\xaa\x47\xa6\xa0\x8a\xca\x64\xdf\x66\xed\x1a\x75\xff\x68\x35\xbb\x22\x74\xcf\x3b\x02\x85\x05\xe8\xaa\x14\x01\xe5\xb5\x30\x34\x7d\x23\xd5\xb0\x9f\xa9\x58\xb9\xe1\xf2\x4f\xb7\xd6\xf3\xfd\xad\xab\x39\xb4\xca\xb7\x15\xc4\x5d\x81\xf2\xc0\xc9\xd6\x81\xbf\x83\xa2\xa6\x71\xdf\xb4\x8f\x22\xe2\x80\x98\x59\xd7\xf0\xc2\x12\x16\xe2\xa5\x74\x2c\x8b\x70\x7d\xb1\x2a\x46\x27\x98\xff\xf6\x15\xce\x76\xe5\x1e\x0a\x45\xe3\xcc\x6c\x40\xb9\x93\xf1\x29\xcd\xb7\x9a\xc8\xdc\xbc\x26\xf1\x68\x3b\xc8\xe4\x32\xbf\x60\xa6\xdf\x42\x79\x5e\x63\x25\x62\xce\x48\xab\x9a\xcf\xa0\x6f\xe3\x6e\xea\xd2\x55\x2a\x5a\x24\x35\x7f\x06\x67\x25\xe8\x23\x15\x79\x93\x04\x92\x66\xcb\x53\xff\x13\xa0\xf5\xe6\x29\x86\xe1\xf4\xfe\x93\xb4\xa9\xca\x8d\xfc\xc0\xaf\x76\x37\xc4\x4b\xa2\x5f\x16\x35\x04\xbb\xba\x89\xcf\x5d\xf3\x16\xb0\xe7\xc7\x1c\x80\xf1\x0e\xc8\xdb\x71\xc7\xf6\x92\xb2\xe1\xc2\x7d\xf8\xce\x43\xe5\x15\x54\xe2\xbd\x65\xe8\x1d\x22\x4f\x65\x3e\x22\x96\xaa\x92\x8e\x72\x1c\x7c\x16\x2e\xa1\x88\x1c\xab\x9e\x40\x43\x01\xb7\xa2\xf0\xf6\x0d\xcb\xec\xcf\x63\x9b\xc0\x3d\xd0\x44\xf5\xb9\x92\x3c\x36\xd4\xeb\x26\x97\x6a\xdf\xc8\x7b\x3b\xa5\xb0\x3b\x60\xec\x7c\x12\x89\xb9\x6a\x7b\x56\x24\x2d\x89\xd7\xcd\xc5\xef\xaa\x5f\xa0\xd6\x8c\xe8\x3a\x65\xaf\x37\x10\x8d\x5a\x6f\xdf"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12544 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA33 "\x81\x7a\x31\x00\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x05\x2e\x58\x9c\x38\x98\x79\x55\xf4\x16\x6c\xc8\x03\x76\xde\xec\x0d\xfc\xd2\xe7\x61\xc3\xec\x4e\x74\x68\x9f\xa4\xa6\xb5\x78\xb9\x15\x3f\x0e\xe8\xd3\xc5\xec\xde\xee\xee\x50\xe2\x6b\x42\x84\xcf\xcc\x0d\x89\x65\x71\xd3\xe1\x14\x27\x17\x92\xb2\x9e\x0d\x8b\x14\xb7\xb6\xf9\x43\xd3\x1e\x6b\xee\xeb\x6c\x4b\x1e\xce\x44\x54\x73\xc9\xef\xa8\x5c\xa1\x8e\x93\x63\x31\x5b\x6b\x93\x52\xa0\xf1\x37\x11\x5a\x86\x02\xf8\x1c\xde\x6b\xcf\x5b\xcc\xb2\x82\x8e\x50\x21\x00\x6c\x2d\x8d\x8c\x5e\x5f\xdb\x62\x94\x63\x89\x3b\x98\x6a\x49\xa3\x7d\x50\xf8\xa5\x7f\xcc\x2f\xfb\x83\x4c\xbd\x28\xbb\x40\xa3\x76\x2c\xe4\xc3\x84\xc6\x44\x91\xb1\xb7\x74\x9d\xc0\xbd\xf4\x66\xdd\xe8\x11\x2a\x10\xec\x58\x29\xd7\x3c\x97\x0f\x1d\x16\x7a\x30\xe8\xeb\x4d\x19\xe6\x8f\x74\x32\x5b\x53\x0d\xe1\xc3\x41\xcb\x13\x48\x9a\x1e\x9c\x5b\x68\x50\x0e\xd9\x9c\x54\xa8\x3d\xfd\xaa\x45\x9f\x01\x1a\xac\xf8\x22\xaf\xb6\x52\x07\x8d\xec\x34\xf3\x76\x6c\xc0\xa0\xf9\xd2\xac\xcf\x0e\x9d\x31\x21\xa6\xd7\x39\xc7\x22\x70\xb1\x0b\x4d\x3b\x63\xa5\x98\xa3\x51\xb5\x39\x9e\x2c\x36\x0c\x75\xbd\x58\x19\x1c\xe6\x8c\xfd\xeb\x60\x88\x44\x60\x57\xbe\x98\x8e\x1c\xf0\x09\x0f\x1d\x74\x30\x55\xe1\x67\xbd\xac\x2c\x6d\x1e\x0a\x33\x9c\x50\xc5\xaa\x13\x71\x19\x55\xa3\x8e\x77\x4f\x77\x52\x3d\x4d\x87\x6a\xd5\x26\x2c\xa4\x8f\x4c\x8b\xfa\x6a\xfb\x52\x24\x95\x72\x56\x3b\xec\xfa\x96\x17\x5d\x88\xea\x8b\x85\xa7\xa3\x22\xb3\x15\x4e\xa4\xec\x40\x5e\xf0\xdd\xba\x10\x22\x1a\x31\xc5\x0b\xbb\xed\xc0\xb3\x30\xe7\xb6\x46\xe7\x07\xe0\x18\x47\xcb\xdc\x78\x15\x37\xea\x7e\xe8\xd1\xb9\xaa\x68\x9f\xe5\x78\xdc\xde\x42\xec\x97\x4f\xcc\xf6\x43\x9c\x26\x38\x5f\x38\x4b\x00\xc5\xf8\x75\xef\xa4\xc2\x05\xdb\xaa\x47\x02\x2c\xb1\x1f\xa0\x96\x3f\x36\x1a\xac\xc8\x43\x64\x6c\x35\x71\x5b\x26\x8d\xd8\xa4\x5a\xea\x8b\x51\xea\x60\xb4\x1d\x0b\x2b\x87\x00\x97\xaf\x10\x58\x9c\x11\xa7\x1a\xe0\x83\x41\x21\x2d\x56\x4f\x6c\xb6\xf1\x18\x54\x23\x20\x2d\x88\xc8\x92\xdf\x1e\x6e\x10\x5c\xf6\x35\x09\x58\xb3\x2c\xfb\xe1\x6e\xb3\x8b\xa6\x00\x72\xc6\xfe\x3f\x15\xc9\x61\xf2\x26\xe9\xc8\x34\x29\x76\xe8\xbd\x1c\xed\xc3\xfc\x37\xfb\x4d\x32\x0d\x52\x54\xd0\x58\xb7\xf4\x81\xa2\x1e\x3b\xf3\x80\x53\x64\xec\x50\x8e\xa4\xcd\x7a\x95\x39\x1c\xdc\x20\xa2\xf0\x16\xd9\x3b\x5d\x2d\x5b\x56\xfc\xe2\x7d\x58\xc3\xed\x69\x29\x1c\xd8\x9e\xec\xe6\xee\x9d\x1a\xc3\x40\xcc\x5b\xca\x6d\x70\xa3\xc0\xe9\x05\xe5\xe7\xa8\xb4\x4f\x08\x5e\xf6\x3f\x09\xc5\xe9\xe6\x42\x4b\xd5\x5f\x3e\x96\x95\x65\xdd\x2c\xe0\xaf\x8e\x63\x2b\xba\x7e\x5b\x3c\x7c\xdb\xdb\x80\x00\x6e\x06\x5a\x3e\x43\x1c\x56\xb1\xa1\x28\x7a\xa2\x8e\x86\x39\x55\x7a\xf7\xbf\x9a\xf9\x8a\x69\xa4\x50\xdf\xce\xaf\x22\x28\x86\x1b\x15\x0c\xf7\xd5\xc0\x8e\x37\xcf\xab\x3e\xe6\xe6\xc4\xf7\x48\x5a\x62\x00\x35\xe8\xd0\x13\x0b\xff\x4e\xb2\xab\x8d\xf2\x39\xe9\x72\x41\x5e\xa5\x44\x54\xf0\x37\x31\x51\x5c\x9c\x87\xc5\x8b\x89\x29\xd6\x67\xed\x67\x8e\xd3\x31\x13\x5f\x14\xff\x76\x35\x9a\x79\x32\xfa\xe7\xb7\x45\xf9\xd3\x85\x6b\xda\x09\x93\xc2\xc9\xf3\x64\x7f\xba\x43\xda\x4c\xd1\xe4\xc0\x1f\x10\x62\xc4\xb0\x79\xa7\x2e\x68\x19\x20\x8c\x5e\x5b\x3f\x38\x4c\x87\xac\xbe\xa7\xda\x68\xf4\xa3\xdd\x45\x8a\x2a\xd1\xf0\xf0\x85\xf0\xde\xeb\x6b\x94\x0b\x97\xfc\x37\x2d\x72\xe5\x89\x3f\x7a\xd7\x4f\x3c\x06\x5b\x91\x32\x94\xb4\x38\xeb\x3b\xde\x58\x86\x54\xb4\xfe\x4b\xe9\x2f\xd4\x29\xbd\x90\x01\x74\x30\xd1\x1e\xfc\x7e\x68\xbb\x8e\x99\x49\xe3\xc5\x5a\x7f\xff\xfd\xc7\x0b\x96\xdc\xf3\x90\x73\x4a\xed\xff\x23\xb8\x2f\xe6\xea\x80\xbb\x51\x83\xdc\xc8\x70\xd8\xbe\xfb\x88\x98\xe1\x12\xa9\x0f\x05\x35\x9f\x28\x02\x67\x9d\x4e\x7c\x15\xb2\xb5\xb2\x5c\xbb\xfe\xdd\x10\x9b\x04\x09\x0d\x79\xc8\x1e\xbb\xfe\x97\x74\x6e\xa9\x68\x35\x4f\x2e\x0e\xf6\x61\xf7\x6f\x72\x18\xcd\xeb\xa0\x2d\xd3\x34\x62\xae\xfc\x35\xb6\xe3\x91\xc3\x6e\xce\x1c\xf3\x9e\x1f\x59\x26\x30\x71\xbb\x30\x44\x15\x11\x2d\xc7\x6c\x02\xf3\x48\xe4\xba\xe6\x7e\x07\x0e\x87\xeb\xb0\x95\x5e\xcc\x86\xa4\x17\x2a\xaa\x61\x2c\xd3\xef\x83\x0f\xe0\x3f\xf3\xb1\x75\x14\x0d\x4c\x34\x0b\x3e\xe2\x2b\xff\x09\xcf\x8d\x67\x4e\x2e\x06\xf1\x8c\x2d\x0d\xc3\x0a\x74\x83\x24\xc2\x88\xf2\xf3\x00\xc4\xce\x43\x09\x23\x46\x66\x34\x9d\xc4\x22\x5f\x1d\x75\x1c\x37\x95\xe8\x2b\x6c\xd8\xc7\xe6\x10\xee\xfe\x22\x95\xf5\xbc\x43\x51\x2e\x93\x6f\xaa\x8a\x53\x6f\xd8\x32\xa9\x08\xbc\xb6\xf2\x7b\x86\x51\xd5\xf6\x28\xb2\x7a\x23\x8a\x48\x19\xba\x73\xfd\x2b\xf5\xb3\xc0\x37\x6a\xf6\x46\x8e\xed\x8a\xde\x69\x2e\x8c\x2f"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12545 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA34 "\x81\x7a\x31\x01\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x41\x57\xa4\x53\xd6\x37\x46\x9d\xf1\x14\xc3\xd1\xe2\xac\xde\x78\x4e\xb7\x65\xf5\xbf\x7f\x12\xd9\x01\x6b\xf6\x4c\x72\x4c\x5d\x38\x3e\x19\x10\xf2\x98\x18\x09\x84\xb3\xd6\xa8\xc8\xd5\xdd\x85\xe2\x24\x54\xd9\x25\x00\xe2\x81\xfa\x10\xcc\xc4\xc0\xea\xcf\x73\x56\x19\x36\x40\xae\x36\x1a\x43\x6f\x2a\x15\xad\xd5\xb9\xbe\xe6\xec\xe8\x35\x07\x44\x2a\x01\x3b\x17\xd1\xf8\x94\x6e\x0e\xff\x26\x47\x91\xe4\x59\xac\xe3\x99\x9b\xd4\x43\x8f\x24\x3a\x40\x72\xcb\x70\x3b\x81\x1f\x9b\x5d\x28\xae\xba\x13\xaf\xec\x4c\xc4\x29\x52\x28\x9b\x07\xad\xfc\x42\xba\xf5\x75\x0a\xfe\xc7\x7b\x00\x2c\x1b\xba\x4d\x91\x74\x15\xa9\xf7\xda\x39\x66\xca\xe7\x81\xaa\xe7\x31\x34\xd9\x5c\x3e\x35\x24\xd4\xf5\x34\x8a\xeb\x42\xb3\xb0\x36\x17\xde\x46\x1a\x15\x45\x17\x46\x2a\x63\xd8\x99\x80\xc2\x71\xf7\xc0\xa3\xe0\x4e\x86\x51\x8a\x1d\x39\xf7\x79\xcf\x23\x49\x22\x2d\xb3\xf9\xb6\xa2\x0e\xd0\xce\xc9\x9b\x1a\xa3\xb8\xef\x01\xec\xe9\xa2\x8f\x90\xe0\xf9\x59\x74\x0d\x5f\xb5\xb0\xed\x08\x74\xd5\xe4\x0c\x2f\xac\x72\xfa\xeb\x42\x35\x72\x94\xb8\x1d\xd9\x3c\x8c\xa0\x96\x81\x9b\x90\xf2\x72\x1e\x00\xfd\xf9\x28\xe1\x7f\x4b\x54\x62\x31\xf6\xb3\x4a\xd9\xf8\x12\x9f\xd2\x2c\x46\xa3\x7d\x8c\xa8\x29\x62\xb7\x8d\xbc\x0d\xc6\x5e\xa0\x35\x14\xc4\xe9\xd2\xda\xb5\x17\x80\x33\x10\xdf\x4e\xb8\x9f\x78\xb7\x06\x56\xb9\x29\x15\xa2\xb6\xe2\x56\x64\xd4\x03\x24\x92\x69\x02\x7c\x09\xbe\xf8\xbe\x98\xb0\x2e\x9b\xf4\xd7\xa1\x9e\xf9\x01\x7c\x21\x59\xd0\x8f\x2f\xd3\xe5\x7d\x6f\xfe\xa7\x47\x42\xa8\xd6\x32\x58\x60\xef\xc3\x96\xc0\x3a\x2d\x57\x7d\xee\x99\xf7\x15\x47\x58\xa9\x2d\xb0\x44\x6b\x8b\x4f\x65\x43\x9d\x54\xbc\x64\x20\xf0\x6b\x0f\x6e\x62\xf1\x25\x00\xcf\x60\x6e\xb3\x90\x97\x34\x21\x25\x5a\x00\x52\x03\xe4\xf1\x7e\x6f\x83\x0d\xb7\x69\xac\xdc\x78\x12\x65\x85\xd6\x7c\xae\x47\x54\x7c\xfe\x75\x42\xd5\x85\x85\xbb\xc5\xc4\x83\x27\xda\x5f\xfe\x0a\xdd\xef\x25\x27\x0d\x1f\xc4\x7a\xa0\xa7\xb0\x41\x26\xea\xe3\xe2\xd3\x15\x62\xb5\xb9\xd2\xbb\x6d\x1b\x40\xd3\x9c\x76\x2d\x3f\x2e\x67\xb6\xc7\xda\xbe\x6f\xe1\xdf\x71\x0c\xec\x4d\xbb\x1e\x96\xa4\xdd\x6e\x6b\xeb\xdb\x73\x84\x36\xbb\xae\xb4\x90\x9a\xdd\xd0\xfa\x07\x18\x71\xa2\x65\x3a\x34\x09\x4d\xc6\xd5\xb4\x77\x65\xcb\x84\x37\xd0\x66\x71\xde\x42\xf1\x2c\x51\x6a\x07\xa2\x2f\x69\x54\xa7\x33\xb0\x59\xc6\x27\x05\x7b\x55\x2c\x38\x87\x6c\x72\x13\xdb\x96\x33\xea\x2e\x7f\x04\x94\x29\x27\x2b\x7b\xb1\x5e\xcb\x34\x6a\x6f\x9c\x8d\x4e\x9d\x83\xdd\x13\x40\xfa\x63\x50\x6e\x86\x87\x32\x6e\xb4\xab\xee\x3e\xd6\x4e\xa4\xe6\x25\x41\x16\xaf\xf9\x20\x19\xcd\x06\x2e\x7c\x3b\x28\xd5\x6a\x9f\xec\x2b\xb9\x2f\x3f\x3b\x0e\x8f\x67\xaf\x02\xf5\x4d\xf2\xfe\x88\x44\x25\x6e\x22\x23\x25\x06\xa3\x29\x3b\xb0\x1d\x3e\xdb\xfa\xf5\x3b\xae\xc8\x33\x26\x65\xe2\x66\x2e\x3e\x3d\x54\x95\x6b\x86\x7e\x78\x9d\x2c\x9b\x1c\x9e\x27\x20\xc4\x5c\x4b\x2a\x4c\xf8\x9a\x3f\xb0\x7b\x40\x49\xb3\x1c\x66\x21\xb9\xa3\x2f\xc0\x1a\x2b\x49\xa7\x0f\xf2\x05\x54\xa8\xf1\x34\x14\x44\x31\x42\x40\x54\xa9\x98\x81\xd0\x64\x84\x41\x48\x5b\xc3\xcc\x20\xe5\x9f\x65\x4d\x1e\x84\x0f\x46\x6b\xcc\x7d\x89\x88\x16\x7e\x93\x18\xdc\x4e\x92\x41\xe0\x83\xf7\x24\x20\x26\x4a\x18\x18\x45\x51\x86\x0c\x15\xa3\x44\x99\xa3\xda\x5c\x33\x9f\x05\x92\xe5\x03\x41\x17\xc8\xa2\x43\xf1\xfc\x98\xa5\x0e\xaf\x83\x9a\x52\x36\x8a\xcd\xef\xa5\x50\x05\xa1\x39\x79\x04\x1c\x8e\x88\x5c\x8f\xbc\x3a\x52\x33\xcb\x8b\xe6\xca\xaa\x74\x3a\x47\x5f\x87\x6c\xd2\xe0\x0e\x94\x8a\x79\xea\xd8\x1b\xa6\x81\x76\x64\x07\x83\x72\x07\x3f\x78\x1b\xa5\xf0\x36\x6e\x3d\xee\x4b\x41\xa7\xa0\xc8\x3e\xee\xb8\xf2\xcc\x7b\xef\x7c\x5d\xbd\x2f\xa3\x7b\xcf\x66\x6a\xa9\xf0\x48\xa8\x5b\x23\xa4\xdc\xfd\xe7\xbc\xfb\x03\xc7\xd2\xf6\x46\x30\x3f\x9a\x66\xf0\xeb\xa9\x35\x4c\xa9\x6a\xdf\xfa\xa0\xd5\xa3\xbb\xa1\x51\xd8\x2a\x6b\xe4\x34\x27\x49\x9a\x08\x01\x9f\x54\x21\xb8\x9f\xd9\x50\x11\x84\x85\x2f\xbf\x06\x41\x8d\xdc\xaf\x55\xd5\xba\xbe\xe9\x5c\x89\x54\x3f\xd0\x0b\x7f\x93\x4b\x90\xc2\x3d\xa6\xd0\xe8\x9e\x0a\x31\xae\x77\x54\x1f\xfb\xd7\x84\xa2\xf5\x11\xf9\xfd\x8b\xdc\x9c\x8b\x25\x51\xc7\xbf\x21\x50\x48\x74\xda\x05\x9e\xf4\x49\x3e\x9e\x00\x54\x5c\x34\x59\x30\x78\x6c\xbc\x04\x5c\x28\xc9\xf5\x78\x48\x9b\x1c\xe8\xeb\x74\xe5\x42\x66\x99\x83\xcd\x37\x72\xf0\x8b\x08\x82\x5c\xf2\xeb\xd7\x3d\x93\xda\x61\xf9\x8b\x49\xe7\xb3\x14\x16\x2f\x68\x48\x8a\xb7\x25\xba\x41\x72\xd9\xc5\xbb\xdd\x83\xcc\x14\xed\xac\x74\x57\xad\x6b\x25\x00\xc0\x97\x22\xcf\xea\x6a\x5c\xc3\xc4\x4f\xdb\xc5"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12546 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA35 "\x81\x7a\x31\x02\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x1a\x23\xf3\x94\x86\xe3\xaf\xce\x02\xf8\xf8\xbe\xd5\xc9\x3e\x03\xfc\x22\xfc\xda\x3c\xa9\x9b\x19\x2c\xb9\x47\xb8\x1b\x34\xa4\xe8\xbf\x73\x82\xac\x7d\xe8\x17\x07\x9b\x41\x31\x31\x7d\x0c\xf2\x68\x84\x8c\xee\x39\xf3\x28\x35\x17\x88\x12\xa3\x07\x62\x27\xdc\x6d\x54\xe8\x3a\x5d\x0f\xaa\x68\xe2\x4d\x85\x56\x96\xe0\xbb\x60\xc8\xb1\x29\x04\x9e\x5a\x5a\xe9\x29\x1f\xe2\x17\x6b\x8a\x74\x52\x91\xad\x42\xae\x28\x8b\x1c\x3a\xbd\xc8\x3d\x50\xad\x81\x9b\x6f\x7b\x90\x98\x90\x1e\x1e\xed\x20\xe2\xbd\x17\x65\x12\x0f\x5f\x84\xd8\xbd\x1a\x22\x01\x61\x77\xba\xae\xe6\xb7\xbb\xae\x40\x28\x86\x62\xd2\xdd\x4e\xc1\x79\x6f\x42\xfc\x5c\x94\xb3\xa9\xad\x38\xe0\x3f\xc6\x93\x93\x6a\x79\xc3\x27\x27\x98\xe0\x93\x5c\xba\x36\x9e\x3d\x1e\x59\x7d\xd0\xcf\x38\xcc\x9e\x8b\x76\xa4\x0f\x67\x68\x3a\xbb\xab\x6b\x27\x59\x98\x82\x13\x8f\x97\x05\x0e\xee\xd4\xd6\x68\x3d\xe1\x5f\x67\x65\xe8\xdb\xa6\x1f\xbb\x81\x93\x5c\xe6\xfe\xab\xe5\x00\x1d\xf6\x35\x3a\xcc\x18\x81\xd6\x12\x8d\xc9\x3a\x50\x13\x45\xd9\x3c\x89\x90\x06\x72\xcb\x92\x87\x3b\xf3\x5c\xbb\xb6\x52\xc1\x34\x57\xa1\x9d\x7e\x45\xde\x4b\x5b\x21\x63\x62\xed\x00\x3f\xf6\x41\x57\x3e\x99\x4c\x83\x97\x23\x56\x25\xfe\x52\x45\x69\x94\x75\xd1\x06\xe0\x7a\x5f\xab\xaf\x7d\xa9\xb2\xa8\xdb\x5a\xce\x1d\x96\xf1\xfb\xa0\x99\x63\xe9\xf4\x42\x83\xf9\x99\xe2\x88\xe0\x8d\x24\xa0\x4f\xf4\xa5\xc7\x84\xb1\x45\xfe\x15\x09\x63\x20\x72\x66\x2e\x60\x49\x1e\xda\x98\x9c\xe9\x50\x66\xa5\xb3\x87\x38\x1c\x45\xdc\xa8\x83\x9c\x94\x7c\x98\x9b\x0e\x45\x2d\xa0\xbe\x06\x89\x8a\x14\xa9\x96\x77\xeb\xd3\x49\x4e\xc6\x6b\x2e\x6c\xe1\x5f\x7e\x58\x56\x6a\xad\x56\x16\x50\x33\xe3\xe3\x9f\x62\xd7\xcd\x50\x9c\x36\x54\x6e\x3b\x20\x16\x81\x4f\xad\x67\xe6\x9a\xd2\x12\xcd\x3f\xbf\x37\x2c\xeb\x11\x48\xb3\x74\x54\x1a\xbe\x1f\x32\x0c\xd6\xf0\xef\x11\x60\xeb\x02\xa7\x6f\xe6\xba\x3f\x7e\x36\x32\x90\x56\x64\x7f\x08\x4a\x69\xa4\xc8\xc5\xf7\x10\xc7\x3c\x94\xb9\x44\x34\xb9\x5c\xae\xe5\xb1\xf8\x1d\xd5\x8b\xc8\xa4\xca\xea\x91\x63\xd8\x84\x57\x36\x33\xa3\x38\xe3\x5f\xce\xe3\x5e\xd0\x6c\x03\x51\x3e\x1e\xbf\x1a\x20\x7f\x03\x7d\xde\x59\x41\xf9\x25\x57\xd5\xeb\x23\x75\x8f\x17\xc7\x09\x4e\xf4\x5a\xeb\x1d\xfd\xa5\xb9\x8b\xe9\x0f\xa0\x92\x6d\x6a\x56\x32\xba\x7f\x12\xa7\x75\xd8\xa8\xcc\xb8\x98\xde\x52\x5d\xc3\xcc\x2a\xaa\x1e\x3f\xf7\xc5\x53\xe7\x24\x45\x0b\x7d\x1e\x60\xc2\x5d\x12\xec\x5b\xf6\x06\x07\x5d\x93\xbf\x7b\x88\xbf\x03\x65\x55\xa9\x27\x5b\xc5\x10\xed\xb4\xa6\x7b\xcf\x4d\x22\x1e\x63\x0e\x36\x38\xd2\x3e\x48\xf7\x28\x10\x13\xda\xd5\x43\x5a\x74\xf5\x75\x7b\xa2\x56\x64\x2b\x5c\x2d\x62\x56\x1a\x00\xb8\x04\xc6\x92\x2e\x5e\xa6\xae\x2a\xd4\xf1\xca\x37\x6f\x01\x2e\xec\x67\xf3\xef\xf7\xf9\xc1\x5e\x01\x2a\xc7\x7f\x5c\xd4\x95\x3a\x0b\xcf\x6b\xff\x85\xf8\x56\xb2\x8c\xd8\xc7\x50\xcb\x0a\x81\x8f\x03\xa8\x2e\x1e\xaf\xec\x50\xd8\x03\x1d\x5a\x7c\x08\xa6\x94\x0b\x3a\xdc\x61\xca\xe9\x50\xb5\x21\xcf\x4a\xce\x68\x5c\x08\xc5\x85\x35\xdb\x2b\x56\x02\xff\x14\x3b\x52\x57\xa5\x70\x7a\x48\x82\x58\x53\xfd\xf6\x7b\xcd\x76\xe6\x8b\x0a\x27\x20\x5e\x3a\xdf\x8a\x9b\x4d\xd4\xb5\xe7\xac\x4d\xe8\xfa\xb4\x95\x4e\xba\xa8\xad\x35\x25\x69\xaf\x6d\x6c\x86\xce\x62\x83\xf3\xf4\x0f\x11\xff\xe5\x1c\x86\x19\x43\x09\x3d\xb3\x12\x6b\x88\x43\x0b\xbf\x42\x2e\x84\xc1\x3b\x4b\x16\x91\x83\xeb\x35\xe8\xfa\x6f\x1a\x00\xd2\xa5\x81\x5d\xf6\x8e\xe5\x5c\xd6\x22\x4c\x4b\xf0\xcd\x5e\x6d\x6d\xe3\x04\xe6\x27\xca\xa9\x5f\x0c\x33\x64\xe4\x8e\xc8\x85\x2e\xff\xd2\xc0\xc1\x4a\x99\x0e\xec\x4c\x4e\x3d\x91\xb4\xdb\xff\xb0\xe4\x54\x0b\x2f\x94\x64\x43\x95\x57\x12\x99\xb7\x81\x99\x70\x41\x71\xa9\x2e\xa9\x22\xe2\x74\xeb\xf7\x89\xed\xe5\x19\xf0\xed\x68\x4f\x69\x6a\x11\xbd\xd4\x55\x0d\x6d\x9b\x2a\xb6\xdf\x97\xc9\x40\xf0\x43\xca\x75\x73\xa0\x66\x19\x19\x1b\x59\xfe\x69\xbf\x2d\xde\x6c\x3e\xf5\x24\xe2\xce\x1a\x60\xee\x2b\x15\xe0\x82\xac\x84\xe8\xd9\x46\x8a\xf0\xd6\xe0\x6b\x90\xcd\x3b\x2a\x62\xa4\x89\xbb\x98\x83\xc2\x0e\x61\xcd\x20\x07\x6c\x0f\x38\xe3\xc5\xee\x97\x0f\x6c\x00\x37\xbc\x39\xea\xbd\xc7\xb1\xa6\xc4\x77\x6b\xa4\x78\x9c\x62\xf5\xb0\x8e\x1c\x9c\x8a\xb3\xcc\x3f\x27\xbf\x5e\x5e\x6f\xed\x0d\x72\x37\x12\xa4\xff\xe8\x79\x9e\x40\xcb\x4e\x06\x22\x84\x07\x74\xd5\x1e\xec\x45\x9b\xb3\x0b\x52\xc6\x28\xf3\xb7\x0d\x21\xca\x20\x49\x03\xea\x61\x49\x90\xbb\xa2\xa2\x78\x5d\xfa\xf5\xb1\xa4\x08\x18\xe4\xf9\x81\x8b\x51\x05\xe9\xb1\xc3\x5c\x3b\x61\xd1\x59\xd1\xc1\xf0\xac\x46\x6d\x31\xf6\xd4\x53\x97\x72\x9c"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12547 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA36 "\x81\x7a\x31\x03\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x23\x75\xba\x7d\x78\x70\x7d\x4a\xba\x88\x72\x90\x75\xea\x72\xc7\xe7\x49\xb1\x56\xf5\x74\x65\x21\xc7\xe6\x7d\x5a\x61\x89\x6c\xb1\x1e\x28\x32\x41\x32\x9c\xf9\xe2\x35\x3a\x48\xc0\x75\x40\x43\x0c\x6e\x99\x0b\xc4\x3b\xb2\x6f\xfe\x96\xc6\x57\xe0\xaf\xaf\x5e\x59\x30\x45\x10\x64\x2c\xb9\x90\xc9\x05\xf1\xf4\x16\x9f\xa1\xdd\xb0\xb2\xea\x30\x5d\xb9\x69\x42\xee\x73\x2f\x09\x90\x4e\x2c\x07\x6f\x00\x6b\x33\x8f\x74\x1f\xc5\x17\x9b\xf7\xfb\x29\x05\x0c\xa4\xf2\x69\xdb\xa1\x2a\x93\xc0\x2e\x57\xd7\xc2\x59\x79\x43\xea\x48\xcd\x97\x71\x8e\xa9\x65\xfa\x51\x95\x0b\xaf\xcc\x05\xfe\xc4\x49\xbe\xb2\xa0\x04\x87\x82\x2a\x37\xc8\x82\x6c\x7b\xe7\xf5\x46\x46\x1d\xd8\x13\x0c\x14\x12\xc0\x24\x05\x90\x92\x05\xc7\x39\x0d\xd5\xe6\x82\x96\x1c\x33\xaf\xfd\x4b\x3e\x29\x29\xbc\x0e\x68\xc5\x20\xa4\xe1\x97\x23\x68\x78\x9a\x74\xe1\x36\x94\x99\x29\x94\x80\x80\x70\xbc\xcf\x39\x95\x06\x6c\x97\xf4\x69\x06\x2a\x44\x51\x8f\x1b\xa8\xcf\x42\x1a\xd8\x32\x25\x55\x99\xec\x99\x1e\x78\x7b\x9e\xfc\xbc\x3a\xbb\x7c\x93\x3c\xe4\xaf\x9c\x9e\x70\xe7\x64\xe9\x67\xf8\xb4\xa8\x3a\x88\x30\x32\xd3\x28\xcb\xad\x8d\xd4\xad\xe3\x8b\xf1\xc7\xce\x69\xc0\x14\x24\xcb\x1e\x03\xf6\xa1\xa9\xc4\xa8\x0a\x65\x64\xe5\x68\xcc\x8d\xf1\x5c\x62\xcd\xa7\x2c\x3c\xfd\x6f\x4d\xfa\xe4\xdf\x83\x4f\x0b\x5f\xb3\x20\x6b\xf6\x5a\xd5\xd8\x9a\x41\xaf\xb9\x0c\x92\xfc\xa5\xb3\xcd\x3b\xbc\x54\x0d\xd2\xd8\xb6\x0e\x39\xd3\xb3\x14\x66\xfb\x02\x4a\x90\x8c\x03\xbc\x1f\x5f\x4d\x72\x2b\x6b\x77\x39\xb9\x73\xb3\x93\xbd\x15\x78\x2e\x9b\x53\x56\xbe\x9a\xaf\x82\xab\x4d\x86\xfb\x90\x81\x4d\x12\x4b\xb3\xe6\xa7\x11\xbf\x8b\x9e\x71\x84\x74\xcc\x4e\x2a\xcd\xb0\x4e\x66\x91\x3e\x00\xe6\x63\xf6\x18\xba\xda\x52\xf0\x69\x87\x10\x3e\x28\xd9\x6c\x4a\xb2\x81\xc6\x45\x40\xc0\x21\xb6\x18\x23\x53\xec\x46\x18\x15\x71\x04\x2d\xe6\x00\x79\x78\x5d\x0a\x44\x08\xef\x05\xaf\xcb\xc5\xe3\xa0\x0e\x8c\x88\x68\xdc\xe3\x3c\x4e\xb8\x87\xd1\x23\x9e\x2c\x86\x5f\xb0\x01\x3c\xb1\xa3\xf1\xbb\x1d\x33\xb8\xa3\xda\xc6\x97\xb5\x67\xb3\x8b\x8d\xfa\x02\x7d\x00\x45\x81\x9c\x6e\x60\x3c\xf2\xbb\x01\x2c\x15\xd3\xa4\x5e\xf0\xbf\x8c\x97\xf8\x67\x43\xd4\xcd\xad\x31\xef\xd6\xfe\xfd\xdf\x80\xe5\xbb\x4d\x81\x5b\xe4\xf5\x88\x9d\xb8\xd0\xab\xbe\x01\x0a\x26\xe0\x2a\x7b\xd1\x6c\x9f\x35\x5e\xcd\x0d\x93\x18\x89\x6e\x26\x93\xcb\x9a\x03\x59\xbb\x9b\x17\xf0\x21\x6d\x17\x0a\xd7\xb0\x76\x38\x3d\xe7\xa9\x07\xfa\x74\xbe\xcc\xd7\x29\x91\x31\x6b\x0c\xd6\x42\xb6\x95\x67\x4b\x63\xa5\xbf\x22\x91\x4e\xd7\x35\xde\xc1\xb0\xcb\xd8\x46\x32\x63\xd7\x91\xb4\x1a\x03\x5f\xb7\xb8\xe4\xd7\x1b\xf7\x07\x45\x48\xf6\xca\x0e\xf7\x03\x3b\xc8\xdd\xbe\x87\xd8\x71\x69\xb5\x6d\xde\x47\xe3\x91\xc6\x54\xef\x62\x4a\x67\xaf\x23\xd2\x8c\x92\xba\x43\x9c\x48\x2a\x42\x58\x39\x78\xa1\x39\x15\x81\xc2\x1f\xa1\x6a\x04\x91\x4f\x30\x0b\xaa\x34\xbf\x07\xd3\xa5\x6a\x07\x94\x3c\x56\xd7\x6e\xfe\xc8\xa5\xb1\xa7\x4f\xa5\xc3\xf8\x60\x0c\x89\xf6\x86\x35\x7f\xe6\x1b\xb3\xb0\xbb\xe5\x54\x3f\x2c\x5e\x44\xac\x46\x18\x12\xad\x83\xcf\x0b\x10\x9b\x54\x00\x62\x22\xcd\xf0\xd4\x28\x59\x6b\xec\x5f\x30\x86\xd1\x0b\xe2\x77\x7f\x05\xa7\x93\xcc\x5e\x81\xca\xa4\x17\x8f\x37\x9d\x13\xb2\xc1\x00\x27\x7c\x7c\x1f\xaa\x2c\xa2\x58\x5f\xdd\xb0\x6f\x24\xde\x93\x28\xf1\x65\x8d\x1e\xec\xb5\x4b\xf9\xe5\x1a\xb3\x73\x8c\x76\x2d\xf3\x01\x7a\xc2\xa1\xb8\x29\xb6\x25\x6d\x2d\xba\x47\xf5\x99\x9d\x3d\xbe\xf2\x6c\x98\xfc\xdf\x1d\x31\x0b\xb1\x25\xa1\x8b\xf2\x61\xef\xd0\x6e\xc3\x23\x5a\x5c\x83\x2e\xa8\x32\x28\x0c\x4f\xb4\xb6\x8d\x3d\x2c\xdb\xd4\x47\x32\x17\x67\x7b\xe6\xf3\xe3\xc5\x17\xe2\x61\x31\x27\xa1\x17\x84\x5d\x29\x20\xee\xa9\xd0\xb6\x3d\xc2\x6b\x4f\x2c\x4c\xe2\x63\x99\x4c\x40\x4a\xad\xcc\x29\x55\x70\xf4\xee\x90\x84\xb5\x3c\x04\xaf\x64\xfc\x4b\xbf\xf6\x22\xea\x67\x4c\x49\x28\x05\x86\x8d\xb7\xfb\x70\x21\x12\x6e\x84\xfd\x9f\x47\xdd\x67\x2b\xcf\x96\x51\x87\x5c\x31\xbf\x5d\x88\x88\x92\xc1\x16\x6b\x6e\xc9\xf4\x5a\x78\xe9\xb3\x47\x46\xf7\x54\xb8\x63\xc3\x2e\x42\x39\x87\xc3\xdd\xf2\xb0\x52\xae\xb6\xa5\xa7\x91\x97\xaa\xfc\x40\xe3\x3a\x18\x9d\xf1\x8b\xad\xdb\x07\x51\xae\x2a\xe6\xc5\x29\xbd\xa2\xc4\xbf\x1d\x8e\x0f\xc0\xf4\xb1\xd4\x35\x42\x7a\xcb\x4e\xa4\x38\xfc\x8c\x5c\x88\x9b\xce\x5d\x3d\xeb\xed\xf8\xdd\xda\xbf\x92\x92\xb5\x0e\xe1\xf7\xbb\xd7\x63\x38\x50\xbd\x94\x8c\x42\x1b\xf0\x7b\x40\xc9\xb9\x50\x0d\x93\x90\x6a\x5b\xcf\x5e\x65\xb4\x18\x6c\x36\x06\x5a\x87\xe1\xbc\x16\xf5\x1d\x29\x03\x23\xb3\x60\x62\x5a\xe4\x1c\x87"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12548 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA37 "\x81\x7a\x31\x04\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x0d\xc6\x1b\xc3\x18\xb7\xb0\xdb\xdd\x6f\x69\x85\x40\x06\x39\xd7\x1e\x7b\xcf\xe5\xed\x15\x7e\xa3\xa7\x1f\xb0\x60\x96\xcc\x2b\xde\x65\x2d\xc5\x90\xb1\x7f\x69\x5d\x64\x61\x1b\x13\xe9\x4e\xe2\x58\x54\xe8\x44\x2e\x05\xeb\x24\xac\x2c\xf7\xf5\xa1\x9d\x17\xc3\x8a\x32\x92\xac\xf5\x68\x88\xc1\x05\x72\xbf\xdd\x1e\xb9\xfd\x6c\x0f\x9f\x00\xc9\x1f\xaa\xca\xad\x0b\xd9\x40\xea\xa8\xa1\x83\x4f\x50\xa7\x6f\x9a\x46\xf6\x9e\xe1\x76\x87\xfa\x92\x60\x4b\x5f\x84\x4a\xb9\xd4\x9a\x27\xa2\xf1\xbf\x70\x9f\x42\x98\x19\x3e\xeb\x82\x8a\x34\x93\x5f\x24\x61\x00\x00\x07\x75\x7d\x48\x26\x45\xb0\x55\x13\x32\x1f\x21\x18\x98\xb4\xfc\xfa\x72\x70\x3e\x44\x4b\xc0\x6b\xa2\x1f\xe6\x9d\xb1\x54\x0e\x76\x19\x44\x60\x08\xc3\xe9\x12\x7d\x35\xd2\x7d\xe7\x66\x9e\x32\x1f\x2a\x38\x66\x24\x27\x22\x21\x14\x5c\xbd\xad\x8e\x10\xc7\x66\xae\xd0\x45\xb1\x01\xbc\x5b\xe4\x8d\xfb\x26\xc0\xa4\x37\x37\xf7\xde\x92\x19\x8b\x66\x79\xc3\xa6\x53\x95\x11\x0a\xb0\x03\x67\xf2\xe0\x13\xbc\x88\xf8\xac\x1c\x0f\x16\x35\xfe\x0f\x6e\x1c\xe6\x72\x1a\xc9\x39\xfc\x50\xb9\xa1\x6e\x1b\x12\xb2\xe7\x28\xcb\x19\x2e\x4c\x22\xa1\x59\x26\xf1\xaf\x14\x07\x88\x6f\xef\xd9\x4f\x94\x81\xe6\xb6\xd1\x82\x80\xf3\x60\xa4\x8a\x65\x72\xba\xdc\x43\x87\x82\x85\xa1\x66\x8c\x23\x7f\xcf\x59\x5a\xf8\xcb\x51\xcb\x58\xdf\x7d\xd9\x28\xef\x9a\xb2\x11\x4e\xe1\xe8\x23\x00\xf3\x86\x15\x30\x65\x4d\x51\x75\xb7\x37\x43\x13\x37\xc2\xf2\xc8\xfc\x63\xf2\x0d\xc3\x7e\x2b\x09\x83\x89\x12\xf7\xa5\x0a\x5e\x0d\x79\x4b\x02\x69\x76\xd4\xcc\x05\x83\xf5\x38\x8b\xe5\x5d\x86\x80\x4d\x94\xe2\x26\x13\x77\xf2\xa7\x76\x71\x37\x91\x59\xf1\x04\x6d\x16\x1d\x55\x5c\xfe\x93\xd5\x03\x77\x76\x75\xfe\x7a\x75\x43\x90\xd9\x05\xba\x7c\x11\x41\xfe\xaa\x1e\x1c\x8b\xa8\x85\xee\xb4\x6e\xd7\xd9\x6b\x0c\x52\xfe\xdf\xd1\x2d\x83\xfa\xe1\xc1\xcd\x6c\x4c\xbe\x5f\x5b\xef\xeb\xdb\x1f\x25\xf4\xb8\xf9\x29\x55\x6e\x2f\xb3\xc1\x58\x4a\x87\x9c\xbb\x0d\xf0\x86\x17\xba\xbf\x2c\xe2\xb0\x7e\xe0\xaf\xcf\xdd\xc7\xc6\xeb\x9c\xfd\xca\xec\x4f\xe6\xed\x17\x8b\x6b\x41\xc2\xf4\x8c\x26\x40\x2c\x51\xde\xc7\xae\x6f\x54\xfc\xfb\x95\x97\x11\x1b\x9d\x48\x4d\x88\xb8\x56\xef\x6f\xf7\x2a\xe2\xc2\x0e\x0c\x85\xf1\xd7\x16\xef\xd5\xe6\xf7\x24\xed\xf2\x04\xce\x81\x1f\x07\x3f\xf4\xcc\x49\x24\xd0\xe8\x27\x31\x33\xde\xf9\x6d\xe3\x9c\xf4\xa1\x4e\xc9\x1f\x7e\x2a\xa8\x21\x25\xba\x3e\xc4\x67\x93\x3c\xab\xd3\x5b\x2a\x41\x87\x0f\xe1\xcc\x8a\xa8\xec\xcf\x90\x7c\x48\x24\xeb\x6a\xb6\x31\x32\xfa\x06\x54\xc1\xce\x8a\x35\x15\xda\x51\x81\x15\xec\x2c\x50\xf3\x90\x42\x93\xbf\x18\xb9\x63\x42\x49\x7e\x37\x8b\x5e\xaa\x7d\x36\x9d\x54\x7d\xcf\x7b\x08\xe1\xad\x15\x0a\xf3\x1a\x74\x4a\x3e\x75\x70\x5c\x9d\x11\xb8\x6d\xa3\xea\x1a\x09\x0a\x3f\xf9\x48\x55\x4e\xb8\x9f\x62\xfd\xc2\x4d\xcc\x34\x92\x33\xa5\x32\x9c\x6d\x3d\x56\x37\xa0\x7f\xb7\x32\xb8\x39\x37\xa0\xfd\x99\xba\xe2\x1c\x92\xf0\xa4\xba\x2b\x62\x86\x1b\x12\x65\x51\x60\xcb\x2e\x94\x96\x34\xaa\x74\x7b\x96\xe4\x93\x08\x39\xc5\xd2\xb8\xe0\x9e\x1f\x47\x88\x1a\x0a\x07\x9d\x6f\x8a\x68\x5a\xca\x75\x27\xe8\x94\xfc\x66\x10\xe6\x99\xbe\x99\x68\xfd\x08\xd8\x6c\xaa\x53\xa8\x70\x02\x2c\xd8\xe7\xd9\xc4\x50\xc0\x7c\x54\x80\x32\xa6\xe0\x98\x2f\x33\x40\x42\x7b\x38\x23\x88\x06\x1a\xe3\xc3\x72\x15\x9b\x4e\x9d\x00\x0b\xb0\x4c\x59\xa6\xf3\x02\x65\x4e\x19\x11\x0a\xb2\x35\xa6\x78\x36\x94\x57\x7c\x75\x4d\xa7\xda\xd5\x22\xb2\xfe\x89\x82\x36\xde\xbc\xb2\xb5\x14\x03\x5d\xda\xc8\x48\x82\x10\x2d\xe7\xc3\x7a\x3f\x2e\x02\xf2\x80\x69\xd2\xfa\xb6\xfe\x1a\xc7\x7f\x25\xb0\xb0\x5f\x49\xf6\xd0\xe2\xa4\xf2\xbc\x1c\xde\xf9\x0c\x4f\xe8\x77\x40\x2b\x69\xac\x9a\x70\x59\x62\x09\x50\x67\x0c\x9a\x3b\x4a\xb6\xf5\x0b\x3b\x20\x3c\x51\x27\xd5\xe1\x82\x01\x9e\x10\xc4\xe9\xa4\x2d\x82\x26\x3b\xbf\xcc\x00\x65\x03\xc1\x58\xa6\x52\x58\x9d\xc1\xdd\xca\x3d\xa8\x70\xed\x64\x68\xe3\xd0\x5b\xba\xfb\xc6\xa3\x4c\xcf\xaf\x4f\xb9\x40\x5b\x6e\x5e\x19\x21\x04\xda\xbb\xa2\x83\xfa\xc2\x0b\x3b\xea\x76\xf8\x30\xf9\xd1\x89\x1b\x68\x12\xf1\x86\xde\x2b\x90\xf5\x20\xe1\x77\x2c\xd4\x63\xf8\x74\x57\x60\x1b\x01\x9c\x81\x50\xf0\xef\x9e\x1a\x11\x67\xf6\x71\x1a\x3f\x69\xd7\xba\x88\xdb\x2b\x12\x67\x00\xa5\xae\x98\xcf\x90\xae\x1d\x75\x0f\x64\xe6\x5b\x4e\x17\xf8\x73\x7b\x1f\xec\xa4\x30\x4b\xe4\xa9\xb1\xb5\xdf\x19\x7a\xbd\x41\x2a\x5b\x44\xd2\x4a\xbd\xad\xd5\x4b\x39\xb7\xcc\x54\x3c\x03\x6b\x5f\xee\x20\x53\x68\x90\xc3\xae\x81\x17\xfe\xc5\x54\x5b\x1a\x2e\x66\x82\x39\x8e\xe0\x5f\xe8\x28\x22\xdd\x2d"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12549 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA38 "\x81\x7a\x31\x05\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x9e\x62\x48\x0e\xc2\x14\xaf\x00\x15\x30\xd0\xbf\x91\x6f\x71\x36\x2a\x80\xa1\xff\x2c\x83\x1b\x66\x90\xe7\x27\x28\x97\xf5\x13\xd1\x06\x33\x0c\x72\x86\x4b\x7b\x70\x34\xb5\x02\x27\x86\x37\x2e\x4f\x08\xe1\xd1\x99\xab\xfc\x5e\xa4\x19\x5c\x0e\x78\x74\x49\xca\xa7\x05\xa2\xd4\x89\x9c\x4b\x1c\x2f\x3f\xc8\xe0\xc1\x89\xeb\x03\xc9\x92\x9b\x39\x79\x66\x0b\x11\xc9\x44\x5b\x82\xa5\x93\xc7\x20\x77\xb8\xb3\xbb\x5e\xdf\x95\xd9\x1e\x04\xe9\x64\x63\x7d\x5e\xb3\xef\x9d\xf7\x84\xf3\xbd\x39\x6c\x15\x48\xd6\xa7\xe4\xd0\x62\x43\x53\x41\x38\xc2\xcc\xc6\x40\xdb\xd7\xe2\x5d\x22\x45\xef\x5b\x20\x30\xff\xd7\x03\xc3\x97\xd7\x03\x4b\xcc\xf1\xb1\xf8\x3f\xee\x50\x8a\x31\x2f\x7a\xbb\xc9\xb8\x0d\xa6\xf8\xf4\xab\x20\xbb\x73\xb6\x1b\x10\x5f\x50\x02\x94\x81\xfe\x8d\xde\x8f\x87\x00\xcd\xbd\xfe\x45\x9d\x6e\x09\xa1\x4b\xc0\x98\x42\xec\x06\xad\x79\xb4\xdb\xee\xd8\x09\x48\x8d\xfb\xbc\xe2\x58\xc5\x32\xf2\x98\x23\x85\x88\xe3\xf6\xc8\x8a\x44\x01\xe5\x75\x95\x7e\x0d\x42\x5a\x88\xed\x60\x10\x93\x95\xd3\x21\x91\x6a\x01\x0f\x14\x5c\xb5\x2f\x93\x52\x6d\x44\xbf\x15\x3c\x31\x02\xc3\x8b\xb8\x19\x18\x49\x4b\x22\x4b\x1c\xaf\x0f\x07\xad\xb2\x75\x7e\x68\x5b\xa8\xe0\x23\x84\x9e\xdb\xed\xfb\xc2\xbf\x5e\xde\x4a\x30\x9e\x2a\x40\x6a\xe1\x90\x8c\xb0\xb1\xba\x15\xf2\x07\x0e\x1c\x8b\xe3\xf5\xe6\xf0\x12\x85\xfc\x4c\x12\xba\x18\xf4\x4c\x9a\xed\x11\xc2\xbd\x47\x47\x52\xbe\x41\xfd\xd8\x1b\xd3\x43\x54\x14\x4a\x17\xed\x14\x20\xb0\x39\x98\x8e\x06\xef\x64\x95\x01\xa0\x59\xa4\x66\x04\x2b\x5a\xca\x6a\xd4\xc4\x48\x42\xee\x94\xbb\xde\xbe\x71\xb6\x26\x84\xba\xd8\x75\xbe\x8c\x05\x8b\xe2\x9d\x49\xe3\x8b\x40\x09\xc5\xc4\xb3\xec\x0d\x78\x26\x28\x3a\x45\xfe\xee\xfa\x24\xb4\x75\x75\xaa\x16\x07\x6f\x01\xe9\x31\xcb\xa9\xe5\x9c\x79\xc5\x9a\x05\xe5\x71\xa4\xfe\x26\x3b\xd2\x0a\x5e\xe7\x66\x19\x64\xc2\x29\xcb\x7e\x11\xfe\xf3\x32\xea\x0f\x1a\x69\x6e\xf7\xe1\xb0\x74\xfc\xe4\xfb\x80\x51\xaf\x47\x79\x3c\x37\x30\xed\x37\xa3\x05\x4b\x9e\xbd\x21\x20\x6f\xfc\xf0\xbe\x6f\x6b\x77\xa3\xaf\xe4\x39\x2e\x29\x8e\xbf\x8c\xae\xac\x4d\xeb\x59\x41\xa0\x4a\xbb\x91\x5a\x5c\x58\x0e\xe9\x5b\x8a\xe3\x0d\x99\xdc\xfe\x18\xbf\x67\x31\x55\x60\xe1\xce\x9c\xca\xd9\x25\x7e\x82\xe5\x57\x99\xa5\xdb\xa6\x78\x23\x5f\xdd\xef\xd4\xf2\x4e\x21\x91\xa8\x87\xe1\x82\x30\x8a\xb6\x1b\x83\xcd\xfa\xd2\x76\x8f\xca\x12\x81\x1d\xb6\xab\xea\xac\xb4\x13\x4d\x50\xa0\xc6\x1c\xe9\xaa\x34\x0c\x5e\x35\xfd\x9f\x83\xed\x00\xea\xed\xb4\xa3\xad\x4a\xf3\xd2\x33\x15\x16\xc9\x29\x3b\x3d\x4e\xd9\x2f\x42\xf4\x12\x9f\x6c\x85\xad\x7a\x16\x7a\xe9\xdc\x78\x22\x5a\x95\x84\x0b\xe4\x56\xc9\xe8\xea\x3d\xba\x26\xa8\x89\xad\x29\x83\xc6\xb0\xb4\xe0\xad\xa8\x99\x5d\x1c\xaa\x16\x2e\xc7\x37\xcc\xac\x32\x95\x1a\xad\x3d\x35\x0d\x7c\xa4\x8d\x0f\xba\xcc\x75\x8f\x9c\xd1\x99\xc2\xe1\x0f\xfc\xbc\x28\xf9\x27\x6e\x65\xd9\x74\x36\x61\xdd\xdd\x67\xeb\x09\x19\x8e\x13\x06\xe9\x42\xed\xf7\xb9\x8b\x30\xba\x07\x5c\x16\xb5\x70\x8c\x39\xa1\x52\xb3\xe8\x7b\x3e\x35\x78\x96\xb9\xbb\x79\x84\x89\x72\xfe\x32\x82\x80\x96\x72\x31\x5b\xf3\xee\x51\x92\x5c\x8c\xf5\xc8\x4b\xc1\x82\xb4\x94\x1e\xad\x87\xeb\xcf\xde\x62\x33\x4f\xb2\xdf\xc0\x75\x85\x2e\xa4\xcd\x53\x24\xea\x73\x56\xd1\x3e\x3b\x6b\x60\xfe\x0d\x5e\x61\xd4\xcc\xb3\xbf\x0c\xe9\xdb\x64\x52\xe7\x3b\x47\xc5\xd9\x64\xcb\x1a\x57\x46\xcc\xa7\xdf\x1a\x77\xe0\x82\x0f\x76\xc2\xd4\x9e\x4f\x1f\x09\x63\x34\xa6\xd0\x20\xc8\x55\x09\xbf\xc2\xbd\xee\xcd\xcc\x5f\x98\x50\x80\x34\x52\x4f\xa2\x61\xbc\x1d\xde\xae\x5c\xea\x47\x82\xd6\x3c\x6a\xbe\x54\x20\x21\x2e\xba\xe7\x77\x02\x2a\x7c\x27\xc5\xa6\x34\x38\x4d\xde\x17\xbe\x4f\xfe\x94\x5f\xcb\x18\x04\xd8\x2e\xee\x71\x73\xfb\x49\xdd\x53\xa7\xd8\x59\x6c\xc5\x98\x1c\xec\xae\xb1\xfe\xe8\xfc\x4a\x20\x49\x6b\xe1\x1c\x47\x6d\x0a\x7b\x46\x81\xae\xe4\x0f\x6b\x44\x40\xf2\x0c\xf9\xa3\x7a\xbd\xad\xe2\xae\x4e\x66\x55\x02\xc9\x35\xef\x50\x4d\xee\xa4\x43\x34\xfb\x27\xc5\xbe\x9a\xce\xab\xa0\xd5\xf5\xb2\x14\x9b\x01\x34\xee\x49\x29\xec\x56\xcc\x04\x6c\x97\xbc\x81\x9e\xdc\x21\xcc\x94\xf7\x93\xd2\xb2\xfc\x59\x00\x2c\x28\xd7\x1a\x87\xd2\xca\x42\x6a\x40\xce\xf1\xe2\x85\x89\x7a\x84\xd1\x99\xc6\xc2\x97\x05\xac\xd6\x77\xd5\xda\xe5\xe6\x57\x99\x09\x8b\xe1\xa6\x6a\x00\x7a\xd5\x8c\x65\x62\xf1\x61\xf4\x65\xe6\x31\xa0\x6c\xd7\xef\xab\x20\x41\xd2\x1b\x95\x9e\x00\x2e\x5e\x6c\xd5\x96\xb0\xbc\xe9\x4d\x16\xe2\xb8\x33\x49\x04\x60\x7e\x0c\x90\xe3\xc8\x07\x53\x6b\xa9\x61\x35\x0c\x8b\x10\x41\x07\x87\x9a\x0f"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12550 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA39 "\x81\x7a\x31\x06\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x31\xa9\xb8\x25\x70\xa3\xaf\x3e\x9b\x60\x08\x35\x32\x58\xef\x9f\x9d\xb2\x52\x96\xd9\x32\xc6\xba\x7a\xa9\x12\x60\x1c\x47\xdd\x54\x37\x54\xbc\xd6\xea\x22\x28\x7e\x85\x0f\xe8\xb1\xf5\x6c\xe5\x55\xb0\x9c\x63\x0a\x68\xe0\x81\x95\xe9\x4e\x3f\x54\x9c\x69\x30\xa7\xdd\xf0\x35\x9c\xfc\xb2\xcc\xad\xc6\xb0\x49\x41\xe3\xa9\x53\x1a\xa8\x58\xdc\x0c\x84\x40\xa5\x8d\xce\x13\x73\xd2\x5e\x3d\x50\xc3\x03\xf9\x48\x14\x94\x4c\x21\x0a\x7f\x4f\xc6\x4e\x13\x86\x2c\x1b\x82\xef\xbd\x47\x50\x57\x64\xb3\x1f\x95\xf7\x81\xb5\xbc\xc2\x6e\xf7\xd9\x2c\x62\x3d\xf2\xaa\x8f\xca\x19\xb7\xd2\xa6\x04\xd8\xc3\x77\xda\xa0\x48\x98\xc4\xb6\xa9\xf9\x0c\x47\xc6\xf1\xa4\x5c\x7c\x4d\x0c\x22\x48\x3c\xae\x48\x2d\x83\x92\xf2\x66\xba\x49\x11\xa3\x7c\x4f\xfe\x30\xbe\x85\x28\xca\xdb\xc8\x8d\x99\x19\x17\x7c\xae\x75\xc1\x21\x4e\x58\x5e\xd5\x1d\x15\xb3\xa8\xae\x34\xc5\xf2\x32\xb4\xc3\x5f\xe2\xcb\x57\x46\x2d\xa2\xe9\x44\x93\x8c\x84\x6b\x58\x4e\xb3\x9c\xe6\x4b\x82\x01\x10\xdf\x24\x66\x33\xe1\xef\xd8\xf4\x7f\x4f\xad\x88\xf5\x98\xae\x98\x4e\xb9\xd8\x4d\xb9\x6c\x9c\xce\x7c\x9d\x36\x7a\xbd\x8e\x67\x80\x01\x2f\x7a\x15\x3c\xde\x07\xa4\x8c\x31\x78\x99\xd0\x0b\xcd\xab\x7b\x09\xf1\xc9\xea\xf8\xed\xd8\x60\x0a\xe0\x3e\x35\x75\x50\xae\xed\x8a\x81\x79\xc3\xa9\x81\x2e\x66\xd4\x36\xef\xb4\xfd\x91\x94\x29\x43\x67\x46\xe8\x4f\x4d\xc9\xdb\x4d\x84\x4e\xb1\x53\x5a\xe0\xa3\x81\xfe\x7b\x09\x55\xb8\x55\xcb\x7d\xb7\x4d\x48\xaf\x39\x37\xef\x29\xcf\x48\xa7\x9e\x3a\x42\x41\x1c\x98\x1b\x3b\xf2\x68\xde\x83\xfd\x97\x88\x12\xf2\x38\xaa\xf9\x34\x6b\x90\x14\x6c\x3e\x23\xe9\x03\xce\x58\xc8\x48\x60\x5e\xc7\x02\xc9\x7a\xb1\xad\x9b\xec\xfb\x63\x9f\xbc\x27\x7e\x4d\xb9\x14\x53\x60\x18\xa5\xaa\xc4\x64\xb7\x8c\x5c\x0d\x55\x79\xd1\xf6\xa9\xb5\xb9\x14\x1c\x9a\x09\x35\x49\xc2\x08\xd6\xa9\x80\x66\x46\xea\x6b\x7a\x3b\xc7\x64\xca\x1c\x94\x3e\x5c\x28\xdf\x27\xe9\x7a\x60\x58\x71\x66\xa1\x91\xe2\xc9\xc6\xc0\x7f\x54\x6a\x49\xc2\xd8\xdc\x76\x89\x65\xd3\xc1\x97\xf8\x1e\xae\xe4\xec\x07\xcb\x49\x70\x61\x47\x69\xa1\x12\x52\xfe\x1d\xf6\xb1\x58\x9e\xa2\x01\x2e\xe2\x5d\xd0\xc3\xd6\x32\x0b\xcf\x10\x95\x48\xf6\xe4\x8d\x06\x33\x63\x1b\x3c\xb6\x55\x61\x9d\x42\xfd\x58\xcf\x99\xad\xdd\x1a\x6d\x9f\xd6\xdc\x00\xd3\x70\x15\x44\x20\xad\x5c\x83\x85\x44\x7b\xe3\xcf\x1f\xf8\x1f\x8a\xd0\x75\xf7\x0c\xf7\xa9\x47\xad\xed\x92\x89\x32\x00\xf3\x77\x56\x83\xa7\x5b\x46\x6c\x70\xed\xd4\xed\xb6\x27\xfd\xcf\x8d\x2e\x6f\xe9\x7e\x60\xd5\x1d\x34\x1f\x51\xe0\x1b\x55\xfb\x86\xf1\x92\xbe\xb6\xf1\xf6\x70\x60\xec\x6b\xb3\xb2\xa3\x3e\xa3\x00\xad\xb5\x80\x18\xdc\x42\x8b\xca\x82\x46\x09\xa5\x15\xa6\x27\x14\x2c\x2c\x2c\x5e\x91\x70\x16\x29\x1d\xca\xc9\x6e\x65\x13\x44\x72\x6e\xf3\xa0\x6a\xde\x71\x81\x23\xad\x54\x79\x09\xea\x9b\x67\x56\x51\xf2\x93\xf2\xe1\x0c\x1d\x08\x33\xae\xca\x87\x94\xdb\xff\xa4\xc7\xd0\x76\x29\x5e\x8c\x85\x60\x97\x16\x21\x3a\x97\xa0\x58\x2e\x5c\x41\x16\x45\x1e\x82\x33\x33\xe0\x0d\x6d\x36\x0a\x90\x4b\xd3\x45\x23\xec\xc2\xdf\x82\xbf\x5d\x9b\xb6\xfa\x27\x8c\xaf\x7c\x50\x03\xc1\xa4\x51\x4e\x9f\x35\xb1\x1a\xb6\x95\x84\x25\xbf\x0e\xd7\xb4\x1c\x9e\xc9\xf5\x7e\x18\x0c\x3b\x73\x37\x61\x1c\x64\x4b\xca\x15\xc8\xc6\xf1\x6a\x30\x15\xbf\x5e\x3d\x44\xed\xa4\x4f\x05\x89\xc2\x71\xcf\x81\x0c\x9c\x21\x0a\x46\x22\x1a\x7b\x95\x03\xa8\x96\x54\x98\x80\x78\x5a\xf2\x78\xf6\x92\x7b\xf4\x13\x10\x9a\xde\xe4\xfa\xf2\x66\x5a\xc1\x03\x2d\xb5\x9f\x2e\x83\xfa\xb0\x7c\x1c\x42\xdc\x6e\x14\xd4\xc0\xb7\x9a\xda\xda\x01\xd9\x65\x8c\x83\xec\xd1\x24\x55\xce\x8e\x82\xd7\x87\x8d\xb6\x97\x31\xe4\x41\xe8\x68\x1a\x87\xa2\xa3\xf4\xc4\x7f\xbf\x6d\x2f\x0d\x03\xd5\xa2\x49\xb8\x90\xde\x43\x15\x85\x40\x29\xd8\xc4\x97\xa5\x40\x11\x81\x87\x8c\xf4\x42\x3c\x7c\x6b\xa3\xde\x17\xfe\xec\x42\x65\xea\xe5\x07\xfb\xc5\x24\xee\x18\xde\x5c\x4f\x56\x46\x6f\xb7\xe9\xd8\x40\xea\x57\xe4\xf8\x0d\xe2\xf5\xdd\x24\x31\x5e\x9f\x17\x5b\xc6\x56\x49\xbc\x6f\x70\x41\xbd\xb5\xb6\x5a\xc1\x51\x1c\x50\xb2\xa0\x6c\x29\xcb\xe9\x8b\x7f\x05\x5c\x72\x84\x98\x94\x22\x93\xc4\x82\x87\x49\xf6\x9b\x4e\x10\xe5\x66\x55\x2e\x77\xa1\x1a\x85\x1b\x61\x34\xb5\xbe\x38\x3b\x50\xfe\xe1\xe1\x98\x41\xb6\x13\x83\x46\xec\x99\x0c\x02\xf7\x34\x0d\xaa\x74\x13\xb7\x93\x4a\xfd\x77\x39\x56\xce\x1e\x8f\x81\xc1\xef\x1a\x0f\x2e\x03\x27\x14\x6f\x06\x8a\xdb\xfe\x01\x1b\xc9\xdc\x56\x29\xe1\x3b\xd3\x82\xfe\x08\xeb\xd5\xb6\x79\x5a\xce\x8f\xb4\x6b\x70\xb9\x26\x6a\x01\xb4\x3c\x44\x52\x2b\x8e\x7f\x56\x08\x0d"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12551 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA40 "\x81\x7a\x31\x07\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xfc\xd8\x7a\x39\xed\xdb\x0e\x08\xeb\x3a\x1b\x40\xa0\x87\x72\x7d\xe1\xdc\x82\x8d\x74\x55\x4c\x0a\xc5\x62\x21\x4d\xa8\x57\x4d\xb1\x87\x90\x56\x3f\x5c\xf3\x8b\x0c\x72\x0e\x54\x34\x7c\x15\x5a\x53\x84\x74\x81\xc7\xc9\xaf\x4c\xeb\xf7\x17\xd2\xed\x77\x7c\x4f\x2f\x4a\x1b\x77\xb5\x61\xac\xaa\xad\x30\x8e\x0f\xda\x19\x40\x9e\x98\xc0\x7f\x29\xfc\x46\x6f\xcb\x88\xef\xde\xf9\x20\xaf\x4f\x93\xfa\x86\x04\x22\x05\xb8\x59\x29\xaa\x69\xa1\xa8\x8f\x53\xca\xa9\x9c\xe4\xa6\x02\xee\x53\xd1\xc5\x7c\x52\xa1\x37\xfa\xd4\x6e\x03\x55\xb1\x98\x1c\x6d\x35\x25\xc5\x1a\xb5\xe0\x79\xf6\x98\x6c\xc2\x3c\x66\x67\xd0\x7d\x87\x8e\x58\x36\xb3\xe6\x39\xa4\x10\xb7\x0f\xe2\x42\xf0\xe8\x39\x8c\xe5\x37\xc3\xb3\x9a\xb1\x0c\x21\x52\xa2\x28\xda\x71\x63\x29\xdc\x7e\xb3\xf0\xb4\x37\xe0\x10\x62\x6a\x9e\x28\x5c\x0c\x3c\xd3\xf4\x7f\x09\x7f\x02\x42\x27\xe0\xef\x42\x6c\x65\x3c\x59\x92\x9b\xf7\xef\x5a\x8b\x26\x33\x8c\x1c\x92\x85\x39\x7b\xd9\x7f\x0f\x06\xe8\xfd\xc1\xbc\x55\x80\x0f\xd1\x7b\xab\xce\xdc\xd7\xda\x2d\x45\x63\x8b\x2e\x6b\xa7\xf5\xb5\xc9\x00\x2a\xc4\x66\xad\x19\xdf\xf1\xa2\x32\x1d\xd8\x10\x51\xac\x2e\xf2\xca\xb2\xd4\x6c\x9b\x0a\x35\x3a\x8d\xea\x30\xf8\x73\xd0\x12\x19\xfe\xe7\xfb\x9a\xb7\x1a\xda\x9e\x23\x81\x64\xce\x3b\x7c\xf5\x19\xfd\x22\xdb\x9f\xf9\xfd\xc9\x05\x24\x27\x9b\xab\x66\x1d\x13\xb5\xba\xaa\xfd\xd3\xad\xd3\x3a\xb0\x82\xcb\xc0\x72\x03\x16\x24\x38\x34\xc9\x82\x2f\xba\xaa\x08\x3f\xe7\x4e\xfc\xaf\x98\x43\xf8\x64\x62\xa9\xc6\xa2\x6d\xef\x69\x47\x7d\x17\xf9\x7d\x2f\x8d\xca\x10\x88\xd9\x7d\xc0\x38\x9c\x2f\x2c\x13\xdf\x8b\x00\xde\xd5\x9d\x05\x10\x6a\x24\xe4\x1b\x5f\x17\xb7\x44\x96\x68\xfe\xc1\xb4\x67\x4e\x4c\x47\x8f\x34\x51\x7e\x21\xf5\xe8\x5b\xea\xad\x96\x6f\xda\x83\x14\x93\xad\x64\xe4\x2f\x3d\xf0\x78\xad\x0c\x84\x5f\xd7\xda\xf5\xc1\xe1\x26\x3d\x1e\x94\x7a\x5d\x55\xe5\xb8\x6a\x07\xee\x53\xc1\x32\x7d\xbf\x15\xa2\x08\x00\x5e\x09\x64\xbb\xf3\xa3\x23\x64\x07\x09\x7e\xd7\x25\x42\x68\x8e\x6d\x7d\xc9\xe8\x11\x7d\xb2\x13\xcf\xe0\xcb\xde\x34\x6a\x36\x57\x1c\xf9\xf4\x52\x4f\x15\x9b\x57\x3c\x9a\x6c\xc7\x74\xb3\x24\x78\x76\xc7\xb8\x30\xe8\x63\x4d\xbd\x8b\xba\xb7\x8b\xc4\xeb\x99\x63\x97\x4d\x5b\xbe\xf1\x42\xbb\x1f\x17\xad\x86\x6f\x7a\xe4\xf0\x51\x98\x77\x5d\x6b\x2a\x06\x97\xcd\x6c\x33\xcf\xe1\x48\xd6\xff\x35\x4f\x08\x25\x7d\x57\x79\x4e\x56\x08\x94\x05\x29\xa0\x9b\xb8\x40\x07\x94\x7b\xcd\x08\x33\xd6\x8b\x70\x69\x6a\x39\x79\x02\x4e\xff\x6f\x54\xb5\xce\x3d\xdd\x61\xe7\x37\xfb\xdf\x0c\x79\x57\x71\x11\x9f\xe3\x51\x31\x30\xce\xbc\x98\xda\x4f\x25\x58\xe0\x06\x89\x61\xfb\x53\xbf\xd3\x9c\xdc\x1c\x0f\x31\x5c\x15\x28\xc7\xfe\x7b\x09\x34\x46\x2f\x07\x12\x65\x26\x3f\x7c\x2a\x6a\xc5\xc8\xd4\x1b\x62\x93\xb8\xfa\x04\x0f\x78\xf8\xa9\x12\xf5\xb5\x9a\x41\x5d\xec\x18\x1a\x8c\xcf\x67\xc2\x53\x13\xd2\xf1\xba\xc9\xbe\x5d\x27\xd6\x11\x1b\x8a\x9e\x0b\x95\x87\x08\xed\x58\xf4\x27\xe5\xbd\x1e\xeb\xa5\x92\x18\xdb\x43\x66\xb2\x9a\xbd\x3b\x19\xb5\x39\x8c\xe3\x28\xef\xb7\x8c\x56\x1d\x57\x27\xa8\xc0\xd2\xdc\xad\xde\x77\x5d\x8b\x22\xf6\xde\x90\xd8\x67\xee\x48\xac\x04\x74\xba\x44\xd9\x17\x30\xb8\xb7\x60\xba\xa5\x8f\x99\xc0\xa7\x8e\x6e\x51\xce\xd9\x31\xa4\x7b\x98\x2c\xa1\xe6\xc9\x37\xc0\x9a\x89\x42\x1d\xf7\x94\x98\x0d\x81\xf0\xfc\x5b\xde\x68\x45\x7f\x14\x8c\xfd\x92\xbc\x6d\x81\xb2\xb4\x03\xb4\x6e\x45\xe8\x24\xeb\x8a\xb9\x1a\x8c\x6b\x3b\x38\x4c\x9a\xcf\x71\x78\x21\xe5\x2e\xd1\x3b\xa0\xb3\xf1\x01\xd5\xae\xad\xf8\xc4\xb7\xd7\x74\x25\x16\xa5\xdc\xf0\x0c\xce\xb5\x2a\x7c\x7f\x7c\x03\x4d\xf8\x1e\xba\xc7\x0c\xe6\x3f\xb9\xd6\x35\xbc\x66\x3c\x07\xa6\x3e\x61\x82\x2e\xd3\x43\xb9\x17\x11\xf1\xda\x4f\xb9\x32\xe3\x8b\xb9\xa6\x7e\x41\x0b\xa5\xc5\xc9\x1d\xf6\x3c\xea\x5c\xb2\x22\x5b\xbb\x3d\xae\xb2\x00\xb6\x75\x39\x67\x87\x62\x8f\x98\x0d\xc5\x4c\x13\x44\xe8\xd1\x17\x79\xa2\x67\x88\xcf\x6e\x2b\x95\x39\x5b\xfe\x2a\x40\x02\x60\x0d\xef\x40\x76\x28\x0b\xaa\x66\xc6\x6a\x88\xbd\x8b\xa3\xee\x42\xe2\x3d\xf7\x1b\xaf\xef\xc5\xfe\x20\xfd\x85\x0f\x9b\xb1\xe0\xe1\x10\x4b\xaa\x3f\xa1\x8b\xc3\x2a\x6c\x34\x2e\xf3\x81\xff\x53\x5d\xec\x8f\x90\xdb\x13\x72\x0b\x66\x07\x54\x36\xf3\x2e\x54\x11\x20\x39\x53\xdf\x37\x66\x6e\x74\x33\xb2\x17\xdb\x86\xd3\xd2\x1b\x29\x9b\x96\x5b\x24\x42\x6b\x1c\x02\x82\xae\xcd\x4d\xc7\xb2\x6a\xb7\xc8\xcf\x41\x54\x00\x1c\x17\xf7\xd5\x1e\xe1\x3e\x30\x1e\xf9\x26\xae\xce\x9d\x16\xcb\x46\x4a\x25\x8f\x2a\xa2\xff\xa5\x69\x1b\x6b\x86\xa9\x37\x54\xac\xa6\xbf\x6b\xf9"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12552 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA41 "\x81\x7a\x31\x08\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xad\x31\x67\x1e\x1f\xe6\xef\xad\xed\xca\x90\xb3\x81\xa0\xe7\x4c\xd8\xc0\x44\x9a\x5d\xd1\x71\xaa\x36\xe6\x12\xff\x96\x9b\x62\xca\x18\xe2\xa5\xf7\x10\x86\xe6\xc5\x5a\x40\x7a\x49\xe1\x8b\x2e\xc1\x4f\xc9\xe5\x07\x3e\x67\x4d\x70\x1a\xbd\xe3\xbd\x5a\xfd\xa9\xf6\x86\xcd\x7c\x01\x48\x66\x1e\x46\xd2\x88\xc8\xf7\xc2\x3c\x03\x80\xa7\xf4\x84\xd6\x46\xa3\xd9\xa5\x54\xf0\x98\x4c\x8c\x83\x93\x35\x23\x68\xa1\x66\xd2\x93\x55\x9d\x8b\xd6\x20\xdb\xe5\x4a\x46\x27\x9d\xbd\x86\xe9\x0f\x0f\xd5\x26\xc8\x2f\x53\xe0\xfa\x97\xfb\x14\x10\xb9\xae\x93\x76\xa9\x22\xfc\x94\xc9\x9a\x18\xf4\x90\x93\x6f\x9f\x17\xea\xc2\x7d\x68\x8b\xfe\x1f\x75\x67\xcd\x44\x3c\xe8\xa4\xbe\x08\xdd\x34\xcd\xa4\xf6\x3e\xe6\xbe\x01\xde\x43\x62\xf1\x5b\x08\x5c\x00\xf6\x95\xe0\x9b\x73\xe9\x8f\xdd\xdb\x09\xbf\x2b\xb6\x49\xd4\xe3\x7d\xbf\x8a\x63\x41\x20\x3c\x6d\x6b\x5d\x6f\xb9\x02\x9f\x93\x01\x7a\xf3\xb5\x48\x92\x72\xb5\x7f\x07\xe1\x96\x62\xc3\x72\xde\x8d\xa8\x63\xdd\xcb\x20\xfc\xe0\x06\xc2\x72\xd6\x86\x64\x6a\x16\x64\xc0\xe5\xcb\x65\xde\xfc\x42\x0b\x15\x31\x87\x3c\xc0\x50\x93\xaf\x25\x9f\xc4\x50\xfa\x39\x8d\x7b\x05\x6f\x44\x41\xa7\x0a\x89\x36\xef\xb9\xac\x73\x99\xf2\x66\x67\x92\xf1\x08\x1b\x2d\xa5\x2b\x5e\xcf\x9d\xb1\x47\x0b\x51\xc2\x1f\x26\xf8\xf2\xa3\x54\xc9\xac\xf7\xcd\x39\x33\x88\xfe\x18\x1d\x35\xd8\x18\x87\xdd\x33\xdd\xcd\x06\xfd\x72\x02\x97\x01\x63\x28\xdd\x46\xc9\x67\x3d\xd7\x78\x4a\x47\xac\x17\x39\xc1\x73\xe3\xdd\xf9\xa2\x92\x69\x08\xf7\x70\x60\xd4\x25\x98\x0e\x31\x21\xbd\xda\xe8\x11\x12\xee\xde\xb3\x09\x06\x6f\x10\x88\x90\x49\xef\x07\x5f\xbc\x37\xfd\xa4\xf6\x19\x75\xc1\xec\x9d\x93\xe2\x00\x70\xf0\x5e\x73\xb6\x87\xf5\xa8\x1f\x3b\x36\x6a\x39\x8f\x42\x5d\xce\xe4\x26\x7b\xe4\x54\xde\xa7\x36\x24\x7e\x42\xc1\x0a\xdc\x18\x56\x28\x97\x5a\x9d\xb1\x18\xd1\x03\xbe\xbe\xb3\xc3\x78\x0e\xea\x97\x1c\x77\x2a\xd4\xd9\xbf\x1b\xad\xb9\xb7\x76\xe8\xde\x8e\xbd\xd1\x0e\x82\xf3\x95\xe2\x09\xd0\x72\x91\x48\x87\x84\x65\xf6\x95\x2f\xb0\xf0\x0b\x55\x77\x04\xfb\xf1\x32\x5e\xd2\x6b\x40\xf5\x50\xec\x06\x21\x85\x72\xe8\x01\xbe\xac\x74\x23\x41\x0b\x7d\xc5\x53\x12\x0c\xd9\x23\x66\x9f\x28\xd4\x83\x5b\x56\x75\x97\x02\xaf\xec\xce\x79\xc8\x43\xd8\xa7\x0d\xf1\xf1\xf8\xf2\xc8\x5d\x66\x9c\xf7\xee\x89\x21\x4c\x6b\xeb\xa7\x3a\xe4\xcc\xa6\x1a\x3a\xc7\x6f\xc5\xcc\xfa\x51\xb8\x61\x77\xa9\x16\x55\x61\xb6\x7b\xde\x64\xff\xeb\xee\x76\xae\xf0\x59\xbd\x48\xb5\xf7\xd1\x4a\xd3\x0e\x0c\xec\xf9\x93\xd2\x0b\x14\xb8\x97\xbd\xf1\x82\x31\x4e\xa7\x8a\xfe\x5b\x7a\x15\x36\x02\xfe\x68\x6a\x8e\x83\xfb\x66\x16\x31\xd6\xde\x0f\x8a\x9e\x07\x5f\x54\x71\x89\xfc\x4d\x71\x5f\xff\x3e\x3b\x4f\x66\xac\x9a\xff\x84\xd6\x02\x19\x5f\x12\xfe\x32\xbf\xbc\x7a\x25\x1c\xe3\xfd\x44\xa8\xff\x77\x1a\x40\xca\x03\x17\xfb\x74\xd2\x66\xf6\x5c\xd0\x35\x8f\xfa\x8c\x70\x9a\xd9\x70\xc7\x53\xa0\x29\x9d\x5b\x72\x0f\x7c\x8f\xf4\xaa\x7c\xda\x0c\x6a\xc0\x43\x9f\x2f\xee\xd4\x8a\x6a\xd5\x01\xdf\xc2\xc9\xeb\xe9\x34\xa9\xd6\x41\x24\x7a\xb9\x33\x51\x6a\xff\x4f\x80\x50\x3e\x22\x24\xb2\x91\xfe\x7f\xd8\xce\x1c\x2e\x1c\x6c\xef\x17\x11\x33\xd5\x67\x6d\x6e\xd7\xb6\x32\x53\xe6\x2f\xac\xf4\xff\x0a\x58\xa8\x46\x64\xe1\xfd\x9d\x34\x0a\x72\x56\x39\x4b\xde\x0d\x26\xf6\xa0\x08\x97\x8a\x95\x08\x6d\x89\x58\xb7\x83\x9b\x0a\xf2\x94\x15\x25\x6e\xd9\xe7\x54\xf6\xb9\xa2\xad\x95\x98\x18\xb2\x4f\x64\xe1\x73\x80\xe0\xf9\x09\xe8\x00\x5f\xe2\x5d\x5f\xe4\xb4\x96\xc6\x4e\x7a\xec\x6b\xe5\x33\x70\xc8\xac\x40\x6f\x26\x7f\xbb\x4c\xee\xc2\x84\x66\x1d\x22\x68\xad\x38\x0a\xf1\x99\x56\x3f\x21\xe3\xc4\x7c\x7c\x50\xf1\x0b\xd2\x5b\x4e\x56\xc8\x3f\x3b\x8b\xb6\xb8\xbd\xcb\x47\x40\x95\x57\x1d\xfa\x48\x13\xb0\xd7\xf0\xfd\x70\x28\x1b\x20\xaf\xf8\xbb\xd2\xd9\xb3\x52\x14\x33\x94\xb3\xcc\x19\x17\x7e\x5c\x27\xd1\x31\x5d\xbc\xe5\x73\x05\xdf\x77\xa6\xe5\xf9\x3e\xed\x90\xff\xfd\x7e\x7a\xef\x49\x77\x66\x7f\x08\x24\x20\x5f\xc1\xb3\xdd\xdb\xcc\x25\xe7\x87\x9c\x26\xf7\x31\xbb\xb2\x15\xd6\xd1\x31\x0a\xc9\xe1\x2b\xe0\x2c\x6a\xef\xab\xcb\x94\x00\xb1\x45\xd5\xf2\x6d\xc3\xf9\x54\x7b\x10\x3d\x2a\x29\xa2\xc4\xe6\x56\xd7\x3a\xdf\x5e\x8e\xc0\xea\x79\xbe\xe3\xd7\x42\xc0\x28\x96\xa9\x92\xb3\x8d\x77\xf9\xf4\x53\x2b\x46\xc0\x2a\xa8\xa0\x6e\xef\x96\xfe\x52\xc9\x5a\xa1\xee\xdb\xbd\xbe\x45\xe1\xcd\xed\xc7\x37\x1f\x77\x38\xfd\xbe\xd1\x34\xe6\xd6\x99\xd3\x1b\x06\x3c\xdd\x36\x55\x04\x4a\xe3\x1a\xba\x34\xf7\x3d\xfc\x1d\x5b\x2a\x9f\xaa\x9d\x8f\x7b\x0a\x9b\x3a\x35\xef\x49\x2d\x7b"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12553 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA42 "\x81\x7a\x31\x09\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x0b\x6a\xb6\x18\x01\x22\x37\x5f\x38\xa9\x3d\x35\xdf\x3e\xc7\x72\x06\x7c\x3c\x6c\xf6\x70\x48\xad\x04\xf9\x56\xb7\xbd\xd2\x08\xdb\xde\xa5\xa3\x5b\x8e\xec\x40\x45\x71\x6d\x23\xca\x76\x19\xfe\xf3\x81\x04\x8c\x4f\xc7\xc7\x01\x82\xa8\x81\x50\x5a\x8d\xbf\xd8\xe4\x89\x38\x3e\xbf\xa0\x73\xe1\xf7\x90\x33\x28\xb7\x62\x6c\xb3\xf2\xaf\x80\xb2\xb1\x47\xa7\x0f\x66\x25\x50\x4e\xe7\x21\x31\xf1\xe9\xdc\xcd\xbd\xd2\xc5\x88\x19\xa5\xf5\x3c\xa0\x00\x5b\x7c\xa3\x4c\x31\xe9\x89\xbf\x78\x30\xdd\x55\xd7\x07\x6d\x3f\x30\x29\x05\x3d\xbb\x21\x10\xb6\xb8\xf9\x7e\x35\x41\x9f\xf9\x23\x17\x34\xbb\xa1\x44\x5d\xae\x7b\x46\x83\x0a\x54\x70\x25\x97\xf3\x64\x37\x80\xdd\x39\x93\x54\x4a\x07\xb8\xe7\xf9\x35\x0b\x6f\x30\x0b\xa7\xb7\xb7\xff\xa2\xd5\xb2\x41\x98\x7f\xa4\xa3\x51\xdc\x5f\x49\x3b\xe5\xaa\x41\xa1\x88\x40\xd0\x05\x15\xea\x27\xa6\x53\x97\x0c\x56\x10\xbf\xe1\xb8\x24\x37\xb4\xdc\x10\x16\x9e\xa6\x84\xd7\x11\x96\x15\x67\xce\x03\xeb\x33\x5e\x6c\x34\xb1\x10\x1f\x00\x90\xb2\x89\x08\x1e\x83\xea\xce\xcf\x4a\xd5\x42\x00\x90\x79\x65\xde\x61\xfc\x9c\x28\x18\xb1\x55\xe5\xa2\x99\x26\x29\x95\x43\x41\x4e\xd6\x4b\x7f\x88\xac\x86\x70\x27\x7e\xe8\xcf\x40\x15\xb6\xb2\x8d\x7e\x2e\xe1\x6c\x30\xeb\x24\x0c\x7c\xc0\x47\x1e\xb7\x48\xf2\xbb\x9d\xf8\x18\xb1\xf7\xcd\x4d\x34\x07\xeb\x47\x70\xbc\xa8\x59\x67\x8d\xb3\x6d\x0b\x10\x10\x89\x5e\x8e\xa3\x4e\x62\xad\x8f\x60\x10\x28\x3e\x9f\x2c\x2d\x64\xd6\x82\xe5\x6f\xe7\xa9\xbc\x02\x0f\xec\x6f\x0f\xe2\x76\xc1\x68\xa2\x48\x9e\xf6\x2d\xf2\x02\xa1\x52\x65\xd4\x38\x84\xb7\x6f\x1d\xe6\xed\xde\x30\xc4\xe4\xe3\x38\xc9\x4e\xfd\x93\xbe\x79\x3a\xda\x94\x7f\xfc\x57\xa7\x0b\x06\x38\x4c\x3e\x8f\x93\x3c\x12\x48\x5c\x97\x8a\xf8\x4c\x9f\x79\x38\x85\xa2\x1e\xb1\xd6\x18\xa7\x9a\x8b\x94\x8d\xe6\x2d\x18\x07\x02\xf4\xca\xd9\x34\x5c\x84\x55\x91\x6d\xe4\xf7\xa9\x40\x16\xd1\xbe\xb1\x37\x03\xa8\x90\xc9\x3c\xbd\x55\x04\x1c\x85\x3d\x94\xcd\x3b\xc1\x19\x35\x54\x17\x66\xd5\xbf\x69\x4e\x3f\x19\x96\x4d\xb9\xe1\xa6\x19\x05\x37\x17\x76\x52\x71\x01\x88\xee\xe8\xcc\x13\x87\xf4\x83\x63\x0e\x93\x61\xb1\x5c\x5d\x04\x73\x87\x0f\xce\x16\xc2\xc7\x8a\x3a\x24\xe7\x25\x73\xeb\xaa\x4d\xeb\x6a\x63\xa4\x7f\xab\x84\x6b\xa9\x3b\x7e\xdd\x45\x3a\xa4\x6e\x6c\x53\xf5\x06\xf0\xc1\x87\xea\x1d\x71\x1f\x9d\xd7\x75\xe1\x46\xfe\x91\x39\xe8\x20\x77\x8f\x3b\xa6\x65\xa6\x5f\xc7\x70\xdd\xf1\xb3\xef\x4c\x8a\xd4\x6c\x81\x8c\x6b\x3b\x5a\x8d\xb9\xb4\x54\xb3\x98\xb2\x5b\x78\x25\x37\x7b\x4b\xf5\x54\x3c\x2c\xdb\xff\xbf\x9c\x26\x29\x90\xb3\xfa\xc0\xe5\xf9\x05\x17\xc9\x05\x43\xe7\x43\x47\x37\x50\x60\x03\xf4\xac\x16\x79\x4d\x89\xe6\x36\x34\x29\x7f\x78\xa1\x8f\x57\xca\xb5\x45\xd2\xa1\x1e\xc3\xbe\xb8\x44\x72\xaa\x6a\xfe\xdf\xb8\xcd\x06\xd6\xd8\xeb\xd8\xe8\x2a\xda\x96\xf0\xc6\xb8\x7b\x25\x1a\xae\x50\x54\xce\xaa\x21\x10\x20\xb3\x52\x13\xe9\x9a\x2f\xfc\x9a\xd8\x42\x8d\x25\x73\x7c\xb5\x95\xee\x09\x6c\xec\x3d\x4f\x04\xaf\x59\x8b\x33\x4e\xd3\xcb\x2a\x8b\x02\xf5\x8f\xc5\x1d\x8e\xf4\x35\x39\x69\x81\xa1\xb5\x6c\xa2\x51\x5a\x1c\xd1\xdd\x59\x09\xbd\xb4\xa5\x35\x48\x6b\x58\x68\x80\x8b\xd8\xdb\xb3\xd4\x98\xd7\x26\x77\xf8\xd4\xd8\x6b\x5b\x32\x60\x09\xff\xb9\x7f\xfc\x90\xec\xc6\xe6\x58\x7e\xea\x9f\xeb\x2a\x66\xad\x0d\x8c\xa9\x2d\xd4\x30\x52\x27\xaa\xef\x70\x29\x73\x1b\x16\x7d\x30\xe9\xa8\x6e\x7a\xb0\x48\xf2\x01\x33\x1f\x1f\xa5\xfe\xa1\x28\xfb\xd2\xda\x5a\xfb\x2e\xf6\x7a\x3d\xb7\xe3\x0a\xd6\x0b\x7b\x50\xab\x71\x25\x13\x80\x26\x95\xe2\x40\x1e\xe0\x30\x13\x03\xe7\xac\x6a\xf5\x01\x08\x91\xe5\x5f\xbb\x8c\xd9\xb3\x78\xf8\x62\x16\x74\xc9\xa8\xa3\x38\x60\xc2\x38\xad\xa8\x86\x95\x4e\x6d\x6c\xba\xf7\x33\xe4\x29\x0d\xb4\xb6\xb1\x15\x5e\x20\xd4\x72\xa6\x23\xdb\x16\x68\x33\xdd\xe4\x42\xd3\x49\xde\x92\x43\x90\x7f\xcf\xf8\x7e\xef\x57\x19\x23\x0c\xff\xe6\x81\x0b\xa0\x5c\x92\xd3\x55\x5c\x83\x87\x2d\x54\xc4\x7a\xf3\x49\x8a\x1f\xc4\x2f\x51\xdb\x68\x2a\xad\x9c\x04\x26\x03\x12\xa5\xb2\x71\x00\xf1\x7d\x2a\xce\xe5\x82\xc6\xad\x94\xcf\x0c\x3f\x78\x20\x40\xdd\xbd\x3e\xde\x56\xde\x75\x69\x3a\x31\x09\x57\x66\x2f\x6d\x96\x5e\x65\x50\x5d\xfd\xf0\xeb\xf3\x52\xc1\xe7\x68\xea\xe9\xe1\x47\x8f\x6f\x26\xdc\x4b\x6f\x20\x89\x95\x23\xd8\xd2\x93\x45\x56\x39\x0c\x82\xb4\xe5\x6a\xd6\x21\x8f\x13\x37\x58\xb0\xc8\xa9\x5d\xb6\xde\xb8\xda\xd1\x3c\x09\xab\x45\x39\x93\x54\xa8\xb3\x27\xfb\x7f\x55\xbb\x7b\xba\x7d\x14\xe0\xb0\xca\x42\x09\xc8\xb9\x7e\xbd\xdd\x03\x98\x76\x07\xcf\x45\x9b\x16\xc0\x5c\xe0\x92\xb5\x54"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12554 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA43 "\x81\x7a\x31\x0a\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xbd\x60\x4c\x7b\xcc\x60\x27\x98\x0e\xb2\xd1\xe2\xdb\x08\x9a\xe2\xcd\x01\xd3\x34\xed\x74\x43\x8e\x0c\x52\xad\xec\x8c\xa1\x7a\x53\x92\x5d\x04\xa1\x98\xaf\x39\x88\xdc\xe1\x07\x40\x65\x0f\x22\xf9\x0c\x2b\xad\x36\xd9\x4c\xb1\xb7\xe4\x4c\xc3\x5f\x3e\xb6\xac\x2a\x59\x06\xed\x3b\xb6\x6a\x85\xdc\x5e\xa9\x12\x4b\xed\x94\xb6\xe2\x4b\x88\xbd\xd0\xfe\x38\x26\xd2\xdb\xb4\x75\x13\x98\xf1\x6d\xe8\x4c\xb2\x32\x2d\x47\x8c\x5d\x04\x5e\xf7\xc2\xb5\x77\x76\x94\xf2\x32\x49\xd7\x09\x75\xcf\xa0\x1a\x60\x5f\xec\x47\xad\xf2\xf2\xa4\x29\x49\x07\x11\xda\x31\x3a\x8c\x75\xd7\xca\x2f\x21\x7b\x0d\xe2\x93\x94\x00\x95\x21\x71\x5d\x90\x3c\xcb\xf0\x4e\xb1\x00\x6e\x17\xb3\x1b\x4f\x93\x14\x52\x9b\x16\xb0\xb4\x26\x2e\x99\x4e\xfe\xe7\x71\x2f\x07\xf9\x78\x03\x47\xe0\xd5\x5d\x04\xe9\x5e\x0a\x3a\x24\x8d\x3b\x57\x54\xeb\x95\x33\x70\x41\x97\x9b\x15\x64\x84\x22\x81\xe1\x47\x26\x65\x4a\x3a\x3a\x50\xc5\x69\x63\x5a\x37\x64\xb0\xa2\xae\x41\xbc\x6c\x21\xa5\xe0\xc8\x89\x18\x93\x5c\x42\x92\x09\x4b\x4f\x49\x23\x17\x29\x08\x12\x22\x1d\xd1\xd3\x58\x2a\x97\x3f\x30\x8b\xd7\xe4\x83\x93\x38\x52\xb4\x20\x40\x4e\xa1\xe4\x95\x2b\xab\xa2\x71\x59\x6a\x55\x57\xe4\xed\xab\x7c\x5d\x07\x89\xdf\x08\xfb\x17\x3b\x22\x3b\x8f\xaa\x1f\x02\x59\xc1\xa0\xcb\xd6\xaa\x42\xa3\x16\x23\x3b\xcb\x7d\xd8\xb4\x5b\x1f\xba\x31\xe7\xda\x98\x69\xef\x05\xff\x6e\xc2\x94\x60\x50\xcd\xd3\x92\x08\xd2\x55\x38\x9f\xdc\x23\x71\x9f\xae\x64\xef\x63\xee\x0a\x0a\x18\x97\x11\x39\xb9\xc1\x2c\x62\x47\xf6\xb4\x87\x2b\x0e\xf1\xbf\x13\xfa\xc3\x9c\x67\x7d\xd9\x0f\xe2\x12\xa0\xbd\xaf\xd8\xe0\x82\x65\xe3\x00\x82\xd0\xf7\xa1\x31\xf8\x2d\x29\xb2\x9f\x7b\xab\xa0\xe6\xa6\xa6\x2e\xbb\xf9\x2c\xf1\x44\x3a\x5c\x3c\x01\x32\x2c\x56\xff\x34\xb7\xb1\x9d\xdc\x08\x43\x7c\x72\x7f\x66\x5c\x2d\x86\x98\xd6\xc8\x9e\x0d\xef\x81\xe8\x94\xe6\x94\xee\xcf\x2b\xdd\xbe\x42\x2c\x6d\x4d\x50\x28\x19\xe4\x98\x89\x0c\x9b\x0c\x25\x0b\x67\xa3\xea\xa7\x4b\x7c\x67\xc3\x2d\xfd\xe7\x35\x29\x99\xe9\x66\x43\x87\xe1\x0a\x6e\xdc\x8d\xc3\x99\xc9\x17\x5e\x97\x4c\x21\x60\x1e\x4e\x22\x13\x9a\x62\xbd\x2b\x73\x2f\x58\xf7\x92\xc3\x14\xc3\xee\xd3\x44\x14\xff\x22\xc6\x1c\x48\x0e\xb4\xc9\x9a\x8c\x34\xfc\x66\xb4\x31\x73\xb5\x54\x08\x5b\x3d\xe7\xe6\x9f\x3d\x79\xf2\xd9\xa8\x83\x4b\x46\x18\x19\xdf\x87\x4e\xc5\x53\xdb\x98\xcb\x29\x23\x29\xe1\x82\x22\xeb\xea\xe9\x1c\xa1\x70\x7b\x6c\x5b\x61\x26\xe1\x2a\x2b\x4d\xeb\xfc\x10\xcb\xab\x7a\x07\x46\x77\x41\x55\x92\xa4\xcf\x2d\x06\xfb\x26\x46\x5e\x22\xb4\xc8\xeb\x39\x05\xf4\xe8\x8d\x9b\xd4\x57\xe1\x7a\xbe\x44\x24\x37\x94\x67\x9c\x1c\xab\x30\x93\xc4\xb2\xd5\x7e\x2c\x58\x4a\xda\x94\x3f\x0d\x54\x82\x72\x79\xa5\xe6\x39\x58\x3d\xbb\x13\xdb\x38\xdb\x90\xd8\x04\x06\x30\xca\xdd\x05\xed\x67\x33\xa4\xfd\x12\xd3\x07\xbc\x59\x10\x0d\x70\x52\xb6\xd1\x21\x17\x7b\x27\x16\x63\x04\x18\x91\x94\xb2\xcb\xc2\x13\xd4\x36\x81\x6c\x2f\x7b\xe6\x97\x87\x9a\x23\xc1\xad\x3a\x89\x94\x1f\x66\xf6\xef\x50\xdb\xa6\x0e\xa6\x4f\x9d\x54\x80\x9a\x01\x80\xf1\xb0\x1a\x06\xf6\x66\xaa\x29\x41\xae\x96\xc3\x37\x35\x6b\x16\x92\xc9\x20\x2b\x62\xc2\xeb\x5d\x7c\x71\x86\xb1\x5d\xf9\x6e\xcb\x2f\x36\xdd\x11\x22\x13\x73\xe6\x1b\xf4\x02\xda\xcf\x0a\x89\x1d\x7e\x5e\x0c\x88\xfb\xc1\x8f\xc6\x32\xd0\x67\x14\x5b\xae\x02\xe7\x76\xc4\x62\x52\x2b\x0c\xc6\x2d\x54\xd2\x61\x01\x45\x9e\xa2\x37\xe8\xc5\xb7\xd9\xc6\x6b\x0e\x13\x77\xa9\x30\x14\xf5\x33\x77\xe5\x41\xab\x19\x4b\xd7\x9b\xb1\x7e\x9a\xd7\x92\xe1\xd9\x33\x05\xf9\x48\x7e\x61\x7d\x23\x1f\xa7\x67\x3b\x31\xd3\xb2\x9a\xf5\xbe\x84\x09\xbe\x6e\x0e\x7b\x45\x63\xda\x0d\x23\xa6\x44\x57\xef\x5c\xc9\x17\x3b\xd2\x11\x9c\x9f\xf4\x30\x19\x12\xab\x59\x75\x09\x75\xab\x57\x8d\x87\xdb\x8b\x86\xca\xa6\xa9\xc0\x92\x67\x13\xcd\xde\xad\x9f\x56\xf9\xaf\x6f\xe9\x66\x83\x6a\xdd\x1d\x5d\x69\x96\x98\xc0\xe0\x8c\xe9\x3d\xec\x79\xca\x5a\x33\x35\x83\xfd\x93\x47\x53\x52\x52\x59\x08\xed\xbd\xa5\x4b\x80\x3c\x80\x59\xed\xe2\xa9\x14\xfd\xf7\x63\x07\x27\x5a\xba\xb0\x48\x71\x42\xea\x13\x6c\x1d\x82\xa9\x02\x06\x81\x3c\x8e\xc5\xb7\x7a\x89\x84\x8c\x94\x7c\x17\xf1\x8f\x86\x22\xe4\xad\x38\x91\x78\x33\x0c\xb9\xb0\x90\xb0\x86\xea\x92\x51\xc4\x09\xcb\x96\x62\x15\xe1\xeb\x98\xc5\x74\xd7\x0d\xc2\x52\x51\xa0\x38\x0a\xaf\x16\xee\xf6\xca\x38\xa8\xaa\xfa\xb2\x2c\xf4\x42\x1c\xaa\x01\x4e\xc0\x1a\xd2\x99\x1b\xb9\xae\x1e\x3b\x14\x2a\xf3\x1a\x9c\x72\x9f\xeb\x35\x4b\x65\x14\xd3\xc0\xa9\x8d\xd2\x86\xca\x74\xda\xe9\xb5\xc0\xdf\x40\x70\xc1\x7f"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12555 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA44 "\x81\x7a\x31\x0b\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x39\xb5\xe3\xd7\xed\x0c\x33\x59\x6c\x13\xe5\x9d\x57\x09\xbb\x10\x62\x0b\xaf\xff\x0b\x4f\x0a\x83\x85\x5b\x87\x5b\xa4\x23\x63\x42\x07\xa8\x2b\x52\x3c\xa1\x31\xe1\x61\x63\x27\x95\xaa\x40\xa8\x90\xff\x43\x3f\xcf\xa5\xcd\xd6\x60\x9a\xc3\xb1\x67\x02\x2e\xe4\x18\x5a\xdc\x8b\xbd\xea\x26\x96\x08\x65\xac\x69\x29\x9e\x37\x1a\xa6\xf6\x31\xc6\xf9\x5f\xc8\x03\x40\x28\x87\xb3\x11\xd3\x1d\x7e\x10\xdf\xde\x7e\x30\xaf\x30\x3b\xb4\xf5\xd1\x92\x13\xc9\xb6\x44\x23\xc4\xab\xa1\x32\xc2\x9d\xcb\xf4\x0d\x63\x46\xb4\xfa\xf3\x12\xf9\xa6\xf7\x46\xd1\x9b\xee\xdb\x6d\x97\x25\x4f\x79\xcf\xd9\x12\x00\x8f\xad\xa7\xe8\x9b\x06\x89\xc4\xa0\xf4\xa5\xa4\x5d\x42\x65\x14\x88\xa3\xd3\x27\x47\x4a\xec\x11\xa8\x25\x6e\x06\x6b\xb7\xff\x39\xbd\x10\x5d\xef\x9f\xe9\x17\xc3\xe3\x4e\x8d\xbf\xd4\x32\x69\x5e\x8f\x83\x3d\x24\x09\x5b\x9c\xfd\xe1\x10\xad\x2c\x35\x6a\x2a\xd9\x60\x6f\x04\x6e\x98\xf7\x13\x79\xae\x4d\x38\xd9\x33\x69\xb2\x83\x26\xc5\xac\xb3\x0a\x2f\xdc\xb0\x87\xe7\xb2\xeb\xb2\xdc\x64\x2a\x06\xe2\xd0\x9c\x19\xe6\xf7\xbb\xf1\xfa\x58\xf2\x5c\x18\x50\xd0\x81\x5d\x0f\x9e\xe1\x47\x4b\x36\x20\xa4\xe6\x7a\xab\x32\x3e\x54\x19\xe3\xba\x6b\x14\x1c\xa5\xd7\x48\x96\xa5\xd9\x27\xdd\x86\x26\x46\xda\xa8\xdd\x54\x51\xe4\x65\xd2\x61\xb1\x8c\xef\x56\x5d\x98\x97\xc4\x90\x25\x0e\x8c\xe6\x77\x6c\x77\x58\x22\xf2\x6d\xe6\x45\x5f\x89\x92\xe8\xb3\x62\x24\xc6\xb0\xb5\x47\xc7\x1f\x1d\x15\x2f\xa0\xec\xb0\x28\x09\x31\x02\xb9\xf5\x7c\x2d\x2f\x0b\xc3\xbd\x44\x1f\x9f\x1a\xd4\x56\x31\xa7\x89\x5a\xdb\x04\x52\x44\x4a\x53\x58\x76\x58\xf0\x25\xce\x90\xe3\x3c\x82\x4a\xf9\xea\xc4\xd2\x28\x01\xc0\x91\x15\x7d\xab\xc7\xb2\x2f\x18\x2d\x4d\x44\x1e\x51\xc6\x23\x76\x91\xb0\xec\xcb\x9d\x87\x97\xf9\xaf\x93\x6f\x9d\xa7\x8c\xbc\xf5\x9c\x1c\x70\xab\xaf\x17\x94\xbd\x5c\xd8\xf2\x45\x62\xae\x08\x7b\x43\xa6\x43\xea\xfe\x0e\xd5\x3c\x7d\x42\xf4\xdd\x5c\x1c\x97\x7f\x4d\xb8\x8a\x70\x28\xd2\xb0\x59\xf2\x7e\xce\x45\xdd\x1c\x45\x56\xca\x0e\x3b\x03\x7e\xf3\x18\x64\xff\xee\x8f\x93\xd1\xd4\xf4\xf9\x27\x15\xe7\xa2\xa7\xe8\x7c\x4f\x2e\xbd\x7f\x23\x2a\x06\xed\x26\xc3\xc0\x54\x4f\xb0\x30\x44\x13\x33\xe6\xe6\x5e\xed\x04\xfc\x32\x87\x39\x01\x10\xb5\xb4\x26\x62\xa6\x9e\x0f\xe8\x25\x7c\x18\x7d\x12\xab\x26\xb1\x2c\x35\xf2\xf7\xf3\x3a\xf7\x40\xa2\x69\x39\x15\x3a\xee\xfb\x6e\x7e\xd8\xfb\x17\xf5\x1c\xa4\xb5\x11\xfa\x7f\x7e\x21\x1c\x69\x04\x90\x03\x01\x44\xa6\x63\x68\x06\xf2\x9b\x01\x78\x74\x4e\x54\xe4\x04\xef\xec\x0c\xe8\x16\x10\x63\x14\xcd\xbb\x79\x14\xac\xbb\x58\x36\x5a\x20\x48\x80\xc6\xf3\x53\x8c\x68\xad\x89\xe9\xb5\x3b\x69\xc4\x40\x6e\x56\x6c\x1a\x7f\x8f\xc8\xc7\xa7\x00\x46\xa9\x96\xc5\x57\x11\x15\x08\xdb\xfa\x2b\xbb\x92\x0d\xa9\x0e\x0b\x1d\x04\x8e\x85\xb8\xe4\xd4\x5d\x2f\xe4\xa0\x67\x55\xc3\x92\x6c\xce\xda\x61\xa4\xa1\x75\x1f\x6d\x03\xd7\xca\xf8\x84\xd0\xa6\x12\x72\xda\xd5\xc4\x36\x61\x14\x4c\x54\x0d\x6d\x84\x11\xba\x37\x3e\x3b\xad\xb9\x00\xb5\xbb\xa7\xd1\x88\xd1\xf9\xd0\xb3\xe0\x74\x93\x25\xd8\xd1\x85\xda\x32\xb4\x9d\xd2\x27\x2b\xb4\x2f\xfe\x6a\x55\xb0\xfe\xaa\xd9\xa0\xcc\x10\xb6\xe1\xcf\xc9\xbd\x99\x89\x15\x6f\x4d\x50\x58\x58\x54\x47\x35\xb9\x88\x5e\x40\x56\x6a\xb8\x37\x4d\xad\x86\x96\x8a\x8c\x85\xa3\x81\xee\x8b\x5e\x2c\x99\x95\x6c\x17\x93\x4b\xf3\x54\x06\x58\x44\x87\x86\x7f\xdc\xa1\x5c\xa6\x46\x62\xcb\xd2\xb7\x2c\x91\xd8\x30\xa4\x05\xf2\xa6\xe7\xae\x44\xdc\xba\x80\x08\x8e\x00\xd7\x48\xf9\x33\x36\xbd\xe4\x0a\xed\xcb\xcb\x6e\x76\xec\x61\xb6\xb4\x8a\xc5\x34\xbe\xd5\x75\xf8\x0c\x6d\x7a\xbb\xa1\xc7\x35\xc1\xdd\xf3\x9b\x24\x11\x38\xdb\x2c\xba\x16\x49\x12\x21\x6b\x92\xd8\x65\xfe\x33\x65\x1c\xbd\x25\x33\xac\x06\xde\xea\x69\x5d\xbd\xb0\x9c\xc0\xc5\x9e\x47\xee\xa3\xf6\x1a\xb8\x82\xae\xf4\xa7\xac\x61\x61\x98\x2a\x2a\x7f\x89\x9a\x85\x0a\x86\x76\x09\x9f\x54\xf8\x87\xf3\x2f\xc7\x29\x2e\xf5\xa5\x76\xbb\xa3\x82\x6b\x9c\x10\x3e\x61\xd5\x05\xb2\x8e\x06\xc2\x8d\x3d\x5b\xb9\x5a\x65\x06\x20\x5f\x44\xbd\x7d\x1a\x97\xdb\x79\x57\xc8\xa9\x29\xf3\x74\xb9\xbb\x5d\x22\xdb\x24\x1c\x3c\xe4\x71\xe4\xcd\x7b\x5a\x40\x41\x1e\x38\x3f\xff\x4f\x13\x4c\x3b\xc5\x52\xe9\x91\x3b\x45\x8e\x98\x2e\xb1\xc0\x79\x62\x3c\xa3\x11\xaa\x9b\x5c\x99\xbb\x79\x6d\x29\xb8\xde\xed\x4d\xc9\xb4\xf6\xc8\x5c\x0f\x03\x92\x82\x0d\x7e\x1e\x9a\xee\x62\x6b\xec\xea\x4b\xa6\xde\xa6\xe7\x57\x53\x47\x01\xe3\x9c\x7c\xdb\x3e\x81\xf0\x8c\xfe\x8f\xb3\xfe\x27\x77\x06\x6a\xe0\x7b\x4b\xcc\x7d\xab\xe0\x07\x52\xae\xde\x2e\x94\xb3\x98\x94\x56"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12556 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA45 "\x81\x7a\x31\x0c\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x10\x46\x77\xe9\x02\xa5\x3f\x76\xf2\x69\x02\x55\xe3\xf5\xa1\x82\x12\x73\x28\x54\x01\x84\xb4\xa5\xb1\x6f\xc9\xd4\x48\x80\x08\x5c\xe6\xd8\xc9\x60\x31\x73\xc5\x3b\x2d\xb6\x68\x7d\x2c\x7e\x70\x58\x0e\x7c\x39\x17\x4d\x82\x2d\xf1\xab\x0b\x07\x12\xb4\xbd\x1d\x6a\xd6\xdc\x17\xe4\x97\x6a\x3f\x2a\x48\xb4\x85\x3d\xc6\x48\x53\x12\x01\xd5\x0d\x5c\x62\xac\x00\x2b\xf5\xb4\x47\xf2\xfa\x39\xd3\x16\xf8\x68\xb8\x36\x6d\x57\xbf\x38\x5d\x61\x07\x80\xe6\x81\x79\x8b\x58\x4f\x71\x5a\x55\x30\x23\xee\x7c\x59\x05\x09\x21\xad\xa1\xc3\x2b\xfb\x30\x06\xfe\xfc\x77\xe9\x2b\xcc\x10\x8e\x18\x21\x4d\xdb\x04\x50\x2f\xd6\xef\xb6\xb2\xed\xea\x8a\x51\x74\xa4\x45\x1d\x7c\x08\x3b\xbf\x51\xa4\x10\xa1\x77\xfc\xb2\x9a\x51\xc5\x1e\xe4\x45\x22\x5c\xb3\x82\x00\x30\xea\x8e\x44\x63\xfe\xce\xf9\x73\x14\x01\x08\x86\xbe\x5c\x48\xd0\x5c\xa0\xcf\xb6\xc7\x03\x19\x46\x7a\xad\x36\xb2\x58\x75\x76\x24\x90\x98\xae\x61\xc7\xfb\x85\xab\xb0\xb5\x0f\x29\x90\xee\x3a\x5f\xe1\x34\x97\x33\x98\xb8\x22\xf4\xad\x38\x3f\x6a\xe6\x04\x2f\x03\x4e\xce\x89\x4f\xc2\x43\x8e\x8e\x56\x25\xf0\x06\x23\x1e\x16\x52\xaf\x06\x9a\x56\x99\x6a\x9f\xdf\xa4\x9e\x05\x1e\x8a\xf0\x43\x0c\x40\x07\xac\x75\x54\x57\x62\x46\x0e\x09\x6c\x4a\x8d\x3a\x38\xa9\x85\x64\xb8\xf2\x32\xbc\xa0\xab\xc4\xb3\xdc\x5c\xe5\xcc\x01\xe6\xbf\x19\x6b\x10\x0b\xf7\xa0\x7d\x69\x73\x57\x04\x85\xa7\x7d\xce\x0c\x39\x49\x64\x02\xc9\xd4\xb9\x6b\x67\xb1\xf6\x03\x32\xc0\x5d\x7e\xdf\x55\xa5\xd5\xeb\x2c\xa0\xb8\x91\xfa\xc1\x62\xba\x0e\x2a\x66\xd2\x6d\x84\x63\x2a\x3f\x27\xfa\xa3\x76\xc8\xb6\xe1\xdb\x21\x7b\x5e\xd6\x9e\x3b\xd0\xfc\xe8\x1a\x5f\x4b\xad\x99\xe4\xa7\xd1\x66\x46\xe1\x5d\xd3\xab\xe1\xcd\x50\x63\x80\x27\xb5\x95\x79\x9b\xff\x49\x6e\x43\x70\x0b\xac\x0f\xd9\x2a\x3e\x7c\x26\xd0\x99\xcd\xcc\xf1\x8f\x94\x59\x67\x3f\x12\xfb\x99\xb1\xeb\x39\xd0\x2b\xef\xcb\x96\xb5\x36\x58\xa5\x95\x9d\x37\xc6\x06\x44\x0b\x92\x64\xbd\x80\x19\x7c\xb8\x50\xac\x30\xd5\x43\xf4\x59\x37\x8d\xaa\xd4\x6d\xd7\xab\x8a\x10\x2d\x64\x3f\xe4\x57\x65\xe2\xaf\x3b\x6f\xf0\x60\x48\xb8\x1c\x0a\x64\x94\x15\xde\x9d\xb4\x16\xb2\x97\x02\x56\x71\x19\xe9\x40\xee\x21\x76\x92\x7c\xe7\x0a\x04\xf3\x86\xe2\x0f\x0c\x10\xe6\x8a\xf6\x0d\xaf\xef\xee\x1d\xaa\x13\xd9\x59\x53\xa6\xe6\x4c\xf4\xf4\x85\x1b\xae\xce\xae\x7b\x5a\x0c\x6e\xe0\x21\x74\x65\x37\x01\x10\x34\xea\x8a\xe5\x28\x16\x67\xa9\x85\x5d\x66\xf5\xc3\x29\x55\x7e\xaf\x54\x3c\x75\x3f\x5b\x99\x02\x45\x48\x5c\x13\x96\x2b\x63\x28\x84\xd3\xe2\x3f\x25\xca\x23\x74\x44\xa8\x07\xb5\x3f\x80\x0b\xc9\xb7\x3e\x7b\x9a\xee\x38\xfc\xfc\x19\x15\x3f\xc8\xc6\x6e\xa0\xa5\x8a\x8d\x6a\xe3\xc6\x85\x23\x3d\x3a\xac\x88\x54\x36\x83\xf5\x4b\x97\x38\x7c\x2c\x66\xed\xee\x85\x51\x6c\x80\x16\x84\xed\xd3\x68\xba\xfb\x35\xd3\x6c\x64\x2a\xc5\x76\x0f\xbc\xea\x99\xa5\xfa\x91\xc0\x4f\x2d\x1a\x78\xe5\x61\xc9\x70\x56\x29\x40\x25\xc1\x39\x7b\x45\xd3\xeb\xc3\x54\xef\x6d\x00\x24\xa2\x04\xd7\xed\x27\x7f\x65\x98\x19\xba\xfa\xc8\xbf\xb8\x18\xf8\xf8\x08\xff\x9e\xe7\x64\x35\x35\xd7\x23\x2b\x35\xb8\x36\x78\x38\x05\x19\x7b\xa0\x50\x4f\x56\xb7\x17\x7a\x2c\x57\x86\x68\xd7\xbc\x21\xd7\x77\xfc\x3a\x77\x98\xfe\x97\xfb\x4c\xaf\xe8\x0c\xde\x73\x0a\xb1\x35\xe8\x9a\x6e\x04\x9c\xfa\x83\x6d\xbb\xd4\x5f\x3b\xe3\x55\x8c\x97\xe2\x2d\x15\x2f\x82\xe0\xb7\xbc\x93\x20\x1b\xb2\xec\x4c\xdb\xc9\x48\xd3\x0a\x92\xcc\x54\x4b\xb4\xd7\x12\x92\x41\xad\x3c\xb2\x7a\xe1\x86\xa5\x2d\x44\x68\xfe\x41\x47\xe0\x5c\xa2\xf9\x10\x4f\xe5\x9e\xe3\x66\xef\xa2\xe3\xe3\xcf\xc7\x7f\x29\x44\x37\x23\x46\x3f\x23\x93\x5f\xbf\xfc\x04\xa7\xdd\x8c\x9f\x17\xff\xfb\x3b\xf6\xb4\x37\xe4\x37\x55\x1e\xd0\x1d\xe6\xeb\x71\x89\xe0\x5d\x5f\x83\xf0\x75\x53\x8d\x36\x17\x63\xea\x05\x8a\xe5\x36\x04\xf3\x2a\x43\x19\x09\xa6\x53\xfd\xd0\x91\x8f\xe4\xfa\x81\xff\x30\x8c\xb2\x3b\x77\x96\x69\x0a\x13\x7a\xa1\x51\xe6\xae\x07\xe8\x7f\x6f\x9c\x0d\x62\xc5\x10\x45\x3b\xeb\x85\xc8\x39\x83\x36\xb7\x88\x63\x12\x9d\x99\xdf\xa6\xdb\xab\x2a\xae\xe7\xde\x9c\xda\xf3\x9a\x6d\xff\xd3\xbd\x85\x36\xa5\x22\x4c\xe4\xce\x6e\xf4\x87\x56\xbb\xf3\x02\x00\xec\x7f\x70\x98\x65\xaf\xb8\xfb\xd8\x23\x67\x11\xc4\x55\x2d\x1b\x64\x08\x8e\x15\xeb\x83\x52\x91\x27\x78\xce\x31\x89\x39\xe9\xaa\xf1\x8a\xec\x04\xcf\x26\xc6\x81\x58\x56\x2f\x5c\xb2\x5a\x78\xf3\x86\xb8\xd6\x7f\xe6\xf7\xc4\xc0\x06\xdf\x5d\x92\x5a\x92\x0b\x1d\x86\x26\x58\x1d\xbf\x4c\x49\x70\x54\x9f\xa2\xf4\x3a\x60\xc9\x3f\x83\x25\x13\x59\x2a\x33\xc0\x84\x1f\xa1\xab\x4e\xbf\x90"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12557 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA46 "\x81\x7a\x31\x0d\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xcd\x33\x1e\xc4\x12\x56\x19\x90\xef\x44\x4e\xe1\x44\x8f\x08\x49\x39\xca\x44\xf0\xfc\xf4\x43\xeb\x89\xef\x91\xf5\xf6\xd8\x63\xf0\x4c\x51\xee\x0d\x6e\x42\xc5\x29\x41\x14\xdc\x76\xce\x49\x60\x1a\xe8\x3e\x7e\xc5\xc1\x66\xc9\x8c\x37\x8a\xe5\xfe\x52\xea\x9b\x0c\xdb\x55\xd9\xac\x19\x59\xa3\xc5\xa1\x0c\x51\x3d\x3c\xcb\x8b\x3d\x1c\xfe\x3e\x00\xd2\xa6\x7d\x87\x34\x4a\x93\x6a\x08\xe6\x02\x47\x3a\x39\xbb\xd7\xc0\x35\x6a\xf6\x95\x45\xba\x18\x30\x1e\xad\x8f\x3d\xcd\x49\x45\xf1\x0b\x04\xee\xe9\x51\x2f\x4f\xe3\x1a\x14\x4f\x7a\xe5\x16\xe5\xb1\x39\xf5\x01\x9f\x4d\xa9\x44\x3b\xe8\xb4\xcc\x0a\x44\x06\xf5\x5d\xdc\xb6\xf9\x1e\x8b\xd8\xf0\x1f\x7f\xbb\xe1\x01\x93\x7e\xc2\x60\x09\xf2\x1f\xb6\x33\x67\x26\x74\x98\x33\xf0\xd7\x1e\x06\x99\xb1\xf2\xe4\x68\x49\x3e\x86\x73\x99\xdd\x1e\x16\xc7\xdb\x2e\xe1\x1a\x85\x45\x20\x38\xc7\x0e\x66\xfd\xc9\x8f\x12\x8d\x93\xd5\x69\xfe\x30\x5c\xaf\xa1\xe2\xe0\xd8\xa2\x87\xb7\x2d\x20\x5c\xbe\x03\xa3\x46\x6d\x07\x0e\x40\xe3\xf4\x8f\xc4\xbd\xbb\x3f\x17\x2e\xeb\xef\x90\x0e\xe0\x02\x9e\xd6\xe8\x98\xfa\x31\x81\x96\x41\x6f\x14\xc8\xa6\x61\x26\xb0\xd2\x6b\xc1\xd6\x17\xe2\x9c\x4f\xd8\xef\xa6\x95\x82\x06\xd9\xfb\x00\x04\x32\xe5\x78\xa7\x1f\x30\x57\xfe\x6e\xf3\xb9\x3c\xe9\x91\xf2\xc3\xf6\x4f\x10\x70\x54\x66\x1f\xf2\x9f\x36\xf6\x84\xc4\xad\xf0\xa8\x61\x6d\x4d\xaa\x33\xe0\x11\x1c\xb0\xed\x6f\x52\x93\x4f\xb2\xbe\x94\x30\x55\xc2\x68\xb3\xb1\xb2\xb9\xce\x6c\x5a\x08\xcd\xe9\x62\xd3\x8d\xf5\x24\x45\x92\xb3\x5d\x16\x48\x1c\x23\x7d\xd3\x3b\x5b\x99\x71\x8c\x15\xbb\xc7\xa0\x30\x42\x89\x9d\x91\x87\x1c\x5d\x9c\xb1\xbc\x0f\xc6\xfd\xa7\x8f\xf4\xbb\xd8\x19\x88\x5b\x09\x12\xfa\x4c\x37\x07\x4d\xf1\x6a\xc7\x4b\x0a\x8c\x80\x00\x4d\x74\x7d\x1b\xd2\xf5\x1f\x51\x9f\x0c\x39\x82\xd5\x87\xf9\xc6\x6f\xaa\x18\xd4\xe9\xe5\x6e\x2b\xda\x6d\x60\x59\x8d\x12\x34\x46\x82\x2a\xc1\x5d\x40\x4d\x32\x83\xae\x3c\xfe\xe2\xc9\x5f\xa4\x5d\x71\x0d\x66\x2c\x25\xac\x7a\x46\xe3\x91\xb4\xdd\x41\x91\xb1\x19\x1c\xa9\x07\x16\xb3\x68\xf5\x0e\x12\xb0\x71\x35\x8c\x3a\xc2\x32\x9f\x0b\x6d\x68\x9b\x6a\xca\x29\x6b\x27\x0d\x82\xd6\x25\xe8\xe1\x94\x25\xbf\x74\xed\x42\x9f\x7a\x51\x0d\xea\x15\xd0\x31\x01\x75\xe9\xb4\xbf\x75\xff\xb8\x0b\xb2\xbe\x33\x53\x3e\xa7\x8a\x81\x2b\xcf\x98\x7e\x52\x8e\x3d\x5d\xf5\xde\x53\xfa\x6e\xd6\xc5\xdb\xf7\x2e\xf3\x5f\x9d\x4b\x34\x34\x53\x91\x8b\x47\xb3\x92\x14\xfe\x14\xa4\xad\xbe\xa8\x43\xdd\x15\xe7\xd1\xd1\xd0\x80\x22\x43\x34\x48\xaf\x07\x54\xf6\x30\x11\xa8\x34\xac\x66\xb0\x1b\x97\xc9\xd5\x76\xd2\xd9\x1b\x37\x94\x0c\x0d\x70\xc1\x25\x75\x40\x0e\xfb\xc5\xeb\xf3\xf8\xcc\x15\x4e\x44\x5d\x13\xce\x02\x06\x40\xb9\xde\x7c\xf1\x8c\xf9\xbe\x77\xc1\xa0\xd6\x9d\x94\xa0\x80\x47\xbe\xf8\xeb\xb4\xe7\xb5\x56\xfe\x42\xce\x2f\x40\x66\x47\x01\x55\x86\x9b\xfe\xce\x57\x07\xf3\xcc\x3a\x82\x0f\xdb\x3d\x78\x51\x4f\xfa\xb2\xce\xda\x3f\x70\x81\x99\xb0\x19\x5b\x75\x47\xb2\x10\xe3\x42\x05\x26\xef\x8e\x9c\x4d\xbc\x65\x74\x3f\xd1\x92\x67\x5c\x11\x73\x91\x0b\x99\x22\x5c\xa6\x2d\x4a\x05\x8b\xe9\x32\x05\x61\xfa\xc3\xc4\x20\x4a\x6b\xd1\x52\x9c\xea\xfc\xe2\x1c\x03\xd3\xed\x75\x5b\x8e\x09\x68\x12\x6c\xa3\xe1\x7e\x96\x23\x0c\x30\x4e\xd3\x47\xfd\x73\x89\x04\xeb\xd9\x19\x29\x23\xe8\xc0\x61\xb8\xbd\x22\x9c\x55\xc9\xb7\x5d\xd9\x81\xd2\x75\xbf\x7f\x5f\xaf\x07\x7a\x1e\x0a\x5f\x48\x67\x68\x20\xd3\x2a\x09\x8d\xab\xb3\xe6\x63\xce\x24\xc0\x10\xcd\xc7\x49\x6f\x83\x16\x2c\xcf\x44\x2a\x94\x91\x48\x8c\x73\x24\xc3\xb2\xd1\x2a\x7b\xae\xe7\x2e\x3c\x87\x73\x04\x87\x19\x79\xcb\xa8\x80\x7b\x66\x8e\x05\x85\xd7\xbd\xd1\x1f\x35\xa9\xde\xbf\xf1\xda\x27\xf1\xa3\xee\xa3\xb0\x56\x4c\x22\x04\xcb\xf7\xf9\xbb\x26\xe1\xe5\xd4\x83\xd0\xbf\xf3\x3f\x0d\xe6\x10\xad\x2d\x51\x77\x6e\x86\xa6\x8b\x99\xe8\xde\xc9\x8e\xbb\x14\x58\x64\x61\x66\x6f\xfa\x83\xe9\x5b\xa8\x70\x6b\xfa\x0f\xd2\xd1\x8a\x26\x4a\xa1\xec\xcb\xc2\x6b\xeb\x2d\x92\xb3\xe4\xe1\xe1\x44\xab\x74\x5e\x23\x55\x3b\xd8\x47\x80\x92\x69\x5c\x0e\xc0\x83\xce\xc6\xcf\x93\xa0\x1f\xd7\x8b\x46\x4a\xa7\xfd\xa3\x9a\x40\x8f\x64\x40\x1d\x4e\x83\x42\x30\x97\xa1\x12\x0f\xf9\xb7\xb7\xf3\xc0\xa2\x6b\xab\x49\x00\x72\xec\x48\xaa\x3b\xa7\x65\x89\xbe\xd5\x94\x0d\x5e\xe9\xa5\xde\x94\xa2\xe7\xc0\xfb\xdd\xc5\xb3\xe3\xbc\x98\xcf\x8e\x7e\x14\x9b\x8c\x56\x34\xec\x65\x8e\xe0\x05\x61\xb1\x3c\x91\x4e\x3d\x7f\x64\xee\x2b\xf0\x1f\x3d\xb9\x06\x18\x12\xed\x29\xc5\x3d\x36\x19\xa9\xb2\xfa\xc5\x9f\xa6\x02\x31\xe5\x1d\xdd\x45\x01\x35\xe5\x3b\x2b"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12558 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA47 "\x81\x7a\x31\x0e\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\x02\xe7\x5b\x3b\x63\x82\xdb\xbf\x48\x5a\xb4\x69\xcb\xf2\x3f\xe1\x48\x20\xf1\xd7\x24\xaa\xba\x55\xad\xa6\xe9\xb3\x9d\x83\xda\x18\x36\xc5\x4a\x8e\xab\x9b\xfc\xea\x82\x40\xe2\x24\xe7\x4f\x0c\x59\x79\x3e\xe0\x7c\xcb\x25\xeb\xf9\x93\xad\x58\x67\x1f\xf6\x11\xaf\xdc\xb5\x5b\x8b\x73\x27\xf6\xf5\xb9\xfd\x6e\xd5\x2b\x62\x8d\xbb\xd8\xd8\xde\x65\xc4\x55\xf5\xc4\x1b\x19\x7c\x2f\x59\x40\xfe\xda\x45\x22\x9f\x2c\x95\x1b\x8d\xc9\xb2\xca\x65\x46\x86\xd1\xe8\x34\x70\x20\xc0\x1a\x04\xc4\x80\xd5\x0f\x80\x6a\x65\x38\x26\x22\xc8\x3c\xfc\xa0\xf7\xd3\x8b\x3b\x5c\x3f\x01\x08\x75\x47\x4d\xf4\xa8\xff\x8b\x0c\xc6\x75\xe7\x78\x4b\x84\x7b\x3e\x6f\x53\x69\xbc\x9f\xcd\x94\x2d\xa0\xa4\x30\x22\xf6\x3b\xe8\x6c\x7f\x52\xed\x8b\x96\xa8\xf8\x2e\xdf\xb9\x5d\x38\x4d\xd5\xde\x6f\x41\x6e\x36\x92\xd2\xab\x55\x42\x68\xcc\xc2\x13\x41\x61\x03\x9d\xdc\x2e\x51\x4b\x1a\x17\x66\x0b\x21\xce\x0d\xcd\xa8\xee\xb7\x1d\x7c\x6c\xa6\x28\x45\x5d\x64\xea\xf9\x92\xb7\x0f\x85\xab\x23\xef\xae\x37\xad\xfe\xfe\xd5\x5a\xa9\x8f\x0a\xcb\x13\x69\x83\x63\x1e\xc0\x67\x4f\xca\x6c\x22\xc9\x69\x59\x93\xe6\xfb\xaf\xe0\xdc\x7f\x77\xf4\x51\x52\x1b\x16\x0d\x69\x30\x48\xd4\x0e\xf2\xc8\x06\xb4\xb4\x1a\xc8\x5b\x1b\x19\x6d\x76\xc3\xd4\xfe\x3b\xbd\xd7\xd2\x88\xd5\x2a\x87\xf3\x3c\x5e\x42\xfa\xd9\xd5\x9d\x4b\x36\xbe\x43\xde\xbe\x8a\xe2\x3d\x12\x5e\x96\x08\xe3\xe8\x70\x59\x89\xce\x85\xcb\x25\xf2\xba\x62\x60\xe8\xaa\xc4\x55\x15\x21\x05\x4d\xcc\x1c\xa7\x74\xfe\xe1\xce\xe7\x76\x6e\x2a\xfb\xb1\xcd\xbc\x74\x0b\x11\xe0\x86\x41\xde\xb1\x6c\x58\x21\x1f\x47\x3c\xf3\x53\xec\xa7\x65\x8e\x40\x68\x28\x0c\x10\x02\x3c\xfb\x2f\xb8\x3b\x47\x98\x5f\x08\xcf\x8f\x8a\x0b\xc3\xf9\xa7\xc0\x1d\xf2\xf2\xc7\x55\x7f\x21\xbb\xce\x8c\x15\x49\x1f\x3d\x37\xa4\x64\x58\xa6\x6d\xbf\x53\x75\x18\xaa\x78\x33\x66\x1b\x6e\xd5\x4e\x56\x66\x3a\x74\xc7\x0d\xc2\x4d\x03\xa1\x3d\x1c\x8a\xdd\xe0\x95\x4c\x87\xab\xc0\x4b\x02\xb6\xe9\xaa\xc7\xfd\xbe\x5f\x90\x50\xee\x3c\xdc\x73\x87\x4f\x99\x46\xd7\x43\x44\x3a\x70\xa7\xe1\x40\xba\x5b\x2e\xd8\x56\xc7\x04\x09\x75\x9c\x10\xc6\x3c\xb7\x32\xb7\x78\x5d\xaf\xc6\x19\x40\xce\x0a\x7d\x69\x2a\x79\xa4\x10\x57\x03\x8b\xf8\xea\x0c\x00\xdf\x6d\x55\x79\x5c\x14\xec\x99\xfd\xdb\xa1\xeb\xeb\x86\x4a\x42\x68\x65\x70\x17\x8a\x4c\xaf\x9a\xa4\xcb\xc9\xf3\x60\x6d\xdf\x70\xb5\xd5\x55\x35\x3f\x69\xb6\x04\xe5\x35\xa8\x12\x6f\xfc\x0f\x74\x5f\xd2\x88\x61\x36\xbf\x8d\x8d\x91\xbd\x28\x8a\x3a\x42\x37\x55\xb2\x00\x73\x8a\x03\x56\xab\x03\xee\xef\x00\x4e\xcd\x70\x59\x6f\xf9\xce\xfb\xc2\xbc\x57\xd5\xef\xbb\x44\xde\xba\x1f\x52\x99\x7f\xa9\x06\x66\xa1\x07\xcd\xcf\xa5\xaf\x3e\x57\x87\x85\x44\x96\x31\x55\x8f\x4a\x9c\x87\xb1\xb2\x80\x81\xb3\x17\x20\xb6\x42\x55\x5d\xa9\x53\xe5\xe4\xbb\x7f\x21\x88\x66\x04\xfa\x50\x1f\xf4\xd8\x71\x73\x17\xc7\x55\x19\xb9\x34\x14\x6a\x21\x08\xa4\x40\xc6\xc7\x35\x6c\xf4\x09\x03\xf2\xa6\x28\xfa\xa5\xe0\xd0\xe4\x41\x03\x76\x0c\x39\x9e\x6b\xd9\xf5\xeb\x21\xe4\x24\x2d\x32\xf4\x43\x95\x4d\xa8\x62\x83\x9b\x2e\x98\x7f\xe7\x44\xf3\x63\x1f\x60\x0a\xc9\xd5\x6a\x6e\xc9\xae\x59\x72\x6e\xfb\xc5\xe1\xbb\x35\xca\x42\xb2\xaf\xbf\x2e\xd3\x56\x19\xab\x42\xf9\x22\x2c\x61\x06\x6d\x31\x6d\xe1\x40\xb2\xc9\x89\x17\xb8\x29\xbe\xb7\xc7\xb0\xa2\xb6\xc3\xfb\x58\x32\x76\xf1\x59\xd8\xc4\xa2\xf4\x05\xe4\xea\x25\x9e\x0f\x9e\x16\x67\x19\x6c\xab\x35\xd8\x9e\x7a\x98\xd3\x4d\x8a\x85\xd0\x92\xe8\x1b\xbf\x09\x2a\x68\x12\x42\x1f\x41\xd4\x79\xeb\xc9\x1d\x8b\xd3\xdf\x40\x35\x0a\x24\xef\xb9\xf7\x7c\xd2\x02\x2b\x77\xd3\x38\x1f\x16\xf3\x87\x66\xf7\x27\xdc\x8b\x68\x89\x80\xf2\x5d\x45\x2c\x1c\x99\x27\x70\x8e\x9c\x31\x22\x2f\x0b\x7b\x64\x7b\x6b\x5b\x34\xf9\x71\x9b\xcb\x39\x1b\x7e\xff\x7e\xa3\x8d\x8a\xc5\xd6\x76\xf2\x0c\xa9\xd2\xd2\x3f\x57\x88\x1b\xa4\xc4\x4a\x24\xa9\xa6\xfa\xc2\x7f\x8e\xbb\x72\x6e\x74\x6e\xea\x70\x94\x83\x91\x59\xb2\x47\x4d\xb6\x28\x42\x7e\xc9\xe4\x34\x32\x52\xb6\x54\xd6\x71\xfe\x46\x5a\x33\x2d\x95\x78\x38\x5f\x6d\xeb\x89\xc4\xd4\xe1\x30\x1a\x51\xa7\xc9\xfe\x30\x52\x28\x03\x8a\xd8\x61\xa8\xaa\xc0\xd8\x8f\x88\xe2\x14\x2e\xe3\x8a\xca\xdf\xe1\xf5\x89\x23\xc8\x08\x7d\xcd\xfb\xce\x59\x5e\x6a\x9e\xc8\x7c\xe7\xbe\x31\xff\x22\x56\x5d\xba\xdb\x88\xa1\x03\x70\xb3\x16\xdb\x6e\xe0\xa1\xf2\x76\xae\x4a\xde\xfb\x03\xfe\x53\xdd\x96\xa4\x0b\x1b\x8c\xf4\x4d\x5e\xff\x1e\xb9\xbc\xd8\x0b\x4e\x77\xc6\xc6\x2c\xbc\x5d\x1d\xc9\x65\x05\x39\x70\xd5\x8b\x6a\x69\xe7\x8b\x2d\xe0\xc4\x09\x4a\x70\xaa\x84\x23\xe7"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12559 size=1076(1064,1060)
+#define SAMPLE_AVMCU2_MEDIA48 "\x81\x7a\x31\x0f\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x01\xdc\x78\xc7\x3a\x94\x27\x7a\xde\x40\xb7\xea\x51\x1f\x78\x0e\x9e\x84\xee\xd9\xfe\xdc\x7c\xf3\x13\x4b\x1c\x26\xf5\xb3\x15\xe6\x85\xee\x73\x1a\xea\x86\x72\x7a\xca\x57\x78\x9e\x2c\x49\x63\x70\x91\x97\x4d\x10\xd6\x44\xbd\x83\x1d\xb0\x7b\x70\xd7\x57\x24\x5b\xff\x99\x91\x86\x66\x1e\xe5\x90\xdb\x65\x85\x96\x3f\x1e\x74\x76\xfc\x40\xbb\xb4\x5c\x1a\x37\x48\xf2\x0d\xee\x79\x23\x17\x9d\x19\x62\xd2\xd8\xb8\x59\x6a\x85\x85\x52\x1d\x48\xa4\xd6\x55\x0e\x64\x53\xc1\x2b\x73\x0e\xb8\xa2\xc6\x0f\xe1\x4f\x55\x21\xd9\x77\x6d\x76\xe8\x52\xed\x75\x41\x51\x88\x51\xcc\x21\x9a\x08\x7c\xab\x9e\xd7\x8f\xc7\x88\xc8\x28\x41\x55\xb5\x40\x94\x20\x56\x3f\x81\x7f\xeb\x8d\xfb\x72\x35\x4b\x69\x07\x94\x5c\x62\x33\x54\xa3\x9d\xb5\x2c\x7c\x24\x14\xf2\x33\x3b\xce\x90\xe7\xef\x13\xd5\x95\xcf\x10\xbd\xa5\x87\x04\x8b\x7e\x9f\xfa\x7b\x39\xf1\xa2\x80\xc3\x3c\x76\x43\x5f\x19\x0b\x76\x56\xee\xd5\xc7\xd1\xc4\xb8\x24\xb5\x49\xcb\x22\x25\x30\xbe\xb5\x94\x76\x02\x9f\x16\x6f\x54\x22\xd8\x7d\xd5\xd5\x91\x2d\x60\xcb\xa5\xe0\x73\xf8\xab\x26\x32\xfb\x99\x75\x26\x65\x73\x59\xc9\xa4\x84\xbf\xb2\x96\x9e\xd4\x13\xd7\x11\x93\x21\xf1\xe4\x62\x6e\x11\x22\xec\x42\xc1\xbc\x0e\xd1\xdd\xe6\x92\x63\xc8\x00\x84\x47\x27\x27\x72\xac\x15\xb5\x64\x09\x60\x70\x09\x4f\x33\x0f\x94\x97\xb3\xac\x58\x2f\xd2\x76\x3a\xb5\x41\xca\x25\xf6\x53\xc1\x02\x7e\x63\x5e\xd6\x64\x1e\x88\xcc\x1e\x60\xd6\xf6\x44\x9d\xd5\xec\xf4\xcc\x0b\xf5\xb4\xe2\x04\x72\xce\x94\x4b\x90\x9b\xc0\xff\x8a\x1e\xfb\x9d\x82\x06\x65\x24\xe1\x2a\xbf\x6e\xa1\x6c\xbe\x32\x50\x33\x16\x4b\x95\xd9\x37\x43\xf5\xbe\x80\x26\xe4\x91\x75\x3a\x4d\xb0\x99\x63\x7f\x03\x19\x6a\xba\xb0\xe8\x7b\x3b\x27\x08\x3a\x48\x42\x6d\xac\xf6\x86\x0a\xe7\x7a\x6e\xc0\x07\x77\x1e\xe1\x7b\x3d\x0d\xd7\x02\x39\x24\x42\xf8\xc3\xb8\x36\x85\xfb\x91\x67\xf0\xc9\x66\x0e\xb2\xce\x10\xe6\xbf\x63\x12\x44\x26\x57\x8d\x81\xea\xf6\xa0\x73\x03\x0f\xe0\x40\xac\x1e\xbc\x50\xf1\x6f\x07\x2d\x47\x88\x17\xb5\xd0\x9a\x00\xf0\xc3\x96\x5e\x6c\xe5\xfa\xef\x31\x3b\x7a\x6e\xdb\xfe\x00\x64\x62\xe5\x6d\xda\x9d\x9a\xbf\xf0\x5d\x1e\xab\x02\xfa\x18\xc5\x16\x39\x0b\x4b\xc1\x60\x86\xb5\xec\x61\x01\x59\xeb\xae\xb0\xd4\x95\x75\x8a\x09\x99\x79\x7d\x86\xef\x08\x4f\x41\x44\x24\x85\xed\x9c\xd0\xc9\x19\x84\x2a\x3c\x23\xcd\x84\xfb\x27\x64\x09\x55\x3a\xfc\x90\x7a\xbd\x21\xe5\x3d\xe1\x96\x9c\xf6\xbf\x2e\x98\xfc\xce\x0b\x59\xc8\x75\x96\x2a\x40\x9c\xe3\xe3\xcb\x84\xc9\x0a\xcb\xfc\xad\x9d\xea\xf4\x4c\x74\x9c\x41\xb1\x2c\x6e\x60\x54\xde\x73\xcc\x04\x80\xcd\xd5\x82\x63\x4a\x14\x31\xa6\xcf\x47\x87\xa8\x24\x3b\x35\x02\x5e\x25\x7b\xee\x1b\x07\x58\x01\x48\x66\xbf\x22\x8d\x18\x9f\x85\x50\x59\xcd\x36\xc4\xde\xae\x12\x93\x1b\xd7\x45\xf0\x98\xc8\xfb\x31\xa8\xc2\xdb\x7a\xa4\x1d\xa8\xea\x62\x5d\x4d\x19\x29\xc2\x86\x93\x62\xc3\x59\x54\x24\xee\x2f\x6c\x76\x6c\xb5\xce\x1e\xf6\x05\x02\xbf\xaf\xda\x8c\x95\x23\xbf\x29\x01\x4d\x83\x85\x14\x95\x7e\xf0\xe6\x5e\x55\xfd\x5e\x55\x83\x1c\xcc\x18\x0f\x4f\x19\xe9\xf8\xc6\x7f\x4a\x7a\x32\xf0\x0b\x95\xb5\xc2\x64\x4b\x65\x00\x08\xa8\xd5\xfa\x7a\x5f\xc9\xce\xb4\xe8\xb6\xae\x99\x36\xe6\x99\x8c\xd1\x9a\xb5\xef\x11\xa3\x74\x3d\xb4\x6f\xd1\x1b\x78\xd2\x21\x23\xa6\xd2\x47\xb7\x10\xf9\x3c\xb3\x41\xbd\xff\x69\x9e\x22\x74\xac\x81\x6d\x5d\x43\xe9\x74\xab\x7c\x66\x1e\x16\xe9\xe5\x04\xbe\xe5\x2a\x01\xf0\x3d\x1c\x9d\xf0\xe4\xe8\x60\x2a\x33\x5c\xa9\x9b\x4a\x54\x0d\xc3\x96\x8f\x5a\xe5\xbe\xdb\xa9\xeb\x42\x30\xec\x3f\x2b\x3d\xdd\xdf\x75\x20\xf1\x8d\x74\x38\xd2\x56\xfb\xda\x75\x02\x2f\x4c\x73\xff\x5c\x2a\x20\xf9\x98\x5b\x62\xd8\xb6\xc5\x5d\xe5\xe2\x1c\x68\x79\x0b\x83\xb4\x9f\xe2\x11\x33\x82\x06\x74\x6f\xef\x98\x4e\xca\xb8\x45\xda\x2f\x1d\x51\xd9\x68\x4a\x17\xab\xd2\x81\xfc\xf8\x85\x04\xd8\x36\xad\xf3\x9b\x61\xb9\xcf\xa0\x00\x4d\xc3\x69\x95\xdd\x81\x10\x38\x7b\x88\xf0\xf4\xb7\xbd\x98\x9b\x41\x0e\x1c\x09\xca\x71\x24\xe1\x97\x82\xc3\x34\x22\xbe\x37\x5c\xdc\xf6\x37\x0a\xd4\xb2\xc2\x83\xbd\xf8\x08\x5d\xa9\xc1\x66\x73\x76\xfe\xeb\x8e\xba\x2b\x94\x9c\x6d\xff\x81\x07\x38\xb6\x4f\x3c\xe3\xa8\x99\x7b\xdf\xbd\x2c\xe9\x6b\xc8\x54\x7c\x04\x74\xd2\xdd\x42\x6f\x37\x51\x3e\x7b\x38\xfa\x92\x7e\x24\x35\xa3\xee\x7f\xbe\x89\xf7\x5b\xd5\x4e\x9f\x99\xce\x7a\xb5\x8a\x90\xdf\x85\x51\x7c\xfb\xd8\x51\x6a\x99\x61\xba\xb6\x1d\xfe\x63\x6c\xd6\xc1\x40\x99\x8d\x4e\x92\xf9\x81\xaf\x02\xec\x16\x00\x06\x2f\x8b\x59\x29\x0f\x6a\x02\xa0\xed\xe6\x00\xc9\x9d\xf8\xa3\x3b\xeb\xb2\xc5"
+// rtp header (incoming) : [ C] ssrc=0x00000d51 pt=122 tstamp=129206385 seq=12560 size=1064(1052,1048)
+#define SAMPLE_AVMCU2_MEDIA49 "\x81\x7a\x31\x10\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x5c\x41\xcc\x65\x1c\x97\x15\x1d\x77\x17\xfc\x1d\x66\x06\x52\xc9\xa4\xc1\x07\x79\xc3\x98\x99\xcb\x63\x9c\xd2\x23\xe6\x43\x83\xb4\x3a\xdc\xf7\xbb\xca\xa1\xef\x05\xe7\xd8\x2d\xca\x93\x8c\x95\xdd\xf1\xd8\x04\x59\xd7\x2e\xb0\x7f\xa5\x0e\x6c\xa7\xa6\x48\x49\x62\xc5\xca\x02\x3f\xc6\x85\x45\xf6\x71\x11\x5e\xa4\x69\xab\xd8\xe7\xbb\x03\x0a\x7e\x00\x4b\x90\x42\x63\x65\x2c\x75\x6b\x5d\x4c\xc1\x4b\xde\x35\xc5\x99\x6a\x1b\x2e\x87\xea\x51\xf3\xf6\x03\x0d\x0c\x68\x62\x86\x55\xa5\xc3\xb2\x29\xde\x2e\x77\xa8\x82\x3b\x16\x44\x28\x7b\x1c\x5b\x39\xdc\x6c\xd2\x1b\x72\x96\xff\xbf\x50\xcf\xe9\x3a\xfe\x57\x3e\xd2\xe9\x04\x80\x0e\x5d\xa0\x5f\xe8\x36\x39\xc5\x03\x48\x16\x8a\xda\xb3\xec\xec\x88\x05\xb7\xf5\x7d\x9d\x61\x12\x5c\xa5\xc0\xe2\x99\x72\xf3\x72\x1a\xbc\x9e\x72\x64\x1c\x1a\xbf\x7d\x17\x69\x6f\xfc\x35\x19\xf8\xa0\xc4\x46\xf4\xe3\xf0\x16\xf5\x3a\x6d\xb7\x87\x5f\x40\xe0\x44\xa6\x12\x3f\x00\x25\xa2\x4a\x6b\x23\x14\xa9\x03\xeb\xa0\x0d\xed\xca\x37\xd0\xdd\x9d\x83\xe2\xcd\x8d\x51\xf5\x2e\x13\xae\xec\x1e\xef\xdc\x0e\xa0\xf2\xa0\x3d\xf8\x88\x93\x39\xf3\x9b\x40\xaa\xfa\x2b\x0d\x66\xa9\x04\x07\xbd\x3c\x8e\xfb\x04\x08\xb7\x5c\x2c\x00\xb9\x67\x6c\x95\x71\x2f\x0b\xdd\x20\x78\x61\xab\x9d\x0b\x9b\xa8\xb6\x6b\x98\x18\x41\x8e\x51\x5d\x10\x3d\xcf\x8c\xec\xe8\x40\xa6\x23\x21\xb5\x74\x76\x40\xc2\xe3\x05\x8c\xc3\x37\x3b\x4e\x97\x20\x34\x08\x7d\xc0\x48\x88\x9c\x69\xc0\xac\x31\x83\xd6\xff\x5c\xf4\x50\x90\x90\xde\xbb\xf3\xc2\x61\x91\x77\x5f\x74\xdb\x44\xd8\xca\x6f\xfe\x4a\xed\x4e\x78\xd1\xdc\x8a\x03\x88\x58\x7b\x50\xd1\xa3\xc3\x39\x3d\xed\x65\x1e\x62\xc9\x44\x69\x6b\xa3\xb7\xa9\x4b\xc2\x35\x82\x5f\x90\xc6\x93\xa6\x91\xeb\x7f\x6e\x93\x0c\xcc\xc5\x86\x0d\x28\x56\xb2\x06\x6b\x95\x52\x08\x89\xc4\x34\x9e\x97\x3a\xb5\x49\xc8\x44\x2f\xd5\xa5\x6c\x10\x88\xee\x10\x94\x32\x1a\xce\x67\xec\xe7\xb6\x12\x36\x20\x25\x37\x73\x44\xbe\x85\xd2\x13\x04\xc4\x42\x6e\x84\x3f\xbb\xa6\x5c\xf6\x46\x18\x9e\x20\x0a\xa5\x93\xd6\xc8\x73\x23\x9c\xa7\xcc\x44\x04\x63\x39\x83\xa8\x79\x83\xf1\xa3\x84\x9f\x58\x7f\x6f\x4a\x65\xd5\xa6\x98\x74\x46\xc7\x76\xfd\xb1\x83\x36\x5b\x14\x57\x48\x79\x0c\x6c\xac\xd5\x3c\x3b\x4f\x3a\xbc\x22\x0b\xdc\xb2\x5c\x21\x43\xb1\xec\xc7\x23\xac\xa7\xae\xb4\xc4\x04\xb0\x40\x8b\x69\xaf\x8d\x46\x3b\xa7\x15\xff\xc5\x04\x13\xa1\x14\xf3\xc4\x98\xf8\x1a\x1e\x42\xcc\xce\xc0\x21\x49\xfb\xad\x1f\xb8\x4a\x27\x0c\xcd\x76\xdd\xe8\x0c\x28\x08\x68\x5c\x74\x2b\x65\x86\x38\x60\x16\x0c\x20\x30\x99\xde\x86\x66\xe2\x70\x8d\x99\x40\x02\xf7\x99\xb8\x33\x5c\x75\x64\xef\x49\xb6\x2f\xb4\x32\x0c\x6a\xcb\x2a\x5e\x47\x0b\x47\x4b\x1c\xcb\xf1\xdb\x60\xa6\x6f\x20\x7c\xc6\x8f\xc0\xc0\x6d\x82\x47\x51\x96\x49\x66\x78\x2d\x6a\x79\x7a\xc7\x26\x69\x34\xc9\xff\x2e\x91\x7a\x4f\x07\x10\xaf\xa2\x24\xf6\xfa\xde\x35\x74\xde\x62\x7d\xb8\xe7\xe3\xa2\x48\x03\x54\xe9\xf3\x08\x6b\x94\x68\x3c\x04\xb1\xe7\xa1\xe4\xd1\x54\x65\x07\x79\xd5\x5d\x8f\x25\x22\x2e\x62\xf9\xdd\x2d\x43\xe1\xf2\x31\xb4\xfb\x21\x3b\xe7\x6c\x62\xf6\x6b\x8f\x81\x77\x7a\x8b\x84\x37\x7c\xea\x31\xfa\x37\x6e\x5c\x85\xd1\x03\x3d\x55\x74\x9a\xdb\xe6\xe8\x65\x55\xd1\x7f\xd8\x25\x94\xc5\x2b\xae\x69\xf8\xec\x40\x4f\x9c\x38\x42\xcf\x91\x7b\x0e\xe0\x56\x5c\x8f\x25\x07\x70\x70\xb5\xc5\xd7\x83\x5f\x38\xe4\x79\xd7\x7e\x06\xc8\xcf\x89\x7b\x5d\xee\xab\xc5\xb4\xd9\x88\xe6\xb2\x29\xa0\xbd\x8e\x11\x4d\x6e\xe3\x66\x6d\x72\x91\xa4\xf7\xa4\x4c\x16\xb9\xcf\xd7\xd4\xb7\x14\xa0\x5f\xad\x61\x82\x1f\x87\xc1\xa8\x76\x8f\x69\xff\x0f\xb4\xc4\xde\xea\xbe\x1e\xfb\x25\x0b\x45\x01\xc1\x94\xe4\x67\x16\x5e\xf9\x3a\x03\xbb\x85\x13\x51\xbe\x1d\xa3\xed\xd7\x17\xb0\x9c\xd9\xbc\x87\xd6\x35\x99\xd9\x64\xca\x18\x2b\x1e\xbe\x8f\x9f\x2e\xa4\xb6\xe3\x6c\x4c\xad\x1f\xdc\x71\xcb\x7a\xef\xfc\x29\x54\xbe\xa2\xb8\x4f\x10\x9c\x1c\x1c\xae\x20\x99\x32\x9a\xca\x50\x15\x83\xf0\xab\x88\xaf\x9a\xc6\xa6\x96\x27\x38\xa1\x66\x73\xeb\x85\x58\x03\xcd\xca\xda\x26\x3e\xb2\x03\xb3\xbc\x31\x9e\xa3\xe1\x8e\x43\xaa\x92\xa5\xc3\x4a\x68\x31\x48\x83\x91\x11\x8d\x8d\x5c\xec\xc1\xb7\xae\x5a\xf1\xf4\xf6\xb4\xa5\xbe\xd7\x4c\x0f\x5c\xf6\x63\x59\x5e\x1c\x0a\x85\x20\x28\x11\x19\x88\x73\x6f\x59\x16\x5a\x71\xa3\xb2\x69\x6e\x26\x71\xbb\x83\xdf\x44\xe8\x22\x23\x6f\xd6\x7c\x5d\xb6\x1e\xee\xd9\x9a\x94\x36\xa6\xba\xdb\x84\xf3\xc8\xfb\x71\x7a\xa9\xae\x86\x50\x19\x13\xed\x1c\x0f\xda\x78\x61\xde\x5f\xa0\x7e\x01\x09\x69\xec\x60\xfb\x70"
+// rtp header (fec) : [ C] ssrc=0x00000d51 pt=117 tstamp=129206385 seq=12561 size=65(53,49)
+// fec header : [E ] pt=122 tstamp=0 seq=12511 recovery_len=33
+// fec level header : protection_len=33 mask=0x800000000000
+// fec level header ex : [ ] fec_count=1 fec_index=0
+#define SAMPLE_AVMCU2_FEC0 "\x81\x75\x31\x11\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x80\x7a\x00\x32\x00\x00\x00\x00\x00\x21\x00\x21\x80\x00\x00\x10\x5e\x84\x80\x0f\x22\x12\xac\x00\x18\x06\x05\x15\x05\xfb\xc6\xb9\x5a\x80\x40\xe5\xa2\x2a\xab\x40\x20\x26\x7e\x26\x7c\x01\x02\x88\x87"
+// rtp header (fec) : [ C] ssrc=0x00000d51 pt=117 tstamp=129206385 seq=12562 size=1096(1084,1080)
+// fec header : [EL ] pt=0 tstamp=0 seq=12512 recovery_len=0
+// fec level header : protection_len=1060 mask=0xffffffffffff
+// fec level header ex : [ E] fec_count=5 fec_index=0
+#define SAMPLE_AVMCU2_FEC1 "\x81\x75\x31\x12\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\xc0\x00\x00\x32\x00\x00\x00\x00\x00\x00\x04\x24\xff\xff\xff\xff\xff\xff\x08\x50\x00\x80\x4b\x9d\xa0\x32\x0a\xf7\x94\x97\x20\xc2\xe4\xa8\x1e\xb0\x12\xf6\x0b\x48\xac\xaa\x05\x65\xd7\x6b\x87\xba\x23\xca\x8c\x38\xd3\x4c\xc9\x50\xf9\xe8\xe5\x38\x8d\x05\x1b\x0b\x7d\xff\xbe\x5d\x20\xe9\xab\x0b\x5d\xe9\x22\xb7\xed\xb1\xc4\x75\x08\x43\x53\x0a\x6a\x7e\x70\xdf\xee\xe2\xc6\x50\x59\x6e\x5a\x03\xef\x90\xea\x4d\xcb\x6f\x32\x6c\x7f\xe4\x2a\x5f\xcc\x2e\x02\x04\x0a\x30\xd0\x98\x65\xeb\x77\x1a\x44\xae\x4a\x9f\xce\x56\xf7\xfd\x83\xc5\xb7\x10\x41\x4c\x08\x18\xc3\x9c\x64\x41\xb0\x9a\x2d\x36\xbc\xab\x24\x17\x5f\x52\xd6\x9c\x01\xb1\xa0\x21\x76\xd1\x20\x4c\x53\x6d\xac\x7b\x65\x32\x1e\x40\x48\xf2\xc7\x55\xf0\xeb\xf3\x1a\xb4\xa1\xf7\xd0\x38\xd3\x10\x0a\xd1\x13\x7a\x85\x1f\x67\x6f\x92\x25\xa5\xa8\xa4\x86\xd6\xbf\xa6\x77\xe3\xa2\x45\x48\x74\x2a\x5c\xdc\xef\xeb\x05\x4a\x2c\xaf\x86\x01\x40\xcd\xd3\x4b\xd0\x1d\xaf\x19\x60\x6b\x86\x07\xe4\x65\xb7\x54\x53\xb6\xb6\x00\xae\x4b\x82\x08\x66\x8d\xda\xc2\x59\xc2\x1a\x89\xb8\x6e\x75\x00\x07\xac\xeb\x67\x80\x29\xcd\x3b\xfe\xc8\x46\x5b\xfe\x01\x01\x9a\xa3\x33\x5f\x8b\xa7\x70\x3d\xec\x34\x30\xed\x88\x65\x89\x7c\x31\xcb\xab\x88\xa9\x56\x0c\xc3\xdd\xa4\xe5\xb1\x77\x14\x7a\xd1\x98\x09\x49\x47\x93\xda\x7f\x36\x3a\x9d\x02\x0c\x46\x40\x54\xf5\x30\xdb\xe6\xdf\xa4\xaf\x1b\x66\x03\xc5\x96\x34\xa4\xd7\x57\xe0\x67\x6a\x4c\x58\x63\x46\x8a\x7d\xf2\xf3\xe4\x55\x55\x16\xa9\x34\xe0\x4d\xc5\xcd\xf7\xfa\xfa\x59\x53\xab\x3e\xea\xbe\x7d\xa5\x8d\xef\xc4\xc6\x47\x54\x5f\xe1\x53\x11\xff\xcc\xb1\xfa\x8e\x9b\xd4\x8a\x5a\x2b\x1c\xda\xbf\xa1\x9d\xec\xf2\x2f\xe9\x8a\x4c\x7e\x02\xa9\xe3\x5f\x6e\x0b\x32\xbc\x66\x29\x91\x71\x44\xd7\x59\x5c\xd6\x97\xfb\xa0\x0f\xda\xc1\x78\xd5\xf1\xb5\x82\xef\xae\xab\x2e\x5f\xe6\x1c\x08\xfc\xc7\x01\x7f\x44\xc7\x06\x65\x12\xb9\x1b\x31\x0b\x44\x4a\xfd\x02\x15\x75\x52\xf2\xc8\x92\x48\x03\xd7\x1d\xd3\x47\xc4\xb2\x64\xf3\x19\x7c\x94\xc1\x08\xa7\xbf\x54\x7b\x61\x1a\x70\x2e\xb9\x98\x28\x3e\x13\x9b\xd9\xf7\x74\x8b\x4d\xe3\x6f\x53\x37\xaa\x45\x17\x4e\xfa\xa2\x5c\x81\x1e\x7d\xb7\x85\xe7\xe5\x17\xac\x90\xc8\x6c\x2c\xc7\x62\xd4\x60\x42\x77\xa9\xe6\xb5\xcf\x2b\x88\xcb\x0f\xb0\xeb\x23\x91\xc9\x88\x9d\x71\xf1\x1d\xba\x14\x40\x84\x79\x70\x66\x4e\x86\x06\xd6\x3a\x9f\x02\x21\xa2\xbf\xce\xd5\xfb\x23\xa2\x20\xa5\x9b\xe5\xae\x3f\x96\x43\x4a\xe9\x05\x56\x1f\xff\x92\x36\xf2\x4d\x02\x3d\x5e\xea\x22\x3a\xd3\x0c\x6a\x8f\x8f\x8b\x1b\xe8\xe1\x57\xc1\x4e\x5b\x62\x99\x09\x19\x24\x03\xb1\x9c\xee\xea\xf9\x18\xc8\x89\xb3\x4c\x43\xb9\x72\xd7\x3c\xcf\xcd\x0c\x21\x56\xe0\xa0\xc6\xc5\xb4\xcc\xbb\x27\xe4\x31\xd5\xf4\x52\x89\xc9\x8d\xb7\xed\xb1\x86\x3e\x10\x26\x7c\xbc\xa3\xdc\x5b\x7b\xfa\x27\xcd\xb3\x0d\xdc\xec\x4b\x4f\x53\x72\x7f\x66\xff\xf6\x48\x3e\xc2\x2e\xa9\x65\x76\x93\x45\x47\x89\x98\x93\x8f\x5d\xfd\xa4\x21\x2c\xda\x64\x36\xf0\x38\xb9\xf5\x25\xd3\xbe\x8d\x40\x62\x2d\x73\x52\xc7\xca\xfb\xfb\x84\x52\xac\xbd\xa3\x55\x60\x43\x1f\xba\x09\xf9\xd4\x18\x24\x0c\xea\x74\x46\xb9\x50\x3b\x72\x44\x5f\x0b\x18\xb0\xb8\x87\x93\x53\x7c\x32\x73\xd8\x75\x26\x00\x93\xfc\xdb\x8e\x2c\x42\xc2\xf7\xda\x11\xf2\xd7\x2a\xbf\x6c\x23\x1c\x60\x92\x68\x46\xe7\xd5\x4e\x5b\x8f\xc6\xde\xcf\x2d\xc3\x90\xa0\x88\xf2\xa2\xac\x13\xe6\xfa\x0a\xf7\x43\x11\xd5\x17\x78\x1b\xc5\x7b\x86\x10\xe9\x46\xd5\xcb\xf8\x78\x89\x0b\x87\xd0\xb5\x88\xc5\xe7\x5d\x1a\x72\xcd\xad\x6f\x70\x3f\x78\x9b\x89\x4f\x19\xe2\x2e\x81\xc2\x5b\x5b\x52\xb5\x10\xa9\x3e\x77\xdc\x4f\x67\xbb\xfd\x7b\xf1\xab\xca\x33\xfd\x31\xbd\x44\x79\xbe\x5a\x7f\x7b\xbe\xa1\xf1\xdd\x79\xdc\xfd\x93\xbc\x95\x0b\xb3\x6d\x3f\x31\xea\x2d\xc2\x26\x08\xf7\x55\x60\xa1\xae\xec\xd6\x2d\xed\x1b\xad\x68\x19\x5f\xf0\x39\xfa\x9e\xe7\x8c\xa7\x1e\xc7\x09\x6c\x41\x6f\x2a\x51\x87\xa6\xfb\x6e\x4a\xa1\x2b\xd2\x9c\x4f\x4c\x89\x4e\xb3\xa1\xee\x97\x64\xb7\x73\xf9\x68\x83\xb5\x42\x7d\x59\xb5\xc7\x49\x42\x07\x79\x1d\x2e\x0e\xb6\xf6\xc1\xfc\x8c\xae\x0c\x93\xf8\x01\x1d\xcf\xdc\xc5\xfd\x96\x6a\xaf\xf2\x0d\x36\xb0\xae\x0f\x2e\xad\x30\x8c\xdb\x98\xd0\xfe\x89\x1c\x37\x83\xb1\x34\x38\x75\x41\x00\x22\x2b\x2f\xf8\xcb\xe5\xba\x77\xcf\xa6\x53\x05\x8a\x23\x5d\x83\x3c\x24\x65\xab\x5d\xe4\x67\xb7\x1b\xd0\xf8\x18\x7d\x86\x79\xbb\x22\x2a\x43\x1d\x75\x89\xd7\x12\x6b\x62\xa8\x38\xfe\x39\xae\x9b\xa2\x77\x5e\x61\x89\x53\x50\x75\x11\x57\x70\xea\xf3\x2a\x40\x5a\x06\x14\x8f\x80\xd4\xd6\xaa\x6b\x17\xdf\x1f\x21\x6c\xb9\x7d\x16\xe3\x60\xe1\xb0\x50\x83\x2c\xc1\xe7\xbd\x9d\x58\xc9\x09\x30\xd2\x34\xfb\xc2\x9d"
+// rtp header (fec) : [ C] ssrc=0x00000d51 pt=117 tstamp=129206385 seq=12563 size=1096(1084,1080)
+// fec header : [EL ] pt=30 tstamp=0 seq=12512 recovery_len=3429
+// fec level header : protection_len=1060 mask=0xffffffffffff
+// fec level header ex : [ E] fec_count=5 fec_index=1
+#define SAMPLE_AVMCU2_FEC2 "\x81\x75\x31\x13\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\xc0\x1e\x00\x33\x00\x00\x00\x00\x0d\x65\x04\x24\xff\xff\xff\xff\xff\xff\x03\x51\xf3\x7b\x2d\xcf\xa4\x72\xeb\x84\x05\x1c\xd6\x1e\xdc\x81\xf6\x42\x0a\xd7\x30\x55\xaa\x82\xd2\xbc\x3d\x99\xfb\xe8\x87\xc4\xcb\x21\x56\xaf\x66\x5e\xb8\x43\xc5\xbc\xcd\xc6\x1e\x97\x36\xee\x8a\x27\x22\x79\xde\xf9\x83\x00\x8d\xd5\x19\x74\x93\x73\xa2\xfe\x76\xae\x48\x12\xff\xe2\xbd\xb3\xbc\x73\xe1\x2e\xe3\x88\x72\x74\x6e\x42\x15\x62\x98\x23\xed\x71\xe0\x37\x42\x7e\x46\x7d\x5a\xfe\x4c\x4e\xa2\xca\x9f\x12\xd8\xa9\xa6\x34\xf6\x9f\x1b\x9d\x15\x17\x00\x48\x04\xf8\x5c\x8b\x67\x99\xa0\x3f\x6d\x23\x2a\x09\xa2\xd9\xce\x14\x50\xcb\xe3\xbd\x49\xae\x6a\x1f\x1d\x15\xbd\x80\x05\x43\x5b\x30\xea\x16\xf9\x68\xa1\x5d\xf9\xdf\xab\x65\x9f\xf7\x37\x39\xd8\xad\xb8\xf3\x6b\x9c\x70\x0a\xcd\x7b\x7a\x58\xd3\x21\xed\x57\x87\x4e\x95\xf4\x55\xd9\xaa\x1a\x68\x93\x9c\xbb\x8f\x8a\xe0\x5b\x76\x77\x15\xae\x76\xf5\x3b\x18\x97\xbc\xfb\xef\xce\x80\xa5\x0e\xd2\x28\x10\x65\x08\xc9\xed\xd1\x97\x1e\x13\x65\x9f\x70\x38\xe9\x61\x27\x47\xd5\x62\xc9\x42\xb0\x9f\xa3\x35\xde\x74\x32\x0c\x3b\x94\xe1\x5b\xf7\x9e\x01\xfd\x25\x10\x79\x56\xc6\xd8\x98\x64\x58\x3a\x2b\x49\xec\x7d\x76\x7f\x6e\x66\x66\x27\xc6\x12\x25\xc7\xf1\xd4\x58\xf4\xd0\x4e\x9a\x68\x87\xef\xbb\xa6\x99\x53\xfd\xad\x52\x02\x52\x34\xcb\xfe\x1d\x16\x21\x49\x0c\x29\xb2\x56\x04\x27\x89\xd2\xe8\x4b\x7a\xe6\x55\xa0\x69\xd6\xe7\x49\xbf\x2e\x70\xc1\x37\x9f\x3e\xd5\xa0\xb2\x94\x7d\xa2\x91\xa0\x11\xe1\x3e\xaa\x57\xc9\xaa\x1a\x8a\xae\x57\x7c\x7a\x38\x70\x07\x48\x3e\x71\x11\x75\xc3\xa8\x45\xea\x50\x0e\xe3\xd3\xd0\x1b\x05\x9d\xda\x70\x4f\x4e\xc1\xc1\xa0\xfb\xdc\x5b\xb5\x41\xde\xa0\xd6\x78\x02\x00\x9b\x4e\x63\x21\x01\x8b\x4f\x11\x6b\x65\xd4\x60\x27\xee\xf6\xf4\xd8\xcf\x72\x59\x30\x6a\x66\x41\x67\x79\x50\x45\x38\x76\x6f\x77\xac\x4f\x7a\xb9\x23\x85\x0f\xde\x21\x7e\xbe\xb1\xc5\xaa\xad\xfa\x56\x09\xf4\x6e\xa7\xd1\x0a\xab\x4d\xa0\xe0\x85\x95\x5b\x2f\xd3\x7d\x51\x2d\xac\xe2\x17\x7e\x64\x48\x55\xd7\x5d\x23\xd6\x15\x58\xfb\xd1\xca\x0c\x40\x41\x48\x39\x22\x07\x24\x63\xb1\xe5\x44\x31\x04\x22\xbd\x55\x6e\xc6\xb7\xac\xee\x4b\x28\x1c\x5a\x1d\x57\x29\x2c\x08\xfe\x63\x0e\x7c\x64\x72\x9a\xe2\xd3\xc2\xcf\x2e\x69\x2b\xbe\xb0\x84\x94\x90\xfb\xca\x7d\x81\xb5\x82\x20\xd8\x85\xfb\x69\x0b\xac\x2d\xde\x8d\x63\x2b\xa4\xcb\xc8\x8b\x49\x62\x70\xa0\x08\x2e\xa0\xbd\x48\x52\xef\x93\x4f\x01\x5e\x04\x8e\x7f\xf9\x21\x0e\x0b\x17\x40\x5d\x3c\xe7\x5c\x52\x5c\x88\xb2\xf5\x71\x74\x8b\xf5\xfc\xb6\x19\x77\x93\xc2\xb6\x15\x82\x8d\xa3\x31\x77\xd4\x91\x35\x8e\xbe\x0a\x71\x46\x01\xa7\xbe\xa1\xb1\x8f\x3c\x44\xba\x2f\x10\x70\x0c\xdf\xc7\xc7\xc5\x0d\xe6\x6b\xb9\xca\x1c\xa4\x21\x5e\x3a\x63\x00\xf3\xbc\xce\x92\x55\x2e\xe7\x04\xb0\x4a\xf3\x5d\x5b\x32\xbe\x1c\x11\x1b\x73\x88\xee\x23\x7a\x95\x9f\xad\xb5\xed\xe6\x76\x2e\x2d\x8a\x64\x10\xff\xbe\x34\x28\x0b\xf1\xc7\xe8\x72\xd5\xf8\xbd\x0b\xa3\x68\x40\x29\x8c\x14\xae\xa4\x06\x4d\x74\x0c\xdd\xf2\xdf\xec\x4c\xd5\x7a\x0d\xa9\x6f\x4b\xa9\xce\x1e\x8d\x29\xf5\x83\x64\xad\xd7\xf7\xcc\xb8\xc7\xeb\xea\x88\x31\x6b\xe9\x05\x7c\xde\x20\x03\x19\x22\x55\x8c\x60\x8b\x1d\x6d\x0e\x04\x33\xf7\x2f\xd9\x80\x33\xab\xf7\x8a\x25\x78\x30\x8b\xdd\xdb\x2f\x29\x7b\x36\xce\x1d\x4c\x66\xf3\x0a\xdc\xf8\x5a\xc8\x68\x5e\x0d\xbc\x4f\x25\x73\xe2\x26\xa7\xdb\x01\x32\x78\x93\x89\xb0\xde\x46\xb1\xe8\x9b\x7d\x58\xe5\x5d\xab\x3c\xad\x81\x38\x29\xaa\x24\x3b\xa5\x3d\x26\xd5\x83\xb0\xbe\x4d\x0a\x25\x80\x5e\x8d\xc5\xfa\x87\x03\x89\xba\x13\x88\x85\x3d\x5d\x51\xe8\x2e\xab\x6a\x47\x89\x40\x1c\x83\x21\x8b\x59\x7c\xa7\x3c\x8a\xb9\xd1\x99\x46\x9b\xd4\x59\xab\xe9\x8f\x98\x51\xb9\xbb\x54\x2f\x49\x67\xaf\xec\xc5\xe5\xdf\x4e\x94\x55\x31\x11\xf9\x9d\x38\x43\x93\xb2\x16\x42\x67\x3e\x4f\xcc\x3a\xfb\x10\x22\xec\x50\x21\xae\xd1\x57\xc6\x89\x5f\x1d\x61\x27\xe3\x3e\x75\x13\xd5\xd4\x76\x0a\xab\x26\x37\xb3\x3a\x6f\x18\x1b\x76\x2a\xde\x93\x5b\x5c\x02\x1c\xc3\xf1\x22\x05\x6c\x87\xaa\xab\x3d\xf0\xe3\xd7\xcf\x38\xb7\xe5\x17\xb2\x96\x1f\x08\x36\xdc\xbd\x33\x9f\x5d\xc0\xae\xd5\xc8\x38\xa7\x07\xd7\x59\x14\x1c\x2e\x5a\xaa\xa2\xab\x74\xe8\xdc\x82\xc4\x45\x8c\x84\x4c\x8e\xae\xe6\xe6\x8b\xbb\x1f\xe7\x0d\xb2\x80\x12\x57\xd5\x04\x6e\x66\xbf\x09\xd4\x4e\x51\xc6\xe8\xfb\x2d\xbb\x4a\x6a\xcd\x39\xde\x53\x50\x4f\x53\x0d\xcd\x2d\x4e\x64\xd7\xd9\xce\x33\x43\xbe\x76\x35\x67\x61\xf1\x74\x5c\xb9\xb0\xd0\x45\xc4\x41\x3d\x24\xea\x30\x62\xf7\x3d\x56\x06\x21\x4e\x0c\xed\x25\xf7\xda\xc7\x9e\x06\x4c\x39\x64\x28\x58\x99\x28\xe1\x53\xcc\xbf\xad\x98\x9c\x8f\x4c\xdd"
+// rtp header (fec) : [ C] ssrc=0x00000d51 pt=117 tstamp=129206385 seq=12564 size=1096(1084,1080)
+// fec header : [EL M] pt=118 tstamp=0 seq=12512 recovery_len=14565
+// fec level header : protection_len=1060 mask=0xffffffffffff
+// fec level header ex : [ E] fec_count=5 fec_index=2
+#define SAMPLE_AVMCU2_FEC3 "\x81\x75\x31\x14\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\xc0\xf6\x00\x34\x00\x00\x00\x00\x38\xe5\x04\x24\xff\xff\xff\xff\xff\xff\x0d\x52\x0f\xa1\xb2\xa1\x08\x45\x4c\xf4\x65\xbf\xa3\x8a\x9b\x92\x9a\xec\x1f\xe4\x6a\x55\x7d\xc3\xd0\x57\x7c\x85\xbb\xec\x8f\xd5\x01\x74\x2a\xc5\x77\x01\x9b\x92\x98\xfb\x36\xce\x2c\xec\x9a\x85\x93\xa2\xf0\x88\x2a\x8c\xbf\x3f\xdf\xed\xa3\xec\xff\xf9\x8a\x35\xe0\x9f\x74\xe0\xc6\x4b\x86\x28\x5a\x54\xcb\x74\xe3\x11\x65\xe9\x9e\xca\x96\x54\x6b\x67\x83\x90\xee\x3e\xfa\xc9\xa6\x8f\xbd\x9b\xf6\x93\x32\xeb\x28\xc3\x54\x11\x59\x5b\x0b\x7a\x6a\x9d\x53\x62\x50\x90\xb1\x2b\xcf\x04\xbf\xff\x72\xeb\x3b\x41\xdc\x08\x98\xe5\x52\xd3\xd0\x7e\x08\x4f\x18\x24\x73\x5b\xd6\x63\x97\x56\x6f\x6a\x11\x02\x2d\xe7\x58\xdb\xee\x04\x6c\x8c\xa3\x6b\xe8\xd3\x83\xaf\x13\x3a\x91\x07\x59\xf2\x24\x12\xdd\xef\x9e\xc0\x10\x18\x9d\x3b\x80\x40\x0f\x6c\xc5\x75\xe2\xeb\x30\xdd\xf8\xca\x0e\x96\x3c\xb0\xc3\x7b\x28\xbb\x18\x51\xa0\xed\x58\xfb\xfe\x17\xa4\xe4\x6d\x4b\xa8\x94\x83\xed\x30\x51\xf4\x20\x21\x05\xfd\x4c\x42\xb3\x38\xfc\x6a\xc8\x7f\xef\x17\x84\xed\x9e\x0b\x1e\xe2\x3e\xd8\xf5\x8c\x23\x6a\x95\xf5\x57\x47\xd4\x75\xd0\x45\x8d\xf7\x52\x74\x0d\xc0\x56\xd4\xf5\xa1\x4d\xb9\xc7\xb6\x50\xac\xdd\x10\x24\x5c\x5d\x9a\x1f\x5a\x4e\xb1\xb2\x8c\x8c\x48\x92\xf2\x6e\x79\x19\x47\x6a\xa8\x0c\x13\x08\x35\x3e\x4c\x77\x69\xb0\x54\xa2\x69\x94\xd8\x63\xde\x05\x46\x70\x20\x93\x71\xc1\x16\x7e\xe9\x55\x75\x2f\x59\x1c\xe4\x25\xb7\xa3\x08\x19\x60\x7e\x56\x7a\x1b\xc2\x7e\x5c\x46\xf1\x39\xab\x6a\xb7\xd3\x98\x88\x29\x18\xbf\x80\xe4\x5f\x20\xd8\x56\x8d\xac\xae\x43\xce\xa0\xd1\xee\x8d\x3c\xca\xb6\xbd\x1e\x65\xe6\x4f\xe7\x41\x63\x3c\x7a\xc2\x9f\xae\xa5\xcf\xd0\x0e\x06\xc9\xdc\x91\x96\x2d\x8e\x10\x1d\xf3\x6e\x52\x18\xff\x28\x83\x95\xee\x6d\x2b\x83\x57\xf8\x97\x56\x69\xa1\x3f\xe2\xa2\xb6\xc3\xb5\xfa\x5b\x1d\x66\xba\x70\xa5\x31\x1c\x2c\xba\x74\x64\x82\x52\x18\xf7\x88\x8a\x3b\x1b\x35\x65\x74\x97\x0e\x39\xe6\xd6\x02\xfd\x7d\x36\x33\x9c\x1e\x2a\x57\x6b\x55\x48\x7f\x65\x01\xb7\x00\x5b\xb2\xcc\x54\x2c\x5d\x2e\x76\x61\xea\x93\x46\x6b\x66\xce\xed\xe4\x71\x28\x92\xe4\x5f\xdd\x5d\xe2\x6b\x70\x73\x4c\x73\x0b\x37\x5b\xba\x37\x39\x62\x57\x72\xe3\xc1\x68\xb3\x95\x9c\x6d\xf2\xf1\x13\x2d\x72\xdb\xea\xaf\x11\x1b\x5a\xb4\xed\x78\x6a\xa8\x55\xb9\xdd\x1f\x20\x8f\x27\xcc\x72\xce\x88\xc2\xdb\x8e\x76\x8e\xf3\x99\x02\x1a\xfa\x88\x72\x92\x09\xb4\x3d\x1f\x97\xc6\x35\x2f\x84\xfb\x21\x7e\xd5\x85\x89\x61\xac\x2a\x49\xbd\x3d\x93\xc6\xab\xeb\x4b\xc9\x16\x7b\xe3\xf1\x8a\x12\x21\x92\xe1\x24\x35\x0e\x3b\xa8\x90\xa6\xe0\xf4\x4d\xd9\xae\x52\x7e\x4c\x5a\xa4\x36\x3c\x26\x6c\xe0\x30\x34\xda\x0f\xc3\xb7\xc3\x64\x5a\x50\xbe\x6b\xa9\xc8\x8e\xe1\x42\x2f\xb7\xa5\xb2\x3a\x74\xad\x26\x76\x8d\x5e\x34\x66\xe7\xac\x77\xc3\xfb\x8c\x7a\x29\xa5\xd0\xf5\x4e\x11\x2d\xa8\xcf\x24\x32\x36\xca\x53\x4c\x79\x6c\x7a\xa8\x91\x42\xfc\x90\xcc\x12\xb1\x84\xd4\xfd\xba\x23\x87\xbd\xbf\x6a\xb3\x9d\xe0\x95\x19\xd2\x72\xd1\xac\x28\xb8\x00\xa5\x52\x02\x1e\x63\xa7\xc1\x6f\x24\xa3\xe4\x64\x4f\xf3\x04\x93\x95\x76\xc7\x35\xcb\x88\x9f\x4d\x5b\x9c\x7b\xa5\xd0\x26\xc1\xc8\xc0\xce\x72\x7e\x56\x1c\x9a\x46\xab\x04\x96\xe7\xf6\x4d\xed\xd1\x3c\x14\x88\x84\x37\x33\xf5\xfa\x8e\xa4\x3a\x56\xcb\x4b\x34\x7e\xd0\xce\xd0\x8e\xee\xdc\xc4\x94\x7e\x5e\xbb\x69\xbc\x07\x94\x6f\x54\xf9\x4e\x38\x54\x4f\x7a\x9a\xf0\x51\xe2\x3e\x5e\xb0\xbb\x6d\x17\x65\x3c\xb3\xff\x8d\xc6\x68\x40\xc7\x5c\x8e\xba\x72\x92\x9c\xb6\x94\x6a\x36\xec\x7a\x03\x95\xea\x49\xa4\xce\x6c\x1d\x90\xe1\x85\x96\xf9\xd2\xb2\x8c\xe1\x14\x32\xb2\x0a\xe2\x39\x7d\x73\xf1\x68\xe0\xa0\xc9\x7e\x39\xe5\x5d\x27\xf3\x22\x1e\x29\xf4\x23\xf2\x09\xde\xae\x45\x67\x62\x7e\x27\x8e\xdb\x96\x9f\xd7\x4b\x93\xd4\x01\x2b\xc8\x72\x46\x3e\x6d\xa5\x62\xd2\xf2\x87\xf5\x16\xe5\x1a\x42\x59\x8d\xa6\xd9\x54\x4d\xfe\x53\xc2\x1a\x28\x1b\x9f\x7d\xcd\xb2\xa7\x08\x56\x66\x59\x93\xa0\xfb\xe8\x93\xde\x5f\xc2\x37\x5c\x46\x50\x4f\xa7\x23\xf2\x7f\xd6\xc5\xdc\x43\x2f\x3f\x08\x18\xc1\x5d\x7c\x03\x93\xc0\xf0\x05\x9b\x27\xc1\x83\x80\x94\xf8\xa4\x1b\x7f\xef\x6d\xbd\x7f\xdc\x18\x37\x41\xee\x66\xdb\x56\x45\x67\x66\xb5\x5a\xb2\xac\xde\x09\x66\xf2\x42\xeb\xf2\x00\xe8\x57\xa4\x00\xf4\xe3\x47\x26\xd8\x9c\xda\xe8\x64\x75\x9f\xd0\xa0\x9f\xd7\xc4\x50\x51\xa9\x1c\xc4\x50\xf7\x66\x4c\xe1\xec\xe4\xa1\xe5\x02\x7d\x80\xd4\xdd\x38\x05\xbe\xb2\xca\x24\x8c\xc1\x3a\xfb\xf9\x1a\x51\x17\x2e\x99\x84\xa4\xea\xc2\xfe\x8a\x14\x19\x62\xc3\x94\xfc\xd1\xf8\x25\x2f\xc9\x36\x07\x37\xc1\xfe\xd9\x48\xf0\xe2\xb7\xbc\xbc\x40\x68\x1a\x3b\xf6\x82\xfc\xd1"
+// rtp header (fec) : [ C] ssrc=0x00000d51 pt=117 tstamp=129206385 seq=12565 size=1096(1084,1080)
+// fec header : [EL ] pt=33 tstamp=0 seq=12512 recovery_len=16346
+// fec level header : protection_len=1060 mask=0xffffffffffff
+// fec level header ex : [ E] fec_count=5 fec_index=3
+#define SAMPLE_AVMCU2_FEC4 "\x81\x75\x31\x15\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\xc0\x21\x00\x35\x00\x00\x00\x00\x3f\xda\x04\x24\xff\xff\xff\xff\xff\xff\x0d\x53\x6a\x6b\x46\xfb\xbe\xc2\x64\x04\x51\x18\x00\x95\x1d\x40\x8e\x9e\x66\x49\xf7\x21\xe6\x9b\x8c\x9c\xfc\x25\x28\xc0\xf4\x66\xf1\x31\xdf\x4a\x97\xff\xcb\x14\x00\x13\xe0\x5f\xfe\xf8\xca\x4b\x0f\xc1\x45\x93\xd5\x4c\x6a\xc1\x5d\x86\x46\xcc\xc2\xce\xb4\xbf\x83\x45\xab\x79\xd6\xea\x87\x8d\x9d\xa6\x58\x2c\x94\x7a\x4b\x74\x5a\x78\x3a\x07\xd6\xc8\xe9\x03\x44\xbe\x1a\x80\x22\xa8\xe7\x7b\x1f\x17\x81\xb3\x35\x23\x1e\xf0\xce\xd5\x0c\xfe\x37\xfd\xd0\x4a\xad\x2a\x96\xe3\x00\x79\x47\x96\x3c\x27\x0a\x4b\x7e\x88\xa5\x04\xe0\x6f\x09\xd8\x49\xf8\x9b\xfb\x18\x6a\xfe\xf8\x5a\x27\xff\x3f\xf7\x45\xad\xa4\xf8\x23\x14\x02\x47\x6a\x2c\xf9\x65\x08\x00\xfb\x4d\xc9\x9c\x26\xa6\x70\x96\xa8\x12\xd1\x0b\xae\x07\x57\xaa\x01\x77\xe7\x37\x3d\x7a\x02\x73\x75\x1e\xd5\x66\xaa\x3f\x01\x18\x3e\x3e\xfb\x5d\xf5\x4b\xa0\xd3\x73\x4b\xd4\x72\xb5\xba\x9c\x93\xa7\xfe\x06\x80\x8c\x73\xd5\x85\xaf\x70\xeb\xe7\x8c\x8b\xcb\xab\x3f\x8f\x21\x43\xbb\x88\xb2\x85\xdc\x9f\x5b\x7f\xa6\x26\x74\x06\x26\xef\xca\x27\x45\x19\x6d\x6d\x9f\xfb\xb1\x28\xf8\x30\x0d\x2e\x68\x2c\xef\x15\xb6\xe1\x70\xf4\xf0\x55\xba\x89\x1c\x0d\xa6\x4c\xc6\x14\x6d\xcf\x1a\x4c\xe9\x8a\x53\xa8\x22\x39\x37\xff\x10\x5e\x01\x11\xcd\x16\x27\xb8\x24\x69\xa2\x25\x4d\x13\x00\x5e\x5f\x78\xbb\x63\x42\xf7\xcb\xa3\x4d\x21\xdf\x78\x03\x7c\x0f\x05\x3e\xf0\x72\x56\xb6\xbb\xdf\x54\x50\x0e\x6d\x72\xc6\xca\xb6\xfa\x49\xce\x85\x4f\x3d\x6c\x64\x1a\x0a\x86\x9d\xc3\xe7\xae\xfb\x27\x7b\x57\x1b\x9f\x5e\x03\x43\x2f\xd4\xdf\x88\x01\xe6\xa4\xda\x4c\xe6\xd4\xf2\xea\x4a\x70\x85\x0f\x7b\x56\xcf\xf7\x51\xc9\x61\x1c\xc7\xdd\xe4\xc9\x33\x64\x2a\xcb\xa9\x91\x9b\x35\xa1\x07\x95\x02\x0b\x55\xbc\xea\xe5\x1d\x27\x50\xd0\xd3\x0f\x25\xf7\x07\x82\xb6\xe2\xc1\x5a\x87\x6c\x57\x6e\x7c\x17\x47\x0b\x20\x5f\x3b\x9e\xd3\x68\xb0\x44\xb0\x60\x15\xd0\x69\xbc\x37\x1d\x79\x13\xf2\x33\x24\x2e\x8a\x52\x49\x96\xb7\xcb\xc7\x39\x7b\x50\x5e\x9c\x74\xb8\x46\xc1\x55\x85\x29\x0d\x80\xa6\xfc\xc1\xb9\x0e\x67\x5e\x81\x85\x91\x26\x6c\xbe\xe6\x58\x75\x01\x24\xbc\xb8\xe4\xbb\x5d\x34\x05\x38\x71\xca\xa4\xce\xfd\xb3\x84\x11\x49\x93\x8e\x52\x49\x0e\x1b\xbc\x3d\xdd\x55\x23\x1a\x5a\x86\x5e\xdc\xf6\x26\x26\x4c\x68\xe7\x81\xa8\xa3\xac\xbc\xbb\x31\x58\xe5\x61\x7d\x2d\xdd\x55\xc8\x4e\x6a\x63\x52\xf0\x9a\x0c\x62\xde\x45\x78\x65\x22\x08\x5e\xc1\x61\xb8\x61\xc3\x0b\x63\xe6\x3d\xa2\x4e\xd2\xe5\x47\xd1\xcd\xf3\x15\xcc\x53\x3a\x00\xce\x21\x58\x6d\x8c\x92\x8e\x36\xc5\x52\x80\x77\x93\x52\x2c\x99\x57\x6d\x29\x8d\xb3\xba\x9e\x6f\xae\x39\xc3\x01\xc4\xed\xc2\x26\x57\xde\x76\x0f\x41\xe9\x9a\x59\x83\xbb\xaa\x0e\x01\xd8\xfc\x25\x75\x68\x9a\xe6\x9b\xb2\x97\xfe\xd9\x50\xe8\xfd\x43\x38\xf5\xcb\x71\x12\x14\xd2\xf0\x73\x43\x95\x50\x85\x6f\x0a\x28\xed\x84\xf7\x5c\x35\xb6\x21\xf1\x1d\x9f\xd2\x8c\xc5\x77\x0c\x2a\x83\x45\x6b\xb1\x0a\x77\x83\xde\xe1\xca\x48\xb8\x02\xb9\x30\x1a\x45\x29\x85\x2b\xdc\xa6\x80\xfa\x40\xd8\x22\xdb\x86\x31\x87\xdd\xd8\xd9\x08\xbf\xf3\x7a\x06\x5f\x6b\x17\x9b\x7c\x71\x2d\x7f\xac\x84\xf2\xdd\x72\x6c\x83\x6a\x2e\xc5\x46\xdf\x36\xfb\xb9\x7e\xd0\x1b\x0c\x43\x07\xb3\x52\x9c\x27\x0e\x2e\x0e\xd4\xd8\x83\x2f\x55\x18\x33\x43\xe8\x78\x9e\x35\x21\x98\x79\x69\x70\x2d\x86\x4f\x04\x3f\x83\xa1\xe5\x42\xb1\x47\x10\xa9\x62\xff\x0e\xf9\xf0\xa0\xd4\x62\x44\x0f\x79\xd6\xcb\xe2\x3c\xe3\x67\xe3\x3d\x84\x65\x1c\xf4\x14\x4f\xfe\x9f\x3b\xb5\x10\x4e\xed\x88\x62\x72\xd0\xfd\x74\x25\x81\xd0\x5b\xa4\xc4\x71\x2d\x35\x32\x25\xb7\x49\xef\x12\xd7\xfe\x0e\x96\x42\x5c\x5f\x59\xe6\xf9\xdf\x69\x92\x41\xde\x05\xd1\xbc\xeb\x15\x47\x8a\x9e\x48\xf7\x28\xbd\xe0\x6e\xb0\xed\x8d\xcb\xff\xe1\x83\x72\xf6\xd9\xda\x87\xc5\xde\xcc\x2f\x9a\x2c\x48\x6e\x6b\x22\xa9\x6c\xc6\x97\x32\x5c\x8b\xf6\xba\x4b\x0a\x2f\x7a\xb7\x3e\x85\x00\x11\xd3\x19\xf1\xbd\x5e\xce\x6a\x42\x67\x5d\xed\x15\x08\x36\xc1\xac\x5d\xc7\xa0\xde\x2b\xb9\x96\x9f\x38\xea\x8d\x5c\x1d\xfc\x00\x50\xb9\x15\x1c\xf5\x65\xc7\x9d\x0e\xc1\xcf\xcd\x81\x14\xc0\xe8\x3e\xd3\x53\x92\x37\x50\xed\x9b\xd4\x5e\x44\x0a\x22\x33\x37\xa4\xf8\x7d\x95\xd5\x0f\xa8\x5a\xce\x8d\x9e\x10\xed\x63\x05\xec\x68\x25\x28\x24\xf3\x5a\xd1\x3d\x9e\x4e\xe7\x2c\xaa\xf7\x27\x54\x92\xb1\x18\x37\xbc\x61\x6a\x9c\xf0\xcb\x76\x58\x1f\x9d\xd2\x49\xb3\x87\x93\x94\xb4\x56\x91\x49\x5a\x66\x55\xf5\x82\x7f\xbb\xd2\x7c\x7a\xb2\xcd\xe3\x08\x39\xd9\x52\x48\x20\xc2\x25\x07\x6b\x32\xf4\x19\x21\x2a\xc6\xcb\xb8\xf2\x06\x46\x6d\x28\x9d\x8d\x0d\xf3\x8d\x77\xce\x08\x3b\xc9\x25\x94"
+// rtp header (fec) : [ C] ssrc=0x00000d51 pt=117 tstamp=129206385 seq=12566 size=1096(1084,1080)
+// fec header : [EL ] pt=37 tstamp=0 seq=12512 recovery_len=24477
+// fec level header : protection_len=1060 mask=0xffffffffffff
+// fec level header ex : [ E] fec_count=5 fec_index=4
+#define SAMPLE_AVMCU2_FEC5 "\x81\x75\x31\x16\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\xc0\x25\x00\x36\x00\x00\x00\x00\x5f\x9d\x04\x24\xff\xff\xff\xff\xff\xff\x0c\x54\x19\xe9\x5b\xb4\x44\xce\x4b\x10\x92\xc6\x87\x4d\x85\x73\xd0\x11\x5d\xa0\x3e\x30\x9a\x5a\xde\xae\xc2\x9a\xd6\x09\xca\x73\x44\xd6\xb0\x94\xa4\xc7\xab\xeb\x40\x16\x0f\xd5\x5f\x34\x0f\x6e\x74\x5f\x36\xd0\xc2\x81\x75\x1e\x3a\xca\x4d\xa5\x5a\x25\x23\xad\xff\xe6\x09\x41\x05\x1f\x45\x43\x34\xe8\x9e\x4e\xf6\xf4\x3a\x45\x92\xe8\xe7\x4b\x80\x51\xfc\xec\x66\xd1\x31\x48\x68\x90\x52\xf5\xa5\x44\xe5\x4d\xfe\x04\x0f\xaa\x71\x22\x4a\xbd\x0c\x54\x45\x29\xad\x7e\xa6\x45\x5e\xf7\xd9\xa8\x7e\x77\xf6\x9a\x6d\xcd\xac\x2a\x8c\x0b\x32\x22\x35\x7d\x48\x17\xac\xc5\x59\x23\xc5\x68\x69\xbd\x39\x38\x02\x97\x7d\x42\xf7\x51\xd3\x79\x8a\x3a\x3e\x95\xc6\xee\x35\xe0\xf0\x05\x7b\x5d\x49\x5d\xe0\x7a\x39\x92\xc6\x15\x77\xeb\x7f\x06\x44\xd5\xab\x95\x6c\x57\xa9\x22\xb9\x72\xec\x1f\xd8\xdf\xfb\xe9\x71\x0f\xda\x46\xd4\xe1\xcc\x80\xcc\x03\xbe\xc2\xc9\x19\x80\x5a\x25\x56\xe0\xd0\xdc\xb6\xcd\x09\x32\x8f\x91\x87\xf9\xd6\x8c\x97\x81\x7f\xba\x44\x1c\xa5\xad\xee\xfb\x5f\x68\xfe\x56\x91\x68\xca\x10\xea\x1b\x9b\xf5\x7d\xbb\x6e\xd2\x07\x7a\xc6\xa0\x13\x84\x6a\x6c\xc0\x84\x95\x50\x96\xf4\x73\xe6\x0f\x55\xd1\x9f\x44\x1b\x91\x68\x3b\x0b\x68\x7e\x5d\x2c\xb8\x13\xa0\x83\xbf\x34\xa3\x4a\x21\xd5\xa7\xd5\xfe\x46\x1e\x94\xf6\xdf\xd1\x41\x3f\xf0\x68\xcf\xfa\xc4\xf9\x46\x0d\xb8\x57\x2f\xed\x48\x04\x7d\x86\x30\x49\x42\x87\x7f\x7b\x35\x2b\x54\x08\x51\x72\xc9\x3d\x20\xec\x05\x1a\x05\x4c\x91\xfa\x8e\x0c\x73\x1f\x8a\x75\x18\x26\xc9\x32\x8f\xe5\x87\x8d\xe2\xef\xd6\xe6\x70\xa4\x7b\x53\xb8\x99\x40\x24\x8e\xee\x38\x96\xa5\x49\xf2\x9c\x48\xd6\x9d\x62\xec\x86\x4d\xb7\x3b\xd1\xf2\x77\xdf\x67\x83\x0b\x3c\x2c\xf6\x45\xc6\x1f\x32\x07\xe1\x24\x49\x24\x60\x63\xbb\x7d\x59\x52\xea\xa3\x0c\x72\x4b\x00\xdc\x4b\xd6\x48\x7a\x02\x27\x83\x2a\xbb\xe0\xec\x43\x85\x12\x3a\x91\xa7\x7c\x92\xbe\x43\x9b\xb0\xf2\x6c\xa3\x15\x0e\x2f\x8e\x49\x9c\xe7\xb5\x86\x49\x14\xe3\x4b\x2c\x32\x96\xc0\xf1\x0c\x7a\x28\x31\x04\x3f\xef\x67\x84\x65\x97\xab\xfa\xe0\x26\xd5\x9a\xd3\xe0\x88\x4e\xc1\xf8\xa9\xbd\xb1\x65\xad\x84\x7d\x42\x14\x2a\x45\x93\x0f\xcf\x19\xd5\x4c\x51\x5b\x9b\xd7\xc5\x70\x54\xf6\xc9\xd0\xba\xe1\x5c\x2c\x62\xf2\x0c\xf4\x58\x9d\x57\xb4\xfd\x02\xe4\xc8\x16\x03\x05\xa6\x09\x5a\x4e\xa6\xcf\xf9\x85\x4c\x64\xed\xfe\x47\x75\xd1\xba\x16\x8c\xe7\x91\x3b\xd7\xd3\x08\x03\xbd\x20\xb4\x0d\xee\xb8\xcb\x78\x31\xc4\x68\xa2\xf4\xbf\x92\x1f\x6e\x86\xda\x93\x3a\x47\x76\x62\x29\x90\x6d\x1d\x68\xf9\xca\x72\xc2\x81\x2d\x78\xfb\x86\x76\xb0\x66\x06\x33\xde\x07\x79\x2c\x37\x6f\x76\x1e\xe3\xb3\x68\x78\xdf\x62\xca\x92\x41\x8c\x5b\xec\x20\x32\x55\x6e\x8e\x18\xe1\x33\x1c\x4b\x63\xa3\x31\x0f\xdc\x70\x63\x5c\xcf\xbf\xbb\x83\xa2\x17\x1d\x1b\x9c\x9b\xac\x71\xd9\xd4\xdf\x31\x49\xe9\xc6\xae\xb5\xb6\x33\xc9\x27\x07\x24\xc3\xf1\x9c\xa5\x2f\x1b\x09\x8d\xb9\xa0\xa5\xe7\xec\x0c\x9c\xc6\x4d\xdb\xf0\xcc\x15\x39\x15\xbf\xa8\x93\xdb\x9b\x20\xf2\x6e\x5f\xa7\xe9\x46\xe7\x90\x5a\x33\xfb\xab\x5f\x61\xf6\x6b\x02\x57\x7b\xa3\x46\x47\xcc\xd4\x50\x80\xc0\xe5\xa0\xdc\x40\xb6\xb3\x64\xd6\x7e\x83\x20\x55\xe3\xae\x7a\xdf\x24\xb5\x1c\x17\x51\xc8\x43\x83\x36\xf0\x50\xa7\x0f\x54\x80\xf6\x08\x9b\xed\xcb\x15\x37\x59\xda\x92\x49\xe6\xd1\xaf\x28\x0a\x6f\xbf\x45\x9e\x48\x48\xcb\x59\xa0\x28\xd7\xe4\xd3\xfa\x45\x69\xee\x59\xe0\x7e\x8d\x4d\x88\xb3\x4b\xd3\x59\xc5\xd7\xa1\x8d\x07\x09\x31\x7c\xb0\x5f\xa4\x37\x29\x8c\x9e\x2a\x41\x85\x16\x75\xff\x35\x7a\x9d\xb9\x84\xc7\x75\xa9\xc7\xdb\x20\x85\xd8\xdb\x66\xb1\x04\x12\x83\x17\x98\xd5\xad\x93\x7d\xe8\x5a\x39\x08\xb9\x11\x84\xa8\x8f\xd3\x41\xda\x7a\xbd\xb1\x0c\x0a\xa4\x49\xce\x50\x89\xa9\x1e\x0b\x80\xbe\x7e\xf5\xe2\x68\x36\x95\x13\x92\x4e\x2a\x46\x63\xa1\x5a\x4c\xc9\x12\x02\xbf\x5c\xac\x9d\x70\x0a\x17\xc7\x8c\x85\x83\x0f\x08\x51\xec\xf9\xf0\xaa\x30\xc6\x45\xe2\x41\x2a\x11\x3a\x57\xbf\xfa\x44\x6c\x83\x07\x2c\xf7\x00\xce\xf4\x6a\x76\x6e\xf6\xdf\xae\x38\x0e\x89\xa7\x64\xa3\xc4\x91\xb4\xd8\xc2\x78\x88\x18\x8b\xad\x0b\xf3\x4c\x54\xcb\x80\x10\xc1\xad\xdd\xa7\x7b\x36\x40\xbf\x49\x04\xc0\x2e\x8f\x33\x74\xaa\x4f\x7e\x6e\x01\xa3\x7f\x84\xb3\xc3\x02\xf7\x58\x06\xb1\xcc\xef\x50\x20\x6e\x1d\x52\x2a\x93\xda\xc3\xc6\x91\x58\x59\x27\x9b\xc3\xdf\x6e\x9c\x8d\x44\xa7\xd8\x76\xc7\xab\x28\xbc\x79\x32\x0a\x13\x7e\x3d\x09\x7c\xf0\xda\x53\xa9\xf0\x8c\xcd\x11\xff\xbe\x28\xcb\xb5\xe8\x09\x58\x00\xf0\x10\x8a\x06\x8a\x75\x31\xcf\xca\x7b\xac\x76\xfd\xb6\xc5\xfd\x81\x2d\xe7\x01\xda\x53\x09\x16\x31\x72\x8f\x4f"
+// rtp header (fec) : [M C] ssrc=0x00000d51 pt=117 tstamp=129206385 seq=12567 size=1080(1068,1064)
+// fec header : [E ] pt=122 tstamp=0 seq=12560 recovery_len=1048
+// fec level header : protection_len=1048 mask=0x800000000000
+// fec level header ex : [ ] fec_count=1 fec_index=0
+#define SAMPLE_AVMCU2_FEC6 "\x81\xf5\x31\x17\x07\xb3\x88\x71\x00\x00\x0d\x51\x00\x00\x00\x17\x80\x7a\x00\x07\x00\x00\x00\x00\x04\x18\x04\x18\x80\x00\x00\x10\x5c\x41\xcc\x65\x1c\x97\x15\x1d\x77\x17\xfc\x1d\x66\x06\x52\xc9\xa4\xc1\x07\x79\xc3\x98\x99\xcb\x63\x9c\xd2\x23\xe6\x43\x83\xb4\x3a\xdc\xf7\xbb\xca\xa1\xef\x05\xe7\xd8\x2d\xca\x93\x8c\x95\xdd\xf1\xd8\x04\x59\xd7\x2e\xb0\x7f\xa5\x0e\x6c\xa7\xa6\x48\x49\x62\xc5\xca\x02\x3f\xc6\x85\x45\xf6\x71\x11\x5e\xa4\x69\xab\xd8\xe7\xbb\x03\x0a\x7e\x00\x4b\x90\x42\x63\x65\x2c\x75\x6b\x5d\x4c\xc1\x4b\xde\x35\xc5\x99\x6a\x1b\x2e\x87\xea\x51\xf3\xf6\x03\x0d\x0c\x68\x62\x86\x55\xa5\xc3\xb2\x29\xde\x2e\x77\xa8\x82\x3b\x16\x44\x28\x7b\x1c\x5b\x39\xdc\x6c\xd2\x1b\x72\x96\xff\xbf\x50\xcf\xe9\x3a\xfe\x57\x3e\xd2\xe9\x04\x80\x0e\x5d\xa0\x5f\xe8\x36\x39\xc5\x03\x48\x16\x8a\xda\xb3\xec\xec\x88\x05\xb7\xf5\x7d\x9d\x61\x12\x5c\xa5\xc0\xe2\x99\x72\xf3\x72\x1a\xbc\x9e\x72\x64\x1c\x1a\xbf\x7d\x17\x69\x6f\xfc\x35\x19\xf8\xa0\xc4\x46\xf4\xe3\xf0\x16\xf5\x3a\x6d\xb7\x87\x5f\x40\xe0\x44\xa6\x12\x3f\x00\x25\xa2\x4a\x6b\x23\x14\xa9\x03\xeb\xa0\x0d\xed\xca\x37\xd0\xdd\x9d\x83\xe2\xcd\x8d\x51\xf5\x2e\x13\xae\xec\x1e\xef\xdc\x0e\xa0\xf2\xa0\x3d\xf8\x88\x93\x39\xf3\x9b\x40\xaa\xfa\x2b\x0d\x66\xa9\x04\x07\xbd\x3c\x8e\xfb\x04\x08\xb7\x5c\x2c\x00\xb9\x67\x6c\x95\x71\x2f\x0b\xdd\x20\x78\x61\xab\x9d\x0b\x9b\xa8\xb6\x6b\x98\x18\x41\x8e\x51\x5d\x10\x3d\xcf\x8c\xec\xe8\x40\xa6\x23\x21\xb5\x74\x76\x40\xc2\xe3\x05\x8c\xc3\x37\x3b\x4e\x97\x20\x34\x08\x7d\xc0\x48\x88\x9c\x69\xc0\xac\x31\x83\xd6\xff\x5c\xf4\x50\x90\x90\xde\xbb\xf3\xc2\x61\x91\x77\x5f\x74\xdb\x44\xd8\xca\x6f\xfe\x4a\xed\x4e\x78\xd1\xdc\x8a\x03\x88\x58\x7b\x50\xd1\xa3\xc3\x39\x3d\xed\x65\x1e\x62\xc9\x44\x69\x6b\xa3\xb7\xa9\x4b\xc2\x35\x82\x5f\x90\xc6\x93\xa6\x91\xeb\x7f\x6e\x93\x0c\xcc\xc5\x86\x0d\x28\x56\xb2\x06\x6b\x95\x52\x08\x89\xc4\x34\x9e\x97\x3a\xb5\x49\xc8\x44\x2f\xd5\xa5\x6c\x10\x88\xee\x10\x94\x32\x1a\xce\x67\xec\xe7\xb6\x12\x36\x20\x25\x37\x73\x44\xbe\x85\xd2\x13\x04\xc4\x42\x6e\x84\x3f\xbb\xa6\x5c\xf6\x46\x18\x9e\x20\x0a\xa5\x93\xd6\xc8\x73\x23\x9c\xa7\xcc\x44\x04\x63\x39\x83\xa8\x79\x83\xf1\xa3\x84\x9f\x58\x7f\x6f\x4a\x65\xd5\xa6\x98\x74\x46\xc7\x76\xfd\xb1\x83\x36\x5b\x14\x57\x48\x79\x0c\x6c\xac\xd5\x3c\x3b\x4f\x3a\xbc\x22\x0b\xdc\xb2\x5c\x21\x43\xb1\xec\xc7\x23\xac\xa7\xae\xb4\xc4\x04\xb0\x40\x8b\x69\xaf\x8d\x46\x3b\xa7\x15\xff\xc5\x04\x13\xa1\x14\xf3\xc4\x98\xf8\x1a\x1e\x42\xcc\xce\xc0\x21\x49\xfb\xad\x1f\xb8\x4a\x27\x0c\xcd\x76\xdd\xe8\x0c\x28\x08\x68\x5c\x74\x2b\x65\x86\x38\x60\x16\x0c\x20\x30\x99\xde\x86\x66\xe2\x70\x8d\x99\x40\x02\xf7\x99\xb8\x33\x5c\x75\x64\xef\x49\xb6\x2f\xb4\x32\x0c\x6a\xcb\x2a\x5e\x47\x0b\x47\x4b\x1c\xcb\xf1\xdb\x60\xa6\x6f\x20\x7c\xc6\x8f\xc0\xc0\x6d\x82\x47\x51\x96\x49\x66\x78\x2d\x6a\x79\x7a\xc7\x26\x69\x34\xc9\xff\x2e\x91\x7a\x4f\x07\x10\xaf\xa2\x24\xf6\xfa\xde\x35\x74\xde\x62\x7d\xb8\xe7\xe3\xa2\x48\x03\x54\xe9\xf3\x08\x6b\x94\x68\x3c\x04\xb1\xe7\xa1\xe4\xd1\x54\x65\x07\x79\xd5\x5d\x8f\x25\x22\x2e\x62\xf9\xdd\x2d\x43\xe1\xf2\x31\xb4\xfb\x21\x3b\xe7\x6c\x62\xf6\x6b\x8f\x81\x77\x7a\x8b\x84\x37\x7c\xea\x31\xfa\x37\x6e\x5c\x85\xd1\x03\x3d\x55\x74\x9a\xdb\xe6\xe8\x65\x55\xd1\x7f\xd8\x25\x94\xc5\x2b\xae\x69\xf8\xec\x40\x4f\x9c\x38\x42\xcf\x91\x7b\x0e\xe0\x56\x5c\x8f\x25\x07\x70\x70\xb5\xc5\xd7\x83\x5f\x38\xe4\x79\xd7\x7e\x06\xc8\xcf\x89\x7b\x5d\xee\xab\xc5\xb4\xd9\x88\xe6\xb2\x29\xa0\xbd\x8e\x11\x4d\x6e\xe3\x66\x6d\x72\x91\xa4\xf7\xa4\x4c\x16\xb9\xcf\xd7\xd4\xb7\x14\xa0\x5f\xad\x61\x82\x1f\x87\xc1\xa8\x76\x8f\x69\xff\x0f\xb4\xc4\xde\xea\xbe\x1e\xfb\x25\x0b\x45\x01\xc1\x94\xe4\x67\x16\x5e\xf9\x3a\x03\xbb\x85\x13\x51\xbe\x1d\xa3\xed\xd7\x17\xb0\x9c\xd9\xbc\x87\xd6\x35\x99\xd9\x64\xca\x18\x2b\x1e\xbe\x8f\x9f\x2e\xa4\xb6\xe3\x6c\x4c\xad\x1f\xdc\x71\xcb\x7a\xef\xfc\x29\x54\xbe\xa2\xb8\x4f\x10\x9c\x1c\x1c\xae\x20\x99\x32\x9a\xca\x50\x15\x83\xf0\xab\x88\xaf\x9a\xc6\xa6\x96\x27\x38\xa1\x66\x73\xeb\x85\x58\x03\xcd\xca\xda\x26\x3e\xb2\x03\xb3\xbc\x31\x9e\xa3\xe1\x8e\x43\xaa\x92\xa5\xc3\x4a\x68\x31\x48\x83\x91\x11\x8d\x8d\x5c\xec\xc1\xb7\xae\x5a\xf1\xf4\xf6\xb4\xa5\xbe\xd7\x4c\x0f\x5c\xf6\x63\x59\x5e\x1c\x0a\x85\x20\x28\x11\x19\x88\x73\x6f\x59\x16\x5a\x71\xa3\xb2\x69\x6e\x26\x71\xbb\x83\xdf\x44\xe8\x22\x23\x6f\xd6\x7c\x5d\xb6\x1e\xee\xd9\x9a\x94\x36\xa6\xba\xdb\x84\xf3\xc8\xfb\x71\x7a\xa9\xae\x86\x50\x19\x13\xed\x1c\x0f\xda\x78\x61\xde\x5f\xa0\x7e\x01\x09\x69\xec\x60\xfb\x70"
+
+
+
+#endif
diff --git a/tests/check/elements/rtpred.c b/tests/check/elements/rtpred.c
new file mode 100644
index 000000000..e824ade4c
--- /dev/null
+++ b/tests/check/elements/rtpred.c
@@ -0,0 +1,839 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include <gst/check/gstharness.h>
+#include <gst/rtp/gstrtpbuffer.h>
+#include <gst/check/gstcheck.h>
+
+#define PT_RED 100
+#define PT_MEDIA 96
+#define CLOCKRATE 8000
+#define TIMESTAMP_BASE (1000)
+#define TIMESTAMP_DIFF (40 * CLOCKRATE / 1000)
+#define TIMESTAMP_NTH(i) (TIMESTAMP_BASE + (i) * TIMESTAMP_DIFF)
+#define xstr(s) str(s)
+#define str(s) #s
+#define GST_RTP_RED_ENC_CAPS_STR "application/x-rtp, payload=" xstr(PT_MEDIA)
+
+#define _check_red_received(h, expected) \
+ G_STMT_START { \
+ guint received; \
+ g_object_get ((h)->element, "received", &received, NULL);\
+ fail_unless_equals_int (expected, received); \
+ } G_STMT_END
+
+#define _check_red_sent(h, expected) \
+ G_STMT_START { \
+ guint sent; \
+ g_object_get ((h)->element, "sent", &sent, NULL);\
+ fail_unless_equals_int (expected, sent); \
+ } G_STMT_END
+
+#define _check_caps(_h_, _nth_, _expected_payload_) \
+ G_STMT_START { \
+ GstEvent *_ev_; \
+ gint _pt_ = -1; \
+ GstCaps *_caps_ = NULL; \
+ \
+ for (gint _i_ = 0; _i_ < _nth_; ++_i_) \
+ gst_event_unref (gst_harness_pull_event (_h_)); \
+ \
+ _ev_ = gst_harness_pull_event (_h_); \
+ fail_unless (NULL != _ev_); \
+ fail_unless_equals_string ("caps", GST_EVENT_TYPE_NAME(_ev_));\
+ \
+ gst_event_parse_caps (_ev_, &_caps_); \
+ \
+ gst_structure_get_int ( \
+ gst_caps_get_structure (_caps_, 0), "payload", &_pt_); \
+ fail_unless_equals_int (_expected_payload_, _pt_); \
+ gst_event_unref (_ev_); \
+ } G_STMT_END
+
+#define _check_nocaps(_h_) \
+ G_STMT_START { \
+ GstEvent *_ev_; \
+ while (NULL != (_ev_ = gst_harness_try_pull_event (_h_))) {\
+ fail_unless (GST_EVENT_TYPE (_ev_) != GST_EVENT_CAPS, \
+ "Don't expect to receive caps event"); \
+ gst_event_unref (_ev_); \
+ } \
+ } G_STMT_END
+
+static GstBuffer *
+_new_rtp_buffer (gboolean marker, guint8 csrc_count, guint8 pt, guint16 seqnum,
+ guint32 timestamp, guint32 ssrc, guint payload_len)
+{
+ GstBuffer *buf = gst_rtp_buffer_new_allocate (payload_len, 0, csrc_count);
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+
+ fail_unless (gst_rtp_buffer_map (buf, GST_MAP_READ, &rtp));
+ gst_rtp_buffer_set_marker (&rtp, marker);
+ gst_rtp_buffer_set_payload_type (&rtp, pt);
+ gst_rtp_buffer_set_seq (&rtp, seqnum);
+ gst_rtp_buffer_set_timestamp (&rtp, timestamp);
+ gst_rtp_buffer_set_ssrc (&rtp, ssrc);
+ gst_rtp_buffer_unmap (&rtp);
+
+ return buf;
+}
+
+GST_START_TEST (rtpreddec_passthrough)
+{
+ GstBuffer *bufinp, *bufout;
+ GstHarness *h = gst_harness_new ("rtpreddec");
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ /* Passthrough when pt is not set */
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 0, TIMESTAMP_NTH (0), 0xabe2b0b, 0);
+ bufout = gst_harness_push_and_pull (h, bufinp);
+ fail_unless (bufout == bufinp);
+ fail_unless (gst_buffer_is_writable (bufout));
+ gst_buffer_unref (bufout);
+
+ /* Now pt is set */
+ g_object_set (h->element, "pt", PT_RED, NULL);
+
+ /* Passthrough when not RED. RED pt = 100, pushing pt 99 */
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_MEDIA, 1, TIMESTAMP_NTH (1), 0xabe2b0b, 0);
+ bufout = gst_harness_push_and_pull (h, bufinp);
+ fail_unless (bufout == bufinp);
+ fail_unless (gst_buffer_is_writable (bufout));
+ gst_buffer_unref (bufout);
+
+ /* Passthrough when not RTP buffer */
+ bufinp = gst_buffer_new_wrapped (g_strdup ("hello"), 5);
+ bufout = gst_harness_push_and_pull (h, bufinp);
+ fail_unless (bufout == bufinp);
+ fail_unless (gst_buffer_is_writable (bufout));
+ gst_buffer_unref (bufout);
+
+ _check_red_received (h, 0);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpreddec_main_block)
+{
+ GstHarness *h = gst_harness_new ("rtpreddec");
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ guint8 out_data[] = { 0xa, 0xa, 0xa, 0xa, 0xa };
+ guint8 red_in[] = { PT_MEDIA, 0xa, 0xa, 0xa, 0xa, 0xa };
+ guint gst_ts = 3454679;
+ guint csrc_count = 2;
+ guint seq = 549;
+ GstBuffer *bufinp, *bufout;
+ guint bufinp_flags;
+
+ g_object_set (h->element, "pt", PT_RED, NULL);
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ /* RED buffer has Marker bit set, has CSRCS and flags */
+ bufinp =
+ _new_rtp_buffer (TRUE, csrc_count, PT_RED, seq, TIMESTAMP_NTH (0),
+ 0xabe2b0b, sizeof (red_in));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &red_in, sizeof (red_in));
+ gst_rtp_buffer_set_csrc (&rtp, 0, 0x1abe2b0b);
+ gst_rtp_buffer_set_csrc (&rtp, 1, 0x2abe2b0b);
+ GST_BUFFER_TIMESTAMP (bufinp) = gst_ts;
+ GST_BUFFER_FLAG_SET (bufinp, GST_RTP_BUFFER_FLAG_RETRANSMISSION);
+ GST_BUFFER_FLAG_SET (bufinp, GST_BUFFER_FLAG_DISCONT);
+ bufinp_flags = GST_BUFFER_FLAGS (bufinp);
+ gst_rtp_buffer_unmap (&rtp);
+
+ /* Checking that pulled buffer has keeps everything from RED buffer */
+ bufout = gst_harness_push_and_pull (h, bufinp);
+ fail_unless (gst_rtp_buffer_map (bufout, GST_MAP_READ, &rtp));
+ fail_unless_equals_int (GST_BUFFER_TIMESTAMP (bufout), gst_ts);
+ fail_unless_equals_int (GST_BUFFER_FLAGS (bufout), bufinp_flags);
+ fail_unless_equals_int (gst_buffer_get_size (bufout),
+ gst_rtp_buffer_calc_packet_len (sizeof (out_data), 0, csrc_count));
+ fail_unless_equals_int (gst_rtp_buffer_get_timestamp (&rtp),
+ TIMESTAMP_NTH (0));
+ fail_unless_equals_int (gst_rtp_buffer_get_payload_type (&rtp), PT_MEDIA);
+ fail_unless_equals_int (gst_rtp_buffer_get_seq (&rtp), seq);
+ fail_unless_equals_int (gst_rtp_buffer_get_csrc_count (&rtp), csrc_count);
+ fail_unless_equals_int (gst_rtp_buffer_get_ssrc (&rtp), 0x0abe2b0b);
+ fail_unless_equals_int (gst_rtp_buffer_get_csrc (&rtp, 0), 0x1abe2b0b);
+ fail_unless_equals_int (gst_rtp_buffer_get_csrc (&rtp, 1), 0x2abe2b0b);
+ fail_unless (gst_rtp_buffer_get_marker (&rtp));
+ fail_unless (!memcmp (gst_rtp_buffer_get_payload (&rtp), out_data,
+ sizeof (out_data)));
+ gst_rtp_buffer_unmap (&rtp);
+ gst_buffer_unref (bufout);
+
+ _check_red_received (h, 1);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+static void
+_push_and_check_didnt_go_through (GstHarness * h, GstBuffer * bufinp)
+{
+ gst_harness_push (h, bufinp);
+ /* Making sure it didn't go through */
+ fail_unless_equals_int (gst_harness_buffers_received (h), 0);
+}
+
+static void
+_push_and_check_cant_pull_twice (GstHarness * h,
+ GstBuffer * bufinp, guint buffers_received)
+{
+ gst_buffer_unref (gst_harness_push_and_pull (h, bufinp));
+ /* Making sure only one buffer was pushed through */
+ fail_unless_equals_int (gst_harness_buffers_received (h), buffers_received);
+}
+
+static void
+_push_and_check_redundant_packet (GstHarness * h, GstBuffer * bufinp,
+ guint seq, guint timestamp, guint payload_len, gconstpointer payload)
+{
+ GstBuffer *bufout = gst_harness_push_and_pull (h, bufinp);
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+
+ fail_unless (gst_rtp_buffer_map (bufout, GST_MAP_READ, &rtp));
+ fail_unless (GST_BUFFER_FLAG_IS_SET (bufout, GST_RTP_BUFFER_FLAG_REDUNDANT));
+ fail_unless_equals_int (gst_buffer_get_size (bufout),
+ gst_rtp_buffer_calc_packet_len (payload_len, 0, 0));
+ fail_unless_equals_int (gst_rtp_buffer_get_timestamp (&rtp), timestamp);
+ fail_unless_equals_int (gst_rtp_buffer_get_payload_type (&rtp), PT_MEDIA);
+ fail_unless_equals_int (gst_rtp_buffer_get_seq (&rtp), seq);
+ fail_unless_equals_int (gst_rtp_buffer_get_ssrc (&rtp), 0x0abe2b0b);
+ fail_unless (!memcmp (gst_rtp_buffer_get_payload (&rtp), payload,
+ payload_len));
+ gst_rtp_buffer_unmap (&rtp);
+ gst_buffer_unref (bufout);
+ gst_buffer_unref (gst_harness_pull (h));
+}
+
+GST_START_TEST (rtpreddec_redundant_block_not_pushed)
+{
+ GstHarness *h = gst_harness_new ("rtpreddec");
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+
+ /* Redundant block has valid tsoffset but we have not seen any buffers before */
+ guint16 ts_offset = TIMESTAMP_DIFF;
+ guint8 red_in[] = {
+ 0x80 | PT_MEDIA,
+ (guint8) (ts_offset >> 6),
+ (guint8) (ts_offset & 0x3f) << 2, 1, /* Redundant block size = 1 */
+ PT_MEDIA, 0xa, 0xa /* Main block size = 1 */
+ };
+ GstBuffer *bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 2, TIMESTAMP_NTH (2), 0xabe2b0b,
+ sizeof (red_in));
+
+ g_object_set (h->element, "pt", PT_RED, NULL);
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &red_in, sizeof (red_in));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_cant_pull_twice (h, bufinp, 1);
+
+ /* Redundant block has too large tsoffset */
+ ts_offset = TIMESTAMP_DIFF * 4;
+ red_in[1] = ts_offset >> 6;
+ red_in[2] = (ts_offset & 0x3f) << 2;
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 3, TIMESTAMP_NTH (3), 0xabe2b0b,
+ sizeof (red_in));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &red_in, sizeof (red_in));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_cant_pull_twice (h, bufinp, 2);
+
+ /* TS offset is too small */
+ ts_offset = TIMESTAMP_DIFF / 2;
+ red_in[1] = ts_offset >> 6;
+ red_in[2] = (ts_offset & 0x3f) << 2;
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 4, TIMESTAMP_NTH (4), 0xabe2b0b,
+ sizeof (red_in));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &red_in, sizeof (red_in));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_cant_pull_twice (h, bufinp, 3);
+
+ /* Now we ts_offset points to the previous buffer we didnt loose */
+ ts_offset = TIMESTAMP_DIFF;
+ red_in[1] = ts_offset >> 6;
+ red_in[2] = (ts_offset & 0x3f) << 2;
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 5, TIMESTAMP_NTH (5), 0xabe2b0b,
+ sizeof (red_in));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &red_in, sizeof (red_in));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_cant_pull_twice (h, bufinp, 4);
+
+ _check_red_received (h, 4);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpreddec_redundant_block_pushed)
+{
+ GstHarness *h = gst_harness_new ("rtpreddec");
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ guint16 ts_offset = TIMESTAMP_DIFF;
+ guint8 red_in[] = {
+ 0x80 | PT_MEDIA,
+ (guint8) (ts_offset >> 6),
+ (guint8) (ts_offset & 0x3f) << 2, 5, /* Redundant block size = 5 */
+ PT_MEDIA, 0x01, 0x02, 0x03, 0x4, 0x5, 0xa /* Main block size = 1 */
+ };
+ GstBuffer *bufinp;
+
+ g_object_set (h->element, "pt", PT_RED, NULL);
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ /* Pushing seq=0 */
+ gst_buffer_unref (gst_harness_push_and_pull (h, _new_rtp_buffer (FALSE, 0,
+ PT_MEDIA, 0, TIMESTAMP_NTH (0), 0xabe2b0b, 0)));
+
+ /* Pushing seq=2, recovering seq=1 (fec distance 1) */
+
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 2, TIMESTAMP_NTH (2), 0xabe2b0b,
+ sizeof (red_in));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &red_in, sizeof (red_in));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_redundant_packet (h, bufinp, 1, TIMESTAMP_NTH (1), 5,
+ red_in + 5);
+
+ /* Pushing seq=5, recovering seq=3 (fec distance 2) */
+ ts_offset = TIMESTAMP_DIFF * 2;
+ red_in[1] = ts_offset >> 6;
+ red_in[2] = (ts_offset & 0x3f) << 2;
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 5, TIMESTAMP_NTH (5), 0xabe2b0b,
+ sizeof (red_in));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &red_in, sizeof (red_in));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_redundant_packet (h, bufinp, 3, TIMESTAMP_NTH (3), 5,
+ red_in + 5);
+
+ /* Pushing seq=9, recovering seq=6 (fec distance 3) */
+ ts_offset = TIMESTAMP_DIFF * 3;
+ red_in[1] = ts_offset >> 6;
+ red_in[2] = (ts_offset & 0x3f) << 2;
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 9, TIMESTAMP_NTH (9), 0xabe2b0b,
+ sizeof (red_in));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &red_in, sizeof (red_in));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_redundant_packet (h, bufinp, 6, TIMESTAMP_NTH (6), 5,
+ red_in + 5);
+
+ /* Pushing seq=14, recovering seq=10 (fec distance 4) */
+ ts_offset = TIMESTAMP_DIFF * 4;
+ red_in[1] = ts_offset >> 6;
+ red_in[2] = (ts_offset & 0x3f) << 2;
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 14, TIMESTAMP_NTH (14), 0xabe2b0b,
+ sizeof (red_in));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &red_in, sizeof (red_in));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_redundant_packet (h, bufinp, 10, TIMESTAMP_NTH (10), 5,
+ red_in + 5);
+
+ _check_red_received (h, 4);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpreddec_invalid)
+{
+ GstBuffer *bufinp;
+ GstHarness *h = gst_harness_new ("rtpreddec");
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ /* 2 block RED packets should have at least 4 bytes for redundant block
+ * header and 1 byte for the main block header. */
+ guint8 data[] = {
+ 0x80 | PT_MEDIA, 0, 0, 1, /* 1st block header (redundant block) size=1, timestmapoffset=0 */
+ PT_MEDIA, /* 2nd block header (main block) size=0 */
+ };
+
+ g_object_set (h->element, "pt", PT_RED, NULL);
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ /* Single block RED packets should have at least 1 byte of payload to be
+ * considered valid. This buffer does not have any payload */
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 0, TIMESTAMP_NTH (0), 0xabe2b0b, 0);
+ _push_and_check_didnt_go_through (h, bufinp);
+
+ /* Only the first byte with F bit set (indication of redundant block) */
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 1, TIMESTAMP_NTH (1), 0xabe2b0b, 1);
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &data, sizeof (data));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_didnt_go_through (h, bufinp);
+
+ /* Full 1st block header only */
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 2, TIMESTAMP_NTH (2), 0xabe2b0b, 4);
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &data, sizeof (data));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_didnt_go_through (h, bufinp);
+
+ /* Both blocks, missing 1 byte of payload for redundant block */
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_RED, 3, TIMESTAMP_NTH (3), 0xabe2b0b, 5);
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &data, sizeof (data));
+ gst_rtp_buffer_unmap (&rtp);
+ _push_and_check_didnt_go_through (h, bufinp);
+
+ _check_red_received (h, 4);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpredenc_passthrough)
+{
+ GstBuffer *bufinp, *bufout;
+ GstHarness *h = gst_harness_new ("rtpredenc");
+ gst_harness_set_src_caps_str (h, GST_RTP_RED_ENC_CAPS_STR);
+
+ /* Passthrough by default */
+ bufinp =
+ _new_rtp_buffer (FALSE, 0, PT_MEDIA, 0, TIMESTAMP_NTH (0), 0xabe2b0b, 0);
+ bufout = gst_harness_push_and_pull (h, bufinp);
+
+ _check_caps (h, 1, PT_MEDIA);
+ fail_unless (bufout == bufinp);
+ fail_unless (gst_buffer_is_writable (bufout));
+ gst_buffer_unref (bufout);
+
+ /* Setting pt and allowing RED packets without redundant blocks */
+ g_object_set (h->element, "pt", PT_RED, "allow-no-red-blocks", TRUE, NULL);
+
+ /* Passthrough when not RTP buffer */
+ bufinp = gst_buffer_new_wrapped (g_strdup ("hello"), 5);
+ bufout = gst_harness_push_and_pull (h, bufinp);
+
+ _check_nocaps (h);
+ fail_unless (bufout == bufinp);
+ fail_unless (gst_buffer_is_writable (bufout));
+ gst_buffer_unref (bufout);
+
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpredenc_payloadless_rtp)
+{
+ GstHarness *h = gst_harness_new ("rtpredenc");
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ guint8 out_data[] = { PT_MEDIA };
+ GstBuffer *bufout;
+
+ g_object_set (h->element, "pt", PT_RED, "allow-no-red-blocks", TRUE, NULL);
+ gst_harness_set_src_caps_str (h, GST_RTP_RED_ENC_CAPS_STR);
+
+ bufout =
+ gst_harness_push_and_pull (h, _new_rtp_buffer (TRUE, 0, PT_MEDIA, 0,
+ TIMESTAMP_NTH (0), 0xabe2b0b, 0));
+
+ _check_caps (h, 1, PT_RED);
+ fail_unless (gst_rtp_buffer_map (bufout, GST_MAP_READ, &rtp));
+ fail_unless_equals_int (gst_buffer_get_size (bufout),
+ gst_rtp_buffer_calc_packet_len (sizeof (out_data), 0, 0));
+ fail_unless_equals_int (gst_rtp_buffer_get_timestamp (&rtp),
+ TIMESTAMP_NTH (0));
+ fail_unless_equals_int (gst_rtp_buffer_get_payload_type (&rtp), PT_RED);
+ fail_unless_equals_int (gst_rtp_buffer_get_seq (&rtp), 0);
+ fail_unless_equals_int (gst_rtp_buffer_get_csrc_count (&rtp), 0);
+ fail_unless_equals_int (gst_rtp_buffer_get_ssrc (&rtp), 0x0abe2b0b);
+ fail_unless (gst_rtp_buffer_get_marker (&rtp));
+ fail_unless (!memcmp (gst_rtp_buffer_get_payload (&rtp), out_data,
+ sizeof (out_data)));
+ gst_rtp_buffer_unmap (&rtp);
+ gst_buffer_unref (bufout);
+
+ _check_red_sent (h, 1);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpredenc_without_redundant_block)
+{
+ GstHarness *h = gst_harness_new ("rtpredenc");
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ guint8 in_data[] = { 0xa, 0xa, 0xa, 0xa, 0xa };
+ guint8 out_data[] = { PT_MEDIA, 0xa, 0xa, 0xa, 0xa, 0xa };
+ guint gst_ts = 3454679;
+ guint csrc_count = 2;
+ guint seq = 549;
+ guint bufinp_flags;
+ GstBuffer *bufinp, *bufout;
+
+ g_object_set (h->element, "pt", PT_RED, "allow-no-red-blocks", TRUE, NULL);
+ gst_harness_set_src_caps_str (h, GST_RTP_RED_ENC_CAPS_STR);
+
+ /* Media buffer has Marker bit set, has CSRCS and flags */
+ bufinp =
+ _new_rtp_buffer (TRUE, csrc_count, PT_MEDIA, seq, TIMESTAMP_NTH (0),
+ 0xabe2b0b, sizeof (in_data));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &in_data, sizeof (in_data));
+ gst_rtp_buffer_set_csrc (&rtp, 0, 0x1abe2b0b);
+ gst_rtp_buffer_set_csrc (&rtp, 1, 0x2abe2b0b);
+ gst_rtp_buffer_unmap (&rtp);
+ GST_BUFFER_TIMESTAMP (bufinp) = gst_ts;
+ GST_BUFFER_FLAG_SET (bufinp, GST_RTP_BUFFER_FLAG_RETRANSMISSION);
+ GST_BUFFER_FLAG_SET (bufinp, GST_BUFFER_FLAG_DISCONT);
+ bufinp_flags = GST_BUFFER_FLAGS (bufinp);
+ bufout = gst_harness_push_and_pull (h, bufinp);
+
+ /* Checking that pulled buffer has keeps everything from Media buffer */
+ _check_caps (h, 1, PT_RED);
+ fail_unless (gst_rtp_buffer_map (bufout, GST_MAP_READ, &rtp));
+ fail_unless_equals_int (GST_BUFFER_TIMESTAMP (bufout), gst_ts);
+ fail_unless_equals_int (GST_BUFFER_FLAGS (bufout), bufinp_flags);
+ fail_unless_equals_int (gst_buffer_get_size (bufout),
+ gst_rtp_buffer_calc_packet_len (sizeof (out_data), 0, csrc_count));
+ fail_unless_equals_int (gst_rtp_buffer_get_timestamp (&rtp),
+ TIMESTAMP_NTH (0));
+ fail_unless_equals_int (gst_rtp_buffer_get_payload_type (&rtp), PT_RED);
+ fail_unless_equals_int (gst_rtp_buffer_get_seq (&rtp), seq);
+ fail_unless_equals_int (gst_rtp_buffer_get_csrc_count (&rtp), csrc_count);
+ fail_unless_equals_int (gst_rtp_buffer_get_ssrc (&rtp), 0x0abe2b0b);
+ fail_unless_equals_int (gst_rtp_buffer_get_csrc (&rtp, 0), 0x1abe2b0b);
+ fail_unless_equals_int (gst_rtp_buffer_get_csrc (&rtp, 1), 0x2abe2b0b);
+ fail_unless (gst_rtp_buffer_get_marker (&rtp));
+ fail_unless (!memcmp (gst_rtp_buffer_get_payload (&rtp), out_data,
+ sizeof (out_data)));
+ gst_rtp_buffer_unmap (&rtp);
+ gst_buffer_unref (bufout);
+
+ _check_red_sent (h, 1);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpredenc_with_redundant_block)
+{
+ GstHarness *h = gst_harness_new ("rtpredenc");
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ guint8 in_data0[] = { 0xa, 0xa, 0xa, 0xa, 0xa };
+ guint8 in_data1[] = { 0xb, 0xb, 0xb, 0xb, 0xb };
+ guint8 in_data2[] = { 0xc, 0xc, 0xc, 0xc, 0xc };
+ guint timestmapoffset0 = TIMESTAMP_NTH (1) - TIMESTAMP_NTH (0);
+ guint timestmapoffset1 = TIMESTAMP_NTH (2) - TIMESTAMP_NTH (0);
+ guint8 out_data0[] = {
+ /* Redundant block header */
+ 0x80 | PT_MEDIA, /* F=1 | pt=PT_MEDIA */
+ timestmapoffset0 >> 6, /* timestamp hi 8 bits */
+ timestmapoffset0 & 0x3f, /* timestamp lo 6 bits | length hi = 0 */
+ sizeof (in_data0), /* length lo 8 bits */
+ /* Main block header */
+ PT_MEDIA, /* F=0 | pt=PT_MEDIA */
+ /* Redundant block data */
+ 0xa, 0xa, 0xa, 0xa, 0xa,
+ /* Main block data */
+ 0xb, 0xb, 0xb, 0xb, 0xb
+ };
+
+ guint8 out_data1[] = {
+ /* Redundant block header */
+ 0x80 | PT_MEDIA, /* F=1 | pt=PT_MEDIA */
+ timestmapoffset1 >> 6, /* timestamp hi 8 bits */
+ timestmapoffset1 & 0x3f, /* timestamp lo 6 bits | length hi = 0 */
+ sizeof (in_data0), /* length lo 8 bits */
+ /* Main block header */
+ PT_MEDIA, /* F=0 | pt=PT_MEDIA */
+ /* Redundant block data */
+ 0xa, 0xa, 0xa, 0xa, 0xa,
+ /* Main block data */
+ 0xc, 0xc, 0xc, 0xc, 0xc
+ };
+ guint seq = 549;
+ GstBuffer *bufinp, *bufout;
+
+ g_object_set (h->element,
+ "pt", PT_RED, "distance", 2, "allow-no-red-blocks", FALSE, NULL);
+ gst_harness_set_src_caps_str (h, GST_RTP_RED_ENC_CAPS_STR);
+
+ bufinp =
+ _new_rtp_buffer (TRUE, 0, PT_MEDIA, seq, TIMESTAMP_NTH (0), 0xabe2b0b,
+ sizeof (in_data0));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &in_data0, sizeof (in_data0));
+ gst_rtp_buffer_unmap (&rtp);
+ bufout = gst_harness_push_and_pull (h, bufinp);
+
+ /* The first buffer should go through,
+ * there were no redundant data to create RED packet */
+ _check_caps (h, 1, PT_MEDIA);
+ fail_unless (bufout == bufinp);
+ fail_unless (gst_buffer_is_writable (bufout));
+ fail_unless (gst_rtp_buffer_map (bufout, GST_MAP_READ, &rtp));
+ fail_unless_equals_int (gst_rtp_buffer_get_payload_type (&rtp), PT_MEDIA);
+ gst_rtp_buffer_unmap (&rtp);
+ gst_buffer_unref (bufout);
+
+ bufinp =
+ _new_rtp_buffer (TRUE, 0, PT_MEDIA, seq + 1, TIMESTAMP_NTH (1), 0xabe2b0b,
+ sizeof (in_data1));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &in_data1, sizeof (in_data1));
+ gst_rtp_buffer_unmap (&rtp);
+ bufout = gst_harness_push_and_pull (h, bufinp);
+
+ /* The next buffer is RED referencing previous packet */
+ _check_caps (h, 1, PT_RED);
+ fail_unless (gst_rtp_buffer_map (bufout, GST_MAP_READ, &rtp));
+ fail_unless_equals_int (gst_buffer_get_size (bufout),
+ gst_rtp_buffer_calc_packet_len (sizeof (out_data0), 0, 0));
+ fail_unless_equals_int (gst_rtp_buffer_get_timestamp (&rtp),
+ TIMESTAMP_NTH (1));
+ fail_unless_equals_int (gst_rtp_buffer_get_payload_type (&rtp), PT_RED);
+ fail_unless_equals_int (gst_rtp_buffer_get_seq (&rtp), seq + 1);
+ fail_unless (gst_rtp_buffer_get_marker (&rtp));
+ fail_unless (!memcmp (gst_rtp_buffer_get_payload (&rtp), out_data0,
+ sizeof (out_data0)));
+ gst_rtp_buffer_unmap (&rtp);
+ gst_buffer_unref (bufout);
+
+ bufinp =
+ _new_rtp_buffer (TRUE, 0, PT_MEDIA, seq + 2, TIMESTAMP_NTH (2), 0xabe2b0b,
+ sizeof (in_data2));
+ fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &in_data2, sizeof (in_data2));
+ gst_rtp_buffer_unmap (&rtp);
+ bufout = gst_harness_push_and_pull (h, bufinp);
+
+ /* The next buffer is RED referencing the packet before the previous */
+ _check_nocaps (h);
+ fail_unless (gst_rtp_buffer_map (bufout, GST_MAP_READ, &rtp));
+ fail_unless_equals_int (gst_buffer_get_size (bufout),
+ gst_rtp_buffer_calc_packet_len (sizeof (out_data1), 0, 0));
+ fail_unless_equals_int (gst_rtp_buffer_get_timestamp (&rtp),
+ TIMESTAMP_NTH (2));
+ fail_unless_equals_int (gst_rtp_buffer_get_payload_type (&rtp), PT_RED);
+ fail_unless_equals_int (gst_rtp_buffer_get_seq (&rtp), seq + 2);
+ fail_unless (gst_rtp_buffer_get_marker (&rtp));
+ fail_unless (!memcmp (gst_rtp_buffer_get_payload (&rtp), out_data1,
+ sizeof (out_data1)));
+ gst_rtp_buffer_unmap (&rtp);
+ gst_buffer_unref (bufout);
+
+ _check_red_sent (h, 2);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+static void
+rtpredenc_cant_create_red_packet_base_test (GstBuffer * buffer0,
+ GstBuffer * buffer1)
+{
+ /* The test configures PexRtpRedEnc to produce RED packets only with redundant
+ * blocks. The first packet we pull should not be RED just because it is the
+ * very first one. The second should not be RED because it was impossible
+ * to create a RED packet for varios reasons:
+ * - too large redundant block size
+ * - too large timestamp offset
+ * - negative timestamp offset */
+ GstBuffer *bufout;
+ GstHarness *h = gst_harness_new ("rtpredenc");
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ g_object_set (h->element,
+ "pt", PT_RED, "distance", 1, "allow-no-red-blocks", FALSE, NULL);
+ gst_harness_set_src_caps_str (h, GST_RTP_RED_ENC_CAPS_STR);
+
+ /* Checking the first pulled buffer is media packet */
+ bufout = gst_harness_push_and_pull (h, buffer0);
+ _check_caps (h, 1, PT_MEDIA);
+ fail_unless (gst_rtp_buffer_map (bufout, GST_MAP_READ, &rtp));
+ fail_unless_equals_int (gst_rtp_buffer_get_payload_type (&rtp), PT_MEDIA);
+ gst_rtp_buffer_unmap (&rtp);
+ gst_buffer_unref (bufout);
+
+ /* The next buffer should be media packet too */
+ bufout = gst_harness_push_and_pull (h, buffer1);
+ _check_nocaps (h);
+ fail_unless (gst_rtp_buffer_map (bufout, GST_MAP_READ, &rtp));
+ fail_unless_equals_int (gst_rtp_buffer_get_payload_type (&rtp), PT_MEDIA);
+ gst_rtp_buffer_unmap (&rtp);
+ gst_buffer_unref (bufout);
+
+ _check_red_sent (h, 0);
+ gst_harness_teardown (h);
+}
+
+GST_START_TEST (rtpredenc_negative_timestamp_offset)
+{
+ gboolean with_warping;
+ guint16 seq0, seq1;
+ guint32 timestamp0, timestamp1;
+ GstBuffer *buffer0, *buffer1;
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ guint8 in_data[] = { 0xa, 0xa, 0xa, 0xa, 0xa };
+
+ with_warping = __i__ != 0;
+ timestamp0 =
+ with_warping ? (0xffffffff - TIMESTAMP_DIFF / 2) : TIMESTAMP_BASE;
+ timestamp1 = timestamp0 + TIMESTAMP_DIFF;
+ seq0 = with_warping ? 0xffff : 0;
+ seq1 = seq0 + 1;
+
+ /* Two buffers have negative timestamp difference */
+ buffer0 =
+ _new_rtp_buffer (TRUE, 0, PT_MEDIA, seq0, timestamp1, 0xabe2b0b,
+ sizeof (in_data));
+ buffer1 =
+ _new_rtp_buffer (TRUE, 0, PT_MEDIA, seq1, timestamp0, 0xabe2b0b,
+ sizeof (in_data));
+
+ fail_unless (gst_rtp_buffer_map (buffer0, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &in_data, sizeof (in_data));
+ gst_rtp_buffer_unmap (&rtp);
+
+ fail_unless (gst_rtp_buffer_map (buffer1, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &in_data, sizeof (in_data));
+ gst_rtp_buffer_unmap (&rtp);
+
+ rtpredenc_cant_create_red_packet_base_test (buffer0, buffer1);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpredenc_too_large_timestamp_offset)
+{
+ gboolean with_warping;
+ guint16 seq0, seq1;
+ guint32 timestamp0, timestamp1, timestamp_diff;
+ GstBuffer *buffer0, *buffer1;
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ guint8 in_data[] = { 0xa, 0xa, 0xa, 0xa, 0xa };
+
+ with_warping = __i__ != 0;
+ timestamp_diff = 0x4000;
+ timestamp0 =
+ with_warping ? (0xffffffff - timestamp_diff / 2) : TIMESTAMP_BASE;
+ timestamp1 = timestamp0 + timestamp_diff;
+
+ seq0 = with_warping ? 0xffff : 0;
+ seq1 = seq0 + 1;
+
+ /* Two buffers have timestamp difference > 14bit long */
+ buffer0 =
+ _new_rtp_buffer (TRUE, 0, PT_MEDIA, seq0, timestamp0, 0xabe2b0b,
+ sizeof (in_data));
+ buffer1 =
+ _new_rtp_buffer (TRUE, 0, PT_MEDIA, seq1, timestamp1, 0xabe2b0b,
+ sizeof (in_data));
+ fail_unless (gst_rtp_buffer_map (buffer0, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &in_data, sizeof (in_data));
+ gst_rtp_buffer_unmap (&rtp);
+
+ fail_unless (gst_rtp_buffer_map (buffer1, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &in_data, sizeof (in_data));
+ gst_rtp_buffer_unmap (&rtp);
+
+ rtpredenc_cant_create_red_packet_base_test (buffer0, buffer1);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpredenc_too_large_length)
+{
+ gboolean with_warping;
+ guint16 seq0, seq1;
+ guint32 timestamp0, timestamp1;
+ GstBuffer *buffer0, *buffer1;
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ guint8 in_data0[1024] = { 0, };
+ guint8 in_data1[] = { 0xa, 0xa, 0xa, 0xa, 0xa };
+
+ with_warping = __i__ != 0;
+ timestamp0 =
+ with_warping ? (0xffffffff - TIMESTAMP_DIFF / 2) : TIMESTAMP_BASE;
+ timestamp1 = timestamp0 + TIMESTAMP_DIFF;
+ seq0 = with_warping ? 0xffff : 0;
+ seq1 = seq0 + 1;
+
+ /* The first buffer is too large to use as a redundant block */
+ buffer0 =
+ _new_rtp_buffer (TRUE, 0, PT_MEDIA, seq0, timestamp0, 0xabe2b0b,
+ sizeof (in_data0));
+ buffer1 =
+ _new_rtp_buffer (TRUE, 0, PT_MEDIA, seq1, timestamp1, 0xabe2b0b,
+ sizeof (in_data1));
+ fail_unless (gst_rtp_buffer_map (buffer0, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &in_data0, sizeof (in_data0));
+ gst_rtp_buffer_unmap (&rtp);
+
+ fail_unless (gst_rtp_buffer_map (buffer1, GST_MAP_WRITE, &rtp));
+ memcpy (gst_rtp_buffer_get_payload (&rtp), &in_data1, sizeof (in_data1));
+ gst_rtp_buffer_unmap (&rtp);
+
+ rtpredenc_cant_create_red_packet_base_test (buffer0, buffer1);
+}
+
+GST_END_TEST;
+
+static Suite *
+rtpred_suite (void)
+{
+ Suite *s = suite_create ("rtpred");
+ TCase *tc_chain = tcase_create ("decoder");
+ suite_add_tcase (s, tc_chain);
+ tcase_add_test (tc_chain, rtpreddec_passthrough);
+ tcase_add_test (tc_chain, rtpreddec_main_block);
+ tcase_add_test (tc_chain, rtpreddec_redundant_block_not_pushed);
+ tcase_add_test (tc_chain, rtpreddec_redundant_block_pushed);
+ tcase_add_test (tc_chain, rtpreddec_invalid);
+
+ tc_chain = tcase_create ("encoder");
+ suite_add_tcase (s, tc_chain);
+ tcase_add_test (tc_chain, rtpredenc_passthrough);
+ tcase_add_test (tc_chain, rtpredenc_payloadless_rtp);
+ tcase_add_test (tc_chain, rtpredenc_without_redundant_block);
+ tcase_add_test (tc_chain, rtpredenc_with_redundant_block);
+ tcase_add_loop_test (tc_chain, rtpredenc_negative_timestamp_offset, 0, 2);
+ tcase_add_loop_test (tc_chain, rtpredenc_too_large_timestamp_offset, 0, 2);
+ tcase_add_loop_test (tc_chain, rtpredenc_too_large_length, 0, 2);
+
+ return s;
+}
+
+GST_CHECK_MAIN (rtpred)
diff --git a/tests/check/elements/rtpstorage.c b/tests/check/elements/rtpstorage.c
new file mode 100644
index 000000000..4a1d60f64
--- /dev/null
+++ b/tests/check/elements/rtpstorage.c
@@ -0,0 +1,547 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#include <gst/rtp/gstrtpbuffer.h>
+#include <gst/check/gstcheck.h>
+#include <gst/check/gstharness.h>
+
+#include "../../../gst/rtp/rtpstorage.h"
+#include "../../../gst/rtp/rtpstoragestream.c"
+#include "../../../gst/rtp/rtpstorage.c"
+
+#define RTP_CLOCK_RATE (90000)
+#define RTP_FRAME_DUR (RTP_CLOCK_RATE / 30)
+
+#define RTP_TSTAMP_BASE (0x11111111)
+#define GST_TSTAMP_BASE (0x22222222)
+#define RTP_TSTAMP(i) (RTP_FRAME_DUR * (i) + RTP_TSTAMP_BASE)
+#define GST_TSTAMP(i) (RTP_PACKET_DUR * (i) + GST_TSTAMP_BASE)
+
+#define RTP_PACKET_DUR (10 * GST_MSECOND)
+
+static GstBufferList *
+get_packets_for_recovery (GstHarness * h, gint fec_pt, guint32 ssrc,
+ guint16 lost_seq)
+{
+ GstBufferList *res;
+ RtpStorage *internal_storage;
+
+ g_object_get (h->element, "internal-storage", &internal_storage, NULL);
+
+ res =
+ rtp_storage_get_packets_for_recovery (internal_storage, fec_pt, ssrc,
+ lost_seq);
+
+ g_object_unref (internal_storage);
+
+ return res;
+}
+
+static void
+put_recovered_packet (GstHarness * h, GstBuffer * buffer, guint8 pt,
+ guint32 ssrc, guint16 seq)
+{
+ RtpStorage *internal_storage;
+
+ g_object_get (h->element, "internal-storage", &internal_storage, NULL);
+
+ rtp_storage_do_put_recovered_packet (internal_storage, buffer, pt, ssrc, seq);
+
+ g_object_unref (internal_storage);
+}
+
+static GstBuffer *
+create_rtp_packet (guint8 pt, guint32 ssrc, guint32 timestamp, guint16 seq)
+{
+ GstBuffer *buf = gst_rtp_buffer_new_allocate (0, 0, 0);
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+
+ fail_unless (gst_rtp_buffer_map (buf, GST_MAP_WRITE, &rtp));
+ gst_rtp_buffer_set_ssrc (&rtp, ssrc);
+ gst_rtp_buffer_set_payload_type (&rtp, pt);
+ gst_rtp_buffer_set_timestamp (&rtp, timestamp);
+ gst_rtp_buffer_set_seq (&rtp, seq);
+ GST_BUFFER_DTS (buf) = GST_TSTAMP (seq);
+ gst_rtp_buffer_unmap (&rtp);
+
+ return buf;
+}
+
+GST_START_TEST (rtpstorage_up_and_down)
+{
+ GstHarness *h = gst_harness_new ("rtpstorage");
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_resize)
+{
+ guint i, j;
+ GstBuffer *bufin, *bufout, *bufs[10];
+ GstHarness *h = gst_harness_new ("rtpstorage");
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ g_object_set (h->element, "size-time", 0, NULL);
+ bufin = create_rtp_packet (96, 0xabe2b0b, 0x111111, 0);
+ bufout = gst_harness_push_and_pull (h, bufin);
+ fail_unless (bufin == bufout);
+ fail_unless (gst_buffer_is_writable (bufout));
+
+ g_object_set (h->element, "size-time",
+ (G_N_ELEMENTS (bufs) - 1) * RTP_PACKET_DUR, NULL);
+
+ // Pushing 10 buffers all of them should have ref. count =2
+ for (i = 0; i < G_N_ELEMENTS (bufs); ++i) {
+ bufs[i] =
+ gst_harness_push_and_pull (h, create_rtp_packet (96, 0xabe2b0b,
+ 0x111111, i));
+ for (j = 0; j <= i; ++j)
+ fail_unless (!gst_buffer_is_writable (bufs[j]));
+ }
+
+ // The next 10 buffers should expel the first 10
+ for (i = 0; i < G_N_ELEMENTS (bufs); ++i) {
+ gst_buffer_unref (gst_harness_push_and_pull (h, create_rtp_packet (96,
+ 0xabe2b0b, 0x111111, G_N_ELEMENTS (bufs) + i)));
+ for (j = 0; j <= i; ++j)
+ fail_unless (gst_buffer_is_writable (bufs[j]));
+ }
+
+ for (i = 0; i < G_N_ELEMENTS (bufs); ++i)
+ gst_buffer_unref (bufs[i]);
+ gst_buffer_unref (bufout);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_stop_redundant_packets)
+{
+ GstHarness *h = gst_harness_new ("rtpstorage");
+ GstBuffer *bufinp;
+
+ g_object_set (h->element, "size-time", 2 * RTP_PACKET_DUR, NULL);
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ bufinp = create_rtp_packet (96, 0xabe2b0b, 0x111111, 0);
+ GST_BUFFER_FLAG_SET (bufinp, GST_RTP_BUFFER_FLAG_REDUNDANT);
+ gst_harness_push (h, bufinp);
+
+ gst_buffer_unref (gst_harness_push_and_pull (h, create_rtp_packet (96,
+ 0xabe2b0b, 0x111111, 1)));
+
+ fail_unless_equals_int (gst_harness_buffers_received (h), 1);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_unknown_ssrc)
+{
+ GstBufferList *bufs_out;
+ GstHarness *h = gst_harness_new ("rtpstorage");
+ g_object_set (h->element, "size-time", RTP_PACKET_DUR, NULL);
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ /* No packets has been pushed through yet */
+ bufs_out = get_packets_for_recovery (h, 100, 0xabe2b0b, 0);
+ fail_unless (NULL == bufs_out);
+
+ /* 1 packet with ssrc=0xabe2bob pushed. Asking for ssrc=0xdeadbeef */
+ gst_buffer_unref (gst_harness_push_and_pull (h, create_rtp_packet (96,
+ 0xabe2b0b, 0x111111, 0)));
+ bufs_out = get_packets_for_recovery (h, 100, 0xdeadbeef, 0);
+ fail_unless (NULL == bufs_out);
+
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_packet_not_lost)
+{
+ GstBuffer *buf;
+ GstBufferList *bufs_out;
+ GstHarness *h = gst_harness_new ("rtpstorage");
+ g_object_set (h->element, "size-time", 10 * RTP_PACKET_DUR, NULL);
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ /* Pushing through 2 frames + 2 FEC */
+ gst_buffer_unref (gst_harness_push_and_pull (h, create_rtp_packet (96,
+ 0xabe2b0b, RTP_TSTAMP (0), 0)));
+ gst_buffer_unref (gst_harness_push_and_pull (h, (buf =
+ create_rtp_packet (96, 0xabe2b0b, RTP_TSTAMP (1), 1))));
+ gst_buffer_unref (gst_harness_push_and_pull (h, create_rtp_packet (96,
+ 0xabe2b0b, RTP_TSTAMP (1), 2)));
+ gst_buffer_unref (gst_harness_push_and_pull (h, create_rtp_packet (96,
+ 0xabe2b0b, RTP_TSTAMP (1), 3)));
+
+ /* Asking for a packet which was pushed before */
+ bufs_out = get_packets_for_recovery (h, 100, 0xabe2b0b, 1);
+ fail_unless (NULL != bufs_out);
+ fail_unless_equals_int (1, gst_buffer_list_length (bufs_out));
+ fail_unless (gst_buffer_list_get (bufs_out, 0) == buf);
+
+ gst_buffer_list_unref (bufs_out);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (test_rtpstorage_put_recovered_packet)
+{
+ GstBuffer *bufs_in[4];
+ GstBufferList *bufs_out;
+ GstHarness *h = gst_harness_new ("rtpstorage");
+ g_object_set (h->element, "size-time", 10 * RTP_PACKET_DUR, NULL);
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ /* Pushing through 2 frames + 2 FEC
+ * Packets with sequence numbers 1 and 2 are lost */
+ bufs_in[0] = create_rtp_packet (96, 0xabe2b0b, RTP_TSTAMP (0), 0);
+ bufs_in[1] = NULL;
+ bufs_in[2] = NULL;
+ bufs_in[3] = create_rtp_packet (100, 0xabe2b0b, RTP_TSTAMP (1), 3);
+ gst_buffer_unref (gst_harness_push_and_pull (h, bufs_in[0]));
+ gst_buffer_unref (gst_harness_push_and_pull (h, bufs_in[3]));
+
+ /* 1 more frame + 1 FEC */
+ gst_buffer_unref (gst_harness_push_and_pull (h, create_rtp_packet (96,
+ 0xabe2b0b, RTP_TSTAMP (2), 4)));
+ gst_buffer_unref (gst_harness_push_and_pull (h, create_rtp_packet (100,
+ 0xabe2b0b, RTP_TSTAMP (2), 5)));
+
+ /* Asking for the lost packet seq=1 */
+ bufs_out = get_packets_for_recovery (h, 100, 0xabe2b0b, 1);
+ fail_unless (NULL != bufs_out);
+ fail_unless_equals_int (2, gst_buffer_list_length (bufs_out));
+ fail_unless (gst_buffer_list_get (bufs_out, 0) == bufs_in[0]);
+ fail_unless (gst_buffer_list_get (bufs_out, 1) == bufs_in[3]);
+ gst_buffer_list_unref (bufs_out);
+
+ /* During recovery the packet of a new frame has arrived */
+ gst_buffer_unref (gst_harness_push_and_pull (h, create_rtp_packet (96,
+ 0xabe2b0b, RTP_TSTAMP (3), 6)));
+
+ /* Say we recovered packet with seq=1 and put it back in the storage */
+ bufs_in[1] = create_rtp_packet (96, 0xabe2b0b, RTP_TSTAMP (1), 1);
+ put_recovered_packet (h, bufs_in[1], 96, 0xabe2b0b, 1);
+
+ /* Asking for the lost packet seq=2 */
+ bufs_out = get_packets_for_recovery (h, 100, 0xabe2b0b, 2);
+ fail_unless (NULL != bufs_out);
+ fail_unless_equals_int (3, gst_buffer_list_length (bufs_out));
+ fail_unless (gst_buffer_list_get (bufs_out, 0) == bufs_in[0]);
+ fail_unless (gst_buffer_list_get (bufs_out, 1) == bufs_in[1]);
+ fail_unless (gst_buffer_list_get (bufs_out, 2) == bufs_in[3]);
+ gst_buffer_list_unref (bufs_out);
+
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+
+static void
+_single_ssrc_test (GstHarness * h, guint32 ssrc,
+ guint16 seq_start, guint16 nth_to_loose,
+ gsize expected_buf_size, gsize expected_first_buffer_idx)
+{
+ guint i;
+ GPtrArray *bufs_in =
+ g_ptr_array_new_with_free_func ((GDestroyNotify) gst_buffer_unref);
+ GstBufferList *bufs_out;
+
+ /* 2 frames + 2 FEC */
+ g_ptr_array_add (bufs_in, create_rtp_packet (96, ssrc, RTP_TSTAMP (0),
+ seq_start + 0));
+ g_ptr_array_add (bufs_in, create_rtp_packet (96, ssrc, RTP_TSTAMP (1),
+ seq_start + 1));
+ g_ptr_array_add (bufs_in, create_rtp_packet (100, ssrc, RTP_TSTAMP (1),
+ seq_start + 2));
+ g_ptr_array_add (bufs_in, create_rtp_packet (100, ssrc, RTP_TSTAMP (1),
+ seq_start + 3));
+ /* 3 frames + 2 FEC */
+ g_ptr_array_add (bufs_in, create_rtp_packet (96, ssrc, RTP_TSTAMP (2),
+ seq_start + 4));
+ g_ptr_array_add (bufs_in, create_rtp_packet (96, ssrc, RTP_TSTAMP (3),
+ seq_start + 5));
+ g_ptr_array_add (bufs_in, create_rtp_packet (96, ssrc, RTP_TSTAMP (4),
+ seq_start + 6));
+ g_ptr_array_add (bufs_in, create_rtp_packet (100, ssrc, RTP_TSTAMP (4),
+ seq_start + 7));
+ g_ptr_array_add (bufs_in, create_rtp_packet (100, ssrc, RTP_TSTAMP (4),
+ seq_start + 8));
+ g_ptr_array_add (bufs_in, create_rtp_packet (100, ssrc, RTP_TSTAMP (4),
+ seq_start + 9));
+ /* 2 frames + no FEC */
+ g_ptr_array_add (bufs_in, create_rtp_packet (96, ssrc, RTP_TSTAMP (5),
+ seq_start + 10));
+ g_ptr_array_add (bufs_in, create_rtp_packet (96, ssrc, RTP_TSTAMP (6),
+ seq_start + 11));
+
+ /* Loosing one */
+ g_ptr_array_remove_index (bufs_in, nth_to_loose);
+
+ /* Push all of them through */
+ for (i = 0; i < bufs_in->len; ++i)
+ gst_buffer_unref (gst_harness_push_and_pull (h,
+ gst_buffer_ref (g_ptr_array_index (bufs_in, i))));
+
+ bufs_out =
+ get_packets_for_recovery (h, 100, ssrc,
+ (guint16) (seq_start + nth_to_loose));
+ if (0 == expected_buf_size) {
+ fail_unless (NULL == bufs_out);
+ } else {
+ fail_unless (NULL != bufs_out);
+ fail_unless_equals_int (expected_buf_size,
+ gst_buffer_list_length (bufs_out));
+ for (i = 0; i < gst_buffer_list_length (bufs_out); ++i)
+ fail_unless (gst_buffer_list_get (bufs_out, i) ==
+ g_ptr_array_index (bufs_in, expected_first_buffer_idx + i));
+ gst_buffer_list_unref (bufs_out);
+ }
+ g_ptr_array_unref (bufs_in);
+}
+
+static void
+_multiple_ssrcs_test (guint16 nth_to_loose,
+ gsize expected_buf_size, gsize expected_first_buffer_idx)
+{
+ guint16 stream0_seq_start = 200;
+ guint16 stream1_seq_start = 65529;
+ GstHarness *h = gst_harness_new ("rtpstorage");
+ g_object_set (h->element, "size-time", 12 * RTP_PACKET_DUR, NULL);
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+
+ _single_ssrc_test (h, 0x0abe2b0b, stream0_seq_start,
+ nth_to_loose, expected_buf_size, expected_first_buffer_idx);
+ _single_ssrc_test (h, 0xdeadbeef, stream1_seq_start,
+ nth_to_loose, expected_buf_size, expected_first_buffer_idx);
+
+ gst_harness_teardown (h);
+}
+
+GST_START_TEST (rtpstorage_loss_pattern0)
+{
+ _multiple_ssrcs_test (1, 3, 0);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_loss_pattern1)
+{
+ _multiple_ssrcs_test (2, 3, 0);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_loss_pattern2)
+{
+ _multiple_ssrcs_test (3, 6, 3);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_loss_pattern3)
+{
+ _multiple_ssrcs_test (4, 5, 4);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_loss_pattern4)
+{
+ _multiple_ssrcs_test (5, 5, 4);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_loss_pattern5)
+{
+ _multiple_ssrcs_test (6, 5, 4);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_loss_pattern6)
+{
+ _multiple_ssrcs_test (7, 5, 4);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_loss_pattern7)
+{
+ _multiple_ssrcs_test (8, 5, 4);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_loss_pattern8)
+{
+ _multiple_ssrcs_test (9, 0, 0);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpstorage_loss_pattern9)
+{
+ _multiple_ssrcs_test (10, 0, 0);
+}
+
+GST_END_TEST;
+
+#define STRESS_TEST_SSRCS (8)
+#define STRESS_TEST_STORAGE_DEPTH (50)
+typedef struct _StressTestData StressTestData;
+struct _StressTestData
+{
+ guint16 seq[STRESS_TEST_SSRCS];
+ guint32 ssrc[STRESS_TEST_SSRCS];
+ gsize count[STRESS_TEST_SSRCS];
+ GRand *rnd;
+};
+
+static GstBuffer *
+rtpstorage_stress_prepare_buffer (GstHarness * h, gpointer data)
+{
+ static const guint8 fec_pt = 100;
+ static const guint8 media_pt = 96;
+ StressTestData *test_data = data;
+ gsize ssrc_idx = g_rand_int_range (test_data->rnd, 0, STRESS_TEST_SSRCS);
+ guint16 seq = test_data->seq[ssrc_idx];
+ guint32 ssrc = test_data->ssrc[ssrc_idx];
+ gboolean is_fec = test_data->count[ssrc_idx] > 0 && (seq % 5 == 0
+ || seq % 5 == 1);
+ guint8 pt = is_fec ? fec_pt : media_pt;
+
+ GstBuffer *buf = create_rtp_packet (pt, ssrc, RTP_TSTAMP (0), seq);
+
+ ++test_data->seq[ssrc_idx];
+ ++test_data->count[ssrc_idx];
+ return buf;
+}
+
+GST_START_TEST (rtpstorage_stress)
+{
+ GRand *rnd;
+ GTimer *timer;
+ GstCaps *caps;
+ GstSegment segment;
+ GstHarnessThread *ht;
+ StressTestData test_data;
+ guint seed, i, total, requested;
+ GstHarness *h = gst_harness_new ("rtpstorage");
+ g_object_set (h->element, "size-time",
+ STRESS_TEST_STORAGE_DEPTH * RTP_PACKET_DUR, NULL);
+
+ /* The stress test pushes buffers with STRESS_TEST_SSRCS different
+ * ssrcs from one thread and requests packets for FEC recovery from
+ * another thread.
+ * */
+ memset (&test_data, 0, sizeof (test_data));
+ seed = g_random_int ();
+ test_data.rnd = g_rand_new_with_seed (seed);
+ for (i = 0; i < STRESS_TEST_SSRCS; ++i) {
+ test_data.ssrc[i] = 0x00112233 + i * 0x01000000;
+ test_data.seq[i] = g_rand_int_range (test_data.rnd, 0, 0x10000);
+ }
+
+ gst_segment_init (&segment, GST_FORMAT_TIME);
+ caps = gst_caps_from_string ("application/x-rtp");
+ rnd = g_rand_copy (test_data.rnd);
+
+ GST_INFO ("%u seed", seed);
+ ht = gst_harness_stress_push_buffer_with_cb_start (h, caps, &segment,
+ rtpstorage_stress_prepare_buffer, &test_data, NULL);
+
+ requested = 0;
+ timer = g_timer_new ();
+ while (g_timer_elapsed (timer, NULL) < 2) {
+ gsize ssrc_idx = g_rand_int_range (rnd, 0, STRESS_TEST_SSRCS);
+
+ /* The following if statement is simply keeping the log
+ * clean from ERROR messages */
+ if (*((volatile gsize *) &test_data.count[ssrc_idx]) > 1) {
+ guint16 lost_seq = *((volatile guint16 *) &test_data.seq[ssrc_idx]) - 5;
+
+ GstBufferList *bufs_out = get_packets_for_recovery (h, 100,
+ test_data.ssrc[ssrc_idx], lost_seq);
+ if (bufs_out) {
+ requested += gst_buffer_list_length (bufs_out);
+ gst_buffer_list_unref (bufs_out);
+ }
+ }
+
+ /* Having sleep here makes it hard to detect the race, but we need it to
+ * allow another thread to push more buffers when running under valgrind */
+ g_usleep (G_USEC_PER_SEC / 10000);
+ }
+
+ gst_harness_stress_thread_stop (ht);
+ for (i = 0, total = 0; i < STRESS_TEST_SSRCS; ++i) {
+ GST_INFO ("SSRC 0x%08x: %u packets", test_data.ssrc[i],
+ (guint32) test_data.count[i]);
+ total += test_data.count[i];
+ }
+ GST_INFO ("%u packets pushed through, %u requested", total, requested);
+
+ g_rand_free (rnd);
+ g_rand_free (test_data.rnd);
+ gst_caps_unref (caps);
+ g_timer_destroy (timer);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+static Suite *
+rtpstorage_suite (void)
+{
+ Suite *s = suite_create ("rtpstorage");
+ TCase *tc_chain = tcase_create ("general");
+
+ suite_add_tcase (s, tc_chain);
+ tcase_add_test (tc_chain, rtpstorage_up_and_down);
+ tcase_add_test (tc_chain, rtpstorage_resize);
+ tcase_add_test (tc_chain, rtpstorage_stop_redundant_packets);
+ tcase_add_test (tc_chain, rtpstorage_unknown_ssrc);
+ tcase_add_test (tc_chain, rtpstorage_packet_not_lost);
+ tcase_add_test (tc_chain, rtpstorage_loss_pattern0);
+ tcase_add_test (tc_chain, rtpstorage_loss_pattern1);
+ tcase_add_test (tc_chain, rtpstorage_loss_pattern2);
+ tcase_add_test (tc_chain, rtpstorage_loss_pattern3);
+ tcase_add_test (tc_chain, rtpstorage_loss_pattern4);
+ tcase_add_test (tc_chain, rtpstorage_loss_pattern5);
+ tcase_add_test (tc_chain, rtpstorage_loss_pattern6);
+ tcase_add_test (tc_chain, rtpstorage_loss_pattern7);
+ tcase_add_test (tc_chain, rtpstorage_loss_pattern8);
+ tcase_add_test (tc_chain, rtpstorage_loss_pattern9);
+ tcase_add_test (tc_chain, test_rtpstorage_put_recovered_packet);
+ tcase_add_test (tc_chain, rtpstorage_stress);
+
+ return s;
+}
+
+GST_CHECK_MAIN (rtpstorage)
diff --git a/tests/check/elements/rtpulpfec.c b/tests/check/elements/rtpulpfec.c
new file mode 100644
index 000000000..a1d637bd1
--- /dev/null
+++ b/tests/check/elements/rtpulpfec.c
@@ -0,0 +1,629 @@
+/* GStreamer plugin for forward error correction
+ * Copyright (C) 2017 Pexip
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author: Mikhail Fludkov <misha@pexip.com>
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+#include "packets.h"
+
+#include <gst/check/gstharness.h>
+#include <gst/rtp/gstrtpbuffer.h>
+#include <gst/check/gstcheck.h>
+
+#define RTP_PACKET_DUR (10 * GST_MSECOND)
+
+typedef struct
+{
+ guint8 pt;
+ guint32 ssrc;
+ guint16 seq;
+} RecoveredPacketInfo;
+
+static void
+check_rtpulpfecdec_stats (GstHarness * h, guint packets_recovered,
+ guint packets_unrecovered)
+{
+ guint packets_recovered_out;
+ guint packets_unrecovered_out;
+ gst_harness_get (h, "rtpulpfecdec",
+ "recovered", &packets_recovered_out,
+ "unrecovered", &packets_unrecovered_out, NULL);
+
+ fail_unless_equals_int (packets_recovered, packets_recovered_out);
+ fail_unless_equals_int (packets_unrecovered, packets_unrecovered_out);
+}
+
+static void
+push_lost_event (GstHarness * h, guint32 seqnum,
+ guint64 timestamp, guint64 duration, gboolean event_goes_through)
+{
+ GstEvent *packet_loss_in = gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM,
+ gst_structure_new ("GstRTPPacketLost",
+ "seqnum", G_TYPE_UINT, seqnum,
+ "timestamp", G_TYPE_UINT64, timestamp,
+ "duration", G_TYPE_UINT64, duration, NULL));
+ GstEvent *it, *packet_loss_out = NULL;
+
+ fail_unless_equals_int (TRUE, gst_harness_push_event (h, packet_loss_in));
+
+ while (NULL != (it = gst_harness_try_pull_event (h))) {
+ if (GST_EVENT_TYPE (it) != GST_EVENT_CUSTOM_DOWNSTREAM ||
+ !gst_event_has_name (it, "GstRTPPacketLost")) {
+ gst_event_unref (it);
+ } else {
+ packet_loss_out = it;
+ break;
+ }
+ }
+
+ if (event_goes_through) {
+ fail_unless (packet_loss_in == packet_loss_out);
+ gst_event_unref (packet_loss_out);
+ } else {
+ fail_unless (NULL == packet_loss_out);
+ }
+}
+
+static void
+lose_and_recover_test (GstHarness * h, guint16 lost_seq,
+ gconstpointer recbuf, gsize recbuf_size)
+{
+ guint64 duration = 222222;
+ guint64 timestamp = 111111;
+ GstBuffer *bufout;
+
+ push_lost_event (h, lost_seq, timestamp, duration, FALSE);
+
+ bufout = gst_harness_pull (h);
+ fail_unless_equals_int (gst_buffer_get_size (bufout), recbuf_size);
+ fail_unless_equals_int (GST_BUFFER_PTS (bufout), timestamp);
+ fail_unless (gst_buffer_memcmp (bufout, 0, recbuf, recbuf_size) == 0);
+ fail_unless (!GST_BUFFER_FLAG_IS_SET (bufout, GST_RTP_BUFFER_FLAG_REDUNDANT));
+ gst_buffer_unref (bufout);
+
+ /* Pushing the next buffer with discont flag set */
+ bufout = gst_buffer_new ();
+ GST_BUFFER_FLAG_SET (bufout, GST_BUFFER_FLAG_DISCONT);
+ bufout = gst_harness_push_and_pull (h, bufout);
+ /* Checking the flag was unset */
+ fail_unless (!GST_BUFFER_IS_DISCONT (bufout));
+ gst_buffer_unref (bufout);
+}
+
+static void
+push_data (GstHarness * h, gconstpointer rtp, gsize rtp_length)
+{
+ GstBuffer *buf = gst_rtp_buffer_new_copy_data (rtp, rtp_length);
+
+ gst_harness_push_and_pull (h, buf);
+}
+
+static GstHarness *
+harness_rtpulpfecdec (guint32 ssrc, guint8 lost_pt, guint8 fec_pt)
+{
+ GstHarness *h =
+ gst_harness_new_parse ("rtpstorage ! rtpulpfecdec ! identity");
+ GObject *internal_storage;
+ gchar *caps_str =
+ g_strdup_printf ("application/x-rtp,ssrc=(uint)%u,payload=(int)%u",
+ ssrc, lost_pt);
+
+ gst_harness_set (h, "rtpstorage", "size-time", 200 * RTP_PACKET_DUR, NULL);
+ gst_harness_get (h, "rtpstorage", "internal-storage", &internal_storage,
+ NULL);
+ gst_harness_set (h, "rtpulpfecdec", "storage", internal_storage, "pt", fec_pt,
+ NULL);
+ g_object_unref (internal_storage);
+
+ gst_harness_set_src_caps_str (h, caps_str);
+ g_free (caps_str);
+
+ return h;
+}
+
+static void
+packet_recovered_cb (GObject * internal_storage, GstBuffer * buffer,
+ GList * infos)
+{
+ gboolean found = FALSE;
+ GstRTPBuffer rtp = { NULL };
+
+ fail_unless (gst_rtp_buffer_map (buffer, GST_MAP_READ, &rtp));
+
+ for (GList * it = infos; it; it = it->next) {
+ RecoveredPacketInfo *info = it->data;
+ if (gst_rtp_buffer_get_seq (&rtp) == info->seq) {
+ fail_unless_equals_int (gst_rtp_buffer_get_payload_type (&rtp), info->pt);
+ fail_unless_equals_int (gst_rtp_buffer_get_ssrc (&rtp), info->ssrc);
+ found = TRUE;
+ break;
+ }
+ }
+
+ gst_rtp_buffer_unmap (&rtp);
+ fail_unless (found);
+}
+
+static GList *
+expect_recovered_packets (GstHarness * h, RecoveredPacketInfo * infos,
+ guint infos_len)
+{
+ GObject *internal_storage;
+ guint i = 0;
+ GList *res = NULL;
+
+ for (i = 0; i < infos_len; i++)
+ res = g_list_prepend (res, &infos[i]);
+
+ gst_harness_get (h, "rtpstorage", "internal-storage", &internal_storage,
+ NULL);
+ g_signal_connect (internal_storage, "packet-recovered",
+ G_CALLBACK (packet_recovered_cb), res);
+
+ g_object_unref (internal_storage);
+
+ return res;
+}
+
+GST_START_TEST (rtpulpfecdec_up_and_down)
+{
+ GstHarness *h = harness_rtpulpfecdec (0, 0, 0);
+ gst_harness_set_src_caps_str (h, "application/x-rtp");
+ check_rtpulpfecdec_stats (h, 0, 0);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+static void
+_recovered_from_fec_base (guint32 ssrc, guint8 fec_pt,
+ guint8 lost_pt, guint16 lost_seq,
+ gconstpointer fec_packet, gsize fec_packet_size,
+ gconstpointer lost_packet, gsize lost_packet_size)
+{
+ GstHarness *h = harness_rtpulpfecdec (ssrc, lost_pt, 123);
+ RecoveredPacketInfo info = {.pt = lost_pt,.ssrc = ssrc,.seq = lost_seq };
+ GList *expected = expect_recovered_packets (h, &info, 1);
+
+ push_data (h, fec_packet, fec_packet_size);
+ lose_and_recover_test (h, lost_seq, lost_packet, lost_packet_size);
+
+ check_rtpulpfecdec_stats (h, 1, 0);
+
+ g_list_free (expected);
+ gst_harness_teardown (h);
+}
+
+GST_START_TEST (rtpulpfecdec_recovered_from_fec)
+{
+ _recovered_from_fec_base (3536077562, 123, 100, 36921,
+ SAMPLE_ULPFEC0_FEC, sizeof (SAMPLE_ULPFEC0_FEC) - 1,
+ SAMPLE_ULPFEC0_MEDIA, sizeof (SAMPLE_ULPFEC0_MEDIA) - 1);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpulpfecdec_recovered_from_fec_long)
+{
+ GstHarness *h = harness_rtpulpfecdec (3536077562, 100, 123);
+ RecoveredPacketInfo info = {.pt = 100,.ssrc = 3536077562,.seq = 36921 };
+ const guint8 fec[] = SAMPLE_ULPFEC0_FEC;
+ guint8 *feclongmask = NULL;
+ GList *expected = expect_recovered_packets (h, &info, 1);
+
+ /* Long FEC mask needs 4 more bytes */
+ feclongmask = g_malloc (sizeof (fec) - 1 + 4);
+
+ /* Copying the beginning of FEC packet:
+ * RTP header (12 bytes) + RtpUlpFecHeader (10 bytes) + RtpUlpFecLevelHeader (4 bytes) */
+ memcpy (feclongmask, fec, 26);
+
+ // Changing L bit: 0 -> 1
+ feclongmask[12] |= 64;
+ // Changing fec_seq_base: 36921 -> 36874
+ feclongmask[14] = 0x90;
+ feclongmask[15] = 0x0a;
+ // Changing fec_mask: 0x800000000000 -> 0x000000000001
+ feclongmask[24] = 0;
+ feclongmask[25] = 0;
+ feclongmask[26] = 0;
+ feclongmask[27] = 0;
+ feclongmask[28] = 0;
+ feclongmask[29] = 1;
+ memcpy (feclongmask + 30, fec + 26, sizeof (fec) - 1 - 26);
+
+ push_data (h, feclongmask, sizeof (fec) - 1 + 4);
+ lose_and_recover_test (h, 36921, SAMPLE_ULPFEC0_MEDIA,
+ sizeof (SAMPLE_ULPFEC0_MEDIA) - 1);
+
+ g_free (feclongmask);
+ check_rtpulpfecdec_stats (h, 1, 0);
+ g_list_free (expected);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpulpfecdec_recovered_from_many)
+{
+ GstHarness *h = harness_rtpulpfecdec (578322839, 126, 22);
+ static const gchar *packets[] = {
+ SAMPLE_ULPFEC1_MEDIA0,
+ SAMPLE_ULPFEC1_MEDIA1,
+ SAMPLE_ULPFEC1_MEDIA2,
+ SAMPLE_ULPFEC1_MEDIA3,
+ SAMPLE_ULPFEC1_FEC0,
+ SAMPLE_ULPFEC1_FEC1,
+ };
+ static gsize packets_size[] = {
+ sizeof (SAMPLE_ULPFEC1_MEDIA0) - 1,
+ sizeof (SAMPLE_ULPFEC1_MEDIA1) - 1,
+ sizeof (SAMPLE_ULPFEC1_MEDIA2) - 1,
+ sizeof (SAMPLE_ULPFEC1_MEDIA3) - 1,
+ sizeof (SAMPLE_ULPFEC1_FEC0) - 1,
+ sizeof (SAMPLE_ULPFEC1_FEC1) - 1,
+ };
+ guint lost_seq = __i__ + 8476;
+ const gchar *lost_packet = packets[__i__];
+ gsize lost_packet_size = packets_size[__i__];
+ RecoveredPacketInfo info = {.pt = 126,.ssrc = 578322839,.seq = lost_seq };
+ GList *expected = expect_recovered_packets (h, &info, 1);
+
+ for (gsize i = 0; i < G_N_ELEMENTS (packets); ++i) {
+ if (i != (gsize) __i__)
+ push_data (h, packets[i], packets_size[i]);
+ }
+
+ lose_and_recover_test (h, lost_seq, lost_packet, lost_packet_size);
+
+ check_rtpulpfecdec_stats (h, 1, 0);
+ g_list_free (expected);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+typedef struct _SampleRTPPacket SampleRTPPacket;
+struct _SampleRTPPacket
+{
+ const gchar *data;
+ gsize len;
+};
+
+SampleRTPPacket avmcu_media_packets[] = {
+ {SAMPLE_AVMCU2_MEDIA0, sizeof (SAMPLE_AVMCU2_MEDIA0) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA1, sizeof (SAMPLE_AVMCU2_MEDIA1) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA2, sizeof (SAMPLE_AVMCU2_MEDIA2) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA3, sizeof (SAMPLE_AVMCU2_MEDIA3) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA4, sizeof (SAMPLE_AVMCU2_MEDIA4) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA5, sizeof (SAMPLE_AVMCU2_MEDIA5) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA6, sizeof (SAMPLE_AVMCU2_MEDIA6) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA7, sizeof (SAMPLE_AVMCU2_MEDIA7) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA8, sizeof (SAMPLE_AVMCU2_MEDIA8) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA9, sizeof (SAMPLE_AVMCU2_MEDIA9) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA10, sizeof (SAMPLE_AVMCU2_MEDIA10) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA11, sizeof (SAMPLE_AVMCU2_MEDIA11) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA12, sizeof (SAMPLE_AVMCU2_MEDIA12) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA13, sizeof (SAMPLE_AVMCU2_MEDIA13) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA14, sizeof (SAMPLE_AVMCU2_MEDIA14) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA15, sizeof (SAMPLE_AVMCU2_MEDIA15) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA16, sizeof (SAMPLE_AVMCU2_MEDIA16) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA17, sizeof (SAMPLE_AVMCU2_MEDIA17) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA18, sizeof (SAMPLE_AVMCU2_MEDIA18) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA19, sizeof (SAMPLE_AVMCU2_MEDIA19) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA20, sizeof (SAMPLE_AVMCU2_MEDIA20) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA21, sizeof (SAMPLE_AVMCU2_MEDIA21) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA22, sizeof (SAMPLE_AVMCU2_MEDIA22) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA23, sizeof (SAMPLE_AVMCU2_MEDIA23) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA24, sizeof (SAMPLE_AVMCU2_MEDIA24) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA25, sizeof (SAMPLE_AVMCU2_MEDIA25) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA26, sizeof (SAMPLE_AVMCU2_MEDIA26) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA27, sizeof (SAMPLE_AVMCU2_MEDIA27) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA28, sizeof (SAMPLE_AVMCU2_MEDIA28) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA29, sizeof (SAMPLE_AVMCU2_MEDIA29) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA30, sizeof (SAMPLE_AVMCU2_MEDIA30) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA31, sizeof (SAMPLE_AVMCU2_MEDIA31) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA32, sizeof (SAMPLE_AVMCU2_MEDIA32) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA33, sizeof (SAMPLE_AVMCU2_MEDIA33) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA34, sizeof (SAMPLE_AVMCU2_MEDIA34) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA35, sizeof (SAMPLE_AVMCU2_MEDIA35) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA36, sizeof (SAMPLE_AVMCU2_MEDIA36) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA37, sizeof (SAMPLE_AVMCU2_MEDIA37) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA38, sizeof (SAMPLE_AVMCU2_MEDIA38) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA39, sizeof (SAMPLE_AVMCU2_MEDIA39) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA40, sizeof (SAMPLE_AVMCU2_MEDIA40) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA41, sizeof (SAMPLE_AVMCU2_MEDIA41) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA42, sizeof (SAMPLE_AVMCU2_MEDIA42) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA43, sizeof (SAMPLE_AVMCU2_MEDIA43) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA44, sizeof (SAMPLE_AVMCU2_MEDIA44) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA45, sizeof (SAMPLE_AVMCU2_MEDIA45) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA46, sizeof (SAMPLE_AVMCU2_MEDIA46) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA47, sizeof (SAMPLE_AVMCU2_MEDIA47) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA48, sizeof (SAMPLE_AVMCU2_MEDIA48) - 1}
+ ,
+ {SAMPLE_AVMCU2_MEDIA49, sizeof (SAMPLE_AVMCU2_MEDIA49) - 1}
+ ,
+};
+
+SampleRTPPacket avmcu_fec_packets[] = {
+ {SAMPLE_AVMCU2_FEC0, sizeof (SAMPLE_AVMCU2_FEC0) - 1}
+ ,
+ {SAMPLE_AVMCU2_FEC1, sizeof (SAMPLE_AVMCU2_FEC1) - 1}
+ ,
+ {SAMPLE_AVMCU2_FEC2, sizeof (SAMPLE_AVMCU2_FEC2) - 1}
+ ,
+ {SAMPLE_AVMCU2_FEC3, sizeof (SAMPLE_AVMCU2_FEC3) - 1}
+ ,
+ {SAMPLE_AVMCU2_FEC4, sizeof (SAMPLE_AVMCU2_FEC4) - 1}
+ ,
+ {SAMPLE_AVMCU2_FEC5, sizeof (SAMPLE_AVMCU2_FEC5) - 1}
+ ,
+ {SAMPLE_AVMCU2_FEC6, sizeof (SAMPLE_AVMCU2_FEC6) - 1}
+ ,
+};
+
+
+GST_START_TEST (rtpulpfecdec_recovered_using_recovered_packet)
+{
+ GstHarness *h = harness_rtpulpfecdec (578322839, 126, 22);
+ RecoveredPacketInfo info[3] = {
+ {.pt = 126,.ssrc = 578322839,.seq = 8477}
+ ,
+ {.pt = 126,.ssrc = 578322839,.seq = 8476}
+ ,
+ {.pt = 126,.ssrc = 578322839,.seq = 8479}
+ };
+ GList *expected = expect_recovered_packets (h, info, 3);
+
+ // To recover the packet we want we need to recover 2 packets
+ push_data (h, SAMPLE_ULPFEC1_MEDIA2, sizeof (SAMPLE_ULPFEC1_MEDIA2) - 1);
+ push_data (h, SAMPLE_ULPFEC1_FEC0, sizeof (SAMPLE_ULPFEC1_FEC0) - 1);
+ push_data (h, SAMPLE_ULPFEC1_FEC1, sizeof (SAMPLE_ULPFEC1_FEC1) - 1);
+ push_data (h, SAMPLE_ULPFEC1_FEC2, sizeof (SAMPLE_ULPFEC1_FEC2) - 1);
+
+ lose_and_recover_test (h, 8479, SAMPLE_ULPFEC1_MEDIA3,
+ sizeof (SAMPLE_ULPFEC1_MEDIA3) - 1);
+
+ check_rtpulpfecdec_stats (h, 1, 0);
+ g_list_free (expected);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpulpfecdec_recovered_from_storage)
+{
+ GstHarness *h = harness_rtpulpfecdec (578322839, 126, 22);
+
+ // The packet we want to recover is already in the storage
+ push_data (h, SAMPLE_ULPFEC1_MEDIA0, sizeof (SAMPLE_ULPFEC1_MEDIA0) - 1);
+ push_data (h, SAMPLE_ULPFEC1_MEDIA1, sizeof (SAMPLE_ULPFEC1_MEDIA1) - 1);
+ push_data (h, SAMPLE_ULPFEC1_MEDIA2, sizeof (SAMPLE_ULPFEC1_MEDIA2) - 1);
+ push_data (h, SAMPLE_ULPFEC1_MEDIA3, sizeof (SAMPLE_ULPFEC1_MEDIA3) - 1);
+ push_data (h, SAMPLE_ULPFEC1_FEC0, sizeof (SAMPLE_ULPFEC1_FEC0) - 1);
+ push_data (h, SAMPLE_ULPFEC1_FEC1, sizeof (SAMPLE_ULPFEC1_FEC1) - 1);
+ push_data (h, SAMPLE_ULPFEC1_FEC2, sizeof (SAMPLE_ULPFEC1_FEC2) - 1);
+
+ lose_and_recover_test (h, 8479, SAMPLE_ULPFEC1_MEDIA3,
+ sizeof (SAMPLE_ULPFEC1_MEDIA3) - 1);
+
+ check_rtpulpfecdec_stats (h, 1, 0);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpulpfecdec_recovered_push_failed)
+{
+ GstHarness *h = harness_rtpulpfecdec (3536077562, 100, 123);
+ RecoveredPacketInfo info = {.pt = 100,.ssrc = 3536077562,.seq = 36921 };
+ GList *expected = expect_recovered_packets (h, &info, 1);
+ gst_harness_set (h, "identity", "error-after", 2, NULL);
+
+ push_data (h, SAMPLE_ULPFEC0_FEC, sizeof (SAMPLE_ULPFEC0_FEC) - 1);
+ push_lost_event (h, 36921, 1111, 2222, FALSE);
+
+ /* gst_pad_push for the recovered packet has failed,
+ * making sure the error will be propagated from the chain function*/
+ fail_unless_equals_int (gst_harness_push (h, gst_buffer_new ()),
+ GST_FLOW_ERROR);
+
+ g_list_free (expected);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpulpfecdec_invalid_fec_size_mismatch)
+{
+ static const guint packet_sizes[] = { 21, 25,
+ sizeof (SAMPLE_ULPFEC0_FEC) - 2, sizeof (SAMPLE_ULPFEC0_FEC)
+ };
+ GstHarness *h = harness_rtpulpfecdec (3536077562, 100, 123);
+
+ push_data (h, SAMPLE_ULPFEC0_FEC, packet_sizes[__i__]);
+ push_lost_event (h, 36921, 1111, 2222, TRUE);
+
+ check_rtpulpfecdec_stats (h, 0, 1);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpulpfecdec_invalid_fec_ebit_not_zero)
+{
+ const guint8 fec[] = SAMPLE_ULPFEC0_FEC;
+ guint8 *fec_ebit_not_zero = NULL;
+ GstHarness *h = harness_rtpulpfecdec (3536077562, 100, 123);
+
+ // Changing E bit: 0 -> 1
+ fec_ebit_not_zero = g_malloc (sizeof (fec) - 1);
+ memcpy (fec_ebit_not_zero, fec, sizeof (fec) - 1);
+ fec_ebit_not_zero[12] |= 128;
+
+ push_data (h, fec_ebit_not_zero, sizeof (fec) - 1);
+ push_lost_event (h, 36921, 1111, 2222, TRUE);
+
+ g_free (fec_ebit_not_zero);
+ check_rtpulpfecdec_stats (h, 0, 1);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpulpfecdec_invalid_recovered)
+{
+ GstHarness *h = harness_rtpulpfecdec (3536077562, 50, 22);
+
+ push_data (h, SAMPLE_ISSUE_7049, sizeof (SAMPLE_ISSUE_7049) - 1);
+ push_lost_event (h, 36921, 1111, 2222, TRUE);
+
+ check_rtpulpfecdec_stats (h, 0, 1);
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpulpfecdec_invalid_recovered_pt_mismatch)
+{
+ GstHarness *h = harness_rtpulpfecdec (3536077562, 100, 123);
+ GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
+ GstBuffer *modified;
+
+ gst_harness_set_src_caps_str (h, "application/x-rtp,ssrc=(uint)3536077562");
+
+ /* Payload type can be derivered neither from the caps nor from the media packets */
+ push_data (h, SAMPLE_ULPFEC0_FEC, sizeof (SAMPLE_ULPFEC0_FEC) - 1);
+ push_lost_event (h, 36921, 1111, 2222, TRUE);
+ check_rtpulpfecdec_stats (h, 0, 1);
+
+ /* Payload type can only be derivered from the caps (pt=50). Recovered packet
+ * with pt=100 should be ignored */
+ gst_harness_set_src_caps_str (h,
+ "application/x-rtp,ssrc=(uint)3536077562,payload=(int)50");
+ push_lost_event (h, 36921, 1111, 2222, TRUE);
+ check_rtpulpfecdec_stats (h, 0, 2);
+
+ modified =
+ gst_rtp_buffer_new_copy_data (SAMPLE_ULPFEC0_MEDIA,
+ sizeof (SAMPLE_ULPFEC0_MEDIA));
+ fail_unless (gst_rtp_buffer_map (modified, GST_MAP_READ, &rtp));
+ gst_rtp_buffer_set_payload_type (&rtp, 50);
+ gst_rtp_buffer_set_seq (&rtp, 36920);
+ gst_rtp_buffer_unmap (&rtp);
+ /* Now we have media packet with pt=50 and caps with pt=50. */
+ gst_harness_push_and_pull (h, modified);
+ push_lost_event (h, 36921, 1111, 2222, TRUE);
+ check_rtpulpfecdec_stats (h, 0, 3);
+
+ /* Removing payload type from the caps */
+ gst_harness_set_src_caps_str (h, "application/x-rtp,ssrc=(uint)3536077562");
+ push_lost_event (h, 36921, 1111, 2222, TRUE);
+ check_rtpulpfecdec_stats (h, 0, 4);
+
+ gst_harness_teardown (h);
+}
+
+GST_END_TEST;
+
+GST_START_TEST (rtpulpfecdec_fecstorage_gives_no_buffers)
+{
+ GstHarness *h = harness_rtpulpfecdec (3536077562, 100, 123);
+
+ push_lost_event (h, 36921, 1111, 2222, TRUE);
+
+ check_rtpulpfecdec_stats (h, 0, 1);
+}
+
+GST_END_TEST;
+
+static Suite *
+rtpfec_suite (void)
+{
+ Suite *s = suite_create ("rtpfec");
+ TCase *tc_chain = tcase_create ("general");
+
+ suite_add_tcase (s, tc_chain);
+ tcase_add_test (tc_chain, rtpulpfecdec_up_and_down);
+
+ tcase_add_test (tc_chain, rtpulpfecdec_recovered_from_fec);
+ tcase_add_test (tc_chain, rtpulpfecdec_recovered_from_fec_long);
+ tcase_add_loop_test (tc_chain, rtpulpfecdec_recovered_from_many, 0, 4);
+ tcase_add_test (tc_chain, rtpulpfecdec_recovered_using_recovered_packet);
+ tcase_add_test (tc_chain, rtpulpfecdec_recovered_from_storage);
+ tcase_add_test (tc_chain, rtpulpfecdec_recovered_push_failed);
+
+ tcase_add_loop_test (tc_chain, rtpulpfecdec_invalid_fec_size_mismatch, 0, 4);
+ tcase_add_test (tc_chain, rtpulpfecdec_invalid_fec_ebit_not_zero);
+ tcase_add_test (tc_chain, rtpulpfecdec_invalid_recovered);
+ tcase_add_test (tc_chain, rtpulpfecdec_invalid_recovered_pt_mismatch);
+ tcase_add_test (tc_chain, rtpulpfecdec_fecstorage_gives_no_buffers);
+ return s;
+}
+
+GST_CHECK_MAIN (rtpfec)
diff --git a/tests/check/meson.build b/tests/check/meson.build
index a00532656..cc2407dae 100644
--- a/tests/check/meson.build
+++ b/tests/check/meson.build
@@ -79,6 +79,9 @@ good_tests = [
[ 'elements/rtpmux' ],
[ 'elements/rtprtx' ],
[ 'elements/rtpsession' ],
+ [ 'elements/rtpstorage' ],
+ [ 'elements/rtpred' ],
+ [ 'elements/rtpulpfec' ],
[ 'elements/souphttpsrc', not libsoup_dep.found(), [libsoup_dep] ],
[ 'elements/spectrum' ],
[ 'elements/shapewipe' ],