Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.36 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.36 KB

MyLive -- A Rtmp server implemention in java for live streaming

Introdution

MyLive is a rtmp server java implementation for live streaming. It's not a full feature rtmp server,seek and play2 are not supported. Amf0 is the only supported amf version.

Features

  1. Rtmp live stream push/pull(publish/play)
  2. Save published stream as flv file
  3. Http-Flv support
  4. Gop Cache as default

Architecture

MyLive Architecture

Build & Run

mvn package

java -jar mylive.jar

MyLive reads the configuration file "mylive.yaml" placed in the same folder as mylive.jar

Then you can push streams to rtmp://127.0.0.1/live/yourstream

Publishing Rtmp streams using FFMPEG/OBS and playing rtmp stream by VLC player had been already tested. http-flv is tested with bilibili/flv.js

USAGE

FFMPEG USERS

When Mylive Server started, you can use ffmpeg to push your stream like this:

ffmpeg -re -i D:/ffmpeg/TearsOfSteel.mp4 -c copy -f flv rtmp://127.0.0.1/live/first

OBS USERS

You should push your stream to :

Service : custom
Server : rtmp://127.0.0.1/live
Stream Key: first

MyLive OBS Setting

Future Plan

  1. HLS support
  2. Support multiple bitrate,live format (eg HLS,DASH) with FFMPEG

中文帮助