diff --git a/gst-sample-script/audio_recv.sh b/gst-sample-script/audio_recv.sh new file mode 100755 index 0000000..5984d93 --- /dev/null +++ b/gst-sample-script/audio_recv.sh @@ -0,0 +1,2 @@ +#!/bin/sh +gst-launch-1.0 udpsrc port=20001 caps="application/x-rtp,payload=(int)111" ! rtpjitterbuffer latency=200 ! rtpopusdepay ! opusdec ! audioconvert ! pulsesink diff --git a/gst-sample-script/audio_send.sh b/gst-sample-script/audio_send.sh new file mode 100755 index 0000000..d971e4d --- /dev/null +++ b/gst-sample-script/audio_send.sh @@ -0,0 +1,2 @@ +#!/bin/sh +gst-launch-1.0 audiotestsrc ! audioresample ! audio/x-raw,channels=1,rate=16000 ! opusenc bitrate=20000 ! rtpopuspay pt=111 ! udpsink host=127.0.0.1 port=50002 diff --git a/gst-sample-script/video_recv.sh b/gst-sample-script/video_recv.sh new file mode 100755 index 0000000..8b92386 --- /dev/null +++ b/gst-sample-script/video_recv.sh @@ -0,0 +1,2 @@ +#!/bin/sh +gst-launch-1.0 udpsrc port=20000 caps="application/x-rtp,paylocad=(int)100" ! rtpjitterbuffer latency=500 ! rtph264depay ! avdec_h264 output-corrupt=false ! videoconvert ! fpsdisplaysink sync=false diff --git a/gst-sample-script/video_send.sh b/gst-sample-script/video_send.sh new file mode 100755 index 0000000..052bc1d --- /dev/null +++ b/gst-sample-script/video_send.sh @@ -0,0 +1,2 @@ +#!/bin/sh +gst-launch-1.0 autovideosrc name=src0 ! video/x-raw,width=640,height=480 ! videoconvert ! x264enc bitrate=90000 pass=quant quantizer=25 rc-lookahead=0 sliced-threads=true speed-preset=superfast sync-lookahead=0 tune=zerolatency ! rtph264pay pt=100 mtu=1400 config-interval=3 ! udpsink port=50001 host=127.0.0.1 sync=false