Powershell and batch scripts
Go to file
2024-10-21 23:13:58 -05:00
Windows DVR added untested linux bash version of the dvr 2024-10-21 21:37:07 -05:00
.gitignore god damnit 2024-10-21 01:36:59 -05:00
orphanFileAdjudicator.ps1 Added Orphaned file script 2024-09-09 14:10:28 -05:00
README.md added readme 2024-10-21 23:13:58 -05:00

Basic AF IP Camera Recording

Overview

Dead-simple IP camera recording with FFmpeg. Chunks the video, deletes old files. No bloat.

Setup

1. Configure .env

Copy example.env to .env:

cp example.env .env

Edit .env as needed:

OUTPUT_PATH=/path/to/cathut
RTSP_URL=rtsp://admin:963852pop@192.168.51.17:554/Streaming/Channels/102
CHUNK_SIZE=600
MAX_AGE=720
  • OUTPUT_PATH: Where video chunks go.
  • RTSP_URL: Your camera stream URL.
  • CHUNK_SIZE: Video segment length in seconds (default: 600).
  • MAX_AGE: Max file age in minutes before deletion (default: 720).

2. Make Scripts Executable

chmod +x start_recording.sh cleanup.sh

3. Start Recording

./start_recording.sh

4. Set Up Cleanup

Add to cron:

crontab -e

Add this line:

*/10 * * * * /path/to/cleanup.sh

Prerequisites

  • FFmpeg installed (sudo apt install ffmpeg)

License

Do whatever you want.