xml地图|网站地图|网站标签 [设为首页] [加入收藏]

04上实现在办公室远程监控家中电脑摄像头,04下

来源:http://www.ccidsi.com 作者:集成经验 人气:199 发布时间:2019-10-17
摘要:在办公室远程监察和控制家Hong Kong中华电力有限集团脑录像头,在宏大的Ubuntu10.04上实现。 本文中的配置文件部分非作者原创,而是借鉴了客人配置文件后,修改的实操中使用的布署文

在办公室远程监察和控制家Hong Kong中华电力有限集团脑录像头,在宏大的Ubuntu 10.04上实现。

本文中的配置文件部分非作者原创,而是借鉴了客人配置文件后,修改的实操中使用的布署文件。本次推行对系统须要不严谨,使用普通的Ubuntu本子就能够,不须要Server版本, 并且本身也只是在宿舍局域网中贯彻,有标准的意中人能够在公网中落到实处,成功的话能够与自己分享一下,哈哈。

#搞了ffserver一天,也没查到错误,其实已起先容许就对了,只是播放器有的时候常。下列是一个成功的配备。用realplayer播放 成功

1装置软件:

!本文中的命令都在终端下输入!
1.设置软件,命令:
sudo apt-get install ffmpeg

# Port on which the server is listening. You must select a different

代码:

2.备份原始配置(幸免配置文件修改错误,备份防止万一),命令:
sudo mv /etc/ffserver.conf /etc/ffserver.conf_backup

# port from your standard HTTP web server if it is running on the same

sudo apt-get install ffmpeg

3.编辑配置,把它改为下边包车型客车剧情,命令:
sudo gedit /etc/ffserver.conf

# computer.

备份原始配制:

配备文件:

Port 8090

代码:

Port 8090
# bind to all IPs aliased or not
BindAddress 0.0.0.0
# max number of simultaneous clients
MaxClients 100
# max bandwidth per-client (kb/s)
MaxBandwidth 16000
# Suppress that if you want to launch ffserver as a daemon.
#NoDaemon

# Address on which the server is bound. Only useful if you have

sudo mv /etc/ffserver.conf /etc/ffserver.conf_backup

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 10M
</Feed>

# several network interfaces.

编排配制,把它改为上面包车型大巴剧情

# FLV output - good for streaming
<Stream test.flv>
# 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 30
# generally leave this is a large number
VideoBufferSize 160000
# another quality tweak
VideoBitRate 500
# 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
</Stream>

BindAddress 0.0.0.0

代码:

# ASF output - for windows media player
<Stream test.asf>
# the source feed
Feed feed1.ffm
# the output stream format - ASF
Format asf
VideoCodec msmpeg4
# this must match the ffmpeg -r argument
VideoFrameRate 30
# generally leave this is a large number
VideoBufferSize 160000
# another quality tweak
VideoBitRate 500
# 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
</Stream>

# Number of simultaneous HTTP connections that can be handled. It has

sudo gedit /etc/ffserver.conf

ps.代码部分,我们也得以品尝修改,到达自个儿最看中的效果

# to be defined *before* the MaxClients parameter, since it defines the

代码:

4.封存修改完代码配置文件后,运维,命令:ffserver

# MaxClients maximum limit.

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

5.再开贰个极限操作,可能’ctrl z’让ffserver在后台运营,命令:
ffmpeg -s 352x288 -f video4linux2 -i /dev/video0

MaxHTTPConnections 2000

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 5M
</Feed>

6.同样局域网内的另一台Computer上,用扶助网络的播放器(Windows Media Player)张开:
mms://xx.xx.xx.xx:8090/test.asf
(xx.xx.xx.xx 为装有ubuntu的ip 或域名)
此时,在播放器上,就能够实时见到ubuntu录像头所拍录的画面了。

# Number of simultaneous requests that can be handled. Since FFServer

# FLV output - good for streaming
<Stream test.flv>
# 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
</Stream>

自个儿在这里次实践中,体会到了随意对配备文件的修改,还是对ffmpeg的问询,武功都还大大相当不够,
本文意在共享基础措施,也招待大家来指正本文大多相差的地方

# is very fast, it is more likely that you will want to leave this high

# ASF output - for windows media player
<Stream test.asf>
# 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
</Stream>

!难点放在心上!
稍微朋友在操作时,开掘本身计算机上不设有 /dev/video0 那个驱动文件
这里笔者引入叁个小方法,ubuntu自带了一个cheese(吊菜子大头贴),使用一下以此软件,等显示屏上出示出拍戏镜头时,/dev/video0就早已自行创造了

# and use MaxBandwidth, below.

运行:

Linux下编写翻译FFmpeg之下载源文件并编写翻译 http://www.linuxidc.com/Linux/2012-02/54565.htm

MaxClients 1000

代码:

Linux 编写翻译进级 FFmpeg 步骤 http://www.linuxidc.com/Linux/2013-08/88190.htm

# This the maximum amount of kbit/sec that you are prepared to

ffserver

在Ubuntu下安装FFmpeg http://www.linuxidc.com/Linux/2012-12/75408.htm

# consume when streaming to clients.

再开一极端,也得以让ffserver在后台运营:

Linux 下编译FFmpeg 支持x264, x265  http://www.linuxidc.com/Linux/2016-04/129858.htm

MaxBandwidth 1000

代码:

VS2013编译FFmpeg  http://www.linuxidc.com/Linux/2016-08/134102.htm

# Access log file (uses standard Apache log file format)

ffmpeg -r 15 -s 352x288 -f video4linux2 -i /dev/video0

在 Mac OS X 情形中从源代码编写翻译安装 FFmpeg  http://www.linuxidc.com/Linux/2015-12/126093.htm

# '-' is the standard output.

在另一台计算机上,用扶植网络的播放器张开:
mms://xx.xx.xx.xx:8090/test.asf

Ubuntu 12.04下编译ffmpeg  http://www.linuxidc.com/Linux/2013-02/78857.htm

CustomLog -

xx.xx.xx.xx 为装有ubuntu的公网ip 或域名。

Ubuntu 14.04下PPA安装FFmpeg 2.2.2  http://www.linuxidc.com/Linux/2014-05/101322.htm

# Suppress that if you want to launch ffserver as a daemon.

路由器客户要起来口映射或dmz主机

FFmpeg常用基本命令  http://www.linuxidc.com/Linux/2016-10/136545.htm

NoDaemon

图片 1

FFmpeg 的详实介绍:请点这里
FFmpeg 的下载地址:请点这里

##################################################################

本文永恒更新链接地址:http://www.linuxidc.com/Linux/2017-02/141091.htm

# Definition of the live feeds. Each live feed contains one video

图片 2

# and/or audio sequence coming from an ffmpeg encoder or another

# ffserver. This sequence may be encoded simultaneously with several

# codecs at several resolutions.

<Feed feed1.ffm>

# You must use 'ffmpeg' to send a live feed to ffserver. In this

# example, you can type:

#

# ffmpeg

# ffserver can also do time shifting. It means that it can stream any

# previously recorded live stream. The request should contain:

# " must specify

# a path where the feed is stored on disk. You also specify the

# maximum size of the feed, where zero means unlimited. Default:

# File=/tmp/feed_name.ffm FileMaxSize=5M

File /tmp/feed1.ffm

FileMaxSize 20000K

# You could specify

# ReadOnlyFile /saved/specialvideo.ffm

# This marks the file as readonly and it will not be deleted or updated.

# Specify launch in order to start ffmpeg automatically.

# First ffmpeg must be defined with an appropriate path if needed,

# after that options can follow, but avoid adding the http:// field

#Launch ffmpeg

# Only allow connections from localhost to the feed.

ACL allow 127.0.0.1

</Feed>

##################################################################

# Example streams

# Multipart JPEG

#<Stream test.mjpg>

#Feed feed1.ffm

#Format mpjpeg

#VideoFrameRate 2

#VideoIntraOnly

#NoAudio

本文由68399皇家赌场发布于集成经验,转载请注明出处:04上实现在办公室远程监控家中电脑摄像头,04下

关键词: 68399皇家赌场 ffserver

最火资讯