wasp-ingest-rtmp

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

README

wasp-ingest-rtmp

Getting Started

Requirements

This source code has a few development dependencies:

  • golang 1.17
  • docker (for testing purposes)
  • make (for development scripts)
  • golangci-lint

There is a makefile with common scripts for building, testing, and linting the source code.

Building
make build
Testing
make test

Docker

docker build --target development -t nginx-rtmp .
docker run -p 1935:1935 -p 8080:8080 -it nginx-rtmp:latest

Alternatively to run alongside Kafka/Zookeeper

docker-compose -f docker-compose.dev.yaml

set rtmp streaming device to rtmp://:1935/stream/whatever

ffplay -fflags nobuffer -analyzeduration 0 -fast rtmp://localhost:1935/stream/whatever

Stats are available on http://localhost:8080/stats

Linting
make lint

Usage

$ ./wasp-ingest-rtmp --help
Usage of ./wasp-ingest-rtmp:
  -rtmp string
    	The url of the rtmp stream to ingest (default "default")
Log Levels

Logging levels can be configured when the application is running in "production" mode. To do this a couple of environment variables need to be set.

$ ENV=production LOG_LEVEL=warn ./wasp-ingest-rtmp

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL