Coder Social home page Coder Social logo

videoserver's Introduction

Main configuration file [conf/videoserver.ini]:

    [general]
    ffmpeg_bin = /usr/bin/ffmpeg
    ; seconds before FFmpeg process is treated as running
    ffmpeg_start_timeout = 20
    ; seconds before killing FFmpeg process
    ffmpeg_stop_timeout = 10
    ; whether to forward ffmpeg output directly to stderr
    ffmpeg_debug_output = false
    live_dir = /home/shulgin/PycharmProjects/videoserver/live
    rec_dir = /home/shulgin/PycharmProjects/videoserver/rec
    keep_free_mb = 100

    [recording]
    ; set to 0 in order to disable
    rec_keep_hours = 12
    segment_duration = 3600

    [api]
    http_addr = 127.0.0.1
    http_port = 44270

    [slack]
    enabled = false
    webhook_url = change_me
    channel = #general

    [smtp]
    enabled = false
    server = example.com
    port = 587
    login = [email protected]
    password = change_me
    from = [email protected]
    subject = VideoServer Notification
    recipient = [email protected]
    ; none, starttls or ssl
    security = starttls

    [telegram]
    enabled = false
    api_key = change_me
    ; public chat
    chat_id = @example
    ; change the previous value to a numeric chat_id on
    convert_chat_id = true

Stream configuration file [conf/streams.ini]:

    ; [stream:<stream_name>]
    [stream:cam1]
    source = rtsp://192.0.0.10:554/h264/ch01/main/av_stream
    ; enable live streaming
    live = true
    ; enable recording
    rec = true
    ; enable keyframe snapshots
    snap = true
    ; optional record segment duration, overrides global value
    segment_duration = 3600

    [stream:cam2]
    source = rtsp://user:[email protected]:554/h264/ch01/main/av_stream
    live = true
    rec = true
    snap = true

NGINX Configuration example:

    server {
        # ...
        location /live {
                autoindex on;
                autoindex_format json;
        }
        location /rec {
                autoindex on;
                autoindex_format json;
        }
        location /admin {
            auth_basic videoserver;
            auth_basic_user_file htpasswd;
            location /admin/api {
                # refer to the [api] section of the videoserver.ini
                proxy_pass http://127.0.0.1:44270/;
                proxy_buffering off;
            }
        }
    }

videoserver's People

Contributors

andrewshulgin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  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.