rtp-examples: move capsfilter behind converters
authorStefan Kost <ensonic@users.sf.net>
Tue, 22 Feb 2011 12:52:18 +0000 (14:52 +0200)
committerStefan Kost <ensonic@users.sf.net>
Tue, 22 Feb 2011 12:54:28 +0000 (14:54 +0200)
We need to have the capsfilter behin the converters to make the converters
convert from the formats v4l2src can do to what we request with the
capsfilter.

tests/examples/rtp/server-v4l2-H263p-alsasrc-AMR.sh
tests/examples/rtp/server-v4l2-H264-alsasrc-PCMA.sh

index 12439fe..dd7fc89 100755 (executable)
@@ -14,7 +14,7 @@ VCAPS="video/x-raw-yuv,width=352,height=288,framerate=15/1"
 DEST=192.168.1.126
 
 gst-launch -v gstrtpbin name=rtpbin \
-           v4l2src ! $VCAPS ! videorate ! ffmpegcolorspace ! ffenc_h263p ! rtph263ppay ! rtpbin.send_rtp_sink_0      \
+           v4l2src ! videorate ! ffmpegcolorspace ! $VCAPS ! ffenc_h263p ! rtph263ppay ! rtpbin.send_rtp_sink_0      \
                      rtpbin.send_rtp_src_0 ! queue ! udpsink host=$HOST port=5000 ts-offset=$AOFFSET      \
                      rtpbin.send_rtcp_src_0 ! udpsink host=$HOST port=5001 sync=false async=false         \
                      udpsrc port=5005 ! rtpbin.recv_rtcp_sink_0                                           \
index 7ccb4f1..8dc4d70 100755 (executable)
@@ -50,7 +50,7 @@ AOFFSET=0
 VELEM="v4l2src"
 #VELEM="videotestsrc is-live=1"
 VCAPS="video/x-raw-yuv,width=352,height=288,framerate=15/1"
-VSOURCE="$VELEM ! $VCAPS ! queue ! videorate ! ffmpegcolorspace"
+VSOURCE="$VELEM ! queue ! videorate ! ffmpegcolorspace ! $VCAPS"
 VENC="x264enc tune=zerolatency byte-stream=true bitrate=300 ! rtph264pay"
 
 VRTPSINK="udpsink port=5000 host=$DEST ts-offset=$VOFFSET name=vrtpsink"