ubuntu 10.04 winff

29 篇文章 1 订阅

安裝winff後並不能直接把視頻文件轉換成xvid而是需要安裝

sudo apt-get install libavcodec-extra-52

 

ffmpeg (winff is the gui for that) comes with it's own libraries. You need libavcodec-unstripped-51 or libavcodec-

unstripped-52 or libavcodec-extra-52 (depending on which version of Ubuntu you are running).

 

ffmpeg好像也不能轉換成x264格式,google了一下,好像是

apt-get安裝的功能有限制,要自己下下載make install才可以。

 

 

參考:http://ubuntuforums.org/showpost.php?p=9868359&postcount=1289

 

Install the Dependencies
1. Uninstall x264, libx264-dev, and ffmpeg if they are already installed. Open a terminal and run the following (you can usually paste into a terminal with shift+ctrl+v ). Copy and paste the whole code box for each step .

Code:
sudo apt-get remove ffmpeg x264 libx264-dev

2. Get all of the packages you will need to install FFmpeg and x264 (you may need to enable the universe and multiverse repositories ):

Code:
sudo apt-get update
sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html /
libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev /
libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev


Install x264
3. Get the current source files, compile, and install.

Code:
cd
git clone git://git.videolan.org/x264.git
cd x264
./configure
make
sudo checkinstall --pkgname=x264 --pkgversion "2:0.`grep X264_BUILD x264.h -m1 | /
cut -d' ' -f3`.`git rev-list HEAD | wc -l`+git`git rev-list HEAD -n 1 | /
head -c 7`" --backup=no --default --deldoc=yes


Install LAME (optional)
5. This is used to encode mp3 audio. If you follow this step, add --enable-libmp3lame to the ./configure line in step 7.

Code:
sudo apt-get remove libmp3lame-dev
sudo apt-get install nasm
cd
wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz
tar xzvf lame-3.98.4.tar.gz
cd lame-3.98.4
./configure --enable-nasm --disable-shared
make
sudo checkinstall --pkgname=lame-ffmpeg --pkgversion="3.98.4" --backup=no --default /
--deldoc=yes

Install libvpx (optional)
6. This is used to encode VP8 video. If you follow this step, add --enable-libvpx to the ./configure line in step 7.

Code:
cd
git clone git://review.webmproject.org/libvpx.git
cd libvpx
./configure
make
sudo checkinstall --pkgname=libvpx --pkgversion="`date +%Y%m%d%H%M`-git" --backup=no /
--default --deldoc=yes


Install FFmpeg
7. Get the most current source files, compile, and install. Run "./configure --help" to see what other features you can enable/disable. Nightly FFmpeg snapshots are also available.

Code:
cd
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc /
--enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb /
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid /
--enable-x11grab
make
sudo checkinstall --pkgname=ffmpeg --pkgversion "4:SVN-r`LANG=C svn info | /
grep Revision | awk '{ print $NF }'`" --backup=no --default --deldoc=yes
hash x264 ffmpeg ffplay


Install qt-faststart (optional)
8. This is a useful tool included with FFmpeg that rearranges a file with H.264 video, "such that the moov atom is in front of the data, thus facilitating network streaming". Basically, it allows web movies to start playing before they are completely downloaded. Usage: qt-faststart input.foo output.foo .

Code:
cd ~/ffmpeg
make tools/qt-faststart
sudo checkinstall --pkgname=qt-faststart --pkgversion "4:SVN-r`svn info | grep Revision | /
awk '{ print $NF }'`" --backup=no --default --deldoc=yes install -D -m755 /
tools/qt-faststart /usr/local/bin/qt-faststart


Updating FFmpeg and x264
Development of FFmpeg and x264 is active and an occasional update can give you new features and bug fixes. To update FFmpeg and x264 you will need to remove the packages, make distclean , update the source, recompile, and install. To update x264:

Code:
sudo apt-get remove ffmpeg x264 libx264-dev libvpx
cd ~/x264
make distclean
git pull

Now compile x264 as shown earlier in the guide starting with the x264 ./configure line. You can update libvpx if you installed that too:

Code:
cd ~/libvpx
make clean
git pull

Now continue with the installation starting with the libvpx ./configure line. Now update FFmpeg:

Code:
cd ~/ffmpeg
make distclean
svn update

Finish the installation starting with the FFmpeg ./configure line.


Reverting Changes Made by This Guide
To remove FFmpeg/x264 and other packages added for this guide:

Code:
sudo apt-get remove x264 ffmpeg qt-faststart build-essential subversion git-core /
checkinstall nasm yasm texi2html libfaac-dev lame-ffmpeg libsdl1.2-dev libtheora-dev /
libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev

Lastly, delete the ffmpeg , x264 , lame , and libvpx directories in your home folder.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值