Last active
January 27, 2024 21:10
-
-
Save JasonRBowling/c9d2d20babb835f7899826add9cb858d to your computer and use it in GitHub Desktop.
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
on pi: | |
raspivid --vflip --hflip -t 0 -cd MJPEG -w 640 -h 480 -fps 10 -b 2200000 -o - | gst-launch-1.0 fdsrc ! "image/jpeg,framerate=40/1" ! jpegparse ! rtpjpegpay ! udpsink host=$receivingIP port=5000 | |
example: | |
raspivid --vflip --hflip -t 0 -cd MJPEG -w 640 -h 480 -fps 10 -b 2200000 -o - | gst-launch-1.0 fdsrc ! "image/jpeg,framerate=40/1" ! jpegparse ! rtpjpegpay ! udpsink host=192.168.1.185 port=5000 | |
on PC (windows) | |
C:\gstreamer\1.0\msvc_x86_64\bin\gst-launch-1.0.exe udpsrc port=5000 ! "application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)JPEG,a-framerate=(string)40.000000,a-framesize=(string)1280-720,payload=(int)26" ! rtpjpegdepay ! decodebin ! autovideosink | |
On Linux: (tested on Ubuntu 20.04) | |
sudo apt-get install gstreamer1.0-tools | |
sudo apt-get install gstreamer1.0-plugins-bad | |
sudo apt-get install gstreamer1.0-plugins-bad | |
sudo apt-get install gstreamer1.0-libav | |
//the below is all one line, consider launching from script | |
gst-launch-1.0 udpsrc port=5000 ! "application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)JPEG,a-framerate=(string)40.000000,a-framesize=(string)1280-720,payload=(int)26" ! rtpjpegdepay ! decodebin ! autovideosink | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment