Compile faad lib

Bug reports, or any problems you might encounter.

Compile faad lib

Postby fallout33 on Mon Aug 24, 2009 10:09 pm

I want to convert an mkv video with 5.1 aac audio to divx with 2-channel mp3 audio but the conversion of the video's 5.1 aac audio fails.
Code: Select all
C:\>ffmpeg -i vid1.mkv -f avi -vcodec mpeg4 -b 1500k -acodec libmp3lame -ab 128k -ac 2 vid1.avi
FFmpeg version SVN-r19159-Sherpya, Copyright (c) 2000-2009 Fabrice Bellard, et a
l.
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.30. 2 / 52.30. 2
  libavformat   52.34. 0 / 52.34. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    0. 5. 0 /  0. 5. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jun 12 2009 04:25:02, gcc: 4.5.0 20090517 (experimental)

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (27956/
583) -> 23.98 (24000/1001)
Input #0, matroska, from 'vid1.mkv':
  Duration: 02:23:46.17, start: 0.000000, bitrate: N/A
    Stream #0.0(eng): Video: h264, yuv420p, 720x480, PAR 175:144 DAR 175:96, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: aac, 24000 Hz, 5.1, s16
    Stream #0.2(eng): Subtitle: 0x0000
   Output #0, avi, to 'vid1.avi':
    Stream #0.0(eng): Video: mpeg4, yuv420p, 720x480 [PAR 175:144 DAR 175:96], q=2-31, 1500 kb/s, 23.98 tbn, 23.98 tbc
    Stream #0.1(eng): Audio: libmp3lame, 24000 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[aac @ 0x1779410]SBR not implemented. Update your FFmpeg version to the newest one from SVN. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x1779410]SBR not implemented. Update your FFmpeg version to the newest one from SVN. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x1779410]SBR not implemented. Update your FFmpeg version to the newest one from SVN. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x1779410]SBR not implemented. Update your FFmpeg version to the newest one from SVN. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x1779410]SBR not implemented. Update your FFmpeg version to the newest one from SVN. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x1779410]SBR not implemented. Update your FFmpeg version to the newest one from SVN. If the problem still occurs, it means that your file has a feature which has not been implemented.
Resampling with input channels greater than 2 unsupported.
Can not resample 6 channels @ 24000 Hz to 2 channels @ 24000 Hz


I have found a binary of ffmpeg which starts the conversion process. It inludes the faac and faad libraries but fails with the following error:
Code: Select all
[matroska @ 0x3fd4e0]Read errortrate= 128.0kbits/s
[libmp3lame @ 0xbb8130]lame: output buffer too small (buffer index: 9216, free bytes: 576)
Audio encoding failed


I have tried to fix the problem by building ffmpeg with an older version of lame as suggested.

Therefore I installed the MinGW + MSys environment to build ffmpeg with the parameters "--disable-encoder=aac --disable-decoder=aac --enable-libfaac --enable-libfaad".

I followed the instructions in the wiki step by step:
Code: Select all
tar zxfv faad2-2.6.1.tar.gz
patch -p0 < faad2-2.6.1.patch
cd faad2
sh bootstrap
./configure --prefix=/static --enable-static --disable-shared
make LDFLAGS="-no-undefined"
make install


But the command "sh bootstrap" fails and reports:
Code: Select all
$ sh bootstrap
bootstrap: line 12: aclocal: command not found



Do you know a solution for this problem?
fallout33
 
Posts: 6
Joined: Mon Aug 24, 2009 9:11 pm

Re: Compile faad lib

Postby angustia on Tue Aug 25, 2009 2:56 am

Autobuilds have faad compiled in, but the native aac decoder has preference.
You should be able to run:
ffmpeg.exe -acodec libfaad -i <input> <output>
angustia
Site Admin
 
Posts: 1259
Joined: Thu Jan 01, 1970 12:00 am

Re: Compile faad lib

Postby fallout33 on Tue Aug 25, 2009 8:10 pm

angustia wrote:[...] You should be able to run:
ffmpeg.exe -acodec libfaad -i <input> <output> [...]

It works, thank you very much!
fallout33
 
Posts: 6
Joined: Mon Aug 24, 2009 9:11 pm


Return to Problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron