首页 > 其他分享 >AVS最新安装教程。。。

AVS最新安装教程。。。

时间:2022-12-05 18:56:59浏览次数:43  
标签:教程 http ffmpeg tar 安装 AVS usr && local

1,安装环境包
yum install screen   -y
tar -cvf /www/web/lnmp/public_html/lnmp1.2-full.tar /www/web/lnmp/public_html/lnmp1.2-full
tar cvf /www/web/lnmp/public_html/lnmp1.2-full.tar lnmp1.2-full
tar cvf /www/web/lnmp/public_html/lnmp1.2-full.gz lnmp1.2-full
tar xvf FileName.tar
执行:screen -S lnmp 创建screen会话
1,安装环境包
 tar -xf  filename.tar.gz
或者tar -xvf filename.tar.gz
wget -c http://lnmp.ssc.gs/lnmp1.2-full.gz && tar -xvf lnmp1.2-full.gz && cd lnmp1.2-full && ./install.sh lnmp
wget -c http://lnmp.ssc.gs/lnmp1.2-full.gz && tar zxf lnmp1.2-full.gz && cd lnmp1.2-full && ./install.sh lnmp
(如果网络掉线,可以重新连接,再执行 screen -r lnmp 就会看到你的lnmp安装进程。)
2,安装视频解码包
执行:screen -S ffmpeg 创建screen会话
wget -c http://lnmp.ssc.gs/ffmpeginstaller.8.0.tar.gz && tar zxf ffmpeginstaller.8.0.tar.gz && cd ffmpeginstaller.8.0 && ./install.sh ffmpeg

wget -c http://mirror.ffmpeginstaller.com/old/scripts/ffmpeg8/ffmpeginstaller.8.0.tar.gz  && tar zxf ffmpeginstaller.8.0.tar.gz && cd ffmpeginstaller.8.0 && ./install.sh ffmpeg
(如果网络掉线,可以重新连接,再执行 screen -r ffmpeg 就会看到你的ffmpeg安装进程。)
3,
//////////////////// 
cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo  CentOS-Base.repo
yum update
rpm -Uhv http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
#64位系统 rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

安装 Install ffmpeg 等模块
yum install -y  automake autoconf  libtool libgcc gcc gcc-c++ libstdc++ libstdc++-devel compat-glibc compat-libstdc++-33 libevent libevent-devel ffmpeg ffmpeg-devel
yum install mplayer mencoder flvtool2 yamdi
//////////////

4.安装 FFMPEG-PHP
yum install ffmpeg-devel
cd /usr/local/src
wget http://lnmp.ssc.gs/source/ffmpeg-php/ffmpeg-php-0.6.0.tbz2 
tar jxvf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0
/www/php/bin/phpize
./configure --enable-shared --with-php-config=/www/php/bin/php-config
./configure --with-ffmpeg=/usr/local/bin/ffmpeg


make clean 
make
make install
////////////////////////
//编译出错请执行
sed -i 's/PIX_FMT_RGBA32/PIX_FMT_RGB32/g' ffmpeg_frame.c
make
报错:
make: *** [ffmpeg_movie.lo] Error 1
解决:
vim ffmpeg_movie.c

row 311: list_entry *le; 改为zend_rsrc_list_entry *le;
row 346: list_entry new_le;改为 zend_rsrc_list_entry new_le;
row 360: hashkey_length+1, (void *)&new_le, sizeof(list_entry),改为hashkey_length+1, (void *)&new_le,sizeof(zend_rsrc_list_entry),
///////////////////////
替换

php.ini
wget http://lnmp.ssc.gs/php.ini
cd  /usr/local/php/etc/
mv /usr/local/php/etc/php.ini /usr/local/php/etc/php.main
wget http://lnmp.ssc.gs/php.ini
//


///
4,1. NeroAACCodec install
cd /usr/local/src/
mkdir NeroAACCodec
cd NeroAACCodec
wget http://ftp6.nero.com/tools/NeroAACCodec-1.5.1.zip;unzip NeroAACCodec-1.5.1.zip 
unzip 
install -m 0755 linux/neroAacEnc /usr/bin/
//////////////////////////
4,2. Install mediainfo
#MediaInfo is a convenient unified display of the most relevant technical and tag data for video and audio files.
# cd /usr/local/src
For x86_64 Centos6
# wget http://downloads.sourceforge.net/zenlib/libzen0-0.4.29-1.x86_64.CentOS_6.rpm
# rpm -ivh libzen0-0.4.29-1.x86_64.CentOS_6.rpm
# wget http://sourceforge.net/projects/mediainfo/files/binary/libmediainfo0/0.7.64/libmediainfo0-0.7.64-1.x86_64.CentOS_6.rpm
# rpm -ivh libmediainfo0-0.7.64-1.x86_64.CentOS_6.rpm
# wget http://sourceforge.net/projects/mediainfo/files/binary/mediainfo/0.7.64/mediainfo-0.7.64-1.x86_64.CentOS_6.rpm
# rpm -ivh mediainfo-0.7.64-1.x86_64.CentOS_6.rpm

5,安装加优化插件

cd /root/lnmp1.2-full
./addons.sh
./addons.sh install eaccelerator
./addons.sh install opcache

http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat
http://cumulusclips.org/docs/install-ffmpeg-x264-on-centos/

6,修复XVID SUPPORT
Install MPLAYER (MENCODER)
MENCODER is a free command line video decoding, encoding and filtering tool released under the GNU General Public License.
# cd /usr/local/src
# wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
# tar jxvf all-20110131.tar.bz2
# mv /usr/local/src/all-20110131 /usr/local/lib/codecs/
# chmod -R 755 /usr/local/lib/codecs/
# mkdir /usr/local/src/tmp
# chmod 777 /usr/local/src/tmp
# export TMPDIR=/usr/local/src/tmp
# wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2
# tar jxf MPlayer-1.0rc4.tar.bz2
# cd MPlayer-1.0rc4
# make clean
#./configure && make && make install && ldconfig
//////////////
10. Compile Mencoder/Mplayer
cd /usr/local/src/
##Download source code
wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.1.tar.xz
##install binary codecs
wget https://www.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2
mkdir -p /usr/local/lib/codecs
tar -xjf essential-amd64-20071007.tar.bz2
yes |  cp -a essential-amd64-20071007/* /usr/local/lib/codecs/
ln -sf /usr/local/lib/codecs /usr/lib/codecs && ln -sf /usr/local/lib/codecs /usr/local/lib/win32 && ln -sf /usr/local/lib/codecs /usr/lib/win32

##unpack source code
tar -xJf MPlayer-1.1.1.tar.xz
##compile and install
cd MPlayer-1.1.1

./configure --prefix=/usr/local/mplayer \
--extra-cflags="-I/usr/include" \
--extra-cflags="-I/usr/local/x264/include" \
--extra-ldflags="-L/usr/lib" \
--extra-ldflags="-L/usr/local/x264/lib"

gmake && gmake install clean

 


--------------------------------

/usr/local/bin/ffmpeg
/usr/local/bin/mplayer
/usr/local/bin/mencoder
/usr/bin/flvtool2
/usr/local/bin/MP4Box
/usr/local/bin/yamdi
chown -R mysql:mysql /usr/local/mysql/
chmod -R 755 /usr/local/mysql/

标签:教程,http,ffmpeg,tar,安装,AVS,usr,&&,local
From: https://www.cnblogs.com/94YY/p/16953164.html

相关文章

  • 安装CKA考试环境(二)
    1.1安装前说明官方文档:https://kubernetes.io/docs/setup/production-environment/安装步骤:安装Runtime安装kubeadm和kubeletmaster节点初始化node节点配置CNI网......
  • WIN7 安装QT Creator
     1、到官网下载QT在线安装器,https://download.qt.io/official_releases/online_installers/2、注册或登陆之后,选择要安装的组件,Win7能选择的最新版本只能是5.15版本参......
  • 安装CKA考试环境(一)
    报了CKA考试,环境搭建顺便也学习一下。1.1下载ubuntu2022年12月4日,CKA考试系统版本为ubuntu20.04下载地址:https://ubuntu.com/download/server选择20.041.2虚拟机......
  • Pypi 超时或安装第三方库失败的解决办法
    一、使用国内镜像方案(推荐)经常在使用python的时候需要安装各种模块,而pip是很强大的模块安装工具,但是由于国外官方pypi经常被墙,导致不可用,所以我们最好是将自己使用的pip源......
  • ubuntu16.04 wordpress建站教程
    ubuntu16.04wordpress建站教程 image非常简单!!复制代码即可!服务器方面自选,我这里用的首都在线云主机(http://www.capitalonline.net/)(他家海外节点好便宜哈哈)首......
  • Docker安装
    教程https://www.runoob.com/docker/docker-tutorial.html主题以下讲解windows安装官网下载https://www.docker.com安装报错参考https://learn.microsoft.com/zh......
  • jupyter安装后new里没有tensorflow
    明明安装了tensorflow但是没有显示,于是记录一下怎么搞出来因为jupyter默认在base环境中,所以需要在pytorch中配置jupyter。1.打开AnacondaPrompt输入“condalist”查......
  • linux中nginx的安装
    【是什么】  nginx是一款高性能的http服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器。  由俄罗斯的程序设计师lgorSysoev所开发,官方测试nginx能够支撑5......
  • docker 安装mysql8
    1.环境准备1.centos7  2.安装包下载1.百度网盘下载链接:https://pan.baidu.com/s/1AfRUkiXD9Oee1hA5az9SXg提取码:gs7b 2.版本说明此安装包为dockermysql8......
  • MongoDB——linux中yum命令安装及配置
    一、创建mongodb-org-3.4.repo文件vi/etc/yum.repos.d/mongodb-org-3.4.repo  将下面内容添加到创建的文件中[mongodb-org-3.4]name=MongoDBRepositorybaseurl=htt......