1.安裝epel-release
(參考 https://www.jianshu.com/p/86d16189832e)
運行指令:yum -y install epel-release
2.安裝nux存儲庫
運行指令:
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
3.安裝ffmpeg和ffmpeg -devel軟件包
運行指令:yum install ffmpeg ffmpeg-devel -y
(漫長等待)
ide
若是出現下面這種異常
打開/etc/yum.repos.d/epel.repo,將
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
修改成(即第三行的註釋去掉,把第四行加上註釋)
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
再清理源,再從新安裝
yum clean all
yum install ffmpeg ffmpeg-devel -y
4.安裝結束後,須要查看一下ffmpeg的版本,確保安裝正確。
運行指令:ffmpeg -version
url
若是出現上述截圖表示ffmpeg的存儲庫安裝成功3d
取海康攝像頭rtsp流腳本
ffmpeg -i rtsp://admin:PFVIDE@192.168.0.119/Streaming/Channels/101 -c copy -map 0 -f segment -segment_atclocktime 1 -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 /usr/local/fczn/%Y%m%d%H%M%S.mp4orm
三離:fromwall /usr/local/video/fromwall
擋鼠板:ratplate /usr/local/video/ratplate
手部消毒:disinfectionhand /usr/local/video/disinfectionhand
人體消毒:disinfectionhuman /usr/local/video/disinfectionhuman視頻
帳號 密碼 IP 錄製10秒 配置攝像頭的存儲文件路徑和命名方式blog