# babylon **Repository Path**: treejames/babylon ## Basic Information - **Project Name**: babylon - **Description**: 巴比伦流媒体服务器,支持rtmp协议 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 14 - **Created**: 2015-04-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README babylon ======= 巴比伦流媒体服务器,目前只支持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