Skip to content

Instantly share code, notes, and snippets.

@mowings
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mowings/3f4fccc9ec4552b6aba0 to your computer and use it in GitHub Desktop.
Save mowings/3f4fccc9ec4552b6aba0 to your computer and use it in GitHub Desktop.
Stream 1080p video with raspberry pi and vlc
# 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