This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM355 error decoding sound

Hi

I have a DM355 DVEVM and booting it from flash using NFS file system. The problem is that it doesnt decode sound files except of the demo sound priveded by TI. It  doesnt decode the G711 file I encoded through the board. I also tried it with other formats such as aac and mp2 with "-a" option, same error. Here is the error.

 

root@192.168.1.5:/opt/dvsdk/dm355# ./decode -s /opt/dosya/sound2.g711
Decode demo started.
Decode Error: Failed to open the sound device (/dev/dsp)

 

I recently restored NAND with dm355_flash_image_1_30_01_41.tar.  When I first boot the board I type ./loadmodules.sh but after restoring it started to give me this error so I dont write it anymore. But dvevmdemo and everything is working fine.

insmod: error inserting 'cmemk.ko': -1 File exists
insmod: error inserting 'dm350mmap.ko': -1 File exists

 

All the software is up to date.(I'm using ubuntu on intel)

 

  • refik said:

    root@192.168.1.5:/opt/dvsdk/dm355# ./decode -s /opt/dosya/sound2.g711
    Decode demo started.
    Decode Error: Failed to open the sound device (/dev/dsp)

    The error seems to suggest that it could not open /dev/dsp Linux device node; this likely means that another application is already holding on the /dev/dsp sound device or that maybe audio driver did not load properly (see boot log).  This error likely has little to do with the codec portion (g.711, mp3, aac....)

    That said, the base DM355 part does not support all auido codecs by default (mp3 and aac not included).  Again, this would not lead to the error above, but just good to keep in mind.

    refik said:

    insmod: error inserting 'cmemk.ko': -1 File exists
    insmod: error inserting 'dm350mmap.ko': -1 File exists

    the tar file restores NAND to factory setting, which include a init scripts which automatically launches the demos.  This script runs loadmodules.sh prior to launching demos already, hence if you try to run it again, you will get the errors above because loadmodules.sh has already ran once by the script.  Since loadmodules.sh has already been loaded, you should be able to run demos, despite the errors above.

  • Hello

     

    Juan Gonzales said:
    The error seems to suggest that it could not open /dev/dsp Linux device node; this likely means that another application is already holding on the /dev/dsp sound device or that maybe audio driver did not load properly (see boot log).  This error likely has little to do with the codec portion (g.711, mp3, aac....)

    I couldnt see anything about it in the bootlog, but it was interesting because the board was able to decode the TI's provided demo, but couldnt do other speed files it encoded itself. But the problem seems to be resolved now, I built a new kernel and booted it with tftp and its working fine now.

    Juan Gonzales said:
    That said, the base DM355 part does not support all auido codecs by default (mp3 and aac not included).  Again, this would not lead to the error above, but just good to keep in mind.

    Sorry I mistyped it I meant mp2. And I though it does because of what it says in decode.txt;

    -a <audio file>, --audiofile <audio file>
                 Decodes the audio file. The demo detects which type of audio file
                 is supplied using the file extension. Supported audio algorithms
                 are AAC (.aac extension) and mpeg1 layer 2 (.mp2 extension).

     

  • Hi refik!

    I've been working with audio on dm355, I would like to know if you tried aac decoder?

    Does that demo include aac encoder?

     

    Regards,

    Cristina

  • Hi Cristina,

    The demo I have doesn't support encoding aac. It says it does support aac decoding, but in a previous post Mr. Gonzales said it doesn't do it by default and that' s what I experienced. I was following the extranet for latest software so I was using dvsdk 1.3, now I'm upgrading to 2.0 from here. Also I'll install a codec bundle from here and will tell you how it goes.

    Refik

     

     

  • Hi refik!!

    I've been working with dvsdk 2.0 and with that codec bundle that you said. Turns out that it has three codecs: mp3, aac and wma. I found out that wma doesn't work at all, I tried the application example that comes with the package and did not work, so I contacted people from ittiam and they confirmed that.

    These codecs seem to be very tricky, I managed to get aac and mp3 encoders working, I haven't tried the decoders yet. The problem I had well still have and need to figure out how to solve, is that the encoders do not work with alsasrc, which is basically the reason why I need to use them!

    Please let me know if you have any luck with them!!

     

    Regards,

    Cristina

     

     

     

  • Refik/Cristina

    Just to be clear, our DM355 DVSDKs which is distributed via CDs shipped with EVM board or via http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/dvsdk/mv_dvsdk/index.html do not have support for audio codecs (aac, mp3, and wma) by default as far as I know.  When I take a look at the DVSDK encode/decode demos I see options for video (-v option) and speech (-s option), but audio support (-a option) appears to be missing.

    To get support for audio bundle, you would need to request "DM355S AUDIO Codec Bundle" via http://www.go-dsp.com/forms/TIDigitalMediaSWCM/index.htm?DCMP=DSP_DigitalMediaSW&HQS=Other+OT+requestfreesoftware

    I believe Cristina has the DVSDK 2.0 installation as well as the Audio codec bundle.  I just requested the Audio codec bundle myself to see if I may be able to help you two.

     

  • Hi Juan!

    Thank you so much for your reply, if you could be able to get those codecs working would be great!

    I've been working with them for several weeks now and right now I'm kind of stuck in the same place.

     

    Regards,

    Cristina