Skip to content

fragforce/fragcenter

Repository files navigation

fragcenter

Stream display system to view active streams on an rtmp server.

Running fragcenter

docker-compose

Manually edit the docker compose script to use the ip/hostname or the host where indicated.

If you want to record you only need to uncomment the commented section in the nginx.conf

Get fragcenter locally

You can get fragcenter by running go get github.com/fragforce/fragcenter

You can run fragcenter by either running it with go run fragcenter.go in the src directory.
You can also build it locally running go build github.com/fragforce/fragcenter

There are flags that can be set on startup.

-host
Set the host that is running the rtmp server (default is 127.0.0.1)

-intHost
Set the host that fragcenter checks for stats (default is 127.0.0.1). Really only exists for the docker container

-port
Set the port the rtmp server is serving on. (default is 8080)

-web
Set the port fragcenter uses to host it's own web server (default is 3000)

-poll
How often fragcenter is to check the stream stats pages in seconds. (Default is 10 seconds)

-appname
What appname to check for in the stats page. (default is stream)

This Also means the nginx.conf in the repo is copied to /srv/rtmp/nginx.conf. Please move it whereever you want and adjust the docker command accordingly.

Docker command to run the rtmp server we built this for

The dockerfile we are running is located here. https://github.com/alfg/docker-nginx-rtmp

This command will default to port 1935 (default rtmp port) and port 8080 (default for stats pages)
docker run -it -d --rm -p 1935:1935 -p 8080:80 -v /srv/rtmp/nginx.conf:/opt/nginx/nginx.conf alfg/nginx-rtmp

Examples:

1 host: Single host for rtmp server/fragcenter/web browser using the previous docker command
fragcenter

1 host: rtmp server/fragcenter custom web port
fragcenter -host=<external_ip_of_host> -web=<port_to_host_web_pages_on>

2 host: rtmp server customer stats port, fragcenter server custom web port
fragcenter -host=<external_ip_of_host> -port=<stats_page_port> -web=<port_to_host_web_pages_on>

About

Stream display system to view active streams on an rtmp server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published