Skip to content

Instantly share code, notes, and snippets.

@RouquinBlanc
Created February 2, 2016 21:16
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 RouquinBlanc/c4924fa9bef5f10377e2 to your computer and use it in GitHub Desktop.
Save RouquinBlanc/c4924fa9bef5f10377e2 to your computer and use it in GitHub Desktop.
Streaming Sainsmart NoIR camera over RTSP on Raspberry Pi 2
#!/bin/bash
# Run raspivid and pipe it to VLC
raspivid -o - -t 0 -vf -hf -w 640 -h 360 -fps 25 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/x}' :demux=h264
# On the other side: rtsp://raspberrypi:8554/x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment