Coder Social home page Coder Social logo

maexled / hikvision-event-stream-video-recorder Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

Capturing Video in Response to Hikvision Camera Alert Stream Events

License: MIT License

Dockerfile 8.36% Shell 91.64%
bash ffmpeg hikvision-camera nvr video-recording

hikvision-event-stream-video-recorder's Introduction

Hikvision Event Stream Video Recorder

This script observes Hikvision camera events and captures video accordingly.

Requirements

  • bash
  • curl
  • ffmpeg
  • xmlstarlet

Make sure these dependencies are installed in your environment before running the script.

Usage

Follow the instructions below to run the script:

  1. Clone this repository to your local machine:

    git clone https://github.com/maexled/hikvision-event-stream-video-recorder.git
  2. Navigate to the directory containing the script:

    cd hikvision-event-stream-video-recorder
  3. Set the required environment variables: ADDRESS, USERNAME, and PASSWORD.

    bash event_stream_recorder.sh

Environment Variables

Before running the script, you need to set the following environment variables:

  • ADDRESS: The IP address of your camera.
  • USERNAME: The username for accessing the camera.
  • PASSWORD: The password for accessing the camera.
  • STREAM_PORT: The port for the rtsp stream (optional, by default 554)
  • STREAMING_CHANNEL: The streaming channel (optional, by default 1)
  • RECORDING_FOLDER: The root folder where the recordings are saved into (optional, by default /app/recordings)
  • TZ: The timezone (optional, but prefered to adapt to your timezone)

Alternatively, you can set them directly in the terminal before running the script.

Running the Script in a Docker Container

docker container run \
 -e ADDRESS=your_camera_ip \
 -e USERNAME=your_camera_username \
 -e PASSWORD=your_camera_password \
 -e TZ=Europe/Berlin \
 -v $(pwd)/recordings:/app/recordings \
 --name event-stream-recorder \
 ghcr.io/maexled/hikvision-event-stream-video-recorder

License

This project is licensed under the MIT license.

hikvision-event-stream-video-recorder's People

Contributors

maexled avatar

Watchers

 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.