Compilation of ffmpeg with libfaac

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
mixray
Blank Cone
Blank Cone
Posts: 22
Joined: 13 Feb 2004 16:11
Location: Toronto, Canada

Compilation of ffmpeg with libfaac

Postby mixray » 23 Mar 2004 22:16

Hi all!

I tried to compile the ffmpeg under RedHat9 with libfaac support (--enable-libfaac option)
The compilation failed with error:

gcc -Wl,--warn-common -rdynamic -g -o ffmpeg_g ffmpeg.o cmdutils.o -L./libavformat -lavformat -L./libavcodec -lavcodec -lm -lz -ldl -lfaac
./libavcodec/libavcodec.so: undefined reference to `please_use_av_log'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1

May be somebody knowanything about it?

Thank you for your answer.

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 24 Mar 2004 01:50

In common.h of the ffmpeg package:
#define printf please_use_av_log
#define fprintf please_use_av_log

Looks like it pops up if someone tries to use print statements in the code -- purposefully tell people that they should be writing to the log.

myersge1
Blank Cone
Blank Cone
Posts: 14
Joined: 12 May 2004 16:43

Postby myersge1 » 18 May 2004 23:01

I have vlc v0.7.1 and I want to transcode from MPEG-2 to MPEG-4 (faac & mp4v). I attempted to recompile ffmpeg with libfaac support but afterwards when I ran vlc with:

vlc mpeg-2.mpg --sout '#transcode{acodec=aac,ab=32,vcodec=mp4v,vb=128,
width=320,height=240}:std{access=file,mux=mp4,url=mpeg-2.mp4}'

I still got:

[00000218] stream_out_transcode private error: cannot open encoder
[00000218] stream_out_transcode private error: cannot create audio chain
[00000227] main packetizer error: cannot create packetizer output

First of all, is 'aac' the proper acodec? Also, I notice that ffmpeg and faac were installed as RPM's as part of the original vlc install and I haven't uninstalled them. Should the RPM's be uninstalled first? Finally, do I need to also recompile vlc?

This is the process I went through. Please let me know where I screwed up:

- download tar from ffmpeg.sourceforge.net
- unzip and untar it
- cd ffmpeg
- ./configure --enable-pp --enable-libfaac
- make
- make install

As the configure, make, and install wrote status lines to the screen, I didn't notice the mention of 'libfaac' anywhere which makes me wonder if it was really included. Any ideas? Thank you.

User avatar
hans-jürgen
Blank Cone
Blank Cone
Posts: 85
Joined: 15 Jan 2004 11:50
VLC version: 3.0.18
Operating System: Windows 10 Home
Location: Hamburg, Germany
Contact:

Postby hans-jürgen » 19 May 2004 09:22

As the configure, make, and install wrote status lines to the screen, I didn't notice the mention of 'libfaac' anywhere which makes me wonder if it was really included.
As far as I know, "libfaac" isn't used for VLC when recompiling it, but rather "faac" (two different libraries). Do a search on the forum for "faac", and you should find some hints by Gildas Bazin.

Furthermore there might be a conflict between ffmpeg and older faac libraries concerning the fft_init function, because both used the same name for it. That's why the faac library has been updated (renamed the function to fft_initialize), so you should rather compile it from the source package available in the Download section of Audiocoding.com (v1.24 stable or the weekly snapshot).
ZZee ya, Hans-Jürgen
BLUEZZ BASTARDZZ - "That lil' ol' ZZ Top cover band from Hamburg..."
INDIGO ROCKS - "Down home rockin' blues. Tasty as strudel."

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 19 May 2004 23:05

recompile ffmpeg with --enable-faac

recompile vlc with --enable-ffmpeg --with-ffmpeg-faac

use mp4a as the identifier, and not aac.
Don't use PMs for support questions.

myersge1
Blank Cone
Blank Cone
Posts: 14
Joined: 12 May 2004 16:43

Postby myersge1 » 20 May 2004 21:57

After pounding my head on this for the last couple days, I'm smarter but I still can't build the VLC. I need to transcode from an MPEG-2 stream to an MPEG-4 stream so I can't use the VLC RPM. Right? Therefore, I download, configure, make, and install all the requied software (as far as I know) but I get a vlc configure error:

checking ffmpeg/avcodec.h usability... yes
checking ffmpeg/avcodec.h presence... yes
checking for ffmpeg/avcodec.h... yes
checking postproc/postprocess.h usability... no
checking postproc/postprocess.h presence... no
checking for postproc/postprocess.h... no
configure: error: Missing header file postproc/postprocess.h.

Before running the vlc configure, I did rebuild faac and ffmpeg without error as:

cd /usr/local/faac
./configure
make
make install
cd /usr/local/ffmpeg-20040222
./configure --enable-pp --enable-faac --enable-shared
make
make install

I then modified '/etc/ld.so.conf' by adding an '/usr/local/lib' line and then ran ldconfig. After all that, I entered:

cd /usr/local/vlc-0.7.1
./configure --enable-gnome --with-ffmpeg-faac

and received the above error. I'm guessing it has something to do with ffmpeg's '--enable-pp'. Anyone have any ideas?

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 20 May 2004 23:55

use --with-ffmpeg-tree=path
to directly use the ffmpeg sourcetree, without the need of installation. FFMPEG does not install its postprocess header (as it should do), and VLC needs it.

BTW. i don't see a reason why the rpm's wouldn't support this, though it may be so.
Don't use PMs for support questions.

User avatar
hans-jürgen
Blank Cone
Blank Cone
Posts: 85
Joined: 15 Jan 2004 11:50
VLC version: 3.0.18
Operating System: Windows 10 Home
Location: Hamburg, Germany
Contact:

Postby hans-jürgen » 21 May 2004 19:00

BTW. i don't see a reason why the rpm's wouldn't support this, though it may be so.
I'm glad you mentioned this... :wink: When reading the change log for the new test3 beta version of VLC I found these lines:

Mac OS X port:
* Added FAAC encoder (mp4a)

Does this mean that FAAC is included in the Mac OS X binary available from your website now (so no need to compile it from scratch), and is this also true for the new Windows and Linux binaries?
ZZee ya, Hans-Jürgen
BLUEZZ BASTARDZZ - "That lil' ol' ZZ Top cover band from Hamburg..."
INDIGO ROCKS - "Down home rockin' blues. Tasty as strudel."

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 22 May 2004 03:03

This goes for the OSX release. not sure about Windows..
The linux binaries are always a surprise (but don't count on it being included in debian for now)
Don't use PMs for support questions.

User avatar
hans-jürgen
Blank Cone
Blank Cone
Posts: 85
Joined: 15 Jan 2004 11:50
VLC version: 3.0.18
Operating System: Windows 10 Home
Location: Hamburg, Germany
Contact:

Postby hans-jürgen » 22 May 2004 06:52

Great... 8)
ZZee ya, Hans-Jürgen
BLUEZZ BASTARDZZ - "That lil' ol' ZZ Top cover band from Hamburg..."
INDIGO ROCKS - "Down home rockin' blues. Tasty as strudel."

duko

Top 20 Wealthiest Soccer clubs

Postby duko » 02 Jul 2004 14:31

Thanks! The mails were from people on my http://findaudio.freewebpage.org/ allow list...

wlu_lax6

Richest Franchise in Sport

Postby wlu_lax6 » 03 Jul 2004 00:10

what kind of sport is this? i ve never heard about it and never seen it...
I like - football, tennis, http://getgambling.topcities.com/ figure skating, extreme sports
Dislike - hockey, basketball, car racing, box and all the rest

User avatar
hans-jürgen
Blank Cone
Blank Cone
Posts: 85
Joined: 15 Jan 2004 11:50
VLC version: 3.0.18
Operating System: Windows 10 Home
Location: Hamburg, Germany
Contact:

ffmpeg includes libfaac now

Postby hans-jürgen » 25 Jul 2004 17:25

I would like to add that the new prebeta version of ffmpeg includes libfaac now, so maybe it's not necessary anymore to use the switches described in this thread, and implementation of FAAC in VLC and other open source projects relying on ffmpeg becomes easier this way. Perhaps Gibalou or The DJ could comment if this assumption is correct?
ZZee ya, Hans-Jürgen
BLUEZZ BASTARDZZ - "That lil' ol' ZZ Top cover band from Hamburg..."
INDIGO ROCKS - "Down home rockin' blues. Tasty as strudel."


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 40 guests