设为首页 收藏本站
查看: 608|回复: 0

[经验分享] Install FFmpeg on CentOS or RedHat EL 6.x

[复制链接]

尚未签到

发表于 2018-5-11 12:42:55 | 显示全部楼层 |阅读模式
  Install FFmpeg on CentOS or RedHat EL 6.x
  The following install steps have been proven to work on RedHat Enterprise Linux 6.2. You can check which version you are running with
  cat/etc/redhat-release
  Additionally, we assume that you are connected and registered with the Red Hat network and/or updated the system with the latest updates from the repositories.
  Follow this guide step by step!
  Install the additional repo
  rpm -Uhv http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
  Update repository
  yum -y update
  Install all necessary packages
  yum install SDL-devel a52dec a52dec-devel alsa-lib-devel faac faac-devel faad2 faad2-devel
  yum install freetype-devel giflib gsm gsm-devel imlib2 imlib2-devel lame lame-devel libICE-devel libSM-devel libX11-devel
  yum install libXau-devel libXdmcp-devel libXext-devel libXrandr-devel libXrender-devel libXt-devel

  yum install>  yum install amrnb-devel amrwb-devel
  yum install libtheora theora-tools
  yum install glibc gcc gcc-c++ autoconf automake libtool
  yum install ncurses-devel
  yum install libdc1394 libdc1394-devel
  yum install yasm nasm
  yum install libvpx*
  yum install git-core
  yum install opencore-amr-devel
  Install the essential codecs
  wget http://www8.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
  bunzip2 all-20110131.tar.bz2; tar xvf all-20110131.tar
  mkdir /usr/local/lib/codecs/
  mkdir /usr/local/lib64/codecs/
  cp all-20110131/* /usr/local/lib/codecs/
  cp all-20110131/* /usr/local/lib64/codecs/
  chmod -R 755/usr/local/lib/codecs/
  chmod -R 755/usr/local/lib64/codecs/
  Install LibOgg
  wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz
  tarxzvf libogg-1.3.0.tar.gz
  cdlibogg-1.3.0
  ./configure
  make
  makeinstall
  Install Libvorbis
  wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz
  tarxzvf libvorbis-1.3.3.tar.gz
  cdlibvorbis-1.3.3
  ./configure
  make
  makeinstall
  Install Libtheora
  wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
  tarxzvf libtheora-1.1.1.tar.gz
  cdlibtheora-1.1.1
  ./configure
  make
  makeinstall
  Install Libvpx
  git clone http://git.chromium.org/webm/libvpx.git
  cdlibvpx
  ./configure--enable-shared --extra-cflags=-fPIC
  make
  makeinstall
  Install Aacenc
  wget http://downloads.sourceforge.net/opencore-amr/vo-aacenc-0.1.2.tar.gz
  tarxzvf vo-aacenc-0.1.2.tar.gz
  cdvo-aacenc-0.1.2
  ./configure--enable-shared
  make
  makeinstall
  Install X264
  git clone git://git.videolan.org/x264.git
  cd x264
  ./configure --enable-shared --extra-cflags=-fPIC --extra-asflags=-D__PIC__
  make
  make install
  Note: (Sometimes the network might be down. Then you can also grab it via wget at ftp://ftp.videolan.org/pub/videolan/x264/snapshots/last_stable_x264.tar.bz2)
  Configure Libraries
  exportLD_LIBRARY_PATH=/usr/local/lib/
  echo/usr/local/lib> /etc/ld.so.conf.d/custom-libs.conf
  ldconfig
  Compile FFmpeg (the configure options have to be on one line)
  git clone git://source.ffmpeg.org/ffmpeg.git
  cd ffmpeg
  git checkout n1.2
  ./configure --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac \
  --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --disable-ffplay \
  --enable-shared --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --extra-cflags=-fPIC
  make
  make install
  (The --arch=x86_64 option should only be used if you are on a 64Bit System!)
  You can also use their Github repository at https://github.com/FFmpeg/FFmpeg.git.
  That's it. This should give you a full functional FFMpeg installation for Razuna. Test it now with;
  ffmpeg
  This should give you the following back (yours might vary a bit);
  FFmpeg version SVN-r20525, Copyright (c) 2000-2009Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-nonfree --enable-postproc --enable-libfaad --enable-avfilter
  --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac
  --disable-ffserver --disable-ffplay --enable-libamr-nb --enable-libamr-wb --enable-libtheora
  --enable-libvorbis --disable-ffplay --enable-shared
  libavutil     50. 4. 0/ 50. 4. 0
  libavcodec    52.39. 0/ 52.39. 0
  libavformat   52.39. 2/ 52.39. 2
  libavdevice   52. 2. 0/ 52. 2. 0
  libavfilter    1. 8. 0/  1. 8. 0
  libswscale     0. 7. 1/  0. 7. 1
  libpostproc   51. 2. 0/ 51. 2. 0
  Try to convert a movie with;
  ffmpeg -i movie.mov -vcodec libx264 -vpre hq -acodec libfaac movie.mp4

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-458704-1-1.html 上篇帖子: redhat/centos使用service控制启动与关闭 下篇帖子: redhat4.8 的环境配置
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表