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.

Linux/TMS320DM365: DM365 JPEG fault

Part Number: TMS320DM365

Tool/software: Linux

I have tried the jpeg encode by using dvsdk_2_10_00_17 to create encode instance sucessfully ,but when i tried to create the decode intance ,Imet some problems like this 

the upper is the erro and from the below we can see that the  engine_open does not execute ,so how to deal with the "segementation fault"? can anyone can provide some sugestions? thanks a lot !

  • Hi ,

    1) Please refer to this file in dvsdk for including decode module in cfg file,

    gstticodecplugin_dm365.cfg

    2) Make sure your engine name to Engine_open and Engine name in .cfg file is the same.

    Please provide few additional details for further easy debugging,

    1) attach .cfg file which would involve engine create .

    2) Logs exporting CE_DEBUG=3.

    Thanks & Regards,

    Vishwanath Patil

  • First of all ,thanks for your reply ! here some more details :
    1) I used the decode demo in dvsdk_2_10_00_17 ,I have changed the codecs.c and decode.cfg files like this:

    decode.cfg

    var viddec = xdc.module('ti.sdo.ce.video2.IVIDDEC2');

    var auddec = xdc.module('ti.sdo.ce.audio.IAUDDEC');



    var MPEG4DEC = xdc.useModule('ti.sdo.codecs.mpeg4dec.ce.MPEG4DEC');

    var H264DEC = xdc.useModule('ti.sdo.codecs.h264dec.ce.H264DEC');

    var G711DEC = xdc.useModule('ti.sdo.ce.examples.codecs.g711.G711DEC');

    var JPEGDEC = xdc.useModule('ti.sdo.codecs.jpegdec.ce.JPEGDEC');

    var Engine = xdc.useModule('ti.sdo.ce.Engine');

    var myEngine = Engine.create("decode", [

    {name: "jpegdec", mod: JPEGDEC, local: true, groupId: 2},

    {name: "mpeg4dec", mod: MPEG4DEC, local: true, groupId: 1},

    {name: "h264dec", mod: H264DEC, local: true, groupId: 1},

    {name: "g711dec", mod: G711DEC, local: true},

    ]);
    codecs.c:
    /* File extensions for MPEG 4 */

    static Char *mpeg4Extensions[] = { ".mpeg4", ".m4v", NULL };

    static Char *jpegExtensions[] = { ".jpeg", NULL };

    /* File extensions for H.264 */

    static Char *h264Extensions[] = { ".264", NULL };



    /* NULL terminated list of video decoders in the engine to use in the demo */

    static Codec videoDecoders[] = {

    {

    "jpegdec",

    "JPEG HP Video",

    jpegExtensions,

    NULL,

    NULL

    },

    {

    "mpeg4dec",

    "MPEG4 SP Video",

    mpeg4Extensions,

    NULL,

    NULL

    },

    {

    "h264dec",

    "H.264 HP Video",

    h264Extensions,

    NULL,

    NULL

    },

    { NULL }

    };
    2) I am sure that the engine name to Engine_open and Engine name in .cfg file is the same.
    3) and annother problem is that when my mates using DM368 decoed the picture it logs:
    decode: ce/Idec1.c:98: Idec1_process: Assertion `Buffer_getNumBytesUsed(hInBuf)' failed.
    Aborted
    can you give me some suguestions? thanks a lot
  • Hi user4358345,


    Please go through jpegdec user guide codecs-dm365_4_02_00_00/packages/ti/sdo/codecs/jpegdec/docs , that would help you in knowing minimal things to be in place for decoding .

    dvsdk-demo's doesn't have jpegdec please carefully make your changes this is best reference gsttiimgdec1.c that I felt . DMAI_DEBUG and CE_DEBUG would give more information , which would be helpful for debugging.

    If you have more than an issue please open different thread and share logs.

    Thanks & Regards,

    Vishwanath Patil

  • thanks ,I will refer the docs carefully ,hope this will works