Project status: Finished.
Django site that can be used to play back camera recordings and look at the live camera feed. (e.g. https://github.com/Ruud14/SecurityCamera)
Features:
- Play back h264 .mp4 recordings.
- View live camera feeds.
- Support for multiple cameras.
- Clone this repository.
- cd into the cloned directory.
- run
pip install -r requirements.txt
. - run
python manage.py migrate
. - create a superuser by running
python manage.py createsuperuser
. - run the server by running
python manage.py runserver
. - login on
http://127.0.0.1:8000/login/
. - go to
http://127.0.0.1:8000/admin/cameras/camera/
and pressadd camera
in the top right corner of the screen. - fill in the form with a title (E.g.
Camera1
), the url of your camera (E.g.http://192.168.0.11:8000/stream.mjpg
) and the name of the directory that the recordings for this camera are in (E.g.camera1
). See the image below. - Hit save and repeat the 2 steps above for every camera you want to add.
- In
ReplaySite/settings.py
change the value ofMEDIA_ROOT
to the path of the parent directory of the folder that the recordings for this camera are in (So here that would be the parent directory ofcamera1
). See the image below. Make sure to use forwardslashes and not backslashes. - Rerun the server and access
http://127.0.0.1:8000/
.