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 encoding both aac h264 together on the dm365

Hi,

I have modfied the encode demo use the ittiam aac encoder and h264 video into dvsdk_3_10_00_12 according to the instructions in http://processors.wiki.ti.com/index.php/DM365_Audio_Codecs_Integration_with_DVSDK_2.10.01.18_Demos.

I find that I can encode video or ausio but not both together.

Please can you help?

I append a copy of encode.cfg file.

regards

 

Shlomo Kut

Hi,

I have modfied the encode demo use the ittiam aac encoder and h264 video into dvsdk_3_10_00_12 according to the instructions in http://processors.wiki.ti.com/index.php/DM365_Audio_Codecs_Integration_with_DVSDK_2.10.01.18_Demos.

I find that I can encode video or ausio but not both together.

Please can you help?

I append a copy of encode.cfg file.

regards

 

Shlomo Kut

 

/*  ============================================================================
 *   Copyright (c)  Texas Instruments Incorporated 2009
 *
 *   Use of this software is controlled by the terms and conditions found in the
 *   license agreement under which this software has been supplied or provided.
 *  ============================================================================
 */
algSettings = xdc.useModule('ti.sdo.ce.alg.Settings');
algSettings.useCache = true;

/* Load support for the Codec Engine OSAL */
var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global');
osalGlobal.runtimeEnv = osalGlobal.LINUX;

/* Load support for the 'Davinci Multimedia Application Interface' module */
var DMAI = xdc.loadPackage('ti.sdo.dmai');

/* Load support for SimpleWidget */
var SW = xdc.loadPackage('ti.sdo.simplewidget');

environment['xdc.cfg.check.fatal'] = 'false';


var RMAN = xdc.useModule('ti.sdo.fc.rman.RMAN');
RMAN.useDSKT2 = false;
RMAN.persistentAllocFxn = "__ALG_allocMemory";
RMAN.persistentFreeFxn = "__ALG_freeMemory";
RMAN.semCreateFxn = "Sem_create";
RMAN.semDeleteFxn = "Sem_delete";
RMAN.semPendFxn = "Sem_pend";
RMAN.semPostFxn = "Sem_post";
RMAN.tableSize = 10;

var EDMA3 = xdc.useModule('ti.sdo.fc.edma3.Settings');

var vicp = xdc.useModule('ti.sdo.linuxutils.vicp.VICP');

var HDVICP = xdc.useModule('ti.sdo.fc.ires.hdvicp.HDVICP');

var VICP = xdc.useModule('ti.sdo.fc.ires.vicp.VICP2');

var VICPSYNC = xdc.useModule('ti.sdo.fc.vicpsync.VICPSYNC');

var HDVICPSYNC = xdc.useModule('ti.sdo.fc.hdvicpsync.HDVICPSYNC');

var VICP = xdc.useModule('ti.sdo.fc.memutils.MEMUTILS');

DDRSPACE = xdc.useModule('ti.sdo.fc.ires.addrspace.ADDRSPACE');

var EDMA3CHAN = xdc.useModule('ti.sdo.fc.ires.edma3chan.EDMA3CHAN');

var LSP = xdc.useModule('ti.sdo.linuxutils.edma.EDMA');

var CMEM = xdc.useModule('ti.sdo.linuxutils.cmem.CMEM');


xdc.loadPackage("ti.sdo.ce.video2");
xdc.loadPackage("ti.sdo.fc.hdvicpsync");

/*
 *  ======== Engine Configuration ========
 */

var MPEG4ENC = xdc.useModule('ti.sdo.codecs.mpeg4enc.ce.MPEG4ENC');
var H264ENC = xdc.useModule('ti.sdo.codecs.h264enc.ce.H264ENC');
var G711ENC = xdc.useModule('ti.sdo.ce.examples.codecs.g711.G711ENC');
var AACENC = xdc.useModule('ittiam.codecs.aaclc_enc.ce.AACLC_ENC');
 
var Engine = xdc.useModule('ti.sdo.ce.Engine');
var myEngine = Engine.create("encode", [
 
    {name: "mpeg4enc", mod: MPEG4ENC, local: true, groupId: 1},
    {name: "h264enc", mod: H264ENC, local: true, groupId: 1},
    {name: "g711enc", mod: G711ENC, local: true},
    {name: "aacenc", mod: AACENC, local: true},
]);

/*
xdc.loadPackage('ti.sdo.fc.ires.vicp').profile = "debug_trace";
xdc.loadPackage('ti.sdo.fc.ires.edma3chan').profile = "debug_trace";
xdc.loadPackage('ti.sdo.fc.rman').profile = "debug_trace";
xdc.loadPackage('ti.sdo.fc.edma3').profile = "debug_trace";
EDMA3CHAN.trace = true;
EDMA3CHAN.debug = true;
*/


Program.main = null;

 

 

 

  • A lttile update on this situation.

    It seems the problem is not to do with the codec but to do with audio capture.

    When I capture video and attempt to record with arecord the video capture stops. Maybe it is a dma contention issue?

    I am using the davinci-staging-kernel.

    Please could anybody suggest a solution?

    thanks for your time,

    Shlomo Kut

     

     

     

  • Hello Shlomo,

    I'm seeing a similar issue with the h264fhdvenc encoder and aac encoder on the dm6467.

    Did you manage to solve this problem?

     

    Thanks,

    Ram