[Opensuse 11] Audio LAVC, couldn't find encoder for codec aac.

I’ve installed faac, libfaac-devel and libfaac0 from videolan repository:
neither mencoder nor Avidemux recognize it.
Ideas?
Grazie e ciao.
Safraco

> rpm -qa | grep faac
faac-1.26-10.1
libfaac-devel-1.26-10.1
libfaac0-1.26-10.1


> mencoder -oac lavc -ovc lavc -of lavf -lavcopts
aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac -af lavcresample=24000 -vf
harddup -lavfopts format=psp -ofps 30000/1001 test.avi -o test.psp -info
name=test
MEncoder 1.0rc2-SUSE Linux 11.0 (i686)-Packman-4.3 (C) 2000-2007 MPlayer
Team
CPU: Intel(R) Core™2 Quad CPU Q6600 @ 2.40GHz (Family: 6, Model: 15,
Stepping: 11)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x2b4993ce
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [FMP4] 696x418 24bpp 25.000 fps 1228.9 kbps (150.0 kbyte/s)
[V] filefmt:3 fourcc:0x34504D46 size:696x418 fps:25.00 ftime:=0.0400

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 80.0 kbit/5.67% (ratio: 10000->176400)
Selected audio codec: afm: mp3lib (mp3lib MPEG layer-2, layer-3)

** MUXER_LAVF


REMEMBER: MEncoder’s libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!


OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]

Opening video decoder: [ffmpeg] FFmpeg’s libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)

Audio LAVC, couldn’t find encoder for codec aac.

Exiting…


> mencoder -oac help
MEncoder 1.0rc2-SUSE Linux 11.0 (i686)-Packman-4.3 (C) 2000-2007 MPlayer
Team
CPU: Intel(R) Core™2 Quad CPU Q6600 @ 2.40GHz (Family: 6, Model: 15,
Stepping: 11)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Available codecs:
copy - frame copy, without re-encoding (useful for AC3)
pcm - uncompressed PCM audio
mp3lame - cbr/abr/vbr MP3 using libmp3lame
lavc - FFmpeg audio encoder (MP2, AC3, …)
twolame - Twolame MP2 audio encoder


Any suggestions will be appreciated!

I see you have mixed videolan rpms with packman packaged rpms. I prefer not to do that. That can cause compatibility problems at times. I do not know if this is the cause of your observation.

I use Packman packaged rpms (only) myself on my PCs (except for libdvdcss2 from videolan) and my recommendation for users is to use the Packman packaged rpms only.

From “man mencoder”:

acodec=<value> 
 audio codec (default: mp2) 
ac3  
 Dolby Digital (AC-3) 
adpcm_*
 Adaptive PCM formats - see the HTML documentation for details. 
flac 
 Free Lossless Audio Codec (FLAC) 
g726 
 G.726 ADPCM 
libamr_nb
 3GPP Adaptive Multi-Rate (AMR) narrow-band 
libamr_wb
 3GPP Adaptive Multi-Rate (AMR) wide-band 
**libfaac
 Advanced Audio Coding (AAC) - using FAAC** 
libmp3lame
 MPEG-1 audio layer 3 (MP3) - using LAME 
mp2  
 MPEG-1 audio layer 2 (MP2) 
pcm_*
 PCM formats - see the HTML documentation for details. 
roq_dpcm
 Id Software RoQ DPCM 
sonic
 experimental simple lossy codec 
sonicls
 experimental simple lossless codec 
vorbis
 Vorbis 
wmav1
 Windows Media Audio v1 
wmav2
 Windows Media Audio v2

oldcpu wrote:
> Safraco;1833169 Wrote:

>> I’ve installed faac, libfaac-devel and libfaac0 from videolan
>> repository:
>> neither mencoder nor Avidemux recognize it.

> I see you have mixed videolan rpms with packman packaged rpms. I
> prefer not to do that.

Thank’s for reply!!
I’ve tried to install faac from Packman and it still isn’t recognized from
various program.

Ciao.

Maybe it is because you have apps from the packman repo. Don’t think you have, for example, mplayer which provides mencoder in the vlc repo. So I would suggest you to do the opposite and uninstall everything from vlc, except from libdvdcss, and delete vlc from your yast repo list (if you have added it there), and only use packman.

This is only my personal preference, there isn’t anything wrong with the VLC repo as far as I know. But packman provides all the same codecs as vlc, and a lot more both codecs and applications. There is well know issues with mixing codecs from the two repoes, thus, if you want to use packages from packman, use the codecs from packman.

:slight_smile:

First, check to see if MEncoder is compiled with FAAC support. You can do this by opening a terminal and typing

mencoder -oac help

if it’s there, you should see something like: faac - FAAC AAC audio encoder. If there’s nothing about FAAC, then the only way to get mencoder to encode to AAC audio is to recompile it with libfaac support (install the devel package).

if your mencoder does support FAAC, then another way to encode to is

-oac faac -faacopts br=128

