Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

cms is an industrial-strength live streaming server,support rtmp,http-flv,hls.in the future,it will support more protocol.

NotificationsYou must be signed in to change notification settings

ctinkong/cms

Repository files navigation

cms is an industrial-strength live streaming server,support rtmp,http-flv,hls.in the future,it will support more protocol.

Building cms with new version number or memory optimization options.

the options choose by yourself:
memcheck: you can track most of alloc buffer
mempool: cms will cache some buffer,which is been malloc and free very frequently,that will improve memory performance,of course the buffer must be the same type
memcycle: the video/audio buffer,it will malloc and free in the cycle buffer

git clone https://github.com/ctinkong/cms.gitcd cms./configure clean [memcheck] [mempool] [memcycle]

Building cms not change version number

git clone https://github.com/ctinkong/cms.gitcd cmsmake

Notice

to build cms needs s2n,which supports TLS/SSL protocols.see https://github.com/awslabs/s2nand current version,s2n is builded with openssl-1.1.1b.

Config

{"listen": {"http":":80",//http listen addr"https":":443",//https listen addr,this will be effected by tls configure, //when tls is not exist or is empty, or cert-key is not exist or empty,//https willdo not listen any more."rtmp":":1935",//rtmp listen addr"query":":8888"//server status query listen addr, see http://xxx.xxx.xxx.xxx:8888/query/info  },"tls": {//tls configure, see https://github.com/awslabs/s2n"cert-key": [      {"cert":"push.test1.com.crt","key":"push.test1.com.key"      },      {"cert":"push.test2.com.crt","key":"push.test2.com.key"      }    ],"dhparam":"dhparam.pem","version":"default"  },"worker": {"count": 4//thread worker number  },"media": {"first_play_milsecond": 1000,//skip millseconds of video,when the firsttime to play"reset_timestamp": true,//should reset timestamp,which timestamp will be increase from 0,when be played"no_timeout": false,//"stream_timeout": 30000,//stream should be timeout,when no data recvfor longtime"no_hash_timeout": 15000,//timeout towaitfor task creates successfully,when be played."real_time_stream": true,//should be a realtime stream or not"cache_ms": 10000,//stream should cachetimein millseconds."open_hls": true,//should open hls support."ts_duration": 3,"ts_num": 3,"ts_save_num": 5  },"log": {"file":"./log",//log file."level":"debug",//log level debug< info< warn< error< fatal"size": 524288000,//max size of log file"console":true  }}

About

cms is an industrial-strength live streaming server,support rtmp,http-flv,hls.in the future,it will support more protocol.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp