All Projects → brpc → Media Server

brpc / Media Server

Licence: apache-2.0
A brpc-based server to host and proxy live streams

Projects that are alternatives of or similar to Media Server

Srs
SRS is a simple, high efficiency and realtime video server, supports RTMP, WebRTC, HLS, HTTP-FLV, SRT and GB28181.
Stars: ✭ 16,734 (+9462.29%)
Mutual labels:  media-server, hls, rtmp, cdn, live-streaming
Go Oryx
The go-oryx is SRS++, focus on real-time live streaming load-balancer.
Stars: ✭ 608 (+247.43%)
Mutual labels:  media-server, hls, rtmp, cdn, live-streaming
Javelin
[Mirror] RTMP streaming server written in Rust
Stars: ✭ 77 (-56%)
Mutual labels:  hls, rtmp, live-streaming
ZLMediaKit
WebRTC/RTSP/RTMP/HTTP/HLS/HTTP-FLV/WebSocket-FLV/HTTP-TS/HTTP-fMP4/WebSocket-TS/WebSocket-fMP4/GB28181/SRT server and client framework based on C++11
Stars: ✭ 7,790 (+4351.43%)
Mutual labels:  hls, rtmp, media-server
p2p-cdn-sdk-android
Free p2p cdn android github sdk to reduce video streaming costs of live and on demand video using webrtc by upto 90% and improve scalability by 6x - 🚀 Vadootv 🚀
Stars: ✭ 39 (-77.71%)
Mutual labels:  hls, cdn, live-streaming
tms
tms(toy media server) is a toy media server for myself learning media develop. Just for fun.
Stars: ✭ 29 (-83.43%)
Mutual labels:  hls, rtmp, live-streaming
smart rtmpd
RTMP server, smart, compact, high performance(c, c++), high concurrency, easy to maintain, easy to deploy, (supports multiple operating systems Windows and Linux, ARM, FreeBSD)
Stars: ✭ 159 (-9.14%)
Mutual labels:  hls, cdn, rtmp
Janus Webrtc Gateway Docker
Perfect Docker Image for Media Streaming Expert User ( https://github.com/meetecho/janus-gateway )
Stars: ✭ 582 (+232.57%)
Mutual labels:  media-server, hls, rtmp
Node Media Server
A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
Stars: ✭ 4,433 (+2433.14%)
Mutual labels:  media-server, hls, rtmp
Docker Nginx Rtmp
🐋 A Dockerfile for nginx-rtmp-module + FFmpeg from source with basic settings for streaming HLS. Built on Alpine Linux.
Stars: ✭ 608 (+247.43%)
Mutual labels:  hls, rtmp, live-streaming
Nginx Http Flv Module
Media streaming server based on nginx-rtmp-module. In addtion to the features nginx-rtmp-module provides, HTTP-FLV, GOP cache and VHOST (one IP for multi domain names) are supported now.
Stars: ✭ 2,063 (+1078.86%)
Mutual labels:  media-server, rtmp, live-streaming
Gpuhaishinkit.swift
Camera and Microphone streaming library via RTMP, HLS for iOS. Powered by GPUImage + HaishinKit.
Stars: ✭ 35 (-80%)
Mutual labels:  hls, rtmp
Shaka Player Embedded
Shaka Player in a C++ Framework
Stars: ✭ 153 (-12.57%)
Mutual labels:  hls, live-streaming
Starrysky
🔥A Powerful and Streamline MusicLibrary(一个丰富的音乐播放封装库,支持多种音频格式,完美解决你的问题。)
Stars: ✭ 1,022 (+484%)
Mutual labels:  hls, rtmp
Ios P2p Engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 31 (-82.29%)
Mutual labels:  hls, cdn
Android P2p Engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 70 (-60%)
Mutual labels:  hls, cdn
Abr Broadcaster
A real time encoder for Adaptive Bitrate Broadcast
Stars: ✭ 80 (-54.29%)
Mutual labels:  hls, live-streaming
Live Stream From Desktop
Provide guidance to test live streaming (mpeg-dash or hls) or vod from your desktop
Stars: ✭ 124 (-29.14%)
Mutual labels:  hls, live-streaming
Ffplayout Engine
python and ffmpeg based playout
Stars: ✭ 128 (-26.86%)
Mutual labels:  hls, rtmp
Rtsp Simple Server
ready-to-use RTSP / RTMP server and proxy that allows to read, publish and proxy video and audio streams
Stars: ✭ 882 (+404%)
Mutual labels:  media-server, rtmp

media-server

media-server is a live streaming server based on brpc used in Live Streaming Service of Baidu Cloud.

Main features

Getting Started

Supported operating system: Linux, MacOSX.

  • Install brpc which is the main dependency of media-server
  • Compile media-server with cmake:
mkdir build && cd build && cmake .. && make -sj4
  • Run media-server as origin server with minimum configuration(the default port is 8079):
./output/bin/media_server

Then you can push/play stream from it.

Main options

Please run

./output/bin/media_server --help

to get all configurations in detail.

  • -proxy_to When not specified or empty, media-server runs in origin mode, which aggregates push(such as OBS, ffmpeg) and accepts play(such as cyberplayer, ffplay) requests.

  • -proxy_lb When -proxy_to is a naming service(such as http://...), you need to specify load balancing algorithm. The options are rr, random, la, c_murmurhash and c_md5. Read client load balancing for details.

  • -port Specifies the service port of media-server. Brpc is characterized by supporting all protocols on the same port, so this port can also be used for accessing the built-in service via http. Only ports in the range of 8000-9000 can be accessed by browsers, which means if the service port is external, be sure to configure -internal_port to prevent built-in service from leaking detailed service information.

  • -internal_port This port can be configured as a port that can only be accessed on the internal network. In this case, the -port port no longer provides built-in services, but will only be accessible through this port.

  • -retry_interval_ms When media-server runs in edge mode, push and pull requests to upstreams will be retried when error happens until clients no longer need. This option specifies the minimum interval for continuous retry, which is 1 second by default.

  • -share_play_connection When set to true, multiple streams connected to the same server will reuse the same rtmp connection in play.

  • -share_publish_connection When set to true, multiple streams connected to the same server will reuse the same rtmp connection in publish.

  • -timeout_ms Timeout period for creating a stream when media-server runs in edge mode. The default value is 1000ms.

  • -server_idle_timeout Connections without data transmission for so many seconds will be closed. The default value is -1(turned off).

  • -cdn_merge_to When this option is set, media-server starts two ports, one for external service request and the other for the aggregating request. Usually the aggregating server will be found using consistent hashing, which is used widely in cache service. This option is often used in cdn nodes.

  • -cdn_merge_lb The load balancing algorithm. Read the explanation written below -proxy_lb.

  • -flagfile media-server uses gflags options, which is specified by default in the command line and can also in file format during online deployment by using -flagfile.

Examples

Other docs

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].