Log in

View Full Version : FFMPEG windows build with AMR / AAC ?


sharper
15th November 2004, 22:44
Is there any build of FFMPEG for windows with AMR or AAC audio encoding support? These two are available in Linux through external libraries but none seem to exist for win32.

Help appreciated!

cheers

/axel

celtic_druid
16th November 2004, 01:23
Re aac: http://forum.doom9.org/showthread.php?s=&threadid=79469&perpage=20&pagenumber=2
Only a few threads away from this post. amr or rather the lack of it is also covered. I could probably do a new build with it enabled though.

sharper
17th November 2004, 10:23
Would it be possible, or would it be rather easy? Would that be an "unofficial" build due to licensing rules? This improvement would be great but i don't want to rush you =)

/axel

celtic_druid
17th November 2004, 11:28
Should be possible, should be easy... Only one way to find out though. None of my builds are "official".

gotaserena
17th November 2004, 12:16
The floating point support is easy:

Download the AWR WB source from this address (http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-520.zip) and extract the source code (another zip file inside the archive) into ffmpeg/libavcodec/amrwb_float.

Download the AWR NB source from here (http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-540.zip) and extract the source code into ffmpeg/libavcodec/amr_float.

Add "--enable-amr_nb --enable-amr_wb" to the ./configure options. It works like a charm here (gcc 3.3.3).

I could not get the fixed point support to work. One is supposed to get the source from here (http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26073-530.zip) and extract it into ffmpeg/libavcodec/amr
Add -DMMS_IO to the CFLAGS in ffmpeg/libavcodec/amr/makefile
Add "--enable-amr_nb-fixed" to ./configure
and make gives me some errors when linking the source to libavcodec.a

I don't use amr too much but ffplay compiled with floating point support only did manage to play the 3gp sample I have.

gotaserena
17th November 2004, 15:04
Oh, never mind the last part of the post. I forgot to properly clean the output before recompiling :D

sharper
20th November 2004, 15:14
Okay, thx for the input. Keep me informed on your progress =) Meanwhile i've registered mpegable x4 live to handle the windows encoding processes.

gotaserena
21st November 2004, 19:49
celtic druid's latest ffmpeg build already has floating point support for amr.

sharper
21st November 2004, 22:25
Very nice indeed, where can I find it? I've tried searching the forum and google for celtic's builds with no results.

celtic_druid
22nd November 2004, 01:36
Yep it has been up there for some time now, basically started the compile straight after my last post. Already had the AMR source, just had to do a CVS update to make sure I was compiling the lateset ffmpeg source.

First and only google hit for me.

http://celticdruid.no-ip.com/xvid/ffmpeg/

gotaserena
22nd November 2004, 10:33
Anybody had trouble coding to amr_wb? I couldn't try long enough (amr_nb works fine), but read around that there is some fudging to do in the libavcodec's makefile to make it recognise the wide band source.

nugmebot
1st April 2009, 20:20
Download the latest FFmpeg SVN-r17988-Komeil for Windows with AMR support (http://komeil.spaces.live.com/blog/cns!11E09A8750032F2C!614.entry) compiled on March 15, 2009 based on SVN-r17988

It has the following libraries enabled: libamr-nb libamr-wb libgsm libfaac libfaad libmp3lame libschroedinger libspeex libtheora libvorbis libx264 libxvid

lesterp
19th August 2009, 09:52
Hi,
I used the above but even though enable-libamr-nb & enable-libamr-wb are shown, I'm still getting unknown codec...

C:\cms\ffmpeg>ffmpeg -i test.avi -s qcif -vcodec h263 -acodec libamr-wb -ac 1 -a
r 8000 -r 25 -ab 16000 -y outputfile.3gp
FFmpeg version SVN-r17988-Komeil, Copyright (c) 2000-2009 Fabrice Bellard, et al
.
configuration: --enable-memalign-hack --extra-cflags=-fno-common --enable-stat
ic --disable-shared --disable-debug --enable-gpl --enable-nonfree --enable-avfil
ter --enable-avfilter-lavf --enable-avisynth --enable-postproc --enable-pthreads
--enable-libamr-nb --enable-libamr-wb --enable-libgsm --enable-libfaac --enable
-libfaad --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable
-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
libavutil 50. 0. 0 / 50. 0. 0
libavcodec 52.21. 0 / 52.21. 0
libavformat 52.31. 1 / 52.31. 1
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 15 2009 18:16:31, gcc: 4.3.0 20080305 (alpha-testing) mingw-20080
502
Input #0, avi, from 'test.avi':
Duration: 00:03:31.00, start: 0.000000, bitrate: 4920 kb/s
Stream #0.0: Video: huffyuv, rgb32, 176x144, 12.50 tbr, 12.50 tbn, 12.50 tbc

Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Unknown encoder 'libamr-wb'

C:\cms\ffmpeg>
libfaac is fine
Any help greatly appreciated.

komeil
12th September 2009, 23:14
Dear lesterp,

The problem is you misspelled “libamr_wb” in the FFmpeg command. Please note it should be written with UNDERLINE instead of DASH in the command. Only its build parameter (developer-relevant “--enable-libamr-wb”) is written with DASHES.

Once you solve the above, there’s another problem with the bit rate (“-ab”) and sample rate (“-ar”) parameters. AMR_WB doesn’t accept such bit-/sample-rates. You need to use “-ar 16000” and “-ab 18.25k”.

For AMR-WB, only a “16000” sample rate and one of the following bitrates are valid:
6.6k, 8.85k, 12.65k, 14.25k, 15.85k, 18.25k, 19.85k, 23.05k, or 23.85k

For AMR-NB, only an “8000” sample rate and one of the following bitrates are valid:
4.75k, 5.15k, 5.9k, 6.7k, 7.4k, 7.95k, 10.2k or 12.2k

To make an early-Nokia-compatible 3GP, use AMR-NB 8000/12.2k.

Good luck!

To know more about Nokia-compatible 3GP media conversion, read my blog post at http://blog.komeil.com/2009/09/convert-nokia-3gp-amr-ffmpeg.html

To download FFmpeg SVN-r17988-Komeil for Windows with AMR support (http://blog.komeil.com/2009/03/ffmpeg-svn-r17988-komeil-windows.html) compiled on March 15, 2009 based on SVN-r17988, visit my blog post here (http://blog.komeil.com/2009/03/ffmpeg-svn-r17988-komeil-windows.html).