mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
rtp-examples: move capsfilter behind converters
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.
This commit is contained in:
parent
768dbfaf92
commit
f73cc87239
2 changed files with 2 additions and 2 deletions
|
@ -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 \
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue