I have been trying to compile a version of VLC which would correctly stream and transcode media with the settings of MPEG4 + AAC (video/audio). The normal response from package versions is the following:
Code:
p, li { white-space: pre-wrap; } Streaming / Transcoding failed:
VLC could not open the encoder.
Ok, so using the a guide constructed by one of the VLC devs I created a script to install and compile everything under the sun necessary for VLC in 9.04.
Code:
#!/bin/bash
#
# http://juliensimon.blogspot.com/2008/12/howto-compiling-ffmpeg-x264-mp3-xvid.html
mkdir /opt/build
cd /opt/build/
apt-get install subversion git git-core -y
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list
apt-get update
apt-get install medibuntu-keyring --force-yes -y
apt-get update
apt-get install libgpac-dev nasm libfaac-dev libfaac0 libfaad-dev libfaad0 libschroedinger-dev libtheora-dev libtheora0 libvorbis-dev libvorbis0a libvorbisenc2 libvorbisfile3 libxv-dev libxvmc-dev libmp3lame-dev libmp3lame0 libgsm-tools libgsmme-dev libdirac-dev libdirac0c2a libdc1394-13 libdc1394-13-dev libopenjpeg-dev libopenjpeg2 libspeex-dev libspeex1 libspeexdsp-dev libspeexdsp1 libamrnb-dev libamrwb-dev g++ libavc1394-dev libraw1394-dev libdc1394-13-dev libdvdread-dev libdvdnav-dev libdvdcss2 libdvdcss-dev libfaad-dev libtwolame-dev liba52-dev libvcdinfo-dev libiso9660-dev libcddb2-dev libflac-dev libogg-dev libvorbis-dev liblua5.1-0-dev libgnomevfs2-dev libtag1-dev libqt4-dev libfribidi-dev libhal-dev libmtp-dev libshout3-dev libdvbpsi5 libdvbpsi5-dev libv4l-dev zvbi libzvbi-dev libpulse-dev libxcb-keysyms0-dev --force-yes -y
apt-get upgrade -y
wget http://transact.dl.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz
tar xvf opencore-amr-0.1.2.tar.gz
rm opencore-amr-0.1.2.tar.gz
cd opencore-amr-0.1.2
./configure
make
#checkinstall --fstrans=no --install=yes --pkgname="libopencore-amr" --pkgversion="0.1.2" --backup=no --default
#ldconfig
make install
cd ..
wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.2.tar.gz
tar xvfz yasm-0.7.2.tar.gz
rm yasm-0.7.2.tar.gz
cd yasm-0.7.2
./configure --prefix=/usr/local
make
sudo make install
cd ..
svn co svn://svn.mplayerhq.hu/nut/src/trunk/ nut
cd nut
make
make install
cd ..
git clone git://git.videolan.org/x264.git
cd x264
./configure --prefix=/usr/local --enable-shared
make
#checkinstall --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`" --backup=no --default
make install
cd ..
wget http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.gz
tar xvfz xvidcore-1.2.2.tar.gz
rm xvidcore-1.2.2.tar.gz
cd xvidcore/build/generic
./configure --prefix=/usr/local
make
make install
cd ..
cd ..
cd ..
cd ffmpeg
./configure --prefix=/usr/local --enable-gpl --enable-nonfree --enable-shared --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-x11grab --enable-bzlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libmp3lame --enable-libnut --enable-libschroedinger --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib
#--enable-libtheora
# --enable-libgsm
make
make install
cd ..
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
ldconfig
# http://juliensimon.blogspot.com/2009/04/howto-compiling-vlc-099-live555-all.html
cd /opt/build/
wget http://ovh.dl.sourceforge.net/sourceforge/mad/libmad-0.15.1b.tar.gz
tar xvfz libmad-0.15.1b.tar.gz
rm libmad-0.15.1b.tar.gz
cd libmad-0.15.1b
./configure --prefix=/usr/local
#
cp /home/edwin/Desktop/Makefile /opt/build/libmad-0.15.1b/Makefile
#
make
make install
cd ..
wget http://download.videolan.org/pub/videolan/libdca/0.0.5/libdca-0.0.5.tar.bz2
bzip2 -d libdca-0.0.5.tar.bz2
tar xvf libdca-0.0.5.tar
rm libdca-0.0.5.tar
cd libdca-0.0.5
./configure --prefix=/usr/local
make
make install
cd ..
wget http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz
tar xvfz libmpeg2-0.5.1.tar.gz
rm libmpeg2-0.5.1.tar.gz
cd libmpeg2-0.5.1
./configure --prefix=/usr/local
make
make install
cd ..
wget http://developer.kde.org/~wheeler/files/src/taglib-1.5.tar.gz
tar xvfz taglib-1.5.tar.gz
rm taglib-1.5.tar.gz
cd taglib-1.5
./configure --prefix=/usr/local
make
make install
cd ..
wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz
tar xvfz live555-latest.tar.gz
rm live555-latest
cd live
./genMakefiles linux
make
cd ..
cp -r live /usr/lib
wget http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.0.tar.gz
tar xvf qt-everywhere-opensource-src-4.6.0.tar.gz
rm qt-everywhere-opensource-src-4.6.0.tar.gz
cd qt-everywhere-opensource-src-4.6.0/
./configure
make
make install
cd ..
wget http://download.videolan.org/pub/videolan/vlc/1.0.4/vlc-1.0.4.tar.bz2
bzip2 -d vlc-1.0.4.tar.bz2
tar xvf vlc-1.0.4.tar
rm vlc-1.0.4.tar
cd vlc-1.0.4
cp -r /opt/build/ffmpeg extras
cp -r /opt/build/x264 extras
cp -r /usr/lib/live extras
ls extras
./configure --prefix=/usr/local --with-x264-tree=extras/x264 --with-live555-tree=extras/live --enable-release --enable-switcher --enable-shout --enable-dc1394 --enable-dv --enable-dvdread --enable-v4l --enable-pvr --enable-gnomevfs --enable-vcdx --enable-faad --enable-twolame --enable-real --enable-realrtsp --enable-flac --enable-tremor --enable-tarkin --enable-theora --enable-ogg --enable-vorbis --enable-a52 --enable-gnomevfs --enable-dca
make
make install
When I run this script (and come back 8 hours later), VLC is compiled but it crashes on playback of a test .avi.
Main point and question being, what do I have to do to enable VLC to stream and transcode any media into the MPEG4 + AAC format?
BTW, I have tried this thread --> http://ubuntuforums.org/showthread.php?t=786095 with a fresh install on 9.10 and still no dice.
Bookmarks