MyLive
MyLive copied to clipboard
A java rtmp server implementation
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
- Rtmp live stream push/pull(publish/play)
- Save published stream as flv file
- Http-Flv support
- Gop Cache as default
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
Future Plan
- HLS support
- Support multiple bitrate,live format (eg HLS,DASH) with FFMPEG
中文帮助