< 返回版块

nintha 发表于 2021-04-23 23:35

Tags:rtmp,web,live-stream

项目地址:https://github.com/nintha/river

River

Pure Rust Implementation of RTMP Live Stream Server

Usage

USAGE:
    river.exe [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --http-flv-port <http-flv-port>    [default: 8080]
        --rtmp-port <rtmp-port>            [default: 1935]
        --ws-fmp4-port <ws-fmp4-port>      [default: 8082]
        --ws-h264-port <ws-h264-port>      [default: 8081]

Push

OBS, x264, tune=zerolatency, CBR, perset=veryfast, porfile=baseline

Play

ffplay

ffplay -fflags nobuffer -analyzeduration 100000 rtmp://localhost:11935/channel/token

-fflags nobuffer -analyzeduration 100000 could reduce the latency. In my computer, the latency is about 1 second.

JMuxer

Playing in the browser with Jmuxer.

If pushing stream with x264 codec, recommand profile is baseline

If you are using x264 encoding to push the stream, it is recommended that profile=baseline to avoid frequent video jitter. The current local test latency is about 1 second.

Completed

  • support HTTP-FLV output
  • support raw H264 stream output
  • Deal with the problem of websocket message backlog
  • Configurable startup parameters (monitoring server port)

Ext Link: https://github.com/nintha/river

评论区

写评论

还没有评论

1 共 0 条评论, 1 页