CentOS 7.0,7.5linux
安裝EPEL Release,由於安裝須要使用其餘的repo源,因此須要EPEL支持vim
sudo yum install -y epel-release rpmspa
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 //若是出現缺乏Code提示,就執行此條命令.net
yum repolist //安裝完成以後,能夠查看是否安裝成功htm
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro //導入一個Codeblog
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm //安裝nux-dextop 源get
sudo yum repolist #查看repo源是否安裝成功it
sudo yum install -y ffmpegio
ffmpeg -versionast
//把mp4與mp3整合合併
ffmpeg -i test.mp4 -i test.mp3 -strict -2 ok.mp4
報異經常使用下面命令:
ffmpeg -y -i test.mp4 -i test.mp3 -c:v copy -af atrim=4:6,asetpts=PTS-STARTPTS -strict experimental -movflags +faststart ok.mp4
ffmpeg: error while loading shared libraries: libavdevice.so.56
a,查看配置:
[root@titan ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
b,添加配置路徑:/usr/local/lib/
[root@titan ~]#vim /etc/ld.so.conf
[root@titan ~]# cat /etc/ld.so.conf include ld.so.conf.d/*.conf /usr/local/lib/ 安裝部分參考轉載:https://www.linuxidc.com/Linux/2018-10/154934.htm