FC6 LiVES amr_nb amr_wb audio

I was trying to connect a couple video clips from my daughter's Halloween party. My home computer has Fedora Core 6 Linux. The video editing tool is LiVES. Under the hood, it's using mplayer to load my videos. But with my installed mplayer options, the amr_nb audio wasn't enabled. It's time for source code digging. Into the libavcodec directory of mplayer, noticed the amr.c file, it says:
    This code implements amr-nb and amr-wb audio encoder/decoder through external reference
code from www.3gpp.org. The licence of the code from 3gpp is unclear so you
have to download the code separately. Two versions exists: One fixed-point
and one with floats. For some reason the float-encoder is significant faster
atleast on a P4 1.5GHz (0.9s instead of 9.9s on a 30s audio clip at MR102).
Both float and fixed point is supported for amr-nb, but only float for
amr-wb.

--AMR-NB--
The fixed-point (TS26.073) can be downloaded from:
http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-510.zip
Extract the soure into ffmpeg/libavcodec/amr
To use the fixed version run "./configure" with "--enable-amr_nb-fixed"

The float version (default) can be downloaded from:
http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
Extract the soure into ffmpeg/libavcodec/amr_float

The specification for amr-nb can be found in TS 26.071
(http://www.3gpp.org/ftp/Specs/html-info/26071.htm) and some other
info at http://www.3gpp.org/ftp/Specs/html-info/26-series.htm

--AMR-WB--
The reference code can be downloaded from:
http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
It should be extracted to "libavcodec/amrwb_float". Enable it with
"--enable-amr_wb".

The specification for amr-wb can be downloaded
from:http://www.3gpp.org/ftp/Specs/archive/26_series/26.171/26171-500.zip

If someone want to use the fixed point version it can be downloaded
from: http://www.3gpp.org/ftp/Specs/archive/26_series/26.173/26173-571.zip
I downloaded the float version nb and wb source code by using following wget command:
#wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
#wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
Extracted nb to libavcodec/amr_float, wb to libavcodec/amrwb_float. After that, run ./configure under mplayer directory again. Should be able to see the following lines in config.mak file:

CONFIG_AMR=yes
CONFIG_AMR_NB=yes
CONFIG_AMR_NB_FIXED=no
CONFIG_AMR_WB=yes
Make clean and make install the mplayer again. You can find more information in my other post about mencoder. After all of these typing done, I have my video clips loaded into LiVES again, audio worked. Cut/Pasted them together and export them to a new file. Noticed it's a little too big for just one minutes video. It was encoded using mjpeg, manually converted it to mpeg4:
#mencoder cindy-halloween-2006.mp4 -o cindy-halloween-2006.mpeg -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4

The size of it dropped a little. Not as small as I expected. I will play with it later. It's time to do my grocery.

Comments

Popular posts from this blog

Spring framework, Hibernate and MySQL Replication

the Art of Kindling a Light in the darkness of mere being

Exposed Domain Object implemented with Spring Aspect Transaction Control + AspectJ