February 28,2006
Compiling VLC with VC-1 (WMV9) support under Ubuntu Breezy
This is a modification from So sue me
Platfrom : ubuntu 5.10 i386
install dependencies available from the Ubuntu repositories (main and universe)
$
sudo apt-get install libwxgtk2.6-dev libdvbpsi3-dev libmpeg2-4-dev
libmad0-dev libasound2-dev libesd0-dev x11proto-video-dev libdvdnav-dev
liba52-0.7.4-dev libflac-dev libfreetype6-dev libid3tag0-dev libogg-dev
libpng12-dev libspeex-dev libtheora-dev libvorbis-dev libxml2-dev
zlib1g-dev gcc g++ automake1.9 autoconf libtool subversion cvs
libx11-dev
Install libdvdcss (DVD support)
$ mkdir ~/videolan ; cd ~/videolan
$ wget http://downloads.videolan.org/pub/videolan/vlc/0.8.2/contrib/libdvdcss-1.2.8.tar.bz2
$ tar -jxvf libdvdcss-1.2.8.tar.bz2 ; cd libdvdcss-1.2.8
$ ./configure --prefix=/usr ; make ; sudo make install
Compile faad2 (AAC support)
$ cd ~/videolan ; wget http://downloads.videolan.org/pub/videolan/vlc/0.8.2/contrib/faad2-20040923.tar.bz2
$ tar -jxvf faad2-20040923.tar.bz2 ; cd faad2-20040923
$ ./configure --prefix=/usr ; cd libfaad ; make
Compile ffmpeg (support for H264 and many other codecs)
$ cd ~/videolan ; cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
$ cd ffmpeg ; ./configure --enable-pp --enable-gpl ; make
Compile libvc1 (WMV9 support)
$ cd ~/videolan ; wget http://nanocrew.net/sw/libvc1-1.0.tar.gz ; tar -zxvf libvc1-1.0.tar.gz
$ wget http://www.multimedia.cx/VC1_reference_decoder_release6.zip
$ unzip VC1_reference_decoder_release6.zip
$ cp VC1_reference_decoder_release6/decoder/*.[ch] libvc1-1.0/src/.
$ cp VC1_reference_decoder_release6/shared/*.[ch] libvc1-1.0/src/.
$ cd libvc1-1.0 ; ./bootstrap ; ./configure --prefix=/usr ; make
Install VLC
$ cd ~/videolan ; svn co svn://svn.videolan.org/vlc/trunk vlc-trunk ( or you can get source snapshot, by the way, I use snapshot-20060227)
$ cd vlc-trunk ; wget -O - http://nanocrew.net/sw/vlc-libvc1.diff | patch -p0 (choose n, if it ask for your confirm)
$ ./bootstrap ; ./configure --with-ffmpeg-tree=../ffmpeg
--enable-faad --with-faad-tree=../faad2-20040923 --enable-esd
--enable-flac --enable-theora --enable-libvc1
--with-libvc1-tree=../libvc1-1.0 --disable-hal
$ make ; sudo make install
Enjoy It!!
Make VLC play WMV9 (Fedora) without VC1
1. download win32codec
You can find here.
Download "essential codecs package", and then uncompress in /usr/lib/win32 or /usr/local/lib/win32
2. update your wxGTK to >2.6.2 (use freshrpms, suggested)
3. install dependencies
yum install libdvbpsi-devel mpeg2dec-devel libmad-devel libdvdnav-devel libdvdcss-devel a52dec-devel flac-devel freetype-devel libid3tag-devel libogg-devel libtheora-devel libvorbis-devel zlib-devel faad2-devel
4. download ffmpeg
$cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
$ cd ffmpeg ; ./configure --enable-pp --enable-gpl ; make
5. download the newest vlc source here
Uncompressed first, and then use the following command
$ ./bootstrap ; ./configure --with-ffmpeg-tree={the dir you put ffmpeg} --enable-faad
--with-faad-tree=../faad2-20040923 --enable-esd --enable-flac
--enable-theora --disable-hal
$ make
ENJOY IT!!
...繼續閱讀