how to build vlc with aac (mp4a) and mp3 support
Posted: 10 Jan 2009 19:55
I wanted to build vlc with x264, aac and mp3 support.
I have debian 'lenny' testing, and added the debian-multimedia repository.
I have installed the vlc build-deps (with apt-get).
I have installed the debian multimedia repos versions of libx264, libfaac and libmp3lame.
I have built and installed x264 and ffmpeg from source.
ffmpeg is able to encode video's to mp4 with h264 video and aac audio. I also recoded some aac audio files to mp3.
This is what is says when run:
I downloaded the vlc source (v 0.9.8a).
I configured with these options:
(most taken from and older debian source package)
I added the CF and LD flag so the build processes can find the x264 and ffmpeg libs and include files.
After building and installing it turns out, vlc can encode h264, but doesn't know how to encode aac/mp4a nor mp3.
Strange thing is that when I run:
./configure --help
there are no options regarding mp4a, aac (except libfaad (aac decodig)) or mp3.
marc@thirdworld:/usr/src/vlc-0.9.8a$ ./configure --help | grep mp3
marc@thirdworld:/usr/src/vlc-0.9.8a$ ./configure --help | grep aac
marc@thirdworld:/usr/src/vlc-0.9.8a$ ./configure --help | grep mp4
so how do I tell the build process to enable these capabilities.
Anyway when I run vlc, it says:
So what do I do to enable mp3 and aac encoding?
I have debian 'lenny' testing, and added the debian-multimedia repository.
I have installed the vlc build-deps (with apt-get).
I have installed the debian multimedia repos versions of libx264, libfaac and libmp3lame.
I have built and installed x264 and ffmpeg from source.
ffmpeg is able to encode video's to mp4 with h264 video and aac audio. I also recoded some aac audio files to mp3.
This is what is says when run:
Code: Select all
ffmpeg
FFmpeg version SVN-r16517, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-pthreads --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-gpl --enable-postproc --enable-swscale --extra-cflags=-I/usr/local/lib --extra-ldflags=-L/usr/local/lib
libavutil 49.12. 0 / 49.12. 0
libavcodec 52.10. 0 / 52.10. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jan 10 2009 14:01:02, gcc: 4.3.2
I configured with these options:
(most taken from and older debian source package)
Code: Select all
./configure \
--enable-release \
--enable-libtool \
--disable-gnome \
--disable-gtk \
--disable-familiar \
--disable-fb \
--enable-ggi \
--enable-sdl \
--enable-esd \
--disable-qt \
--enable-mad \
--enable-arts \
--enable-jack \
--enable-lirc \
--enable-a52 \
--enable-aa \
--enable-dvbpsi \
--enable-mozilla \
--disable-kde \
--enable-mp4 \
--enable-dvb \
--disable-satellite \
--enable-ogg \
--enable-vorbis \
--enable-wxwidgets \
--with-wx-config=wx-config \
--disable-slp \
--enable-flac \
--disable-skins \
--disable-basic-skins \
--disable-skins2 \
--enable-freetype \
--enable-mkv \
--enable-speex \
--enable-caca \
--disable-live555 \
--enable-libmpeg2 \
--enable-dca \
--enable-fribidi \
--enable-cdio \
--enable-mod \
--enable-theora \
--enable-modplug \
--enable-dvdnav \
--enable-gnutls \
--enable-ffmpeg \
--with-ffmpeg-mp3lame \
--with-ffmpeg-faac \
--with-ffmpeg-config-path=/usr/local/bin/ffmpeg-config \
--enable-ncurses \
--enable-smb \
--disable-gnomevfs \
--enable-bonjour \
--enable-mpc \
--enable-vcd \
--enable-vcdx \
--enable-xosd \
--enable-twolame \
--enable-notify \
--enable-faad \
--enable-mediacontrol-bindings \
--enable-x264 \
CFLAGS=-I/usr/local/lib \
LDFLAGS=-L/usr/local/lib
After building and installing it turns out, vlc can encode h264, but doesn't know how to encode aac/mp4a nor mp3.
Strange thing is that when I run:
./configure --help
there are no options regarding mp4a, aac (except libfaad (aac decodig)) or mp3.
marc@thirdworld:/usr/src/vlc-0.9.8a$ ./configure --help | grep mp3
marc@thirdworld:/usr/src/vlc-0.9.8a$ ./configure --help | grep aac
marc@thirdworld:/usr/src/vlc-0.9.8a$ ./configure --help | grep mp4
so how do I tell the build process to enable these capabilities.
Anyway when I run vlc, it says:
Code: Select all
VLC media player 0.9.8a Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--enable-release' '--enable-libtool' '--disable-gnome' '--disable-gtk' '--disable-familiar' '--disable-fb' '--enable-ggi' '--enable-sdl' '--enable-esd' '--disable-qt' '--enable-mad' '--enable-arts' '--enable-jack' '--enable-lirc' '--enable-a52' '--enable-aa' '--enable-dvbpsi' '--enable-mozilla' '--disable-kde' '--enable-mp4' '--enable-dvb' '--disable-satellite' '--enable-ogg' '--enable-vorbis' '--enable-wxwidgets' '--with-wx-config=wx-config' '--disable-slp' '--enable-flac' '--disable-skins' '--disable-basic-skins' '--disable-skins2' '--enable-freetype' '--enable-mkv' '--enable-speex' '--enable-caca' '--disable-live555' '--enable-libmpeg2' '--enable-dca' '--enable-fribidi' '--enable-cdio' '--enable-mod' '--enable-theora' '--enable-modplug' '--enable-dvdnav' '--enable-gnutls' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-config-path=/usr/local/bin/ffmpeg-config' '--enable-ncurses' '--enable-smb' '--disable-gnomevfs' '--enable-bonjour' '--enable-mpc' '--enable-vcd' '--enable-vcdx' '--enable-xosd' '--enable-twolame' '--enable-notify' '--enable-faad' '--enable-mediacontrol-bindings' '--enable-x264' 'CFLAGS=-I/usr/local/lib' 'LDFLAGS=-L/usr/local/lib'
[00000001] main libvlc debug: translation test: code is "C"