Skip to content

Instantly share code, notes, and snippets.

@etigui
Last active October 7, 2018 13:03
Show Gist options
  • Save etigui/1f446bb5522e8dbf112fb549aeb87a13 to your computer and use it in GitHub Desktop.
Save etigui/1f446bb5522e8dbf112fb549aeb87a13 to your computer and use it in GitHub Desktop.
Stream Raspberry PI camera flow with RTP/RTSP using VLC

Serveur

 raspivid -fps 25 -vf -n -t 0 -o - | cvlc -vvv stream:////dev/stdin --sout '#rtp{sdp=rtsp://8554/}' :demux=h264

Configuration:

  • vf: flips captur vertical
  • n: no preview
  • t: duration of capture (infinite)
  • o: Output (subsequent pipe)

Client

Open vlc and go to media and open network stream

rtsp://<ip_server>:8554/

Ref

Wirelessly streaming a video from a Raspberry to a remote laptop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment