FMS安裝教程參考:http://www.piis.cn/news/new519.asp
FMS用於直播:
1、使用FFMPEG推流RTMP流。ffmpeg -re -i input.h264 -vcodec copy -f flv rtmp://localhost/live/livestream
2、打開FMS安裝目錄下的...\Adobe Media Server 5\samples\videoPlayer\videoPlayer.html,在STREAM URL中輸入 rtmp://localhost/live/livestream,即可播放。
3、也可以使用ffplay進行播放,ffplay "rtmp://localhost/live/livestream live=1",即可播放。
FMS用於點播:
1、將你想要用於點播的FLV或者MP4文件放在...\Adobe Media Server 5\applications\vod\media中。
2、打開FMS安裝目錄下的...\Adobe Media Server 5\samples\videoPlayer\videoPlayer.html,在STREAM URL中輸入:FLV文件的格式爲 rtmp://localhost/vod/xxx.flv ,xxx.flv是你要播放的文件名;MP4文件的格式爲: rtmp://localhost/vod/mp4:xxx.mp4。即可播放。