RedDwarf wrote:

> From “man mencoder”:

> libfaac
> Advanced Audio Coding (AAC) - using FAAC

I don’t know if I’ve understood the tip… Does it mean that I need libfaac
instead of libfaac0?

[To all :)]
If you’ve mplayer and faac installed by rpm and with opensuse11, and
your “mencoder -oac help | grep faac”'s output is something, could you
explain me what have you done to obtain this?

Grazie e ciao.

microchip8 wrote:

>
> Safraco;1833925 Wrote:
>> oldcpu wrote:
>> > Safraco;1833169 Wrote:

>> >> I’ve installed faac, libfaac-devel and libfaac0 from videolan
>> >> repository: neither mencoder nor Avidemux recognize it.

>> > I see you have mixed videolan rpms with packman packaged rpms. I
>> > prefer not to do that.

>> Thank’s for reply!!
>> I’ve tried to install faac from Packman and it still isn’t recognized
>> from various program.

> First, check to see if MEncoder is compiled with FAAC support. You can
> do this by opening a terminal and typing
> MENCODER -OAC HELP

nada…

copy - frame copy, without re-encoding (useful for AC3)
pcm - uncompressed PCM audio
mp3lame - cbr/abr/vbr MP3 using libmp3lame
lavc - FFmpeg audio encoder (MP2, AC3, …)
twolame - Twolame MP2 audio encoder

> if it’s there, you should see something like: faac - FAAC AAC
> audio encoder
. If there’s nothing about FAAC, then the only way to get
> mencoder to encode to AAC audio is to recompile it with libfaac support
> (install the devel package).

Ok, but it was been grace to have faac also with other software like
avidemux. I’ve to compile also it? Why faac is it not generally available
to the system? Binaries in Packman repository are compiled without faac
support?

> if your mencoder does support FAAC, then another way to encode to is
> -oac faac -faacopts br=128

as before… $MPlayer was compiled without libfaac

F Sauce wrote:

>
> Maybe it is because you have apps from the packman repo.

Ok, I’ll try now.
Sorry for the other answer, I’ve read this for last.
Thanks

Yes, I’ve noticed that too that some programs like MEncoder, Avidemux, etc from Packman are not compiled with faac support. The only two things you can do are, either compile MPlayer yourself with faac support, or contact the responsible Packman packager of MPlayer and tell him to package it with faac support

I have only packman multimedia packages (with exception of libdvdcss2 and some other 3rd party packaged packages) installed. I have mplayer, vlc, ffmpeg, libxine1, and a bunch of other multimedia apps. When I type
oldcpu@stonehenge:~> rpm -q faac --whatrequires
I get:
pacpl-4.0.2-0.pm.1
ogmrip-0.12.0-0.pm.1

F Sauce wrote:

> So I
> would suggest you to do the opposite and uninstall everything from vlc,
> except from libdvdcss, and delete vlc from your yast repo list (if you
> have added it there), and only use packman.

Nada, it doesn’t work.

You used “acodec=aac”, but the man says you should use “acodec=libfaac”.

microchip8 wrote:

> The only two
> things you can do are, either compile MPlayer yourself with faac
> support,

Done with Avidemux (it works now)

> or contact the responsible Packman packager of MPlayer and
> tell him to package it with faac support

Done. (asked to an italian collaborator)

IMO at least avidemux2 must absolutely have all clickable feature working
out of the box. Make a playstationportable compatible video is one of the
attraction of this code.

bye


Chi va per il sentiero non si rompe i coglioni?

I’m currently rebuilding a few Packman packages (avidemux, MPlayer, libquicktime) to fix faac support.

It was indeed broken (built without it) in the above mentioned packages.

Everything should be fixed in the Packman repository in a few hours.

(next time, please contact us directly by sending an email to packman@links2linux.de)

Thread moved to Multimedia

The following packages have been updated in the Packman repository wrt the FAAC support problem:

  • MPlayer (1.0rc2-4.pm.3)
  • libquicktime (1.0.2-100.pm.2)
  • avidemux (2.4.1-0.pm.2)

So hopefully, it’s all good now :wink:
(if not: /dev/loki: Reporting Packman package bugs)

Many thanks!!

As confirmation I typed (and obtained the response):
oldcpu@stonehenge:~> mencoder -oac help
MEncoder 1.0rc2-openSUSE Linux 10.3 (i686)-Packman-4.2.1 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon™ (Family: 6, Model: 10, Stepping: 0)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.

Available codecs:
copy - frame copy, without re-encoding (useful for AC3)
pcm - uncompressed PCM audio
mp3lame - cbr/abr/vbr MP3 using libmp3lame
lavc - FFmpeg audio encoder (MP2, AC3, …)
twolame - Twolame MP2 audio encoder
faac - FAAC AAC audio encoder

Hello,

i found this thread, because i didn’t get faac to work with Avidemux 2.4.4. Could it be, that the package isn’t build with faac support again?

Thanks
Stolzi