# babylon **Repository Path**: shuangliaotv/babylon ## Basic Information - **Project Name**: babylon - **Description**: 巴比伦流媒体服务器,支持rtmp协议 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 63 - **Forks**: 14 - **Created**: 2013-07-09 - **Last Updated**: 2021-10-29 ## Categories & Tags **Categories**: multimedia **Tags**: None ## README babylon ======= 项目不在维护,最新版本参考[bbllive](http://git.oschina.net/shuangliaotv/bbllive) 巴比伦流媒体服务器,目前只支持rtmp协议 #如何使用# ``` package main import ( "babylon/rtmp" log "github.com/cihub/seelog" "runtime" ) func main() { runtime.GOMAXPROCS(runtime.NumCPU()) l := ":1935" err := rtmp.ListenAndServe(l) if err != nil { panic(err) } select {} } ``` #用ffmpeg发布流媒体和播放示例# * ffmpeg -i xxxx.mp4 -c:a aac -ar 44100 -ab 128k -ac 2 -strict -2 -c:v libx264 -vb 500k -r 30 -s 640x480 -ss 00.000 -f flv rtmp://127.0.0.1/live/xxxx * ffplay -i rtmp://127.0.0.1/live/xxxx