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.

dm365/dvsdk 3.0 / decode demo ap use audio codec

In DVSDK 3.0 , use dm365 , i have add audio encode into encode demo ap , it's wok correct.

But i use same way add into audio decode app , when run the demo ap , have error message :

root@dm365-evm:/opt/dvsdk/dm365# ./decode -a /mnt/tmp/1.mp3

Decode demo started.

Failed to open audio decode algorithm: mp3_dec

Error: Failed to create audio decoder mp3_dec

 

What i need to check ?

 

Modify file :

./dmai_2_10_00_12/packages/ti/sdo/dmai/apps/audio_decode_io1/linunx/audio_decode_io1_dm365.cfg

./dvsdk_demos_3_10_00_16/dm365/decode/decode.cfg

mp3 decode put in ./dm365_codecs_03_10_00_07/packages/ittiam/codecs/mp3_dec

audio.c and audio.h reference dm6467 decode demo ap.

  • I believe DVSDK 3.1/DVSDK 4.x gives AAC audio encode and decode demo example. Have you tried using it to make MP3 demo ?

    regards

    Yashwant

  • Yes , DVSDK 3.1 have AAC encode / decode demo .

    For now :

    AAC encode : ok

    MP3 encode : ok

    AAC decode : ok

    MP3 decode : fail

  • When call AUDDEC1_create() , it return NULL.

    Cehck the AUDDEC1_create() in auddec1.c , it not compile in make code.

    I can't make sure waht's worring ?

    This code (auddec1.c) is correct version?

    Any idea ?

     

  • Please ensure all the changes in the DVSDK  is done for MP3 decoder.

    Check whether you have added the MP3 decoder component.

  • in audio_decode_io1_dm365.cfg

    var MP3_DEC  = xdc.useModule('ittiam.codecs.mp3_dec.ce.MP3_DEC');

    var myEngine = Engine.create("decode", [
        {name: "mp3_dec", mod: MP3_DEC, local: true},
    ]);

    in decode.cfg

    var MP3_DEC  = xdc.useModule('ittiam.codecs.mp3_dec.ce.MP3_DEC');
    var myEngine = Engine.create("decode", [
        {name: "mp3_dec", mod: MP3_DEC, local: true},
    ]);

    in codec.c

    /* File extensions for mp3_dec */
    static Char *mp3Extensions[] = { ".mp3", NULL };
    /* NULL terminated list of video decoders in the engine to use in the demo */
    static Codec audioDecoders[] = {
        {
            "np3_dec",
            "MP3 Audio",
            mp3Extensions,
            NULL,
            NULL
        },
        { NULL }
    };

    static Engine decodeEngine = {
        "decode",           /* Engine string name used by CE to find the engine */
        speechDecoders,     /* NULL terminated list of speech decoders in engine */
        audioDecoders,      /* NULL terminated list of audio decoders in engine */
        videoDecoders,      /* NULL terminated list of video decoders in engine */
        NULL,               /* NULL terminated list of speech encoders in engine */
        NULL,               /* NULL terminated list of audio encoders in engine */
        NULL                /* NULL terminated list of video encoders in engine */
    };

    Any misstake ? thanks.

  •  

    Hope you just copied as is from the codec.c file , i see there is typo. It is written as "np3_dec" instead of "mp3_dec".

    in  codec.c

    /* File extensions for mp3_dec */
    static Char *mp3Extensions[] = { ".mp3", NULL };
    /* NULL terminated list of video decoders in the engine to use in the demo */
    static Codec audioDecoders[] = {
        {
            "np3_dec",
            "MP3 Audio",
            mp3Extensions,
            NULL,
            NULL
        },
        { NULL }
    };

  • Oh my god ...

    Yes , you are right , it's work now.

    Thanks a lot.