In an era where security is paramount, ensuring the reliability and accessibility of your home surveillance footage is key. Enter CCTVGDriveSync, a powerful solution designed to seamlessly integrate CCTV video storage with the convenience and security of Google Drive. This project leverages the robust capabilities of ffmpeg and rclone to create a comprehensive system that ensures continuous recording, efficient storage management, and reliable cloud backup for your CCTV footage.
The Challenge
Home security is a priority for many, and CCTV cameras provide a valuable layer of protection. However, managing the recorded footage and ensuring its accessibility can be a challenge. Local storage solutions may face limitations in terms of space, and relying solely on on-site storage can leave you vulnerable to data loss in case of hardware failures or unforeseen events. The cost of cloud storage that they provide by camera manufacturer is too expensive.
The Solution: CCTVGDriveSync
After doing lot of research and trails I decided to create my own scripts to acheive the task and the out come is CCTVGDriveSync. It addresses these challenges by combining the power of ffmpeg for video recording and rclone for cloud synchronization. And your CCTV camera should be able to connect to the local network via Wifi or Cable and it should support RTSP streaming. You can find the list Wifi cameras that support RTSP in the link. RTSP Wifi Cameras
Continuous Recording with record_front_door.sh
The record_front_door.sh
script ensures the continuous recording of your front door CCTV stream. By utilizing ffmpeg, this script captures the video stream and organizes the footage into manageable segments. This not only ensures efficient storage utilization but also provides ease of access to specific timeframes.
Real-time Monitoring with check_heartbeat.sh
The check_heartbeat.sh
script adds an extra layer of intelligence to the system. It monitors the last update time of the CCTV footage and triggers alerts if no updates occur within a specified timeframe. This real-time monitoring ensures that you are promptly informed of any issues or interruptions in the recording process.
Efficient Storage Management with clean_drive.sh
and cleaner.sh
Storage management is a crucial aspect of any surveillance system. The clean_drive.sh
script automatically deletes old files from the Google Drive directory, maintaining storage efficiency and preventing clutter. Meanwhile, the cleaner.sh
script takes care of local storage, cleaning incomplete and older files to free up disk space.
Robust Cloud Backup with sync_videos.sh
The sync_videos.sh
script ensures that your recorded videos are seamlessly copied to Google Drive, providing a robust cloud backup. This not only safeguards your footage from on-site risks but also enables remote access to your CCTV recordings.
Getting Started with CCTVGDriveSync
Setting up CCTVGDriveSync is a straightforward process:
Clone the Repository:
git clone https://github.com/your-username/CCTVGDriveSync.git cd CCTVGDriveSync
Configure and Install: Adjust the configurations in the scripts to match your setup and install the necessary dependencies. Refer the Readme of the project for setup information.
Schedule Cron Jobs: Configure the scripts as cron jobs to run every minute for continuous monitoring and synchronization.
* * * * * /path/to/CCTVGDriveSync/check_heartbeat.sh * * * * * /path/to/CCTVGDriveSync/cleaner.sh * * * * * /path/to/CCTVGDriveSync/record_front_door.sh * * * * * /path/to/CCTVGDriveSync/sync_videos.sh 0 */4 * * * /path/to/CCTVGDriveSync/clean_drive.sh
Conclusion
CCTVGDriveSync empowers you to take control of your home security footage. By combining the flexibility of local recording with the resilience of cloud backup, this project provides a comprehensive solution for managing and safeguarding your CCTV recordings. Enhance your home security strategy today with CCTVGDriveSync.
For more details and contributions, check out the CCTVGDriveSync GitHub repository.
Please do checkout our amazon affiliate link for best offers and deals here.
Comments
Post a Comment