Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

omar-haris/nginx-rtmp-monitoring

Repository files navigation

fstv-monitoring

rtmp & hls server with real-time monitoring dashboard.

fstv monitoring

How to install

chmod +x setup.sh && ./setup.sh

Login to dashboard

open http://your-server-ip:9991 on your browser

default credentials for login:

username: admin

To find password you need to run this command:

docker exec -it fstv_dashboard cat /usr/src/app/config.json

then you can pickup the password from output.

Testing the stream

ffmpeg -re -i <replace your video file>.mp4 -vcodec libx264 -profile:v main -preset:v medium -r 30 -g 60 -keyint_min 60 -sc_threshold 0 -b:v 2500k -maxrate 2500k -bufsize 2500k  -sws_flags lanczos+accurate_rnd -acodec aac -b:a 96k -ar 48000 -ac 2 -f flv rtmp://your-server-ip:1935/stream/hello

Watch Stream

In Safari, VLC or any HLS player, open:

http://your-server-ip:8080/live/$STREAM_NAME.m3u8

Example Playlist: http://your-server-ip:8080/live/hello.m3u8

VideoJS Player

FFplay: ffplay -fflags nobuffer rtmp://your-server-ip:1935/stream/hello

how to get help

you can send me on twitter https://twitter.com/3m1oo

License

MIT License

Copyright (c) 2016 3m1o

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.