http://www.chineselinuxuniversity.net/courses/using/introductions/25004.shtml
DO NOT INSTALL ANY FFMPEG & X264 from REPOS!!
# apt-get install build-essential subversion git-core
(subversion is for fetching ffmpeg source; git is for x264 source)
# wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.2.tar.gz
# tar xzvf yasm-0.7.2.tar.gz
# cd yasm-0.7.2
#./configure && make && make install
(yasm is for building x264)
# git clone git://git.videolan.org/x264.git
# cd x264
# ./configure --enable-shared
# make && make install
(fetch & compile x264 library)
# svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
# cd ffmpeg
# ./configure --enable-gpl --enable-libx264
# make && make install
(fetch & compile ffmpeg with libx264 support)
# mkdir ~/.ffmpeg
# cp ~/ffmpeg/ffpresets/* ~/.ffmpeg
(copy the ffmpeg presets)
# ffmpeg -i infile -vcodec libx264 -vpre hq -b 1M -bt 1M outfile.mp4
(DONE!! You can now encode x264 videos with the presets via -vpre!!)
沒有留言:
張貼留言