Ffmpeg Mplayer一键编译脚本

2017年02月2日

原创内容,转载请注明出处: https://www.myzhenai.com.cn/post/2378.html https://www.myzhenai.com/thread-17964-1-1.html
关键词 ffmpeg mplayer
Ffmpeg是一款非常强大的音视频编解码软件, Mplayer同样也是一款功能强大的播放器. 我写了一个简单的编译安装的脚本, 这脚本只适用于Linux

#wget https://www.myzhenai.com.cn/script/ffmpeg.sh
#chmod +x ffmpeg.sh
#sh ffmpeg.sh 2>&1 | tee ffmpeg.log

 

#!/usr/bin/env bash
##############################################################################################################################################
# This is ffmpeg in mplayer install script tool
# Author: RucLinux 海南胡说 海南仙岛
# Website: www.myzhenai.com www.myzhenai.com.cn www.haikou-china.com jiayu.mybabya.com www.0898-shop.com
##############################################################################################################################################
yum install yasm* nasm* -y
wget https://www.ffmpeg.org/releases/ffmpeg-3.2.tar.gz
tar -xzvf ffmpeg-3.2.tar.gz
cd ffmpeg-3.2
./configure && make && make install
wget https://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
tar -jxvf all-20110131.tar.bz2
mkdir /usr/local/lib/codecs/
mv -f all-20110131/* /usr/local/lib/codecs/
wget https://www.mplayerhq.hu/MPlayer/releases/codecs/windows-all-20071007.zip
unzip windows-all-20071007.zip
mkdir /usr/local/lib/win32
mv windows-all-20071007/* /usr/local/lib/win32/
wget https://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.3.0.tar.gz
tar -zxvf MPlayer-1.3.0.tar.gz
cd mplayer-1.3.0
./configure --enable-gui --enable-menu --language=zh_CN,en --charset=utf8 && make && make install
printf "
##############################################################################################################################################
# This is ffmpeg in mplayer install script tool
# Author: RucLinux
# Website: www.myzhenai.com www.myzhenai.com.cn www.haikou-china.com jiayu.mybabya.com www.0898-shop.com
##############################################################################################################################################
"

 


sicnature ---------------------------------------------------------------------
Your current IP address is: 54.85.255.74
Your IP address location: 美国弗吉尼亚阿什本
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source http://www.myzhenai.com.cn/post/2378.html

2条评论

  • 海南胡说 2017年04月22日在7:35 上午

    这个是ffmpeg官方文档 https://ffmpeg.org/ffmpeg-all.html

  • 海南胡说 2017年10月25日在1:19 上午

    ./configure –enable-ladspa –enable-libass –enable-libbs2b –enable-libcaca –enable-libdc1394 –enable-libfontconfig –enable-libfribidi –enable-libgme –enable-libgsm –enable-libilbc –enable-libmodplug –enable-libmp3lame –enable-libopencv –enable-libopenjpeg –enable-libopus –enable-libpulse –enable-librtmp –enable-libsoxr –enable-libspeex –enable-libtheora –enable-libtwolame –enable-libvidstab –enable-libvorbis –enable-libvpx –enable-libwavpack –enable-libwebp –enable-libxavs –enable-libxcb –enable-libxcb-shm –enable-libxcb-xfixes –enable-libxcb-shape –enable-libxvid –enable-libx264 –enable-libx265 –enable-gpl –enable-shared –enable-pthreads –enable-yasm –extra-cflags=-I/usr/local/x264/include –extra-ldflags=-L/usr/local/x264/lib && make && make install

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注