Help - Search - Members - Calendar
Full Version: How to compile ffmpeg with faac support on Windows
Hydrogenaudio Forums > Lossy Audio Compression > AAC > AAC - Tech
johlke
Hello everybody!

How did you compile your ffmpeg with faac support under Windows? With the help of this forum i succesfully compiled faac. What are the steps I have to do for compiling ffmpeg with faac? Where to locate the faac lib files? I know that I have to use --enable-faac with configure. At first the lib "faac" is not not found. After renaming the compiled libfaac.lib to faac.lib there are compiling errors as described in

http://www.hydrogenaudio.org/forums/index....t=&#entry369639

Thank you for your help in advance!

Best regards

johlke
johlke
Hello,

at first I thank you all who gave help to me compiling ffmpeg with faac
support.
I now have auto generated make files for faac, so that I could compile
ffmpeg with the option "--enable-faac".
My ffmpeg.exe now supports faac encoding.

But when I use the option --enable-shared to compile ffmpeg libraries
(libav*.dll) I still receive the message:

gcc -shared -Wl,-soname,avutil.dll.49 -Wl,--output-def,avutil.def -o
avutil.dll mathematics.o integer.o rational.o intfloat_readwrite.o -lm
-lfaac
d:\mingw\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lfaac
make[1]: *** [avutil.dll] Error 1
make[1]: Leaving directory
`/d/sources/delphi/test/buildffmpeg/buildffmpeg/ffmpeg/libavutil'
make: *** [lib] Error 2

What are the differences between compiling ffmpeg with/without option
"--enable-shared". Why does one configuration compile and another does not?

Best regards

Lars
hangman
Should be libfaac.a not .lib and it should be in say /mingw/lib or you could specify the location with -L. You could do this I guess with --extra-ldflags.
johlke
I didn't know that compiling ffmpeg.exe doesn't need the libfaac.a-file. When I now copied this file to MinGW/lib, I could compile ffmpeg in library mode.

Thank you very much for your help!

Best regards

johlke
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.