imx QSB Microphone input recording?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx QSB Microphone input recording?

2,207 Views
RandyKrakora
NXP Employee
NXP Employee

Does anyone have examples of how to record from the QSB/Loco microphone into a pcm or wav file? I'm assuming someone has a gstreamer pipeline to do this?

 

Regards,

Randy Krakora

Tags (1)
0 Kudos
12 Replies

1,438 Views
Ameeca
Contributor II

Lyon,

 

Sorry for the double post but I took your advice and used the latest codecs from the iMX53 section of the downloads.

 

Unfortunately there is a dependency which I am missing - namely I require GLIBC_2.7 and I am using GLIB2.0.

 

I'm new to Linux so I am a bit worried about removing and updating existing packages as it took a long time to get LTIB working and I'm afraid of causing more errors!

 

Build time for fsl-mm-codeclib: 5 seconds

sudo /opt/freescale/ltib/usr/bin/rpm --root /home/engineering/Freescale/ltib/rootfs --dbpath /var/lib/rpm -e --allmatches --nodeps --define '_tmppath /tmp/ltib' fsl-mm-codeclib 2>/dev/null
sudo /opt/freescale/ltib/usr/bin/rpm --root /home/engineering/Freescale/ltib/rootfs --dbpath /var/lib/rpm --prefix / --ignorearch -ivh --force --excludedocs --define '_tmppath /tmp/ltib' /home/engineering/Freescale/ltib/rpm/RPMS/arm/fsl-mm-codeclib-2.0.3-1.arm.rpm
error: failed dependencies:
    libc.so.6(GLIBC_2.7)   is needed by fsl-mm-codeclib-2.0.3-1


f_buildrpms() returned an error, exiting
traceback:
 main:560


Started: Mon Nov 28 10:39:03 2011
Ended:   Mon Nov 28 10:40:05 2011
Elapsed: 62 seconds


Build Failed

Exiting on error or interrupt

0 Kudos

1,438 Views
Ameeca
Contributor II

Thanks for the quick reply Lyon.

 

I found the package here; http://repository.timesys.com/buildsources/f/fsl-mm-codeclib/fsl-mm-codeclib-2.0.1/

 

And downloaded it into /opt/freescale/pkgs.

 

LTIB now builds fine with the package but if I use gst-inspect mfw_mp3encoder, it returns a "no such element" error.

0 Kudos

1,438 Views
LyonWang
NXP Employee
NXP Employee

you can find the latest fsl-mm-codeclib package in the 1105 release since it is a release for mx53, maybe you should find it in MX53 1105 release. (it was not officially for MX233 release, that's why you can only find 1.8.0 in mx233 release package).

you can get the mp3encoder in 1105 release and have a try.

0 Kudos

1,438 Views
Ameeca
Contributor II

Thanks everyone.

 

I've downloaded the only available linux codecs on the FSL site and that gave me fsl-mm-1.8.0, which, as you said Lyon does not contain fsl-mm-mp3enc-codeclib.

 

Should 2.0.0 be available through FSL too ? Is it worth me contacting their support?

0 Kudos

1,438 Views
LyonWang
NXP Employee
NXP Employee

You'd better get the newer version of fsl-mm-codeclib package (version 2.0.0 or later), then by default fsl-mm-codeclib package will include mp3 encoder library. ( due to license issue the older version donot include it)

0 Kudos

1,438 Views
daiane_angolini
NXP Employee
NXP Employee

you need to donwload mmcodec package from FSL web site and then copy it to /opt/freescale/pkg

 

I´m not sure for mp3 encoder, but it you don´t find it under mmcodec, you should open an SR and ask for it.

 

I cannot remember what was the licence needed for mp3 encoder.......

0 Kudos

1,438 Views
Ameeca
Contributor II

Hello

 

Sorry to jump on the back of an existing thread but I am trying to include fsl-mm-codec and fsl-mm-mp3enc in my LTIB pacakge list for my iMX233 board. This is the error I get:

 

Processing: fsl-mm-codeclib
=============================
Build path taken because: no prebuilt rpm,
Testing network connectivity
OK GPP:

Try fsl-mm-codeclib-1.8.0.tar.gz.md5 from the GPP
http://bitshrine.org/gpp/fsl-mm-codeclib-1.8.0.tar.gz.md5:
09:10:01 ERROR 404: Not Found.
Try fsl-mm-codeclib-1.8.0.tar.gz from the GPP
http://bitshrine.org/gpp/fsl-mm-codeclib-1.8.0.tar.gz:
09:10:01 ERROR 404: Not Found.
Can't get: fsl-mm-codeclib-1.8.0.tar.gz at ./ltib line 790.


f_buildrpms() returned an error, exiting
traceback:
 main:560


Started: Fri Nov 25 09:09:02 2011
Ended:   Fri Nov 25 09:10:01 2011
Elapsed: 59 seconds

These packages failed to build:
fsl-mm-codeclib

Build Failed

 

engineering@engineering-desktop:~/Freescale/ltib$ find . | grep codeclib
./dist/lfs-5.1/fsl-mm/fsl-mm-codeclib.spec
./dist/lfs-5.1/fsl-mm/fsl-mm-special-codeclib.spec
./dist/lfs-5.1/fsl-mm/fsl-mm-ms-codeclib.spec
./dist/lfs-5.1/fsl-mm/fsl-mm-aacpdec-codeclib.spec
./dist/lfs-5.1/fsl-mm/fsl-mm-mp3enc-codeclib.spec
./dist/lfs-5.1/fsl-mm/fsl-mm-flv-codeclib.spec
./dist/lfs-5.1/fsl-mm/fsl-mm-excluded-codeclib.spec
./dist/lfs-5.1/fsl-mm/fsl-mm-ac3dec-codeclib.spec

 

The .tar file is not in /opt/freescale/pkgs. Will I need to contact freescale to obtain this package?

 

Thanks



Lyon Wang said:

I guess you donot using the latest fsl-mm-codec release, if you use version above 2.0.0 you can finde mp3encoder plug-in.

you can get the newer release to find mp3 encoder

brace said:

hello, i have a question,i can't find mfw_mp3encoder in my mx51 evk,where i find it?
0 Kudos

1,438 Views
LyonWang
NXP Employee
NXP Employee

I guess you donot using the latest fsl-mm-codec release, if you use version above 2.0.0 you can finde mp3encoder plug-in.

you can get the newer release to find mp3 encoder

brace said:

hello, i have a question,i can't find mfw_mp3encoder in my mx51 evk,where i find it?
0 Kudos

1,438 Views
brace
Contributor I
hello, i have a question,i can't find mfw_mp3encoder in my mx51 evk,where i find it?
0 Kudos

1,438 Views
fabio_estevam
NXP Employee
NXP Employee

Randy,

It is simple to convert a Gstreamer pipeline to a C program. Please see this link as an example:

http://www.imxdev.org/wiki/index.php?title=All_Board_Creating_App_MP3

 

Regards,

 

Fabio Estevam

0 Kudos

1,438 Views
RandyKrakora
NXP Employee
NXP Employee

Daiane,

 

Thank you. I saw this on your wiki page as well just after I posted!

 

I tried arecord and it works, but the customer wants a small C program to do the same. Do we have any C code examples in our BSP that anyone knows of?

 

Regards,

Randy Krakora

0 Kudos

1,438 Views
daiane_angolini
NXP Employee
NXP Employee

Please, give it a try:

 

gst-launch alsasrc ! mfw_mp3encoder ! filesink location= audio.mp3

 

gst-launch alsasrc ! mfw_mp3encoder ! avimux ! filesink location=audio.avi

 

or try to use arecord (alsa-utils)

0 Kudos