Nabsha’s Blog-About

June 17, 2007

FAAD on OmniFlash :)

Filed under: Uncategorized — nabsha @ 2:41 am

What is FAAD?

FAAD is a free AAC decoder and is available from www.audiocoding.com
1. Get the source of FAAD from audiocoding.com
2. You need to fix for the HAVE_BMP error if you get it else skip straight to next block.

________________________

tar xf faad2-2.5.tar.gz &&
cd faad2 &&
echo > plugins/Makefile.am &&
echo > plugins/xmms/src/Makefile.am &&
sed -i '/E_B/d' configure.in &&
autoreconf -vif &&

Taken from here

________________________

3. Configure environment variables for arm compiler

# set environment variables
export PATH=$PATH:/usr/local/arm/3.3/bin/
export CC=arm-linux-gcc
export CXX=arm-linux-g++
export LD=arm-linux-ld
export AR=arm-linux-ar
export NM=arm-linux-nm
export RANLIB=arm-linux-ranlib

3. Configure should work as usual.
./configure –enable-static –disable-shared –host=arm-linux –prefix=/ramdisk/home/knoppix/faad2

4. Now build the binaries

make

5.  But before installing, I used -k because some of the targets were failing, so I tried it anyways…

make install prefix=/ramdisk/home/knoppix/faad2 -k

faad_omniflash1.jpg

Thank goodness encoding is bit faster, but still not good enough for realtime decoding… I yet have to find a simpler MP3 Encoder that can work with omniFlash.

LAME on OmniFlash/ARM

Filed under: Uncategorized — nabsha @ 1:54 am

 What is LAME?

LAME is an MPEG Audio Layer III (MP3) encoder licensed under the LGPL.

1. As usual, before cross compiling always set the environment variables to set the compiler environment variables to point to your ARM tool chain.

# set environment variables
export PATH=$PATH:/usr/local/arm/3.3/bin/
export CC=arm-linux-gcc
export CXX=arm-linux-g++
export LD=arm-linux-ld
export AR=arm-linux-ar
export NM=arm-linux-nm
export RANLIB=arm-linux-ranlib

2. Then you have to configure your source to be compiled for ARM in a statically linked fashion

./configure –enable-static –disable-shared –with-fileio=lame –host=arm-linux

3. Build the binaries and enjoy Encoding…

make

make install prefix=/ramdisk/home/knoppix/lame-3.97

and you get this…

lame_omniflash1.jpg

Happy Encoding…

June 15, 2007

FAAC on OmniFlash

Filed under: Uncategorized — nabsha @ 1:44 am

Well Here is the first port on my OmniFlash that I have bought recently. This snapshot is taken while encoding one of my friend’s (Raheel) song into AAC format using FAAC Encoder. The speed of this encoder is significantly slow on this ARM processsor because of missing MMX and other floating point instruction that help the Audio algorithms.

What is FAAC?

Freeware Advanced Audio Coding (FAAC) is an open source project implementing AAC Audio Encoder. In one of the quality test conducting by hydrogenaudio, FAAC ranked 3rd while competing with quality AAC encoders like iTunes.

1. Download the FAAC from http://sourceforge.net/projects/faac/ (when writing, v1.25 was available but I could not make it work, because of bug in the configure.in script. so I used v1.24 and it worked like a charm)

2.  To make it run on the omniflash/arm, I had to reset the compiler’s environment variables to point to arm tool-chain.
# set environment variables
export PATH=$PATH:/usr/local/arm/3.3/bin/
export CC=arm-linux-gcc
export CXX=arm-linux-g++
export LD=arm-linux-ld
export AR=arm-linux-ar
export NM=arm-linux-nm
export RANLIB=arm-linux-ranlib

3.  then I configured it as follows,
./configure –enable-static –disable-shared –host=arm-linux

4. and then make  and make installed it

make

make install prefix=/ramdisk/home/knoppix/faac

sahara1.jpg

It is clear that FAAC is taking very long to encode a file of 23 sec on OmniFlash. Forget the realtime, this is not even good for offline encoding. There is a need to find a better alternative of AAC Encoder for this board.

Cheers.

June 14, 2007

My LinkedIn Profile

Filed under: Uncategorized — nabsha @ 12:23 pm

You can view my LinkedIn profile at

View My LinkedIn Profile

June 11, 2007

Test Blog from w.bloggar

Filed under: Uncategorized — nabsha @ 6:25 am

This is a test blog from w.bloggar.

I found this blog to be helpful while trying to configure wbloggar with wordpress. And with this tool, I plan on to migrate from msn spaces to wordpress. Last time when I tried to shift from msn spaces to wordpress, the msn spaces’s photo feature was the reason why I could not migrate. Yesterday Gul told me about flickr and Now am planning to use it instead of msn spaces. The reason for leaving msn spaces is to support and join open community.

And here goes the credit to the guy who developed it.

November 4, 2006

A New Bicycle bought

Filed under: Uncategorized — nabsha @ 7:10 pm

Today I bought a new bike by Oscar.

I started my first ride from my hostel in I-9 and reached Raheel’s palce a couple of kilometers from my place in H-8, then we went to Blue Area another 4 km from there. Our destination was RAhat Bakers where we first had Strawbery Milkshake and then had Smoked Chicken Pizza which was’nt as good as I expected. My be it was too cold to eat outside… Anyways then I returned to my place dead tired. Now am realizing that I cant even sit properly as of excessive riding my arse is badly hurt… Hopefully it improves by morning when I get up… For now I have to find alternate positions frequently to type…

But it feels tiringly-good.

My Bike

November 1, 2006

Kabhi hum khoobsurat thay

Filed under: Uncategorized — nabsha @ 2:50 pm

Kabhi hum khoobsurat thay
Kitabon may basi khushboo ki manand Sans sakin thay
boht say unkhahay lufzoon say tasveerain Banatay thay
Parindoon kay paroon par nazam likh kar
Durr ki jhilon may basnay walay logon ko sunatay thay
jo hum say durr thay lakin Hamaray pass rahtay thay
Nai din ki musafat jub karn kay saath
Aagan may uterti thi to hum khatay thay
Hamain mathay peh boosa doo
kah hum ko Jugnuoo kay,titllion kay
des jana hai Hamain rangoon kay jugnuoo,
roshni ki titlian awaz dati hain
Nai din ki musafat rang may doobi hawa kay saath
Kharki say bulati hai
Hamain mathay peh boosa
Hamain mathay peh boosa
Hamain mathay peh boosa

October 9, 2006

Hello world!

Filed under: Uncategorized — nabsha @ 8:13 pm

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Blog at WordPress.com.