Skip to content

Commit

Permalink
Update gstreamer.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
floe authored May 30, 2018
1 parent f202780 commit 7d7fe42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/gstreamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ gst-launch-1.0 -vt \

# side-by-side video
gst-launch-1.0 -e v4l2src device=/dev/video0 ! image/jpeg,width=1280,height=720,framerate=30/1 ! jpegdec ! videobox left=320 right=320 ! videomixer name=mix sink_0::xpos=0 sink_1::xpos=640 ! autovideosink videotestsrc pattern=smpte ! "video/x-raw,format=BGRx,width=1280,height=720" ! videobox left=320 right=320 ! mix.

# RTP multiplexing based on ssrc
# send:
gst-launch-1.0 -vvtcm audiotestsrc ! rtpgstpay config-interval=1 ssrc=12345 ! udpsink host=127.0.0.1 port=5000
# receive:
gst-launch-1.0 -vvtcm udpsrc port=5000 caps="application/x-rtp,media=application,clock-rate=90000,encoding-name=X-GST" ! rtpssrcdemux ! rtpgstdepay ! autoaudiosink

0 comments on commit 7d7fe42

Please sign in to comment.