Skip to content

Commit

Permalink
add gstreamer test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nakakura committed Jul 2, 2018
1 parent 9d9c6ec commit 74007b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions 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

0 comments on commit 74007b6

Please sign in to comment.