Coder Social home page Coder Social logo

mylive's Introduction

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

中文帮助

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.