I received ittiam evaluation codecs, how can integrate them with ridgerun sdk?
I copied each codec directory in /opt/DM355SDK789311/proprietary/codecs/ but the files name in extensions directory are the same:
root@americana:/opt/DM355SDK789311/proprietary/codecs/ittiam# ls -alhtotal 20Kdrwxr-xr-x 5 serra serra 4.0K 2010-02-01 10:51 .drwxrwxrwx 4 root root 4.0K 2010-02-01 10:27 ..drwxr-xr-x 8 serra serra 4.0K 2010-02-01 10:14 appdrwxr-xr-x 8 serra serra 4.0K 2010-02-01 10:14 codecsdrwxr-xr-x 3 serra serra 4.0K 2010-01-16 13:31 extensionsroot@americana:/opt/DM355SDK789311/proprietary/codecs/ittiam# ls -alh codecs/total 32Kdrwxr-xr-x 8 serra serra 4.0K 2010-02-01 10:14 .drwxr-xr-x 5 serra serra 4.0K 2010-02-01 10:51 ..drwxr-xr-x 5 serra serra 4.0K 2010-01-16 19:57 aac_decdrwxr-xr-x 5 serra serra 4.0K 2008-09-29 14:10 aaclc_encdrwxr-xr-x 5 serra serra 4.0K 2010-01-16 13:31 mp3_decdrwxr-xr-x 5 serra serra 4.0K 2008-09-30 11:26 mp3_encdrwxr-xr-x 5 serra serra 4.0K 2010-01-16 13:31 wma_decdrwxr-xr-x 5 serra serra 4.0K 2010-01-16 13:31 wma_encroot@americana:/opt/DM355SDK789311/proprietary/codecs/ittiam#
thank you
Andrea
Hi Andrea,
I'll work on a quick tutorial on how to integrate these codecs today and how to use them. I'll post it hopefully today or tomorrow.
Regards,
Cristina
Cristina Murillo
Embedded Software Engineer, RidgeRun
Did you record from microphone in your test?
thank you.
Yes, I record from a microphone and then encode the audio to either mp3 or aac.
How can I record from micophone?
I'm trying with:
gst-launch alsasrc ! audio/x-raw-int, width=16, depth=16, endianness=1234,
channels=2, rate=44100, signed=true ! filesink location=/audio.pcm
but audio.pcm is alway empty.
I'm using 2.6.29 kernel with DM355 audio support enable, I can listen mp3 file, but I can't record anything :-(
This is the pipeline to record from the microphone, yours should be fine too,
gst-launch alsasrc ! audioconvert ! audio/x-raw-int, width=16, depth=16, endianness=1234, channels=2, rate=44100, signed=true ! filesink location = audio.pcm
I'm guessing the problem could be that you have not enabled the microphone, or set the volume properly.
To activate the microphone:
amixer sset 'Left PGA Mixer Mic3L' onamixer sset 'Right PGA Mixer Mic3R' on
To set the volume type:
alsamixer
You can configure PCM and line DAC to higher levels. If you press F4, you can increase the level of the microphone's volume.
To hear the pcm file you recorded on your leopard, you can use the following pipeline:
gst-launch -e filesrc location= /audio.pcm ! audio/x-raw-int, width=16, depth=16, endianness=1234, channels=2, rate=44100, signed=true ! alsasink
Hope this helps.
Hi Cristina,
I'm new on this forum and i'm working with the LeopardBoard from a few days.
I tried your pipeline for the registration, but the audio signal is distorted. Trying the same pipe without the "audioconvert" plugin works better. Is a my error or the evidence you too?
Lorenzo
Hi Lorenzo,
I haven't notice that. Audioconvert is an element that converts audio to different formats, however we are setting the caps after it on that pipeline, so it shouldn't be necessary.
Andrea,
FYI,
There's a way to save the alsamixer settings, so you don't have to do it all over again every time you start your board. Once you turned on the microphone and set the volume, you can run:
alsactl store
And the next time you boot your board,
alsactl restore
And it will use the configuration you stored previously.
i tried to encode the audio to mp3 or aac following these instructions:
www.ridgerun.com/blog
But the Leopard gives :
WARNING: erroneous pipeline: no element "dmaienc_mp3"
I'm working with the latest SDK version...
Thank you.
Regards
There are a couple of steps that need to be followed in order to use these codecs, hopefully they will be post here soon. In the mean time, you should download the codecs package from TI web site.
are these steps in SDK configuration?
I see that in "Proprietary Software" there are some Gstreamer DMAI Plugins (Build DM355s Codec configuration instead of standard DM355 codecs)...
Have i to select them?
Thanks
My interest is to record from microphone and to stream audio using Dm355 and gstreamer.
I have succeeded in recording a pcm file and playing it but how can i stream via UDP between two Dm355.
Can u help me ?
Idriss
Hi Chistina,
I'm following steps from
elinux.org/RidgeRun_LeopardBoard_SDK_Hints
It says
"Apply the patch for the codecs to include the parameters definitions"
What are the patches to include parameter definitions?
If I pass that step, I get error
----------------
js: "/home/tunca/DM355SDK789311/proprietary/xdctools_3_10_05/xdctools_3_10_05_61/packages/xdc/xdc.tci", line 299: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: can't locate the package 'ittiam.codecs.mp3_dec.ce' along the path:
...
Ensure that the package path is set correctly.
Can you help me with this?
Hi,
I updated the page with the patches, you can now go back to that step. Now, regarding the error that you got, did you place the codecs in the directory DM355SDK789311/proprietary$ as suggested on the wiki? It seems that the package can't be found because it is not in the correct place.
Since this still needs more work done, any suggestions or comments are appreciated.