Created
June 28, 2022 18:03
-
-
Save dave-malone/9306364f1704d45dac5626b35fb28c48 to your computer and use it in GitHub Desktop.
Gstreamer pipeline examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## View the video feed on the Rasperry Pi itself | |
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=1280, height=720, framerate=30/1 ! videoflip method=rotate-180 ! videoconvert \ | |
! videoscale ! clockoverlay time-format="%D %H:%M:%S" ! video/x-raw, width=640, height=360 ! autovideosink | |
## Start the video stream from the Rasperry Pi | |
export HOST_IP=192.168.1.100 | |
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=-1 ! video/x-raw, width=640, height=480, framerate=30/1 ! \ | |
videoflip method=rotate-180 ! videoconvert ! jpegenc ! rtpjpegpay ! udpsink host=$HOST_IP port=5200 | |
## View the video stream from Macbook | |
gst-launch-1.0 -v udpsrc port=5200 ! application/x-rtp, media=video, clock-rate=90000, payload=96 ! \ | |
rtpjpegdepay ! jpegdec ! videoconvert ! autovideosink |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment