-
Notifications
You must be signed in to change notification settings - Fork 0
How To Install And Use GStreamer
Victor Linfield edited this page Jan 23, 2019
·
2 revisions
Just install the following packages by running the commands below:
$ sudo apt-get install gstreamer1.0-tools
$ sudo apt-get install gstreamer1.0-omx
$ sudo apt-get install gstreamer1.0-plugins-bad
$ sudo apt-get install gstreamer1.0-plugins-good
$ sudo apt-get install gstreamer1.0-nice
$ sudo apt-get install gstreamer1.0-plugins-ugly
Download and install the latest version form here. Choose the gstreamer-1.0-x86_64-VERSION.msi package and install all features.
On windows run:
gst-launch-1.0 udpsrc port=<ANYPORT> ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink
On the raspberry pi run:
raspivid -t 0 -n -h 720 -w 1280 -fps 60 -b 3000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse config-interval=1 ! rtph264pay ! udpsink host=<WINDOWSIPHERE> port=<ANYPORT>
WINDOWSIPHERE is the IP of the Windows machine and ANYPORT is any port where both have to be the same (Example 5000).
You can also add the -hf or -vf flags after raspivid to flip the image horizontally or vertically if needed.
© Memorial University Eastern Edge Robotics - www.easternedgerobotics.com