Ubuntu上实现办公室远程监控家中摄像头[Linux安全]
本文“Ubuntu上实现办公室远程监控家中摄像头[Linux安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
在办公室远程监控家中电脑摄像头,在巨大的Ubuntu 10.04上实现.
1安装软件:
代码:
sudo apt-get install ffmpeg
备份原始配制:
代码:
sudo mv /etc/ffserver.conf /etc/ffserver.conf_backup
编辑配制,把它改成下面的内容
代码:
sudo gedit /etc/ffserver.conf
代码:
Port 8090
# bind to all IPs aliased or not
BindAddress 0.0.0.0
# max number of simultaneous clients
MaxClients 1000
# max bandwidth per-client (kb/s)
MaxBandwidth 10000
# Suppress that if you want to launch ffserver as a daemon.
#NoDaemon
File /tmp/feed1.ffm
FileMaxSize 5M
# FLV output - good for streaming
# the source feed
Feed feed1.ffm
# the output stream format - FLV = FLash Video
Format flv
VideoCodec flv
# this must match the ffmpeg -r argument
VideoFrameRate 15
# generally leave this is a large number
VideoBufferSize 80000
# another quality tweak
VideoBitRate 200
# quality ranges - 1-31 (1 = best, 31 = worst)
VideoQMin 1
VideoQMax 5
VideoSize 352x288
# this sets how many seconds in past to start
PreRoll 0
# wecams don't have audio
Noaudio
# ASF output - for windows media player
# the source feed
Feed feed1.ffm
# the output stream format - ASF
Format asf
VideoCodec msmpeg4
# this must match the ffmpeg -r argument
VideoFrameRate 15
# generally leave this is a large number
VideoBufferSize 80000
# another quality tweak
VideoBitRate 200
# quality ranges - 1-31 (1 = best, 31 = worst)
VideoQMin 1
VideoQMax 5
VideoSize 352x288
# this sets how many seconds in past to start
PreRoll 0
# wecams don't have audio
Noaudio
运行:
代码:
ffserver
再开一终端,也可以让ffserver在后台运行:
代码:
ffmpeg -r 15 -s 352x288 -f video4linux2 -i /dev/video0 http://localhost:8090/feed1.ffm
在另一台电脑上,用支持网络的播放器翻开:
mms://xx.xx.xx.xx:8090/test.asf
xx.xx.xx.xx 为装有Ubuntu的公网ip 或域名.
路由器用户要初阶口映射或dmz主机
以上是“Ubuntu上实现办公室远程监控家中摄像头[Linux安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |