SledgeHammer_999
30th January 2010, 13:39
Hi,
I have compiled ffmpeg and ffms svn snapshots under linux(ubuntu 9.10 64bit). At the configure of each I used "--prefix=/home/<user>/Desktop/builds".
I want to compile x264 with ffms2 support but I don't know how to make configure to look in "/home/<user>/Desktop/builds" for ffms2. It currently says that x264 will be build without ffms. What do I do?
buzzqw
30th January 2010, 13:46
this is very hack&slash.. but work on may ubuntu 9.10 64bit
i just create a batch file as is (tune folders to your needs)
cd /home/<user>/dev/ffmpeg
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-pthreads --enable-gpl --enable-postproc --enable-memalign-hack --enable-runtime-cpudetect --disable-devices --disable-filters --disable-encoders --disable-muxers --disable-network --disable-outdevs --disable-decoder=aac,ac3,adpcm_*,alac,als,ape,atrac?,cook,dca,dsicinaudio,dxa,eac3,flac,interplay_dpcm,mlp,mp1,mp2,mp3,mp3*,mpc?,pcm_*,qcelp,ra_*,sipr,truehd,truespeech,tta,vorbis,wavpack,wma*,twinvq --disable-demuxer=aac,ac3,pcm_*,ape,amr,ass,au,avs,dts,eac3,flac,mp3,mpc,mpc8,truehd,tta,w64,wav,wv --disable-parser=aac,ac3,dca,mlp,mpegaudio --prefix=/usr/local --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib"
make -j5
sudo make install
cd /home/<user>/dev/x264
rm -r x264
git clone git://git.videolan.org/x264.git x264
cd x264
./configure --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib"
make -j5
sudo make install
it will download latest ffmpeg , build it only as decoder, then download x264 and compile it
EDIT: my bad. this instruction are for lavf support!
BHH
Kovensky
30th January 2010, 14:06
Latest x264 now supports using pkg-config to find ffms2. You also need the latest ffms2 checkout (at least r272).
cd $HOME/dev/x264
PKG_CONFIG_PATH="$HOME/Desktop/builds/lib/pkgconfig" ./configure
SledgeHammer_999
30th January 2010, 14:19
@Kovensky
cool but I already figured it out from buzzqw
So another method is:
./configure --prefix=/home/<user>/Desktop/builds --extra-cflags="-I/home/<user>/Desktop/builds/ffmpeg/include -I/home/<user>/Desktop/builds/ffms/include" --extra-ldflags="-L/home/<user>/Desktop/builds/ffmpeg/lib -L/home/<user>/Desktop/builds/ffms/lib"
Caution -I is a capital i
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.