Enable Camera Module
sudo raspi-config
Install VLC Media Player
sudo apt-get install vlc
Stream (RTSP)
raspivid -o - -t 0 -n -w 800 -h 600 -fps 20 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
- w: width
- h: heigt
- fps: frames per second
Viewing The RTSP Stream
You need a video player capable of RTSP (e.g. VLC). Open a network stream:
rtsp://###.###.###.###:8554/
###.###.###.### is the IP address of your raspberry pi. Also, do not forget the '/' at the end, otherwise it won't work.
Streaming Over HTTP
raspivid -o - -t 0 -n -w 800 -h 600 -fps 20 | cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8554}' :demux=h264
Camera Module |
No comments:
Post a Comment