Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Miguel-Dorta/rtsp-recorder
A very basic/simple RTSP recorder for Linux
https://github.com/Miguel-Dorta/rtsp-recorder
Last synced: 7 days ago
JSON representation
A very basic/simple RTSP recorder for Linux
- Host: GitHub
- URL: https://github.com/Miguel-Dorta/rtsp-recorder
- Owner: Miguel-Dorta
- License: mit
- Created: 2020-10-12T18:17:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T08:24:17.000Z (6 months ago)
- Last Synced: 2024-08-02T17:31:42.658Z (3 months ago)
- Language: Go
- Size: 19.5 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rtsp-recorder
A very basic/simple RTSP recorder for Linux### Requirements
- ffmpeg
- User and group called `camrec` (only for standard installation, but it's recommended)### Build & Installation
##### Build
- Run `build.sh`##### Standard installation
- Put the built binary in `/opt/bin`
- Create each RTSP Stream config in `/opt/etc/rtsp-recorder/.conf`
- Put the systemd config in `/etc/systemd/system`
- (Optional) Create a directory for the recordings in `/var/rec`
- Start/Enable the services for each alias##### "I want the commands, mate"
```shell script
chmod +x build.sh
./build.shmkdir -p /opt/bin /opt/etc/rtsp-recorder /var/rec
cp dist/rtsp-recorder /opt/bin
cp configs/[email protected] /etc/systemd/system
nano /opt/etc/rtsp-recorder/alias.conf # And write the config there
systemctl enable rtsp-recorder@alias --now
```### Config example
```shell script
#CAMERA_ALIAS=alias # This is not necessary with the standard config because it's defined in the systemd service
RECORDING_TIME=10 # Duration of the recordings, in minutes
RECORDING_TIMEOUT=60 # Timeout for gratefull stop, in seconds
SAVING_PATH=/var/rec # Path to save the recordings
RTSP_URL='rtsp://user:[email protected]:554/stream' # RTSP stream URL
VERBOSE=false # Verbose output
```