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.

Concurrent AAC encoders

Other Parts Discussed in Thread: DM3730

Hi All,

For a project we are trying to encode as much audio streams as possible to AAC.

I'm able to call Aenc1_create() only 5 times, after that the call returns an error. 

Doesn't anybody know if this limit is a hard limit?

I would assume typical codec engines never need more that 4 codecs (video encode/decode and audio encode/decode), we would like to do for instance 32 aac audio encodes only.

Thanks,

RvB 

  • Hi,

    Could you specify which software release and hardware platform you are using? Could you add some logs when the issue appears? It could be useful for investigating the issue.

    BR

    Tsvetolin Shulev

  • Hi,

    Of course I can, we are using a custom board with an DM3730 CPU. We are using the  codec_engine_2_26_02_11, the codec-omap3530_4_02_00_00 in this codec server I added the dm6446_aacheenc_1_20_005_production and dm6446_aalceenc_1_20_005_production encoder. 

    Attached the complete log of failing encoder number 6. But I think it has to do with this piece of logging. But what is the reason for failing to create threads on the DSP core?

    [DSP] @0,608,882tk: [+5 T:0x87c49a94 S:0x87c4d784] CV - VISA_create> local codec created (name='aacheenc', handle=0x87c65ad0)
    [DSP] @0,608,952tk: [+0 T:0x87c49a94 S:0x87c4d8dc] ti.sdo.ce.audio1.AUDENC1 - AUDENC1_create> return (0x87c65a98)
    [DSP] @0,609,023tk: [+4 T:0x87c49a94 S:0x87c4d89c] OT - Thread_create > name: "aacheenc#5", pri: -1, stack size: 18432, stack seg: 0
    [DSP] @0,609,135tk: [+6 T:0x87c49a94 S:0x87c4d914] CN - NODE_create: Thread_create() failed!
    [DSP] @0,609,193tk: [+0 T:0x87c49a94 S:0x87c4d8cc] ti.sdo.ce.audio1.AUDENC1 - AUDENC1_delete> Enter (handle=0x87c65a98)

    3225.aac_limit_failed.log

    Thanks,

    Robin

  • Hi,

    I've added all information you requested. 

    Is there any particular reason why only 5 encoders can run at a time?

    Thanks