Instructions for compiling VLC with VC-1 (WMV9) support under Ubuntu Breezy

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:[email protected]:/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://USERNAME:PWD@www.smpte-vc1.org/TrialPublication/Decoder/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 $ cd vlc-trunk ; wget -O - http://nanocrew.net/sw/vlc-libvc1.diff patch -p0 $ ./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