Last active
February 14, 2016 09:21
-
-
Save derekhe/08e7e3911bf1dd21ce6f to your computer and use it in GitHub Desktop.
raspberry camera
This file contains hidden or 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
Raspberry: | |
sudo apt-get install gstreamer1.0 | |
raspivid -t 0 -h 720 -w 1080 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=0.0.0.0 port=5000 | |
Mac: | |
gst-launch-1.0 -v tcpclientsrc host=192.168.1.8 port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false | |
Very fast: | |
raspivid -hf -vf -t 0 -b 2000000 -fps 60 -w 640 -h 480 -o - | gst-launch-1.0 -e -vvv fdsrc ! h264parse ! rtph264pay pt=96 config-interval=5 ! udpsink host=192.168.1.2 port=5000 | |
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false text-overlay=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment