Ubuntu/mint linux 安裝ffmpeg/x264/vlc/qt

Ubuntu/mint linux 安裝ffmpeg/x264/vlc/qt

Ubuntu/mint linux 安裝ffmpeg/x264/vlc/qt

 

拷貝來源:http://server506.webhostingpad.com/~sinantw1/charles/charles2.html
1.使用光碟片安裝Ubuntu系統,first user用rootroot,password用!@#$qazWSX
2.進系統GUI安裝ssh
sudo apt-get install openssh-server
3.更新apt source
sudo cp /etc/apt/sources.list /etc/apt/sources.list.ori
/etc/apt/sources.list內容改為
deb http://ftp.twaren.net/ubuntu/ precise main restricted
deb-src http://ftp.twaren.net/ubuntu/ precise main restricted
deb http://ftp.twaren.net/ubuntu/ precise-updates main restricted
deb-src http://ftp.twaren.net/ubuntu/ precise-updates main restricted
deb http://ftp.twaren.net/ubuntu/ precise universe
deb-src http://ftp.twaren.net/ubuntu/ precise universe
deb http://ftp.twaren.net/ubuntu/ precise-updates universe
deb-src http://ftp.twaren.net/ubuntu/ precise-updates universe
deb http://ftp.twaren.net/ubuntu/ precise multiverse
deb-src http://ftp.twaren.net/ubuntu/ precise multiverse
deb http://ftp.twaren.net/ubuntu/ precise-updates multiverse
deb-src http://ftp.twaren.net/ubuntu/ precise-updates multiverse
deb http://ftp.twaren.net/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://ftp.twaren.net/ubuntu/ precise-backports main restricted universe multiverse
deb http://ftp.twaren.net/ubuntu/ precise-security main restricted
deb-src http://ftp.twaren.net/ubuntu/ precise-security main restricted
deb http://ftp.twaren.net/ubuntu/ precise-security universe
deb-src http://ftp.twaren.net/ubuntu/ precise-security universe
deb http://ftp.twaren.net/ubuntu/ precise-security multiverse
deb-src http://ftp.twaren.net/ubuntu/ precise-security multiverse

4.apt update
sudo apt-get update

5.安裝ffmpeg
sudo apt-get -y install autoconf automake build-essential git libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev
mkdir ~/ffmpeg_sources
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xvzf yasm-1.2.0.tar.gz
cd yasm-1.2.0
sudo ./configure
sudo make && sudo make install
cd ~/ffmpeg_sources
git clone –depth 1 git://git.videolan.org/x264.git
cd x264
./configure –prefix=”$HOME/ffmpeg_build” –bindir=”$HOME/bin” –enable-static
make
make install
make distclean
cd ~/ffmpeg_sources
git clone –depth 1 git://github.com/mstorsjo/fdk-aac.git
cd fdk-aac
autoreconf -fiv
./configure –prefix=”$HOME/ffmpeg_build” –disable-shared
make
make install
make distclean
sudo apt-get -y install libmp3lame-dev
cd ~/ffmpeg_sources
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
tar xzvf opus-1.0.3.tar.gz
cd opus-1.0.3
./configure –prefix=”$HOME/ffmpeg_build” –disable-shared
make
make install
make distclean
cd ~/ffmpeg_sources
git clone –depth 1 http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure –prefix=”$HOME/ffmpeg_build” –disable-examples
make
make install
make clean
sudo apt-get -y install libavcodec-extra-53
cd ~/ffmpeg_sources
git clone –depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
PKG_CONFIG_PATH=”$HOME/ffmpeg_build/lib/pkgconfig”
export PKG_CONFIG_PATH
./configure –prefix=”$HOME/ffmpeg_build” –extra-cflags=”-I$HOME/ffmpeg_build/include” –extra-ldflags=”-L$HOME/ffmpeg_build/lib” –bindir=”$HOME/bin” –extra-libs=”-ldl” –enable-gpl –enable-libass –enable-libfdk-aac –enable-libmp3lame –enable-libopus –enable-libtheora –enable-libvorbis –enable-libvpx –enable-libx264 –enable-nonfree –enable-x11grab
make
make install
make distclean
hash -r
sudo apt-get -y install libav-tools

6.安裝VLC
sudo apt-get install -y vlc

7.安裝QT
sudo apt-get install -y qdevelop

8.安裝cifs
sudo apt-get install -y cifs-utils

9.mount
mount -t cifs -o “username=user,password=password” //192.168.0.94/F /m5

10.開vino
vino-preferences

11.開機執行vino
/usr/lib/vino/vino-server –sm-disable

6 thoughts on “Ubuntu/mint linux 安裝ffmpeg/x264/vlc/qt

  1. 真是詳細又複雜
    版主回覆:(02/15/2014 05:59:08 AM)
    這還用說 別人整理的當然詳細,
    有興趣可以去看參考來源

  2. List of Dependencies:
    yasm frei0r-plugins-dev gnutls-bin libgnutls-dev libass-dev libgsm1-dev libmp3lame-dev libopencv-dev libopenjpeg-dev libopus-dev libpulse-dev libschroedinger-dev libsoxr-dev libspeex-dev libtheora-dev libv4l-dev libvorbis-dev libvpx-dev libx264-dev libxvidcore-dev libopenal-dev libcdio-paranoia-dev
    Compilation options:
    ./configure –prefix=/usr –bindir=/usr/bin –datadir=/usr/share/ffmpeg –incdir=/usr/include/ffmpeg –libdir=/usr/lib/x86_64-linux-gnu/ –mandir=/usr/share/man –arch=x86_64 –optflags=’-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic’ –enable-bzlib –disable-crystalhd –enable-frei0r –enable-gnutls –enable-libass –enable-libcdio –enable-libdc1394 –disable-indev=jack –enable-libfreetype –enable-libgsm –enable-libmp3lame –enable-openal –enable-libopencv –enable-libopenjpeg –enable-libopus –enable-libpulse –enable-libschroedinger –enable-libsoxr –enable-libspeex –enable-libtheora –enable-libvorbis –enable-libv4l2 –enable-libvpx –enable-libx264 –enable-libxvid –enable-x11grab –enable-avfilter –enable-avresample –enable-postproc –enable-pthreads –disable-static –enable-shared –enable-gpl –disable-debug –disable-stripping –shlibdir=/usr/lib/x86_64-linux-gnu/ –enable-runtime-cpudetect

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *