Last active
August 29, 2015 14:04
-
-
Save mowings/3f4fccc9ec4552b6aba0 to your computer and use it in GitHub Desktop.
Stream 1080p video with raspberry pi and vlc
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
# This uses http at rotates my output 270 degrees (camera is in a werid position) | |
# I'm only doing 10 fps -- which keeps the load on the pi at around 1.5. Note that you need to | |
# be sure to max the framerate used by the pi with the framerate used by cvlc | |
sudo raspivid -o - -t 0 -w 1900 -h 1080 -rot 279 -fps 10 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8160}' :demux=h264 :h264-fps=10 | |
# Use rtsp -- this is less firewall friendly but gracefuly trades off quality/framerate and loads up the pi less | |
# As above, carefully note that fps has to match on both sides. Note that the higher the fps, the lower the quality | |
# and visa-versa. Of course, you can also drop the resolution | |
sudo raspivid -o - -t 0 -w 1900 -h 1080 -rot 279 -fps 24 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264 :h264-fps=24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment