diff --git a/Windows DVR/README.md b/Windows DVR/README.md index 0e2f77e..388943d 100644 --- a/Windows DVR/README.md +++ b/Windows DVR/README.md @@ -3,7 +3,7 @@ ## Overview Dead-simple IP camera recording with FFmpeg. Chunks the video, deletes old files. No bloat. -## Setup +## BASH Usage ### 1. Configure `.env` Copy `example.env` to `.env`: @@ -44,6 +44,38 @@ Add this line: */10 * * * * /path/to/cleanup.sh ``` +--- + +## PowerShell Usage + +### 1. Make Sure FFmpeg Is in PATH +Add FFmpeg to your system's PATH or update the `.env` file with the full path. + +### 2. Start Recording +Run the `StartRecording.ps1` script: +```powershell +.\StartRecording.ps1 +``` + +### 3. Set Up Cleanup +Use Task Scheduler to run `Cleanup.ps1` every 10 minutes: +1. Open Task Scheduler and create a new task. +2. Set the trigger to repeat every 10 minutes. +3. Set the action to run PowerShell with: + ```powershell + powershell.exe -File "C:\path\to\Cleanup.ps1" + ``` + +## Prerequisites +- FFmpeg installed (`sudo apt install ffmpeg` for Linux, download for Windows). +- PowerShell (pre-installed on Windows, available on Linux). + +## License +Do whatever you want. + +--- + + ## Prerequisites - FFmpeg installed (`sudo apt install ffmpeg`)