Log in

View Full Version : FFMPEG manual compilation


mindrunner
3rd June 2007, 16:20
Hi Guys,

Anyone tried compiling ffmpeg manually successfully with all the additional libraries?

Im having trouble compiling gpac for use with the x264 library.

akupenguin
3rd June 2007, 17:39
What does gpac have to do with ffmpeg? ffmpeg has it's own mp4 muxer, and doesn't use gpac. The x264 library also doesn't use gpac. Only x264cli uses gpac.

echo
4th June 2007, 10:08
Yeah, gpac is a bitch to compile. But you don't really need it for ffmpeg or x264.

mindrunner
4th June 2007, 11:58
Now im gonna shoot myself for not reading the readme properly.
I spent a whole weekend trying to compile GPAC
Sheesh, will try again today @#$%^&

Thanks for the pointer guys.

WalterK
4th June 2007, 17:59
I have never compiled gpac from scratch to work with ffmpeg and x264.
Heres what i have done and it works.
1) Install gpac from your distro's repostiory
2) download and compile the latest x264 svn (note i have never been able to get x264 to compile with --enable-mp4-output) remember to include in ./configure --enable-shared
3) download and compile the latest svn ffmpeg to enable x264 remember to include in ./configure --enable-x264 --enable-pthreads

mindrunner
5th June 2007, 06:55
Sigh...
In the middle of migrating to Fedora 7 now.
Will put up what i did to manually compile once i'm done with the migration.

mindrunner
10th June 2007, 11:05
Hi guys,

As said earlier, here's what i did to compile ffmpeg.
Any comments / suggestions will be most welcome.

I used Fedora 7. During installation, I selected the development libraries as well.

I'll start by compiling all the codec libraries required, and finally compiling ffmpeg with them included.

I prefer to keep my compiled stuff in a different directory, which makes it easier for me to uninstall them later on., and for me, i choose /opt/apps.

1. I first set this 2 variables; to make it easier to linker/compiler to find my libraries:-

export LD_LIBRARY_PATH=/opt/apps/lib
export LD_RUN_PATH=/opt/apps/lib


1. Compile & install libogg

./configure --prefix=/opt/apps --enable-shared
make
make install


2. Compile & install libvorbis

./configure --prefix=/opt/apps --with-ogg=/opt/apps --enable-shared
make
make install


3. Compiling SDL

./configure --prefix=/opt/apps --enable-shared
make
make install


4. Compling libtheora

./configure --prefix=/opt/apps --with-ogg=/opt/apps --with-vorbis=/opt/apps --with-sdl-prefix=/opt/apps --enable-shared
make
make install


5. Compile liba52

./configure --prefix=/opt/apps --enable-shared
make
make install


6. Compile libfaac

./bootstrap
./configure --prefix=/opt/apps --with-mp4v2 --enable-shared
make
make install


7. Compile libfaad2

./bootstrap
./configure --prefix=/opt/apps --enable-shared
make
make install


8. Compile x264

./configure --prefix=/opt/apps --enable-pthread --enable-shared
make
make install


9. Compile xvidcore

./configure --prefix=/opt/apps
make
make install


10. Compile lame

./configure --prefix=/opt/apps --enable-decode-layer1 --enable-shared
make
make install


11. Compile FFMpeg (like finally!!!!)

Compiling ffmpeg
./configure --prefix=/opt/apps \
--enable-shared --enable-gpl \
--enable-pthreads --enable-liba52 \
--enable-libfaac --enable-libfaad \
--enable-libmp3lame --enable-libogg \
--enable-libtheora --enable-libvorbis \
--enable-libx264 --enable-libxvid \
--extra-cflags=-I/opt/apps/include \
--extra-ldflags=-L/opt/apps/lib
make
make install

shevegen
10th June 2007, 22:49
The problem with gpac is that the guy who did it seems to have not enough knowledge of GNU autoconfigure tools.

It doesnt even work for me at all :(

Someone has to patch up gpac, or the x264 have to realize that gpac
lowers the fine quality of their encoder (because x264 wants gpac)

Drachir
10th June 2007, 23:28
The problem with gpac is that the guy who did it seems to have not enough knowledge of GNU autoconfigure tools.

Not everbody want to use automake, libtool or autoconf.


It doesnt even work for me at all :(

What doesn't work?
Why not build x264 without mp4 output?

mindrunner
11th June 2007, 11:12
The problem with gpac is that the guy who did it seems to have not enough knowledge of GNU autoconfigure tools.

It doesnt even work for me at all :(

Someone has to patch up gpac, or the x264 have to realize that gpac
lowers the fine quality of their encoder (because x264 wants gpac)

Nah, i just blame it on my noobness when it comes to compiling.
Getting gpac up & running would be a good learning experience though.
SHould make me more 'well-versed' in compiling other stuff.