mint linux17 64bit 安裝ffmpeg/x264/vlc/qt
mint linux17 64bit 安裝ffmpeg/x264/vlc/qt
sudo apt-get update
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
sudo 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
sudo 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
sudo make && make install
make distclean
cd ~/ffmpeg_sources
wget http://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2
tar xjvf libvpx-v1.3.0.tar.bz2
cd libvpx-v1.3.0
./configure –prefix=”$HOME/ffmpeg_build” –disable-examples
sudo make && make install
make clean
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
sudo make && make install
make distclean
hash -r
sudo apt-get -y install libav-tools
sudo apt-get install -y vlc
#create new Terminal
sudo su
cd /media/sf_Linuxmint_x64/
cp -R bin01 /home/jash/
cp -R Multicast_Playlist21_OK /home/jash/
cd /home/jash/
ls -l
chown -R jash:jash bin01 && chown -R jash:jash Multicast_Playlist21_OK/
ls -l
#create new Terminal
cd bin01/
ffmpeg -y -ss 0 -i ./Base.mp4 -f mpegts -vcodec libx264 -crf 25 -maxrate 2000k -bufsize 1500k -profile:v main -level 3.1 -preset medium -qp 0 -s 640×480 -r 30 -g 30 -subq 7 -bf 4 -partitions +parti4x4 -refs 4 -me_method hex -trellis 2 -b:v 1500k -deinterlace -acodec mp3 -strict experimental -b:a 48k -ar 44100 -threads 0 – |cvlc – –logo-file /home/chst01/5TVLOGO.png –logo-x=50 –logo-y=370 –sout ‘#transcode{sfilter=logo,fps=30,hurry-up,open-gop=normal,udp-caching=0,venc=x264{keyint=30,vqscale=1,vqmin=1,profile=baseline,partition=i4x4,level=2.1,bframes=4,subme=7,ref=4,qpmax=51,qpmin=1,me=hex,trellis=1},vcodec=h264,vb=850,vbv-maxrate=1200,vbv-bufsize=1500,vbv-init=100,width=640,height=480,deblock=0:0,deinterlace{bob},acodec=aac,aenc=ffmpeg{strict=-2},ab=48,samplerate=44100}:standard{mux=ts,access=”udp”,dst=”224.8.8.138:13811″}’
sudo apt-get install -y qdevelop
sudo apt-get install -y qt-sdk
sudo apt-get install -y qt4-dev-tools
sudo apt-get install -y qt4-designer
sudo apt-get install -y ctags
#open qdevelop set external path
3 thoughts on “mint linux17 64bit 安裝ffmpeg/x264/vlc/qt”
請問
aenc=ffmpeg{strict=-2}
aenc=ffmpeg{aac-profile=low}
功能有一樣嗎
另外 aenc=ffmpeg{strict=-2}是什麼意思
mint Linux 17 x64 install FFMPEG & x264 (2014/11/28)
資料來源:https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
sudo apt-get update
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-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
sudo apt-get install yasm
sudo apt-get install libx264-dev
sudo apt-get install unzip
cd ~/ffmpeg_sources
wget -O fdk-aac.zip https://github.com/mstorsjo/fdk-aac/zipball/master
unzip fdk-aac.zip
cd mstorsjo-fdk-aac*
autoreconf -fiv
./configure –prefix="$HOME/ffmpeg_build" –disable-shared
sudo make
sudo make install
sudo make distclean
sudo apt-get install libmp3lame-dev
sudo apt-get install libopus-dev
cd ~/ffmpeg_sources
wget http://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2
tar xjvf libvpx-v1.3.0.tar.bz2
cd libvpx-v1.3.0
PATH="$HOME/bin:$PATH" ./configure –prefix="$HOME/ffmpeg_build" –disable-examples
PATH="$HOME/bin:$PATH"
sudo make
sudo make install
sudo make clean
cd ~/ffmpeg_sources
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
–prefix="$HOME/ffmpeg_build" \
–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-nonfree \
–enable-x11grab
PATH="$HOME/bin:$PATH"
sudo make && sudo make install
sudo make distclean
sudo hash -r
#Persistent Environment Variables
echo "MANPATH_MAP $HOME/bin $HOME/ffmpeg_build/share/man" >> ~/.manpath
. ~/.profile
因為在安裝過程最後一步,無法正確執行"sudo hash -r",因此查了一下 hash到底是什麼東西
資料來源:http://www.cnblogs.com/linux-super-meng/p/3788739.html
linux系統下的hash指令:
說明:linux系統下會有一個hash表,當你剛開機時這個hash表為空,每當你執行過一條命令時,hash表會記錄下這條命令的路徑,就相當於緩存一樣。第一次執行命令shell解釋器默認的會從PATH路徑下尋找該命令的路徑,當你第二次使用該命令時,shell解釋器首先會查看hash表,沒有該命令才會去PATH路徑下尋找。
hash表的作用:大大提高命令的調用速率。