当前位置:首页
> .html
导读:一个基于html5的webm 音视频直播方式用到google的stream-m作为服务器,linux环境1、下载stream-m http://code.google.com/p/...
一个基于html5的webm 音视频直播方式
用到google的stream-m作为服务器,linux环境
1、下载stream-m http://code.google.com/p/stream-m/downloads/list
2、运行stream-m java -cp lib/stream-m.jar StreamingServer server.conf.sample
3、ffmpeg采集 ffmpeg -f video4linux2 -s 320x240 -r 16 -i /dev/video0 -f oss -i /dev/dsp -g 52 -acodec libvorbis -ab 64k -vcodec libvpx -vb 448k -f webm http://192.168.2.128:8080/publish/first?password=secret
注: 192.168.2.128:8080是指的stream-m服务器。我的局域网地址是192.168.2.128
4、访问 http://192.168.2.128:8080/consume/first
目前看webm 很牛了,大有一统江山的味道。好多硬件厂商也支持webm了。
发表评论: