rtmp2hls

command module
v0.0.0-...-b13b455 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 19 Imported by: 0

README

rtmp2hls

Simple rtmp server with hls output based on joy4

Build

go build .

Usage

./rtmp2hls [<path to config file>]

If config path not provided, config will be read from config.toml in the current directory.

<streamname><segment index>.ts segments and <streamname>.m3u8 playlist are written to the current directory.

Streaming

Using ffmpeg

ffmpeg -i <input file> -f flv "rtmp://localhost/stream01"

Configuration

key type default description
Addr string ":1935" RTMP server listen address
Key string Expected value of key query parameter for connecting clients (disabled if unset)
MsPerSegment int64 15000 Milliseconds of video/audio written to one segment file
LogLevel log.Level "info" Level for the internal logger
HLSDirectory string "." Directory to write playlist/segment files into
BaseURL string Base URL to use as a prefix for segment files in playlist file

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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