Skip to main content

Unsupported audio codec: aac

13 posts / 0 new
Last post
thehada
Offline
Joined: 07/28/2009
Posts:
Unsupported audio codec: aac

Can't get aac to work with kdenlive 0.7.7.

Versions:
ffmpeg custom compiled from svn: 0.5 r21874 with - libx264
x264 custom compiled r1442: .85

ffmpeg -formats give me AAC and ldd shows libx264

using ffmpeg like:
ffmpeg -i test.avi -acodec aac -vcodec libx264 -vpre hq -crf 22 -threa...
encodes video successfully with aac

now.. ffmpeg -formats give me AAC D (demuxing not E = muxing), could this be the problem?

0
Your rating: None
ddennedy
ddennedy's picture
Offline
Joined: 06/26/2007
Posts:
Re: Unsupported audio codec: aac

Try re-running the Config Wizard to update Kdenlive's knowledge of which codecs you have.

thehada
Offline
Joined: 07/28/2009
Posts:
Re: Unsupported audio codec: aac

thanks.. but I have done that probably about 20 times or so..
kdenlive restart and the wizard

keep on reading that ffmpeg see there AAC Encoder still in an sort of experimental stage.

is anybody using kdenlive with ffmpeg's aac encoder? or are you all using libfaac?

fr___
Offline
Joined: 02/18/2010
Posts:
Re: Unsupported audio codec: aac

I had the same problem using Ubuntu, because the aac Encoder "libfaac" isn't included in the *-extra packages by default. Building from source using the "apt-get source" command works without further reconfiguration if the libfaac package is installed.

On any system ffmpeg has to be compiled using the --enable-libfaac option (There is another aac decoder, but afaik no encoder yet).

nasenmann72
Offline
Joined: 05/16/2010
Posts:
Re: Unsupported audio codec: aac

Hi,

I have the same problem. I am running kdenlive on Ubuntu 10.04. I've installed ffmpeg after this guide http://ubuntuforums.org/showthread.php?t=786095 and did run the configuration assistant multiple times but the x264 rendering profiles are still greyed out.

FFmpeg version SVN-r23145, Copyright (c) 2000-2010 the FFmpeg developers
built on May 16 2010 15:39:33 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.15. 2 / 50.15. 2
libavcodec 52.67. 0 / 52.67. 0
libavformat 52.62. 0 / 52.62. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.10. 0 / 0.10. 0
libpostproc 51. 2. 0 / 51. 2. 0

Any hints on solving the problem?

Der Nasenmann

ddennedy
ddennedy's picture
Offline
Joined: 06/26/2007
Posts:
Re: Unsupported audio codec: aac

what does 'ffmpeg -codecs | grep aac' show?
Anytime you build a custom, installed version of FFmpeg that is not the same version as the packages, you must build MLT from source or rebuild its source package - same goes really for anything using FFmpeg libs, which makes this change a high impact one.
Unfortunately, I can confirm that the FFmpeg unstripped libs that comes with Lucid (Debian?) does not include either the native aac encoder or the libfaac one, which really sucks.

ttguy
Offline
Joined: 09/15/2009
Posts:
Re: Unsupported audio codec: aac

I am having similar problems - aac is unsupported. I installed faac ver 1.26-0.1ubuntu2 in the hope that this might solve the problem. I also tried the re-run the setup wizard. But still no joy

'ffmpeg -codecs | grep aac' says

ffmpeg: missing argument for option '-codecs'

But ffmpeg -formats | grep aac says

$ ffmpeg -formats | grep aac
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 4 2010 12:35:30, gcc: 4.4.3
D aac raw ADTS AAC
D A aac Advanced Audio Coding

So are you saying our solution is "you must build MLT from source or rebuild its source package"?

Because I don't know how to do this.

ttguy

ddennedy
ddennedy's picture
Offline
Joined: 06/26/2007
Posts:
Re: Unsupported audio codec: aac

In Ubuntu 10.04 and some Debian versions, aac encoding is not available in the FFmpeg libs. Yes, 'D' for demuxing or decoding with no 'E' indicates the problem. Bummer. I think this will be fixed when Debian and Ubuntu gets FFmpeg v0.6, which is not yet available but being worked on. You might be able to find a PPA version of the ffmpeg libs that has AAC and still compatible with all dependent packages. This would be a good find to share!

ubuntuaddicted
Offline
Joined: 06/27/2010
Posts:
Re: Unsupported audio codec: aac

