ERROR_CFLAGS=
server_rtpaux_SOURCES = server-rtpaux.c
-server_rtpaux_CFLAGS = $(GST_CFLAGS)
+server_rtpaux_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
server_rtpaux_LDADD = $(GST_LIBS)
client_rtpaux_SOURCES = client-rtpaux.c
-client_rtpaux_CFLAGS = $(GST_CFLAGS)
+client_rtpaux_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS)
client_rtpaux_LDADD = $(GST_LIBS)
server_alsasrc_PCMA_SOURCES = server-alsasrc-PCMA.c
LATENCY=200
-gst-launch-1.0 -v rtpbin name=rtpbin latency=$LATENCY do-retransmission=1 \
+gst-launch-1.0 -v rtpbin name=rtpbin rtp-profile=avpf latency=$LATENCY do-retransmission=1 \
udpsrc caps=$VIDEO_CAPS port=5000 ! rtpbin.recv_rtp_sink_0 \
rtpbin. ! $VIDEO_DEC ! $VIDEO_SINK \
udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \
* Boston, MA 02110-1301, USA.
*/
#include <gst/gst.h>
+#include <gst/rtp/rtp.h>
#include <stdlib.h>
/*
rtpBin = gst_element_factory_make ("rtpbin", NULL);
gst_bin_add (GST_BIN (pipe), rtpBin);
- g_object_set (rtpBin, "latency", 200, "do-retransmission", TRUE, NULL);
+ g_object_set (rtpBin, "latency", 200, "do-retransmission", TRUE,
+ "rtp-profile", GST_RTP_PROFILE_AVPF, NULL);
videoSession = make_video_session (0);
audioSession = make_audio_session (1);
VRTCPSINK="udpsink port=5001 host=$DEST sync=false async=false name=vrtcpsink"
VRTCPSRC="udpsrc port=5005 name=vrtpsrc"
-gst-launch-1.0 -v rtpbin name=rtpbin \
+gst-launch-1.0 -v rtpbin name=rtpbin rtp-profile=avpf \
$VSOURCE ! $VENC ! rtprtxqueue ! rtpbin.send_rtp_sink_0 \
rtpbin.send_rtp_src_0 ! identity drop-probability=0.1 ! $VRTPSINK \
rtpbin.send_rtcp_src_0 ! $VRTCPSINK \
* Boston, MA 02110-1301, USA.
*/
#include <gst/gst.h>
+#include <gst/rtp/rtp.h>
/*
* An RTP server
gst_object_unref (bus);
rtpBin = gst_element_factory_make ("rtpbin", NULL);
+ g_object_set (rtpBin, "rtp-profile", GST_RTP_PROFILE_AVPF, NULL);
gst_bin_add (GST_BIN (pipe), rtpBin);