hi,
i want to encode one video stream twice with different resolution,and will encode to jpeg file,should i create two h264 codecs?like follow config file:
var MPEG4ENC = xdc.useModule('ti.sdo.codecs.mpeg4enc.ce.MPEG4ENC');
var H264ENC = xdc.useModule('ti.sdo.codecs.h264enc.ce.H264ENC'); var JPEGENC = xdc.useModule('ti.sdo.codecs.jpegenc.ce.JPEGENC'); var G711ENC = xdc.useModule('viga.sdo.codecs.g711.G711ENC'); var SPEEXENC = xdc.useModule('viga.sdo.codecs.speex.SPEEXENC'); 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: "h264enc2", mod: H264ENC, local: true, groupId: 1},
{name: "jpegenc", mod: JPEGENC, local: true,groupId: 1}, {name: "g711enc", mod: G711ENC, local: true}, {name: "speexenc", mod: SPEEXENC, local: true}, ]);
i create two h264enc in two differrent threads,and got this:
CMEMK Error: Failed to find a pool which fits 56 CMEM Error: getPool: Failed to get a pool fitting a size 56 Error: Failed to create video encoder: h264enc2
i you want get more info tell me,thank you.