how about you inform us how to just change the current preset to encode the audio with another codec or maybe how to create a new presets which copy the old preset but obviously change the audio codec option. Can you do that? I LOVE kdenlive as so far I have tried Pitivi, Openshot,, Open Movie Editor, and Kino for editing and none of them are really as polished and easy to use (and don't crash) as kdenlive. I would really appreciate some help here. This is my ffmpeg output

ffmpeg -codecs | grep aac
FFmpeg version SVN-r23789, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 25 2010 14:15:02 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.19. 0 / 50.19. 0
libavcodec 52.78. 0 / 52.78. 0
libavformat 52.71. 0 / 52.71. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
DEA aac Advanced Audio Coding
EA libfaac libfaac AAC (Advanced Audio Codec)

i am running Lucid Lynx as well. I do have all the unstripped and extra packages installed.

deniscass
deniscass's picture
Offline
Joined: 10/31/2009
Posts:
Re: Unsupported audio codec: aac

Great tip!!
I install now ffmpeg in my Ubuntu 10.04 and ffmpeg 0.6 works fine! Before i change aac to libmp3lame to get mp4 files to Symbian S60 and IPod touch. And ffmpeg 0.6 is more fast than 0.5.1 from ubuntu default.

ubuntuaddicted
Offline
Joined: 06/27/2010
Posts:
Re: Unsupported audio codec: aac

where did you get ffmpeg version 0.6? i am using lucid lynx ubuntu 10.04 and I don't see anything about 0.6 but that's probably cause i compiled x264 and ffmpeg from git and svn. When I do sudo aptitude search ffmpeg, i find this:
Package created with checkinstall 1.6.1

this is what ffmpeg -version shows:
FFmpeg version SVN-r23789, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 25 2010 14:15:02 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.19. 0 / 50.19. 0
libavcodec 52.78. 0 / 52.78. 0
libavformat 52.71. 0 / 52.71. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
FFmpeg SVN-r23789
libavutil 50.19. 0 / 50.19. 0
libavcodec 52.78. 0 / 52.78. 0
libavformat 52.71. 0 / 52.71. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0

currently i am tried using libmp3lame with x264 codec for my encoding. but honestly, i have found that avi using xvid 10000k 2 pass to be very good for my youtube uploads. i need to force progressive as well though. i am capturing this type of video:
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 2.14 GiB
Duration : 10mn 6s
Overall bit rate : 30.3 Mbps

Video
Format : Digital Video
Codec ID : dvsd
Codec ID/Hint : Sony
Duration : 10mn 6s
Bit rate : 28.8 Mbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 1.500
Original display aspect ratio : 4/3
Frame rate mode : Constant
Frame rate : 29.970 fps
Standard : NTSC
Resolution : 24 bits
Colorimetry : 4:1:1
Scan type : Interlaced
Bits/(Pixel*Frame) : 2.778
Stream size : 2.03 GiB (95%)

Audio
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : 1
Codec ID/Hint : Microsoft
Duration : 10mn 6s
Bit rate mode : Constant
Bit rate : 1 536 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 111 MiB (5%)
Interleave, duration : 33 ms (1.00 video frame)
Interleave, preload duration : 33 ms

and if i don't add the force progressive, i get what looks like tiny horizontal lines across the screen. they are very tiny lines but noticeable. i was trying to get to H.264 and aac encoding because i had such good results when i was using iMovie HD when i had a powerbook g4 a couple weeks ago but maybe i'll just stick with avi with xvid and mpeg1 audio as it's very good, i can read the text after uploading to youtube.

deniscass
deniscass's picture
Offline
Joined: 10/31/2009
Posts:
Re: Unsupported audio codec: aac

Hi ubuntuaddicted,

I use other PPA to get ffmpeg working: ppa:thomas-creutz/ppa
You need remove ffmpeg, kdenlive and blender (a lot of packages uses ffmpeg)
And reinstall ffmpeg and kdenlive and others packages for your use later.

ubuntuaddicted
Offline
Joined: 06/27/2010
Posts:
Re: Unsupported audio codec: aac

do i still need to leave x264 compiled from git? also, does this affect mplayer or other media players? are you using lucid lynx? i am leary about using PPA as I don't want to screw up my system. does the ffmpeg 0.6 have shared libraries enabled? does everything work with libavfilter, libavcodec etc etc? i know when i tried to enable shared libraries i couldn't even get ffmpeg to work because of current ubuntu libraries being installed. let me know thanks.