AMS is an Open Source Flash Media Server written in Java. it now supports the following features: 1.RTMP and RTMPT Protcol 2.HTTP Protcol 3.AMF0/AMF3 4.Streaming Audio/Video (FLV, MP4(H264/AAC), F4V) 5.Recording Live Streams (FLV) 6.Live Stream Publishing(VP6, H264) 7.Live Stream Replication(TCP unicast)
The name of configure file is server.conf.
- Worker setting server.dispatchers=4 ;number of worker thread to read packet data from client server.workers=16 ;number of worker thread to handle http or rtmp request server.mempool.size=200 ;set memory pool size to 200M, must less than -Xmx setting of JVM
- HTTP setting http.host=0.0.0.0 ;IP address of http server http.port=8080 ;listen port of http server http.root=www ;root path of html file
- RTMP setting rtmp.host=0.0.0.0 ;IP address of rtmp server rtmp.port=1935 ;listen port of rtmp server rtmp.root=video ;root path of video file
- Live stream replication setting repl.ucast.host=0.0.0.0 ;IP address of TCP replication repl.ucast.port=1936 ;listen port of TCP replication repl.ucast.master.host=0.0.0.0 ;IP adddress master server host repl.ucast.master.port=1936 ;listen port of master server host
./ams.sh
run server and open url http://localhost:8080/demo.html
- flvindex.sh create index file from a FLV video file.
- videopublisher.sh publish a video file to media server.
version 0.0.1 the first release. version 0.1.0 fix some AMF3 bugs. version 0.1.1 fix a buffer allocation bug. version 0.2.0 add H264/AAC streaming. fix some bugs. refactoring. version 0.3.0 RTMPT support FLV index file support slf4j logger support rewrite live stream replication refactoring