Install ffmpeg
来源:互联网 发布:织梦cms移动版静态化 编辑:程序博客网 时间:2024/05/17 23:05
The Tutorial reference from this link, but there had something different.
Update apt-get rep :
sudo apt-get update sudo apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev \ libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \ libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev
- Now make a directory for the source files that will be downloaded later in this guide:
mkdir ~/ffmpeg_sources
- Install Yasm:
sudo apt-get install yasm
Or compile:
cd ~/ffmpeg_sourceswget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gztar xzvf yasm-1.3.0.tar.gzcd yasm-1.3.0./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"makemake installmake distclean
- Install libx264:
sudo apt-get install libx264-dev
Or compile:
cd ~/ffmpeg_sourceswget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2tar xjvf last_x264.tar.bz2cd x264-snapshot*PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-staticPATH="$HOME/bin:$PATH" makemake installmake distclean
- Install libfdk-acc:
cd ~/ffmpeg_sourceswget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/mastertar xzvf fdk-aac.tar.gzcd mstorsjo-fdk-aac*autoreconf -fiv./configure --prefix="$HOME/ffmpeg_build" --disable-sharedmakemake installmake distclean
- Install libmp3lame:
sudo apt-get install libmp3lame-dev
Or Compile:
sudo apt-get install nasmcd ~/ffmpeg_sourceswget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gztar xzvf lame-3.99.5.tar.gzcd lame-3.99.5./configure --prefix="$HOME/ffmpeg_build" --enable-nasm --disable-sharedmakemake installmake distclean
- Install libopus:
sudo apt-get install libopus-dev
Or Compile:
cd ~/ffmpeg_sourceswget http://downloads.xiph.org/releases/opus/opus-1.1.tar.gztar xzvf opus-1.1.tar.gzcd opus-1.1./configure --prefix="$HOME/ffmpeg_build" --disable-sharedmakemake installmake clean
- Install libvpx:
cd ~/ffmpeg_sourceswget http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-1.4.0.tar.bz2tar xjvf libvpx-1.4.0.tar.bz2cd libvpx-1.4.0PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --disable-examples --disable-unit-testsPATH="$HOME/bin:$PATH" makemake installmake clean
- Install libfaac-dev:
sudo apt-get install libfaac-dev
- Install ffmpeg:
cd ~/ffmpeg_sourceswget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2tar xjvf ffmpeg-snapshot.tar.bz2cd ffmpegPATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \ --prefix="$HOME/ffmpeg_build" \ --pkg-config-flags="--static" \ --extra-cflags="-I$HOME/ffmpeg_build/include" \ --extra-ldflags="-L$HOME/ffmpeg_build/lib" \ --bindir="$HOME/bin" \ --enable-gpl \ --enable-libass \ --enable-libfdk-aac \ --enable-libfreetype \ --enable-libmp3lame \ --enable-libopus \ --enable-libtheora \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-libfaac \ --enable-nonfreePATH="$HOME/bin:$PATH" makemake installmake distcleanhash -r
- That’s over, Your newly compiled FFmpeg programs are in ~/bin, maybe you can export it to global env:
# for zsh shellecho 'export PATH=~/bin:$PATH' >> ~/.zshrc# for bash shellecho 'export PATH=~/bin:$PATH' >> ~/.bashrc
0 0
- Install ffmpeg
- linux install ffmpeg
- ffmpeg windows install
- Install FFmpeg on ubuntu
- Ffmpeg Install With Libx264 (H264)
- install ffmpeg on ubuntu 12.04
- Install ffmpeg on Amazon Linux
- Mac 下的FFmpeg Install
- Centos 7.3 Install ffmpeg 3.1
- ubuntu 9.10 compile and install FFMPEG
- compile and install ffmpeg on Ubuntu
- install opencv with ffmpeg on ubuntu
- FFmpeg Understanding(5. How to install GSM lib for FFMPEG?)
- Install FFmpeg and ffmpeg-php on CentOS Easily
- [置顶] Install FFmpeg and ffmpeg-php on CentOS Easily
- [zz]Install FFmpeg and x264 on Ubuntu Lucid Lynx 10.04
- Install FFmpeg and x264 on Ubuntu Lucid Lynx 10.04 LTS
- FFMPEG Install for CentOS 5
- PDF文档压缩
- html5 标签img学习(待更新)
- UnityVS(Visual Studio Tools For Unity)的安装与使用
- android HandlerThread源码解析
- CSU 1552( MiLLer_Rabin+二分图匹配)
- Install ffmpeg
- 数据库常用DDL
- leetcode笔记:Word Ladder
- [Linux] date的用法及格式化
- Struts2.properties属性文件中的devModel和DynamicMethodInvocation。。。Action中servlet对象的获取
- 并查集基础
- linux下零拷贝技术
- 建表 PowerDesigner使用
- C++Windows下SQLite简单封装