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.

Problem with gstreamer-ti (DDOMPE branch) with ittiam mp3 codec on dm355s

Hi

I have a trouble with gstreamer-ti plugin (DDOMPE branch) with ittiam mp3 codec on DM355S evm.

I am using dvsdk_3_10_00_19 and gstreamer_ti (DDOMPE branch HEAD) with ittiam mp3 codecs to encode audio from alsasrc to mp3. 

"filesrc to dmaienc_mp3" works fine, but it does not work on single gstreamer pipeline (alsasrc to dmaienc_mp3).

 # gst-launch -e alsasrc ! audioconvert ! audio/x-raw-int, width=16, depth=16,  endianness=1234, channels=2, rate=44100, signed=true ! dmaienc_mp3 ! filesink location=audio.mp3 

As following article on ridgerun blog, there are a known problem to use dmaienc_mp3 and alsasrc on single gstreamer pipeline.

http://www.ridgerun.com/blog/?p=143

and still have a same problem on latest gstreamer_ti DDOMPE branch.

Are there any progress about this problem?

Regards,

--

 # CE_DEBUG=2 gst-launch -e alsasrc ! audioconvert ! audio/x-raw-int, width=16, depth=16,  endianness=1234, channels=2, rate=44100, signed=true ! dmaienc_mp3 ! filesink location=audio.mp3 

*** snip ***

@1,877,419us: [+0 T:0x42026490] ti.sdo.ce.audio1.AUDENC1 - AUDENC1_create> Enter (engine=0x760a0, name='mp3enc', params=0x6dd48)
@1,879,835us: [+0 T:0x42026490] CV - VISA_create(0x760a0, 'mp3enc', 0x42025728, 0x716, 'ittiam.extensions.audio1.IAUDENC1')
@1,881,578us: [+0 T:0x42026490] CV - VISA_create2(0x760a0, 'mp3enc', 0x42025728, 0x38, 0x716, 'ittiam.extensions.audio1.IAUDENC1')
@1,883,303us: [+0 T:0x42026490] ti.sdo.ce.alg.Algorithm - Algorithm_create> Enter (fxns=0x406e064c, idma3Fxns=0x0, iresFxns=0x0, params=0x42025728, attrs=0x42025694)
@1,885,498us: [+2 T:0x42026490] ti.sdo.ce.alg.Algorithm - Algorithm_create> useCachedMem = -1
@1,887,223us: [+0 T:0x42026490] ti.sdo.ce.alg - ALG_create> Enter (scratchId=1, fxns=0x406e064c, parentAlg=0x0, params=0x42025728, useCacheMem=-1)
@1,889,189us: [+2 T:0x42026490] ti.sdo.ce.alg - ALG_create> algNumAlloc 8 memory recs
@1,890,587us: [+2 T:0x42026490] ti.sdo.ce.alg - ALG_create> algAlloc returned numRecs=8
@1,891,950us: [+4 T:0x42026490] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[0]: size=0x29c, align=0x8, space=0x0, attrs=0x1
@1,893,673us: [+4 T:0x42026490] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[1]: size=0x3a90, align=0x8, space=0x0, attrs=0x1
@1,895,466us: [+4 T:0x42026490] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[2]: size=0x3c00, align=0x8, space=0x0, attrs=0x0
@1,897,399us: [+4 T:0x42026490] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[3]: size=0x17c0, align=0x8, space=0x0, attrs=0x2
@1,899,824us: [+4 T:0x42026490] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[4]: size=0x3ba, align=0x8, space=0x0, attrs=0x2
@1,901,597us: [+4 T:0x42026490] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[5]: size=0x16e0, align=0x8, space=0x0, attrs=0x2
@1,903,330us: [+4 T:0x42026490] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[6]: size=0x188, align=0x8, space=0x0, attrs=0x2
@1,905,582us: [+4 T:0x42026490] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[7]: size=0x10e8, align=0x8, space=0x0, attrs=0x1
@1,907,546us: [+0 T:0x42026490] ti.sdo.ce.alg - _ALG_allocMemory2> memTab=0x88718, n=8, useCachedMem=-1
@1,915,063us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_alloc(668) = 0x42027000.
@1,916,528us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_getPhys(0x42027000) = 0x87ffd000.
@1,919,094us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_alloc(14992) = 0x42028000.
@1,921,022us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_getPhys(0x42028000) = 0x87fde000.
@1,922,884us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_alloc(15360) = 0x4202c000.
@1,924,355us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_getPhys(0x4202c000) = 0x87fe2000.
@1,926,172us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_alloc(6080) = 0x42030000.
@1,927,842us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_getPhys(0x42030000) = 0x87fea000.
@1,929,714us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_alloc(954) = 0x42032000.
@1,931,250us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_getPhys(0x42032000) = 0x87ffe000.
@1,932,994us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_alloc(5856) = 0x42033000.
@1,934,474us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_getPhys(0x42033000) = 0x87fec000.
@1,936,230us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_alloc(392) = 0x42035000.
@1,937,898us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_getPhys(0x42035000) = 0x87fff000.
@1,940,327us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_alloc(4328) = 0x42036000.
@1,941,796us: [+4 T:0x42026490] OM - Memory_contigAlloc> CMEM_getPhys(0x42036000) = 0x87fe6000.
@1,943,763us: [+0 T:0x42026490] ti.sdo.ce.alg - _ALG_allocMemory2> Returning (TRUE)@1,944,321us: [+7 T:0x42026490] ti.sdo.ce.alg - ALG_create> algInit call failed -1