Coder Social home page Coder Social logo

odolgy / clouduvc Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 44 KB

A simple video surveillance system based on cloud storage

License: The Unlicense

Shell 100.00%
shell bash guvcview rclone cloud uvc-camera ffmpeg video-recording video-surveillance

clouduvc's Introduction

Clouduvc

Clouduvc is used to create the simplest video surveillance system based on:

  • Linux powered device, such as Raspberry Pi;
  • webcam;
  • cloud storage, e.g. Google Drive (optional).

How it works:

  • Clouduvc records videos of a fixed length or takes photos and saves them to a local storage (such as an external hard drive). Recording is performed daily at a certain period of time or around the clock.
  • Optionally, the latest files are uploaded to the cloud storage.
  • Old files are removed from the local and the cloud storages according to the configured retention periods.

Dependencies

  • guvcview - video capturing software for UVC devices. Thanks to the built-in automatic camera adjustment function, this is a good solution for webcams without auto brightness and auto contrast support.
  • ffmpeg - guvcview alternative for cameras with built-in auto brightness and auto contrast. Doesn't support camera adjustment, but allows you to control the video compression ratio, achieving better performance on low-end devices.
  • rclone - cloud storage synchronization software. A list of supported services can be found at https://rclone.org/.

Installation

  1. Install dependencies. For Debian based distributions:
$ sudo apt install rclone ffmpeg

or (not preferred)

$ sudo apt install rclone guvcview
  1. Configure rclone (see complete guide at https://rclone.org/docs/):
$ rclone config

Note that rclone also provides a login method for devices without a desktop environment.

  1. Download clouduvc:
$ wget https://github.com/odolgy/clouduvc/archive/master.zip
$ unzip master.zip && rm master.zip && mv clouduvc-master clouduvc
  1. Configure the required parameters in "clouduvc_config.sh" file:
$ cd clouduvc
$ cp clouduvc_config.example.sh clouduvc_config.sh
$ editor clouduvc_config.sh
  1. Run and check that everything works:
$ ./clouduvc_record.sh
  1. You can check output video resolution, fps and other parameters using ffprobe:
$ ffprobe -hide_banner video_file.avi 
  1. Configure autorun. Example for distributions with systemd:
$ sudo cp clouduvc.service /etc/systemd/system/
$ sudo editor /etc/systemd/system/clouduvc.service
$ sudo systemctl enable clouduvc.service
  1. Check that everything works:
$ sudo systemctl start clouduvc.service
$ systemctl status clouduvc.service

clouduvc's People

Contributors

odolgy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.