Skip to content

An IP camera built with Raspberry Pi and the camera module

License

Notifications You must be signed in to change notification settings

pliu6/RaspberryPi-IP-Camera

Repository files navigation

Build an IP camera with a Raspberry Pi and a camera module v2

Build the image for SD card

make raspberrypi_camera_rtsp_defconfig
make

You will find the image 'output/images/sdcard.img'

Install the image to an SD card (find the device name of the SD card first!!!)

sudo dd if=output/images/sdcard.img of=/dev/sdxx

Commands to try the RTSP server:

  • login to the Pi, the password is empty for root
  • Copy the 'test-launch' from 'output/build/gst1-rtsp-server-1.12.3/examples/test-launch' in your development machine to the Pi
  • Start RTSP server
./test-launch "( rpicamsrc preview=false bitrate=4000000 keyframe-interval=30 ! video/x-h264, width=720, height=480, framerate=30/1 ! h264parse ! rtph264pay name=pay0 pt=96 )"
  • On a Linux desktop, run below command to view the video
gst-launch-1.0 rtspsrc location="rtsp://<Pi's IP>:8554/test" latency=0 ! rtph264depay ! decodebin ! videoconvert ! ximagesink

About

An IP camera built with Raspberry Pi and the camera module

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published