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.
Dear all,
With IPNC RDK 4.0, now it can works well. However, we have other special requirement to do H264 decode on board. I found the moduletest.out/alg_vidDec.c is a good example to do such work. But it can't works well.
I have already changed ./framework/alg/src/alg_server.cfg to support H264 decoder as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
var IPRUN = xdc.useModule('ti.sdo.codecs.iprun.ce.IPRUN');
var KTNF = xdc.useModule('ti.sdo.codecs.ktnf.ce.KTNF');
var MPEG4ENC = xdc.useModule('ti.sdo.codecs.mpeg4enc.ce.MPEG4ENC');
var H264ENC = xdc.useModule('ti.sdo.codecs.h264enc.ce.H264ENC');
var H264DEC = xdc.useModule('ti.sdo.codecs.h264dec.ce.H264DEC');
var JPEGENC = xdc.useModule('ti.sdo.codecs.jpegenc.ce.JPEGENC');
var AACLC_ENC = xdc.useModule('ittiam.codecs.aaclc_enc.ce.AACLC_ENC');
var AAC_DEC = xdc.useModule('ittiam.codecs.aac_dec.ce.AAC_DEC');
...
var Engine = xdc.useModule('ti.sdo.ce.Engine');
var myEngine = Engine.create("alg_server", [
{name: "g711enc", mod: G711ENC, local: true, groupId: 1},
...
{name: "h264enc", mod: H264ENC, local: true, groupId: 1},
{name: "h264dec", mod: H264DEC, local: true, groupId: 1},
{name: "mpeg4enc", mod: MPEG4ENC, local: true, groupId: 1},
...
]);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I disabled alg_vidDec display function ( attached please find alg_vidDec.c and test.264) and only test h264 decode functionality, however it still reports errors as below:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./moduletest.out alg_vidDec
CLK Hz,
ARM Hz = 432000000
DDR Hz = 340000000
VPSS Hz = 340000000
IMCOP Hz = 340000000
[OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR
IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameter
DM365MM Init Successful [OSA_FILE ] Reading file [test.264] ... Done. [9869 bytes]
ALG: VidDec: Decode in progress!!!
ALG: VidDec: XDM_GETBUFINFO: min out bufs:2,size:516096 258048
ALG: VidDec: 42588:0:1077585056:352x288:0: 6705 bytes (1074325184, 1074323456)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: XDM_GETBUFINFO: min out bufs:2,size:294912 147456
ALG: VidDec: 0:0:0:352x288:1: 6705 bytes (24, 48)
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: ALG_vidDecRun() ERROR !!!
ALG: VidDec: 0:0:0:352x288:1: 693 bytes (24, 48)
ALG: VidDec: 0:0:0:352x288:0: 795 bytes (24, 48)
ALG: VidDec: 0:0:0:352x288:0: 683 bytes (24, 48)
ALG: VidDec: 0:0:0:352x288:0: 102400 bytes (24, 48)
ALG: VidDec: Decode DONE!!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Could you help to check the attachment including files: alg_vidDec.c and test.264, what's wrong setting?
Any help will be much appreciated!
Thanks,
Jesse.