examples: Set RTP profile to AVPF for rtpaux examples

https://bugzilla.gnome.org/show_bug.cgi?id=746543
This commit is contained in:
Sebastian Dröge 2015-05-21 12:54:47 +03:00
parent 0a7823b30f
commit 7bd1cfa197
5 changed files with 9 additions and 5 deletions

View file

@ -5,11 +5,11 @@ noinst_PROGRAMS = server-alsasrc-PCMA client-PCMA \
ERROR_CFLAGS= ERROR_CFLAGS=
server_rtpaux_SOURCES = server-rtpaux.c 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) server_rtpaux_LDADD = $(GST_LIBS)
client_rtpaux_SOURCES = client-rtpaux.c 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) client_rtpaux_LDADD = $(GST_LIBS)
server_alsasrc_PCMA_SOURCES = server-alsasrc-PCMA.c server_alsasrc_PCMA_SOURCES = server-alsasrc-PCMA.c

View file

@ -35,7 +35,7 @@ DEST=127.0.0.1
LATENCY=200 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 \ udpsrc caps=$VIDEO_CAPS port=5000 ! rtpbin.recv_rtp_sink_0 \
rtpbin. ! $VIDEO_DEC ! $VIDEO_SINK \ rtpbin. ! $VIDEO_DEC ! $VIDEO_SINK \
udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \ udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 \

View file

@ -18,6 +18,7 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/rtp/rtp.h>
#include <stdlib.h> #include <stdlib.h>
/* /*
@ -352,7 +353,8 @@ main (int argc, char **argv)
rtpBin = gst_element_factory_make ("rtpbin", NULL); rtpBin = gst_element_factory_make ("rtpbin", NULL);
gst_bin_add (GST_BIN (pipe), rtpBin); 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); videoSession = make_video_session (0);
audioSession = make_audio_session (1); audioSession = make_audio_session (1);

View file

@ -40,7 +40,7 @@ VRTPSINK="udpsink port=5000 host=$DEST ts-offset=$VOFFSET name=vrtpsink"
VRTCPSINK="udpsink port=5001 host=$DEST sync=false async=false name=vrtcpsink" VRTCPSINK="udpsink port=5001 host=$DEST sync=false async=false name=vrtcpsink"
VRTCPSRC="udpsrc port=5005 name=vrtpsrc" 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 \ $VSOURCE ! $VENC ! rtprtxqueue ! rtpbin.send_rtp_sink_0 \
rtpbin.send_rtp_src_0 ! identity drop-probability=0.1 ! $VRTPSINK \ rtpbin.send_rtp_src_0 ! identity drop-probability=0.1 ! $VRTPSINK \
rtpbin.send_rtcp_src_0 ! $VRTCPSINK \ rtpbin.send_rtcp_src_0 ! $VRTCPSINK \

View file

@ -18,6 +18,7 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/rtp/rtp.h>
/* /*
* An RTP server * An RTP server
@ -272,6 +273,7 @@ main (int argc, char **argv)
gst_object_unref (bus); gst_object_unref (bus);
rtpBin = gst_element_factory_make ("rtpbin", NULL); 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); gst_bin_add (GST_BIN (pipe), rtpBin);